/* Header & footer chrome — scoped to avoid overriding page content styles */

/* ─── TOP BAR ─────────────────────────────────────────────── */
.topbar {
  background-color: #1E83C7;
  padding: 7px 0;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-contact {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-contact li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 12.5px;
  line-height: 1;
}

.topbar-contact li i {
  font-size: 11.5px;
  color: #fff;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s;
}

.topbar-social a:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ─── MAIN HEADER ─────────────────────────────────────────── */
.main-header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 9999;
  transition: box-shadow 0.25s;
}

.main-header.scrolled {
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.13);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
}

/* ─── LOGO ────────────────────────────────────────────────── */
.site-logo {
  flex-shrink: 0;
  padding: 10px 0;
}

.site-logo a {
  display: block;
  line-height: 0;
}

.site-logo img {
  height: 72px;
  width: auto;
  display: block;
}

/* ─── DESKTOP NAV ─────────────────────────────────────────── */
.nav-wrap {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 30px 13px;
  color: #3a3a3a;
  text-decoration: none;
  font-size: 13.8px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s;
  line-height: 1;
}

.nav-menu > li > a .caret {
  font-size: 10px;
  margin-top: 1px;
  transition: transform 0.2s;
}

.nav-menu > li:hover > a .caret {
  transform: rotate(180deg);
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: #1b72be;
}

/* ─── DROPDOWN ────────────────────────────────────────────── */
.dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  background: #fff;
  min-width: 210px;
  list-style: none;
  padding: 5px 0;
  border-top: 2px solid #1b72be;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10000;
}

.nav-menu > li:hover > .dropdown,
.nav-menu > li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 9px 20px;
  color: #444;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.dropdown li a:hover {
  color: #1b72be;
  background: #f4f8fd;
}

/* ─── NESTED SUBMENU (flyout) ───────────────────────────── */
.dropdown li.has-submenu {
  position: relative;
}

.dropdown li.has-submenu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dropdown li.has-submenu > a .submenu-caret {
  font-size: 10px;
  opacity: 0.75;
}

.dropdown .submenu {
  top: -5px;
  left: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown li.has-submenu:hover > .submenu,
.dropdown li.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-submenu a.mobile-submenu-nested {
  padding-left: 45px;
  font-size: 13px;
  color: #666;
}

/* ─── HAMBURGER BUTTON ────────────────────────────────────── */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: #333;
  padding: 6px 8px;
  line-height: 1;
}

/* ─── MOBILE NAV ──────────────────────────────────────────── */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  overflow: hidden;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #ebebeb;
  transition: color 0.15s;
}

.mobile-nav > ul > li > a.is-active {
  color: #1b72be;
}

.mobile-nav > ul > li > a:hover {
  color: #1b72be;
}

.mobile-nav > ul > li > a .m-caret {
  font-size: 11px;
  transition: transform 0.2s;
}

.mobile-nav > ul > li.open > a .m-caret {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  background: #f7f9fc;
  border-bottom: 1px solid #ebebeb;
}

.mobile-nav > ul > li.open .mobile-submenu {
  display: block;
}

.mobile-submenu a {
  display: block;
  padding: 10px 30px;
  color: #555;
  text-decoration: none;
  font-size: 13.5px;
  border-bottom: 1px solid #ebebeb;
  transition: color 0.15s;
}

.mobile-submenu a:last-child {
  border-bottom: none;
}

.mobile-submenu a:hover {
  color: #1b72be;
}

/* ─── RESPONSIVE BREAKPOINTS ──────────────────────────────── */
@media (max-width: 1100px) {
  .nav-menu > li > a {
    padding: 30px 10px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }

  .nav-wrap {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .header-inner {
    min-height: 70px;
  }

  .site-logo img {
    height: 58px;
  }
}
/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background-color: #1E83C7;
  padding: 55px 0 45px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: start;
}

/* Column headings */
.footer-col h2.f-heading,
.footer-col h6.f-heading {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: none;
  line-height: 1.3;
}

.footer-col h2.f-heading {
  font-size: 17px;
}

/* Col 1 – Logo + Accredited By */
.footer-logo img {
  max-width: 160px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 14px;
}

.footer-accredited img {
  max-width: 85px;
  width: 100%;
  height: auto;
  display: block;
}

/* Col 2 – Certified By */
.footer-certified img {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
}

/* Col 3 – Quick Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  line-height: 1;
}

.footer-links li a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.15s;
}

.footer-links li a:hover {
  color: #ffe082;
}

.footer-links li.active-link a {
  color: #f5a623;
}

/* Col 4 – Contact */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon-circle {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #f5a623;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.contact-text h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.2;
}

.contact-text p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* Col 5 – Flags + Social */
.footer-flags img {
  max-width: 150px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ─── COPYRIGHT BAR ───────────────────────────────────────── */
.copyright-bar {
  background-color: #154e80;
  padding: 14px 0;
}

.copyright-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.copyright-inner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  text-align: center;
  margin: 0;
}

.scroll-top-btn {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.scroll-top-btn:hover {
  background: rgba(255,255,255,0.38);
}

/* ─── FOOTER RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .copyright-inner p {
    font-size: 12px;
    padding-right: 40px;
  }
}

@media (max-width: 420px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
