/* Hartsinger font */
@font-face{font-family:'Hartsinger';src:url('../fonts/Hartsinger.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;}


/* ===== Tokens ===== */
:root{
  --wb-blue:#4C6FFF; --wb-blue-dark:#3b57cc;
  --wb-black:#111111; --wb-black-light:#333333;
  --wb-ink:#1f1f1f; --wb-text:#343a40; --wb-muted:#6c757d;
  --wb-pill:#f3f3f3; --wb-border:#e8e8e8; --wb-white:#fff;
  --header-h:100px;
}

/* ===== Base / Layout ===== */
html{scroll-behavior:smooth;overflow-x:hidden}
body{color:var(--wb-ink);overflow-x:hidden}
.container{width:min(1280px,100% - 120px);margin:0 auto;padding-left:0;padding-right:0}


/* =========================================================
   TOP NAVIGATION
   ========================================================= */


.site-header{position:fixed;top:0;left:0;right:0;z-index:1000;background:var(--wb-white);height:var(--header-h);display:flex;align-items:center;}
.site-header .container-fluid{width:min(1280px,100% - 120px);margin:0 auto;padding:0;}
.navbar{padding:20px 0;width:100%}
.brand{font-weight:800;letter-spacing:.02em;font-size:22px}

/* Top-level links */
.nav-item>.nav-link{display:flex;align-items:center;height:60px;padding:0 15px!important;border-radius:14px;font-weight:400;color:var(--wb-ink);transition:background-color .15s ease;}
.nav-item>.nav-link:hover{background:var(--wb-pill)}

/* Dropdown */
.nav-item.dropdown .nav-link::after{margin-left:.5em;vertical-align:middle;transition:transform .15s ease;}
.nav-item.dropdown:hover .nav-link::after,
.nav-item.dropdown.show .nav-link::after{transform:rotate(180deg)}
.nav-item.dropdown{position:relative}
.nav-item.dropdown::after{content:"";position:absolute;left:0;top:100%;width:100%;height:12px;pointer-events:auto;}
.dropdown-menu{position:absolute;display:none;margin-top:12px;min-width:420px;padding:10px;border:1px solid var(--wb-border);border-radius:16px;background:var(--wb-white);box-shadow:none;}
/* NEW: keep same placement when Bootstrap/Popper activates on click */
.dropdown-menu[data-bs-popper]{top:100% !important;left:0 !important;transform:none !important;margin-top:12px !important;}
/* Also show when open via JS (click), same as hover */
.nav-item.dropdown.show .dropdown-menu{display:block}

.nav-item.dropdown:hover .dropdown-menu,.dropdown-menu:hover{display:block}
.menu-item{display:flex;align-items:center;padding:12px 20px;border-radius:12px;text-decoration:none;color:var(--wb-ink);font-weight:400;transition:background-color .15s ease}
.menu-item:hover{background:var(--wb-pill)}
.menu-ico{display:flex;align-items:center;justify-content:center;padding-right:20px}
.menu-ico img{width:24px;height:24px}
.menu-ico img[alt="Student Progress"]{transform:scale(1.15)}
.menu-title{font-weight:900}
.menu-desc{font-size:14px;color:var(--wb-muted);margin:2px 0 0}

/* ===== Buttons (exact behaviour) ===== */
a.btn{text-decoration:none!important}
.btn-nav{height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 20px;border-radius:10px;font-size:15px;font-weight:400;white-space:nowrap;border:1px solid transparent;transition:background-color .2s ease,border-color .2s ease,color .2s ease;box-sizing:border-box;}

/* Log in */
.btn-login{border-color:var(--wb-border);background:var(--wb-white);color:var(--wb-ink);}
.btn-login:hover,
.btn-login:focus,
.btn-login:active,
.btn-login.active,
.show > .btn-login.dropdown-toggle,
.btn-login:focus-visible{background:var(--wb-pill) !important;border-color:var(--wb-pill) !important;color:var(--wb-ink) !important;outline:none;box-shadow:none;}

/* Book a chat */
.btn-chat{background:var(--wb-black);border-color:var(--wb-black);color:var(--wb-white);}
.btn-chat:hover,
.btn-chat:focus,
.btn-chat:active,
.btn-chat.active,
.show > .btn-chat.dropdown-toggle,
.btn-chat:focus-visible{background:var(--wb-black-light) !important;border-color:var(--wb-black-light) !important;color:var(--wb-white) !important;outline:none;box-shadow:none;}

/* ===== Hamburger ===== */
.btn-hamburger{display:none;width:42px;height:42px;background:transparent;border:0;padding:0;cursor:pointer;align-items:center;justify-content:flex-end}
.btn-hamburger .bars{width:22px;height:18px;position:relative}
.btn-hamburger .bars span{position:absolute;left:0;right:0;height:2px;background:#2b2323;border-radius:2px}
.btn-hamburger .bars span:nth-child(1){top:0}
.btn-hamburger .bars span:nth-child(2){top:8px}
.btn-hamburger .bars span:nth-child(3){bottom:0}

/* ===== Mobile Menu ===== */
.mobile-menu{position:fixed;top:var(--header-h);left:0;right:0;z-index:999;display:none;padding:10px;background:var(--wb-white);border:1px solid var(--wb-border);border-radius:16px;margin:0 24px;}
.mobile-menu.open{display:block}
.mobile-menu .menu-list{list-style:none;margin:0;padding:0}
.mobile-menu .mobile-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-radius:12px;background:transparent;border:0;font-size:16px;font-weight:400;color:var(--wb-ink);text-align:left;cursor:pointer;transition:background-color .15s ease;}
.mobile-menu .mobile-item:hover{background:var(--wb-pill)}
.mobile-menu .chevron{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;transition:transform .15s ease}
.mobile-menu .chevron.up{transform:rotate(180deg)}
.mobile-menu .submenu{display:none;padding:10px;margin:12px 0 10px;border:1px solid var(--wb-border);border-radius:16px;background:var(--wb-white);}
.mobile-menu .submenu.open{display:block}
.mobile-menu .submenu-item{display:flex;align-items:center;gap:16px;padding:12px 20px;border-radius:12px;text-decoration:none;color:inherit;transition:background-color .15s ease;}
.mobile-menu .submenu-item:hover{background:var(--wb-pill)}
.mobile-menu .submenu-item .ico{display:inline-flex;align-items:center;justify-content:center}
.mobile-menu .submenu-item .ico img{width:28px;height:28px}
.mobile-menu .submenu-item .ico img[alt="Student Progress"]{transform:scale(1.15)}
.mobile-menu .submenu-item .t{font-weight:900;font-size:16px;line-height:1.25}
.mobile-menu .submenu-item .d{font-size:14px;line-height:1.4;color:var(--wb-muted);margin-top:4px}
.mobile-menu .mobile-link{display:block;padding:18px 20px;border-radius:12px;text-decoration:none;color:inherit;font-size:16px;transition:background-color .15s ease}
.mobile-menu .mobile-link:hover{background:var(--wb-pill)}

/* ===== Responsive ===== */
@media (max-width:1100px){
  .navbar-nav{display:none!important}
  .site-header .container-fluid{width:100%;padding-left:24px!important;padding-right:24px!important}
  .btn-hamburger{display:inline-flex}
  .btn-hide-mobile{display:none!important}
  .d-flex.align-items-center{gap:4px !important;}
}
@media (max-width:860px){
  .btn-hide-sm{display:none!important}
}
@media (min-width:1101px){
  .mobile-menu{display:none!important}
}


/* =========================================================
   CTA SECTION
   ========================================================= */


.cta-wrap{width:min(1280px,100% - 120px);margin:20px auto 60px;}
.cta-slab{background:#111111;color:var(--wb-white);border-radius:28px;padding:60px 40px;text-align:center;box-sizing:border-box;}
.cta-slab h2{font-size:44px;line-height:1.0;font-weight:900;margin:0 0 18px;}
.cta-text{font-size:18px;line-height:1.5;margin:0 0 32px;color:var(--wb-white);}
.cta-slab .cta-row{justify-content:center;margin:0;}
.cta-slab .cta-row a{margin:0;}

.cta-row{display:flex;gap:12px;margin-top:0;}
.btn-hero{height:52px;display:inline-flex;align-items:center;gap:12px;padding:0 20px;border-radius:10px;font-size:16px;border:1px solid transparent;color:#fff;text-decoration:none!important;}
.btn-hero-blue{background:var(--wb-blue);border-color:var(--wb-blue);}
.btn-hero-blue:hover{background:var(--wb-blue-dark);border-color:var(--wb-blue-dark);}
.btn-hero svg{width:22px;height:22px;stroke:currentColor;stroke-width:2.5;fill:none;}

@media (max-width:980px){
  .cta-wrap{
    width:100%;
    margin-top:20px;
    margin-bottom:30px;
    padding:0 25px;
  }
  .cta-slab{padding:30px 24px;border-radius:24px;}
  .cta-slab h2{font-size:clamp(28px,6.2vw,36px);}
  .cta-text{font-size:17px;margin:0 0 24px;}
}


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


.site-footer{padding:0 0 72px;}
.footer-wrap{width:min(1280px,100% - 120px);margin:0 auto;display:grid;grid-template-columns:auto auto auto auto;column-gap:80px;align-items:flex-start;}
.footer-brand{display:flex;flex-direction:column;justify-content:flex-start;margin-top:-8px;}
.footer-logo{font-size:30px;font-weight:900;letter-spacing:.02em;margin:0 0 12px;}
.footer-copy{font-size:16px;color:var(--wb-muted);}

.footer-col h4{font-size:18px;font-weight:900;letter-spacing:.01em;margin:0 0 12px;}

.footer-col ul{list-style:none;padding:0;margin:0;display:grid;row-gap:8px;}
.footer-col a{color:var(--wb-ink);text-decoration:none;font-size:16px;line-height:1.6;font-weight:400;}
.footer-col a:hover{text-decoration:underline;}

@media (max-width:980px){
  .site-footer{padding:0 0 56px;}
  .footer-wrap{width:100%;padding:0 24px;grid-template-columns:1fr 1fr;column-gap:40px;row-gap:32px;}
  .footer-brand{grid-column:1/-1;margin-bottom:8px;margin-top:0;}
  .footer-logo{font-size:32px;}
  .footer-col h4{font-size:16px;font-weight:900;}
  .footer-col a{font-size:16px;line-height:1.6;}
}
