  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
  }

  /* ── HERO (demo background) ── */
  /* .hero-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #0a0e2a 0%, #0d1a3a 40%, #0a0e1a 100%);
    z-index: 0;
  } */

  /* ══════════════════════════════
   CORNER BUTTONS  (always visible, hide on scroll)
══════════════════════════════ */
  .corner-btn {
    position: fixed;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.35s, transform 0.35s;
  }

  /* shown state = default */
  .corner-btn.hidden {
    opacity: 0;
    pointer-events: none;
  }

  /* MENU – top-left diagonal-cut blue */
  .btn-menu {
    top: 0;
    left: 0;
    background: #1a3a8f;
    padding: 14px 28px 14px 18px;
    clip-path: polygon(0 0, 61% 0, 100% 100%, 0 100%);
    padding-right: 40px;
    border: none;
  }

  .btn-menu svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    margin-right: 6px;
  }

  /* LOGIN – top-right diagonal-cut green */
  .btn-login {
    top: 0;
    right: 0;
    background: #1a7a3a;
    padding: 14px 18px 14px 28px;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    padding-left: 40px;
  }

  .btn-login svg {
    width: 14px;
    height: 14px;
    fill: #fff;
  }

  /* SCHOOL LIFE – bottom-left orange diagonal */
  .btn-schoollife {
    width: 175px;
    bottom: 0;
    left: 0;
    background: #e67e22;
    padding: 13px 36px 13px 18px;
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
    font-size: 0.68rem;
  }

  .btn-schoollife .sl-icon {
    width: 18px;
    height: 14px;
    margin-right: 6px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
  }

  /* CONTACT – bottom-right pink diagonal */
  .btn-contact {
    bottom: 0;
    right: 0;
    background: #d63384;
    padding: 13px 18px 13px 36px;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    font-size: 0.68rem;
  }

  .btn-contact svg {
    width: 13px;
    height: 13px;
    fill: #fff;
    margin-right: 5px;
  }

  /* CENTER LOGO */
  .center-logo {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 901;
    text-align: center;
    transition: opacity 0.35s, transform 0.35s;
  }

  .center-logo.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .center-logo img {
    width: 230px;

  }

  .center-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    line-height: 1;
  }

  .center-logo-sub {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: #c8a84a;
    text-transform: uppercase;
  }

  /* ══════════════════════════════
   FULL-SCREEN MENU OVERLAY
══════════════════════════════ */
  .menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }

  .menu-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  /* LEFT PANEL */
  .menu-left {
    width: 52%;
    max-width: 760px;
    background: #1b2d8a;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 0 0 32px 0;
    overflow-y: auto;
  }

  .menu-overlay.open .menu-left {
    transform: translateX(0);
  }

  /* RIGHT PANEL */
  .menu-right {
    flex: 1;
    background: #152070;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 32px 32px;
  }

  .menu-overlay.open .menu-right {
    transform: translateX(0);
  }

  /* CLOSE + HOME row */
  .menu-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .close-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #aab;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 4px;
    transition: background 0.2s;
  }

  .close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  .close-btn svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
  }

  .home-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #aab;
    padding: 8px;
    border-radius: 4px;
    transition: color 0.2s;
  }

  .home-icon-btn:hover {
    color: #fff;
  }

  .home-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
  }

  /* NAV ITEMS */
  .nav-panel {
    flex: 1;
    padding: 8px 0;
  }

  /* Main level */
  .nav-main-list {
    list-style: none;
  }

  .nav-main-list>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-main-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 28px;
    color: #b0bcd8;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
  }

  .nav-main-link:hover,
  .nav-main-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-main-link .arrow {
    font-size: 0.85rem;
    color: #6070a0;
    transition: transform 0.2s, color 0.2s;
  }

  .nav-main-link:hover .arrow,
  .nav-main-link.active .arrow {
    color: #c8a84a;
    transform: translateX(3px);
  }

  /* Submenu panel (slides in from left within left panel) */
  .submenu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1b2d8a;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 10;
  }

  .submenu-panel.open {
    transform: translateX(0);
  }

  .menu-left {
    position: relative;
    overflow: hidden;
  }

  .submenu-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #7080b0;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
  }

  .back-btn:hover {
    color: #fff;
  }

  .back-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
  }

  .submenu-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8090c0;
    flex: 1;
  }

  .submenu-list {
    list-style: none;
    padding: 8px 0;
  }

  .submenu-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .submenu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    color: #9aaad0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
  }

  .submenu-list a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
  }

  .submenu-list a .sarrow {
    font-size: 0.8rem;
    color: #4a5a80;
  }

  .submenu-list a:hover .sarrow {
    color: #c8a84a;
  }

  /* KEY LINKS strip at bottom */
  .key-links-strip {
    padding: 20px 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .key-links-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5060a0;
    margin-bottom: 10px;
  }

  .key-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .key-links-list a {
    font-size: 0.72rem;
    color: #6878b0;
    text-decoration: none;
    transition: color 0.2s;
  }

  .key-links-list a:hover {
    color: #c8a84a;
  }

  /* RIGHT PANEL QUICK TILES */
  .quick-grid {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    width: 100%;
    /* max-width: 400px; */
    max-width: 70%;
  }

  .qtile {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1.6;
    position: relative;
    background: #0d1640;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .qtile:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .qtile-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.80;
  }

  .qtile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 40, 0.85) 0%, transparent 60%);
  }

  .qtile-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -65%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .qtile-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    opacity: 0.8;
  }

  .qtile-label {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.3px;
    line-height: 1.3;
    padding: 0 6px;
  }


  .scroll-hint {
    margin-top: 40px;
    font-size: 0.75rem;
    color: #4a5a80;
    letter-spacing: 1px;
  }

  .scroll-hint span {
    display: block;
    font-size: 1.2rem;
    animation: bounce 1.4s infinite;
  }

  @keyframes bounce {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(6px);
    }
  }

  /* page section 2 for scroll demo */
  .page-section2 {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
  }

  .section2-text {
    font-size: 1.1rem;
    color: #6070a0;
    text-align: center;
  }

  /* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
  @media(max-width:768px) {
    .menu-left {
      width: 100%;
    }

    .menu-right {
      display: none;
    }

    .btn-menu,
    .btn-login {
      font-size: 0.65rem;
      padding: 11px 22px 11px 14px;
    }

    .btn-menu {
      padding-right: 30px;
    }

    .btn-login {
      padding-left: 30px;
    }

    .btn-schoollife,
    .btn-contact {
      font-size: 0.6rem;
      padding: 10px 28px 10px 14px;
    }

    .btn-contact {
      padding-left: 30px;
    }

    .center-logo-text {
      font-size: 0.9rem;
    }
  }

  @media(max-width:480px) {
    .nav-main-link {
      font-size: 0.85rem;
      padding: 13px 20px;
    }

    .submenu-list a {
      font-size: 0.82rem;
      padding: 12px 20px;
    }

    .key-links-strip {
      padding: 16px 20px 0;
    }

    .center-logo img {
      width: 100px;
    }
  }