/* IQ Academy shared header and footer styles
   Extracted from the supplied index.html. Load after your global stylesheet if you have one. */

:root {
    --navy: #071d49;
    --navy-2: #0b2d68;
    --blue: #1261c9;
    --blue-light: #eaf3ff;
    --teal: #00a896;
    --teal-light: #e8faf7;
    --gold: #d7a62a;
    --gold-light: #fff7df;
    --white: #ffffff;
    --black: #111827;
    --text: #4b5563;
    --muted: #7b8494;
    --light: #f7faff;
    --border: #e7edf5;
    --shadow-sm: 0 5px 20px rgba(7, 29, 73, .07);
    --shadow: 0 15px 45px rgba(7, 29, 73, .10);
    --shadow-lg: 0 25px 70px rgba(7, 29, 73, .16);
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --transition: all .35s cubic-bezier(.4, 0, .2, 1);
    --container: 1240px;
}

* { box-sizing: border-box; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: 0; }
.container { width: min(92%, var(--container)); margin-inline: auto; }

.topbar {
    background: var(--navy);
    color: rgba(255,255,255,.78);

    font-size: 12px;
}

.topbar-inner {
    min-height: 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar-left,
.topbar-right {
    display: flex;
    gap: 25px;
    align-items: center;
}

.topbar span,
.topbar a {
    display: flex;
    align-items: center;
    gap: 7px;
}

.topbar i {
    color: var(--gold);
}

.topbar a:hover {
    color: white;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,255,255,.96);

    border-bottom: 1px solid transparent;

    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}

.nav-wrapper {
    min-height: 86px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 11px;

    flex-shrink: 0;
}

.logo-mark {
    width: 54px;
    height: 54px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-mark span {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 19px;
    line-height: 1;
}

.logo-mark small {
    font-size: 6px;
    letter-spacing: 1px;
    margin-top: 3px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    color: var(--navy);
    font-size: 12px;
    line-height: 1.15;
    letter-spacing: .7px;
}

.logo-text small {
    margin-top: 4px;

    color: var(--gold);

    font-size: 8px;
    font-weight: 600;

    letter-spacing: .4px;
}


/* NAVIGATION */

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    position: relative;

    color: var(--navy);

    font-size: 13px;
    font-weight: 600;

    padding: 31px 0;
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 20px;

    height: 2px;

    background: var(--blue);

    transform: scaleX(0);
    transform-origin: center;

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle i {
    font-size: 8px;
}

.dropdown-menu {

    position: absolute;

    top: 80px;
    left: 50%;

    width: 210px;

    padding: 10px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: var(--shadow-lg);

    transform:
        translate(-50%, 15px);

    opacity: 0;
    visibility: hidden;

    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {

    opacity: 1;
    visibility: visible;

    transform:
        translate(-50%, 0);
}

.dropdown-menu a {

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 11px 12px;

    color: var(--navy);

    font-size: 13px;
    font-weight: 600;

    border-radius: 8px;
}

.dropdown-menu a:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.dropdown-menu i {
    width: 22px;
    color: var(--teal);
}


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

.btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 13px 22px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;

    transition: var(--transition);
}

.btn-primary {
    color: white;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--navy-2)
        );

    box-shadow:
        0 8px 20px rgba(18,97,201,.2);
}

.btn-primary:hover {

    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(18,97,201,.28);
}

.btn-light {
    background: white;
    color: var(--navy);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline-light {

    color: white;

    border: 1px solid rgba(255,255,255,.45);
}

.btn-outline-light:hover {
    background: white;
    color: var(--navy);
}


/* MOBILE MENU BUTTON */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border-radius: 8px;

    background: var(--blue-light);
}

.menu-toggle span {

    display: block;

    width: 20px;
    height: 2px;

    margin: 4px auto;

    background: var(--navy);

    transition: var(--transition);
}


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

    footer {
      background: #041427;
      color: white;
      padding-top: 70px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1fr;
      gap: 50px;
      padding-bottom: 55px;
    }

    .footer-brand p {
      color: rgba(255,255,255,.55);
      font-size: 13px;
      margin: 20px 0;
      max-width: 330px;
    }

    .footer-logo {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .footer-logo img {
      width: 75px !important;  /* Increase or adjust as needed */
      height: auto !important;  /* Keeps the correct aspect ratio */
      max-height: none !important;
    }  
    }

    .footer-logo strong {
      font-size: 14px;
    }

    .footer-heading {
      font-size: 14px;
      font-weight: 800;
      color: white;
      margin-bottom: 20px;
    }

    .footer-links {
      display: grid;
      gap: 10px;
      list-style: none;
    }

    .footer-links a {
      color: rgba(255,255,255,.55);
      font-size: 13px;
      transition: var(--transition);
    }

    .footer-links a:hover {
      color: var(--gold);
      padding-left: 4px;
    }
.footer-social {

    display: flex;

    gap: 8px;
}

.footer-social a {

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255,255,255,.07);

    color: white;

    font-size: 11px;

    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--blue);
}
    .footer-contact {
      display: grid;
      gap: 14px;
    }

    .footer-contact div {
      display: flex;
      align-items: flex-start;
      gap: 11px;
      color: rgba(255,255,255,.55);
      font-size: 13px;
    }

    .footer-contact i {
      color: var(--gold);
      margin-top: 4px;
    }

    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,.08);
      padding: 20px 0;
      display: flex;
      gap: 20px;
      justify-content: center; !important /* Centers items horizontally */
      align-items: center; !important     /* Centers items vertically */
      color: rgba(255,255,255,.4);
      font-size: 12px;
    }


    /* =========================================================
       WHATSAPP
    ========================================================= */

    .whatsapp {
      position: fixed;
      right: 22px;
      bottom: 22px;
      width: 55px;
      height: 55px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: #25D366;
      color: white;
      font-size: 24px;
      box-shadow: 0 12px 30px rgba(37,211,102,.3);
      z-index: 900;
      transition: var(--transition);
    }

    .whatsapp:hover {
      transform: translateY(-5px) scale(1.05);
    }


    /* =========================================================
       BACK TO TOP
    ========================================================= */

    .back-top {
      position: fixed;
      right: 22px;
      bottom: 90px;
      width: 42px;
      height: 42px;
      border: 0;
      border-radius: 50%;
      background: var(--navy);
      color: white;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: var(--transition);
      z-index: 900;
    }

    .back-top.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }


    /* =========================================================
       SCROLL ANIMATION
    ========================================================= */

    .reveal {
      opacity: 0;
      transform: translateY(35px);
      transition: opacity .8s ease, transform .8s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }


    /* =========================================================
       RESPONSIVE
    ========================================================= */

    @media (max-width: 1050px) {
      .footer-grid {
        grid-template-columns: 1fr 1fr;
      }
    }





    @media (max-width: 600px) {
      .logo img {
        width: 45px;
        height: 45px;
      }

      .logo-text strong {
        font-size: 12px;
      }

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


      .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
      }

      .whatsapp {
        right: 16px;
        bottom: 16px;
      }

      .back-top {
        right: 16px;
        bottom: 80px;
      }
    }


@media (max-width: 1100px) {
    .nav { gap: 15px; }
    .nav-link { font-size: 12px; }
    .nav-apply { padding: 11px 15px; }
}
@media (max-width: 850px) {
    .topbar-left span:first-child { display: none; }
    .topbar-inner { justify-content: center; }
    .topbar-right span { display: none; }
    .nav-wrapper { min-height: 72px; }
    .nav {
        position: fixed; top: 72px; left: 0; right: 0; padding: 20px;
        flex-direction: column; align-items: stretch; gap: 0; background: white;
        border-top: 1px solid var(--border); box-shadow: var(--shadow);
        transform: translateY(-120%); opacity: 0; visibility: hidden;
        transition: var(--transition); max-height: calc(100vh - 72px); overflow-y: auto;
    }
    .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-link { display: block; padding: 13px 5px; border-bottom: 1px solid var(--border); }
    .nav-link::after { display: none; }
    .dropdown-menu {
        position: static; width: 100%; padding: 0 0 0 15px; border: none; box-shadow: none;
        transform: none; opacity: 1; visibility: visible; display: none;
    }
    .dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
    .nav-apply { display: none; }
    .menu-toggle { display: block; flex-shrink: 0; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

}
@media (max-width: 550px) {
    .logo-text { display: none; }
    .topbar { font-size: 10px; }

}