.main {
    display: flex;
    flex-direction: column;
}


/* ════════════════════════════════════════════════
   HERO  (Figma: bg image 975px, card 770×436px at left:68 top:217 from image)
   ════════════════════════════════════════════════ */
.hp-hero {
    position: relative;
    width: 100%;
    height: clamp(400px, 55vw, 975px);
    overflow: hidden;
}
.hp-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hp-hero__card {
    position: absolute;
    top: clamp(24px, 12vw, 217px);
    left: clamp(20px, 3.5vw, 68px);
    width: clamp(280px, 42vw, 770px);
    min-height: clamp(180px, 24vw, 436px);
    border-radius: 10px;
    background: linear-gradient(119.914deg, rgba(0,119,255,0.19) 5.29%, rgba(0,64,166,0.73) 76.68%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 68px) clamp(20px, 3.5vw, 64px);
    gap: clamp(10px, 1.2vw, 18px);
}
/* "WELCOME TO AKADEMUS" — Figma: #ffb200, 30px */
.hp-hero__subtitle {
    font-size: clamp(14px, 1.6vw, 30px);
    font-weight: 500;
    color: #ffb200;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
/* Main heading — Figma: white, 45px */
.hp-hero__title {
    font-size: clamp(18px, 2.4vw, 45px);
    font-weight: 500;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
}
/* "Learn More" button — Figma: #0040a6 bg, #ffb200 text, 25px, rounded-30px */
.hp-hero__btn {
    align-self: flex-start;
    background: #0040a6;
    color: #ffb200;
    font-size: clamp(13px, 1.3vw, 25px);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 30px;
    padding: clamp(10px, 1vw, 18px) clamp(20px, 2.5vw, 45px);
    cursor: pointer;
    margin-top: clamp(6px, 0.8vw, 14px);
    white-space: nowrap;
    transition: background 0.2s;
}
.hp-hero__btn:hover { background: #003090; }

/* ════════════════════════════════════════════════
   SHARED SECTION HEADER  (line + title, centered)
   ════════════════════════════════════════════════ */
.hp-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(40px, 5vw, 80px) 20px clamp(20px, 3vw, 40px);
    position: relative;
    z-index: 1;
}
/* Figma: #FFB200 line, 250px wide, 3px */
.hp-section-header__line {
    width: 250px;
    height: 3px;
    background: #ffb200;
}
/* "Other Systems" uses blue line */
.hp-section-header__line--blue { background: #0040a6; }
/* Figma: #0040a6, 60px, Poppins 500 */
.hp-section-header__title {
    font-size: clamp(28px, 3.2vw, 60px);
    font-weight: 500;
    color: #0040a6;
    text-align: center;
    margin: 8px 0 0;
    font-family: 'Poppins', sans-serif;
}

/* ════════════════════════════════════════════════
   MIDDLE BAND — contains featured + other sections
   Deco shapes are clipped to this container via overflow:hidden
   ════════════════════════════════════════════════ */
.hp-middle {
    position: relative;
    overflow: hidden;
}
.hp-featured {
    position: relative;
    z-index: 1;
    padding-bottom: clamp(48px, 6vw, 96px);
}
.hp-other {
    position: relative;
    z-index: 1;
    background: transparent;
    padding-bottom: clamp(48px, 6vw, 96px);
}
.hp-hero   { position: relative; z-index: 1; }
.hp-footer { position: relative; z-index: 1; }

/* ── Decorative diagonal shapes (inside .hp-middle, clipped by overflow:hidden) ── */
.hp-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
/* Yellow band — left side */
.hp-deco--yellow {
    width: 30vw;
    height: 300vw;
    background: #ffb200;
    left: -14vw;
    top: 20%;
    transform: translateY(-50%) rotate(105.79deg);
}
/* Blue band — right side */
.hp-deco--blue {
    width: 30vw;
    height: 300vw;
    background: linear-gradient(to bottom, #0040a6 22.6%, #001940 79.2%);
    right: -14vw;
    top: 50%;
    transform: translateY(-50%) rotate(42.37deg);
}

/* ════════════════════════════════════════════════
   FEATURED CARDS  (Figma: 3 cols, 523px wide, 703px tall, rounded-20px)
   ════════════════════════════════════════════════ */
.hp-featured__cards {
    display: flex;
    gap: clamp(16px, 2.1vw, 40px);
    padding: 0 clamp(20px, 3.5vw, 68px);
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hp-feat-card {
    flex: 1;
    min-width: 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: clamp(400px, 40vw, 703px);
    box-shadow: 8px 13px 8px rgba(0, 0, 0, 0.25);
}
/* Full-bleed photo */
.hp-feat-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Gradient overlay for text readability (Figma: #00173c→#0e56c9 left-to-right) */
.hp-feat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 23, 60, 0.1)  0%,
        rgba(0, 23, 60, 0.55) 40%,
        rgba(14, 86, 201, 0.95) 100%
    );
}
/* Content layer */
.hp-feat-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2.5vw, 39px) clamp(16px, 2.5vw, 40px);
    z-index: 1;
}
/* Logo — Figma: 67×67px, rounded-20px, top-left */
.hp-feat-card__logo {
    width: clamp(44px, 3.5vw, 67px);
    height: clamp(44px, 3.5vw, 67px);
    object-fit: cover;
    border-radius: 20px;
    flex-shrink: 0;
}
/* Title — Figma: white, 40px, Poppins 500, pushed to bottom */
.hp-feat-card__title {
    font-size: clamp(22px, 2.1vw, 40px);
    font-weight: 500;
    color: #fff;
    margin: auto 0 clamp(8px, 1vw, 16px);
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}
/* Body — Figma: white, 22px, text-justify */
.hp-feat-card__body {
    font-size: clamp(12px, 1.15vw, 22px);
    font-weight: 500;
    color: #fff;
    margin: 0;
    text-align: justify;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

/* ════════════════════════════════════════════════
   OTHER SYSTEMS  (Figma: 3×2 grid, 577px wide, 443px tall, rounded-15px)
   ════════════════════════════════════════════════ */
.hp-other__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 32px);
    padding: 0 clamp(20px, 3.5vw, 68px);
    max-width: 1920px;
    margin: 0 auto;
}
/* Card — Figma: gradient #001638→#0e56c9 (top→bottom), rounded-15px */
.hp-sys-card {
    background: linear-gradient(to bottom, #001638 0%, #0e56c9 100%);
    border-radius: 15px;
    padding: clamp(24px, 2.5vw, 46px) clamp(16px, 2vw, 30px);
    height: clamp(300px, 26vw, 443px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
/* Yellow accent line — Figma: #ffb200, ~168px wide, 7px tall */
.hp-sys-card__line {
    width: clamp(80px, 8.75vw, 168px);
    height: 7px;
    background: #ffb200;
    margin-bottom: clamp(14px, 1.8vw, 32px);
    flex-shrink: 0;
}
/* Title — Figma: white, 60px, Poppins 500 */
.hp-sys-card__title {
    font-size: clamp(20px, 3.1vw, 60px);
    font-weight: 500;
    color: #fff;
    margin: 0 0 clamp(8px, 1vw, 14px);
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
}
/* Body — Figma: #d8d8d8, 17px */
.hp-sys-card__body {
    font-size: clamp(11px, 0.9vw, 17px);
    font-weight: 500;
    color: #d8d8d8;
    margin: 0;
    line-height: 1.65;
    flex: 1;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}
/* Explore row — Figma: "Explore" text + arrow svg + logo icon */
.hp-sys-card__explore {
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.8vw, 14px);
    margin-top: clamp(12px, 1.5vw, 20px);
    flex-shrink: 0;
}
.hp-sys-card__explore-text {
    font-size: clamp(13px, 0.95vw, 18px);
    font-weight: 500;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}
.hp-sys-card__explore svg { flex-shrink: 0; }
/* Figma: logo icon 40px, rounded-5px */
.hp-sys-card__icon {
    width: clamp(28px, 2.1vw, 40px);
    height: clamp(28px, 2.1vw, 40px);
    object-fit: cover;
    border-radius: 5px;
}


/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .hp-featured__cards { flex-direction: column; }
    .hp-feat-card { height: clamp(320px, 60vw, 520px); }

    .hp-other__grid { grid-template-columns: repeat(2, 1fr); }
    .hp-sys-card { height: auto; min-height: 300px; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Hero */
    .hp-hero { height: clamp(320px, 80vw, 600px); }
    .hp-hero__card {
        top: 16px;
        left: 16px;
        width: calc(100% - 32px);
        padding: 20px;
        gap: 10px;
    }

    /* Hide deco shapes on small screens */
    .hp-deco { display: none; }

    /* Featured */
    .hp-featured__cards { flex-direction: column; }
    .hp-feat-card { height: clamp(280px, 70vw, 450px); }

    /* Other systems */
    .hp-other__grid { grid-template-columns: 1fr; }
}

/* Small mobile */
@media (max-width: 480px) {
    .hp-hero { height: 300px; }
    .hp-section-header__title { white-space: normal; }
    .hp-sys-card__title { font-size: 28px; }
}
