/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #182334;
    background: #ffffff;
    overflow-x: hidden;
    min-width: 320px;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

section[id] {
    scroll-margin-top: 76px;
}


/* =========================================================
   NAVIGATION BAR
========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 72px;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
    width: 100%;
    max-width: 1450px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 55px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
    color: #111827;
}

.brand-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-right: 12px;
    flex-shrink: 0;
}

.brand-text {
    min-width: 0;
}

.brand-text h2 {
    font-size: clamp(13px, 1.35vw, 18px);
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-text span {
    display: block;
    margin-top: 2px;
    font-size: clamp(9px, 0.9vw, 12px);
    color: #4b5563;
    letter-spacing: 0.2px;
}


/* =========================================================
   NAVIGATION LINKS
========================================================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2.1vw, 30px);
    height: 72px;
    flex-shrink: 0;
}

.nav-links a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    color: #263241;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.25s ease;
}

.nav-links a:hover {
    color: #c8102e;
}

.nav-links a.active {
    color: #c8102e;
    font-weight: 600;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 2px;
    background: #c8102e;
    border-radius: 5px;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #f7f8fa;
    color: #c8102e;
    cursor: pointer;
    font-size: 19px;
    transition: 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: #f0f1f3;
}


/* =========================================================
   HERO SECTION
========================================================= */

.hero {
    position: relative;
    min-height: 520px;
    margin-top: 72px;
    overflow: hidden;
    background-image: url("../images/school-building.jpg");
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(72, 0, 0, 0.92) 0%,
        rgba(105, 0, 8, 0.87) 18%,
        rgba(105, 0, 8, 0.64) 38%,
        rgba(80, 0, 0, 0.24) 60%,
        rgba(0, 0, 0, 0) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1450px;
    min-height: 520px;
    margin: 0 auto;
    padding: 45px clamp(28px, 6.5vw, 95px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    max-width: 650px;
    width: 100%;
    color: #ffffff;
}

.hero-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 5px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-title-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.university-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 5px;
}

.hero h1 {
    font-size: clamp(32px, 3.2vw, 45px);
    line-height: 1.04;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.8px;
}

.hero h1 span {
    display: block;
    color: #ed1c24;
}


/* =========================================================
   HERO TAGLINE
========================================================= */

.hero-tagline {
    margin-top: 13px;
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 500;
    color: #ffffff;
}

.hero-tagline span {
    margin: 0 5px;
    color: #ffffff;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.hero-description {
    max-width: 475px;
    margin-top: 9px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #ffffff;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 18px;
}

.hero-start-btn,
.hero-learn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 25px;
    transition: 0.25s ease;
}

.hero-start-btn {
    gap: 13px;
    min-width: 160px;
    padding: 11px 24px;
    background: #d71920;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.hero-start-btn:hover {
    background: #b30f18;
    transform: translateY(-2px);
}

.hero-start-btn i {
    font-size: 12px;
}

.hero-learn-btn {
    min-width: 155px;
    padding: 10px 27px;
    border: 1.5px solid #ffffff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.hero-learn-btn:hover {
    background: #ffffff;
    color: #9d0c1d;
}


/* =========================================================
   WHY SECTION
========================================================= */

.why-section {
    position: relative;
    padding: clamp(38px, 4vw, 52px) clamp(18px, 4vw, 45px) 45px;
    background: #ffffff;
    overflow: hidden;
}

.why-section::before {
    content: "";
    position: absolute;
    left: -130px;
    top: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 45px solid rgba(180, 0, 20, 0.035);
    pointer-events: none;
}

.why-section::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border: 55px solid rgba(180, 0, 20, 0.025);
    transform: rotate(45deg);
    pointer-events: none;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
    position: relative;
    z-index: 2;
    text-align: center;
}

.section-label {
    display: block;
    color: #c8102e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
}

.section-heading h2 {
    margin-top: 6px;
    color: #182334;
    font-size: clamp(25px, 2.5vw, 29px);
    line-height: 1.2;
    font-weight: 800;
}

.section-heading p {
    margin-top: 7px;
    color: #5c6573;
    font-size: 13.5px;
}


/* =========================================================
   FEATURES
========================================================= */

.features-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1270px;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card {
    min-height: 155px;
    padding: 0 24px;
    text-align: center;
    border-right: 1px solid #dddddd;
}

.feature-card:last-child {
    border-right: none;
}

.feature-icon {
    width: 59px;
    height: 59px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #b5091a;
    color: #ffffff;
    font-size: 23px;
    box-shadow: 0 4px 8px rgba(180, 0, 20, 0.12);
}

.feature-card h3 {
    margin-top: 11px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.feature-card p {
    max-width: 210px;
    margin: 7px auto 0;
    color: #4f5968;
    font-size: 12.5px;
    line-height: 1.45;
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.how-section {
    position: relative;
    min-height: 235px;
    padding: 34px clamp(18px, 4vw, 45px) 42px;
    overflow: hidden;
    background-image: url("../images/school-building.jpg");
    background-size: cover;
    background-position: center 58%;
    background-repeat: no-repeat;
}

.how-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(60, 0, 0, 0.92),
        rgba(65, 0, 0, 0.94)
    );
}

.how-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1250px;
    margin: auto;
}

.how-heading h2 {
    color: #ffffff;
    font-size: clamp(24px, 2.3vw, 25px);
    margin-top: 4px;
}

.how-heading .section-label {
    color: #ed1c24;
}


/* =========================================================
   STEPS
========================================================= */

.steps-container {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 28px;
    gap: clamp(10px, 1.3vw, 17px);
}

.step-card {
    width: 220px;
    flex: 1 1 0;
    max-width: 220px;
    color: #ffffff;
}

.step-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #c8102e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    flex-shrink: 0;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #c8102e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.step-card h3 {
    margin-top: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.step-card p {
    max-width: 195px;
    margin-top: 4px;
    color: #f2f2f2;
    font-size: 11.5px;
    line-height: 1.4;
}

.step-arrow {
    margin-top: 12px;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    padding: clamp(50px, 6vw, 70px) 20px;
    background: #f7f8fa;
    text-align: center;
}

.about-container {
    width: 100%;
    max-width: 800px;
    margin: auto;
}

.about-container h2 {
    margin-top: 8px;
    color: #172033;
    font-size: clamp(25px, 2.8vw, 29px);
    line-height: 1.2;
}

.about-container p {
    margin-top: 15px;
    color: #5a6473;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    padding: clamp(48px, 5vw, 65px) 20px;
    background: #ffffff;
    text-align: center;
}

.contact-container {
    width: 100%;
    max-width: 800px;
    margin: auto;
}

.contact-container h2 {
    margin-top: 8px;
    color: #172033;
    font-size: clamp(25px, 2.6vw, 28px);
}

.contact-container p {
    margin: 10px auto 0;
    max-width: 650px;
    color: #5a6473;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    min-height: 60px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: #111a25;
    color: #ffffff;
}

footer p {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

footer p span {
    margin: 0 5px;
}

.footer-line {
    width: 100px;
    height: 1px;
    background: rgba(255,255,255,0.7);
    flex-shrink: 0;
}


/* =========================================================
   RESPONSIVE - 1200px
========================================================= */

@media (max-width: 1200px) {

    .nav-container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .nav-links {
        gap: 18px;
    }

    .hero-container {
        padding-left: 50px;
        padding-right: 50px;
        gap: 30px;
    }

    .features-container {
        max-width: 1100px;
    }

    .feature-card {
        padding: 0 18px;
    }

}


/* =========================================================
   RESPONSIVE - 1000px
========================================================= */

@media (max-width: 1000px) {

    .navbar {
        min-height: 68px;
    }

    .nav-container {
        min-height: 68px;
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 12px;
        right: 12px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        border: 1px solid #eceef2;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .nav-links.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        min-height: 46px;
        height: auto;
        justify-content: flex-start;
        padding: 0 14px;
        border-radius: 9px;
    }

    .nav-links a:hover {
        background: #f8f8f9;
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-links a.active {
        background: #fff3f4;
    }

    .brand {
        flex: 1 1 auto;
    }

    .hero {
        margin-top: 68px;
        min-height: 540px;
    }

    .hero-container {
        min-height: 540px;
        padding: 48px 40px;
    }
    .hero-content {
        max-width: 720px;
    }

    .features-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 34px;
    }

    .feature-card {
        min-height: 145px;
        border-right: none;
    }

    .feature-card:nth-child(-n + 3) {
        border-bottom: 1px solid #e4e4e4;
        padding-bottom: 25px;
    }

    .steps-container {
        flex-wrap: wrap;
    }

}


/* =========================================================
   RESPONSIVE - 760px
========================================================= */

@media (max-width: 760px) {

    .brand-logo {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    .brand-text h2 {
        font-size: 13px;
    }

    .brand-text span {
        font-size: 9px;
    }

    .hero {
        min-height: auto;
    }

    .hero-container {
        min-height: auto;
        padding: 44px 24px 52px;
        display: block;
    }

    .hero-heading {
        gap: 13px;
    }

    .hero-logo {
        width: 75px;
        height: 75px;
    }

    .university-name {
        font-size: 11px;
        line-height: 1.35;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: clamp(29px, 7vw, 35px);
    }

    .hero-tagline {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.5;
    }

    .hero-description {
        max-width: 600px;
        font-size: 13.5px;
        line-height: 1.6;
    }

    .hero-buttons {
        width: 100%;
        margin-top: 22px;
    }

    .hero-start-btn,
    .hero-learn-btn {
        flex: 1 1 180px;
        min-width: 0;
    }

    .why-section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .section-label {
        font-size: 11px;
        letter-spacing: 2.2px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .section-heading p {
        font-size: 13px;
        line-height: 1.5;
    }

    .features-container {
        margin-top: 27px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 0;
    }

    .feature-card {
        min-height: 165px;
        padding: 18px 16px 24px;
    }

    .feature-card:nth-child(-n + 4) {
        border-bottom: 1px solid #e4e4e4;
    }

    .feature-card:nth-child(odd) {
        border-right: 1px solid #e4e4e4;
    }

    .feature-card:nth-child(4) {
        border-bottom: 1px solid #e4e4e4;
    }

    .feature-card:nth-child(5) {
        grid-column: 1 / -1;
        border-right: none;
    }

    .how-section {
        padding-top: 38px;
        padding-bottom: 45px;
    }

    .steps-container {
        width: min(100%, 390px);
        margin-left: auto;
        margin-right: auto;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .step-card {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .step-top {
        justify-content: center;
    }

    .step-card h3 {
        font-size: 15px;
    }

    .step-card p {
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
        font-size: 12px;
    }

    .step-arrow {
        margin: 0;
        transform: rotate(90deg);
    }

    .about-container,
    .contact-container {
        max-width: 650px;
    }

    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* =========================================================
   RESPONSIVE - 520px
========================================================= */

@media (max-width: 520px) {

    .navbar {
        min-height: 64px;
    }

    .nav-container {
        min-height: 64px;
        padding: 0 14px;
    }

    .nav-links {
        top: 64px;
        left: 8px;
        right: 8px;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
    }

    .brand-logo {
        width: 43px;
        height: 43px;
        margin-right: 8px;
    }

    .brand-text h2 {
        font-size: 10.5px;
        letter-spacing: 0.2px;
    }

    .brand-text span {
        font-size: 8px;
    }

    .hero {
        margin-top: 64px;
    }

    .hero-container {
        padding: 34px 17px 42px;
    }

    .hero-heading {
        align-items: flex-start;
        gap: 10px;
    }

    .hero-logo {
        width: 61px;
        height: 61px;
        border-width: 2px;
        padding: 4px;
    }

    .university-name {
        font-size: 9px;
        letter-spacing: 0.8px;
    }

    .hero h1 {
        font-size: 27px;
        letter-spacing: -0.5px;
    }

    .hero-tagline {
        font-size: 13.5px;
        margin-top: 13px;
    }

    .hero-tagline span {
        margin: 0 3px;
    }

    .hero-description {
        margin-top: 9px;
        font-size: 12.5px;
        line-height: 1.65;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-start-btn,
    .hero-learn-btn {
        width: 100%;
        flex: none;
    }

    .why-section {
        padding: 40px 15px 38px;
    }

    .section-label {
        font-size: 9.5px;
        letter-spacing: 1.8px;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .section-heading p {
        font-size: 12.5px;
    }

    .features-container {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .feature-card,
    .feature-card:nth-child(-n + 4),
    .feature-card:nth-child(5),
    .feature-card:nth-child(odd) {
        grid-column: auto;
        min-height: 0;
        border-right: none;
        border-bottom: 1px solid #e4e4e4;
        padding: 22px 18px 24px;
    }

    .feature-card:last-child {
        border-bottom: none;
    }

    .feature-card p {
        max-width: 280px;
    }

    .how-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .how-heading h2 {
        font-size: 22px;
    }

    .step-card {
        max-width: 290px;
    }

    .about-section,
    .contact-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .about-container h2 {
        font-size: 23px;
    }

    .about-container p,
    .contact-container p {
        font-size: 13px;
        line-height: 1.7;
    }

    footer {
        flex-direction: column;
        gap: 9px;
        padding: 16px 15px;
    }

    .footer-line {
        width: 65px;
    }

    footer p {
        font-size: 11px;
    }

}


/* =========================================================
   VERY SMALL PHONES - 380px
========================================================= */

@media (max-width: 380px) {

    .brand-text h2 {
        max-width: 175px;
        font-size: 9.5px;
    }

    .brand-text span {
        font-size: 7.5px;
    }

    .hero-container {
        padding-left: 13px;
        padding-right: 13px;
    }

    .hero-heading {
        gap: 8px;
    }

    .hero-logo {
        width: 54px;
        height: 54px;
    }

    .university-name {
        font-size: 8px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-description {
        font-size: 12px;
    }

    .section-heading h2,
    .how-heading h2 {
        font-size: 20px;
    }

    .feature-card h3 {
        font-size: 15px;
    }

    .feature-card p {
        font-size: 12px;
    }

}
