/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
}

/* ================================================
   NAVBAR — DESKTOP
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    height: 65px;
    padding: 0 144px;
    box-sizing: border-box;

    display: flex;
    align-items: center;

    background-color: #ffffff;
    box-shadow: 0px 2px 6px rgba(25, 122, 233, 0.3);
}

.nav-container {
    width: 100%;
    max-width: 1632px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

/* LOGO */
.logo img {
    width: 124px;
    height: 40px;
    object-fit: contain;
    display: block;
}

/* CENTER LINKS */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    color: #000;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #197AE9;
}

.nav-links a.active,
.mobile-nav a.active {
    color: #FF9900;
    font-weight: 600;
}

/* RIGHT ACTIONS */
.actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* LOGIN BUTTON */
.login-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #197AE9;
    background: white;

    border: 2px solid #197AE9;
    border-radius: 12px;

    cursor: pointer;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;
    box-sizing: border-box;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.login-btn:hover {
    background: #197AE9;
    color: #fff;
}

/* DEMO BUTTON (shared across page) */
.demo-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    background-color: #FF9900;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.demo-btn:hover {
    background-color: #e68a00;
}

/* ================================================
   COLLEGE SECTION
   ================================================ */
.college-section {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
}

.college-heading {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.35;
}

.college-subtitle {
    font-size: clamp(15px, 1.6vw, 18px);
    max-width: 1350px;
    width: 100%;
    font-weight: 500;
    color: #5F6C7B;
    margin: 0 auto 48px;
    line-height: 1.65;
}

.college-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.college-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 18px;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.college-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(49, 131, 238, 0.15);
}

.icon-circle {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

/* Icon circle colours */
.icon-blue  { background: #E8F0FF; }
.orange     { background: #FFF3E6; }
.purple     { background: #F3EEFF; }
.green      { background: #E6F7EC; }
.red        { background: #FFECEC; }
.lightgreen { background: #E8F7F0; }
.brown      { background: #FFF1E6; }
.sky        { background: #E6F2FF; }

.college-card p {
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 1024px) { .college-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .college-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .college-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 360px)  { .college-grid { grid-template-columns: 1fr 1fr; } }

/* ================================================
   HAMBURGER BUTTON
   ================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1100;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #197AE9;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================================================
   MOBILE NAV DRAWER
   ================================================ */
.mobile-nav {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);

    display: flex;
    flex-direction: column;
    padding: 14px 16px 30px;
    border-top: 1px solid #f0f0f0;

    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    box-sizing: border-box;

    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 65px);
}

.mobile-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

@media (min-width: 901px) {
    .mobile-nav { display: none !important; }
}

/* ── Nav links inside the drawer ── */
.mobile-nav > a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #000;
    text-decoration: none;
    padding: 13px 0;
    border-bottom: 1px solid #f0f0f0;
    display: block;
    transition: color 0.2s;
}

/* ✅ THE FIX: only remove border from the last DIRECT-CHILD <a>
   (the nav links), NOT from the login <a> inside .mobile-actions */
.mobile-nav > a:last-of-type {
    border-bottom: none;
}

.mobile-nav > a:hover { color: #197AE9; }

/* ================================================
   MOBILE ACTIONS
   ================================================ */
.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    width: 100%;
    box-sizing: border-box;
}

.mobile-actions .login-btn,
.mobile-actions .demo-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

/* ✅ Full border on all 4 sides — never stripped */
.mobile-actions .login-btn {
    color: #197AE9;
    background: white;
    border: 2px solid #197AE9 !important;
    border-radius: 12px !important;
}

.mobile-actions .login-btn:hover {
    background: #197AE9;
    color: #fff;
}

.mobile-actions .demo-btn {
    color: #fff;
    background-color: #FF9900;
    border: none;
}

.mobile-actions .demo-btn:hover {
    background-color: #e68a00;
}

/* ================================================
   NAVBAR RESPONSIVE BREAKPOINTS
   ================================================ */
@media (max-width: 1440px) { .navbar { padding: 0 80px; } }

@media (max-width: 1200px) {
    .navbar { padding: 0 48px; }
    .nav-links { gap: 22px; }
    .nav-links a { font-size: 15px; }
    .login-btn  { font-size: 14px; padding: 9px 16px; }
    .demo-btn   { font-size: 14px; padding: 9px 16px; }
}

@media (max-width: 900px) {
    .navbar { padding: 0 24px; }
    .nav-links { display: none; }
    .actions   { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 480px) { .navbar { padding: 0 16px; } }

/* =========================================
   DEMO BANNER
========================================= */
.demo-banner {
    position: relative;
    width: 100%;
    margin: 40px 0;
}

.banner-img {
    width: 100%;
    display: block;
}

.banner-btn {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);

    padding: clamp(8px, 1.2vw, 14px) clamp(20px, 3vw, 40px);
    font-size: clamp(12px, 1.2vw, 16px);

    border-radius: 30px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .banner-btn {
        top: 73%;
        font-size: clamp(11px, 3vw, 14px);
        padding: clamp(7px, 2vw, 11px) clamp(16px, 5vw, 28px);
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .banner-btn {
        top: 75%;
        font-size: clamp(6px, 1.5vw, 10px);
        padding: clamp(6px, 2vw, 10px) clamp(14px, 5vw, 24px);
        border-radius: 20px;
    }
}

@media (max-width: 360px) {
    .banner-btn {
        top: 75%;
        font-size: clamp(6px, 1.5vw, 10px);
        padding: clamp(6px, 2vw, 10px) clamp(14px, 5vw, 24px);
        border-radius: 16px;
    }
}



/* BASE POPUP */
.success-popup {
    position: fixed;

    top: 80px;
    right: 30px;
    left: auto;
    max-width: 320px;

    padding: 14px 22px;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 500;

    color: #fff;

    display: flex;
    align-items: center;
    gap: 8px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.15);

    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;

    transition: all 0.3s ease;
    z-index: 9999;
}

/* SHOW */
.success-popup.show {
    opacity: 1;
    transform: translateY(0);
}

/* ✅ SUCCESS (GREEN) */
.success-popup.success {
    background: #28a745;
    color: white;
}

/* ❌ ERROR (RED) */
.success-popup.error {
    background: #dc3545;
    color: white;
}


/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {
    .success-popup {
        top: 80px;
        right: 15px;
        left: 15px;       /* 🔥 full width */
        max-width: none;

        padding: 12px;
        font-size: 13px;

        border-radius: 10px;

        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .success-popup {
        top: 75px;
        padding: 10px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .success-popup {
        top: 70px;
        font-size: 11px;
    }
}



.modules-banner,
.landing-banner,
.top-banner {
    margin-top: 60px;
}

@media (min-width: 1025px) {
    .modules-banner,
    .landing-banner,
    .top-banner {
        margin-top: 0px;
    }
}