/* ========= Reset / Base ========= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  font-style: normal;
}

img { max-width: 100%; height: auto; }
a:hover { text-decoration: underline; }

/* ========= Layout Helper ========= */
.container {
  width: 1440px;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 8px;  /* Reduced padding */
}

/* ========= Header ========= */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.8rem 1.5rem;
  max-width: 1440px;
  height: auto; /* optional */
  margin: 0 auto;
  border-bottom: none;
  background: #071952;
  position: relative;
  z-index: 10;
  min-height: 73px;              /* match your logo height */
}

.logodiv {
  display: flex;
  width: 153px;
  height: 73px;
  justify-content: center;
}

.logo img { width: 73px; height: auto; display: block; }

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* A11y helper for the toggle button */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Toggle button defaults (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}
.nav-toggle:focus-visible { outline: 2px solid #c3ddff; outline-offset: 2px; }

/* Desktop keeps your existing horizontal menu */
@media (max-width: 1024px) {
  /* Show toggle on tablet/mobile */
  .nav-toggle { display: inline-flex; }

  /* Convert menu into a dropdown panel under the header */
  .main-nav { position: relative; }

  .menu {
    position: absolute;
    top: calc(100% + 6px);   /* appear just below the header/nav row */
    right: 0;
    width: min(320px, 92vw);
    display: flex;
    flex-direction: column;
    background: #8da2e6;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.25);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: max-height .25s ease, opacity .15s ease, transform .15s ease, visibility .15s ease;
  }

  /* Open state */
  .menu.is-open {
    max-height: calc(100vh - 120px);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Make links full-width “box” items */
  .menu li { margin: 4px 0; }
  .menu a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
  }
  .menu a:hover,
  .menu a:focus {
    background: rgba(255,255,255,0.08);
    text-decoration: none;
  }

  /* Hide share buttons inside the dropdown on tablet/mobile */
  .menu .share-icons { display: none !important; }
}

/* Optional: nicer active link in the dropdown without underline */
@media (max-width: 1024px) {
  .menu a.active { background: rgba(255,255,255,0.12); font-weight: 700; text-decoration: none; }
}


/* ========= Navigation ========= */
.main-nav {
  margin-left: auto;
  padding: 5px 5px;
  display: flex;
  align-items: center;   /* keep vertically centered */
}

.menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.menu a {
  color: #e7f3ff;
  font-family: 'Roboto', sans-serif;
  font-weight: 400; /* Regular */
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
  padding: 8px 8px;
  line-height: 1.2;
}

.menu a:hover,
.menu a:focus {
  color: #ffffff; /* Light green on hover */
  text-decoration: underline;
}

/* ✅ Unified Active Link Styling */
.menu a.active,
.menu .nav-link.active {
  color: #a4ccff;   /* Highlight color */
  font-weight: 700; /* Bold */
  text-decoration: underline;
}

/* =========================
   Share Buttons (Nav Section)
   ========================= */
.btn-share {
  display: block;
  padding: 6px 10px;
  margin-bottom: 8px;
  line-height: 1;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
}

.btn-share:last-child { margin-bottom: 0; }

.btn-share.fb { background: #1877F2; }   /* Facebook */
.btn-share.wa { background: #25D366; }   /* WhatsApp */
.btn-share.ig { background: #E4405F; }   /* Instagram */

.btn-share:hover,
.btn-share:focus {
  transform: scale(1.05);
  opacity: 0.9;
  text-decoration: none;
}

.menu .btn-share,
.menu .btn-share:hover,
.menu .btn-share:focus {
  text-decoration: none !important;
  color: #fff;
}

.site-header .share-icons { align-self: center; }

/* === Add "SHARE" after each share button === */
.site-header .share-icons .btn-share::after {
  content: " SHARE";
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  opacity: .9;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.35);
}

/* Only on AI Tools page */
.page-ai-tools .site-header .share-icons .btn-share::after {
  content: " SHARE";
}

/* ========= WhatsApp Float ========= */
.whatsapp-float {
  position: fixed;
  width: 75px;
  height: 75px;
  bottom: 100px;
  right: 100px;
  background-color: #ffffff;
  color: white;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.whatsapp-float img { width: 50px; height: 50px; }

@media (max-width: 1024px) {
  .whatsapp-float { bottom: 32px; right: 32px; width: 65px; height: 65px; }
  .whatsapp-float img { width: 42px; height: 42px; }
}
@media (max-width: 768px) {
  .whatsapp-float { bottom: 20px; right: 20px; width: 60px; height: 60px; }
  .whatsapp-float img { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .whatsapp-float { bottom: 15px; right: 60px; width: 55px; height: 55px; }
  .whatsapp-float img { width: 35px; height: 35px; }
}

/* ========= Breadcrumbs ========= */
.breadcrumbs {
  background-color: #EEEDEB;
  padding: 8px 16px;
  border-radius: 20px;
  margin: 5px 0px;
  font-size: 0.875rem;
  color: #000000;
  border-bottom: 2px solid #d0d0d0;
  font-family: Arial, sans-serif;
}

.breadcrumbs a { color: #000000; text-decoration: none; }
.breadcrumbs a:hover { color: #FF4F0F; text-decoration: underline; }
.breadcrumbs .separator { margin: 0 4px; color: #666; }
.breadcrumbs .current { color: #000000; font-weight: 600; }

/* ========= Footer ========= */
.site-footer {
  background: #071952;
  color: #fff;
  padding: 16px 0;
  border-top: 4px solid var(--brand-gold, #cf9b48);
  width: 100%;
  margin: 0;
  font-size: 14px;
  text-align: left;
}

.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { text-decoration: none; }

.footer-wrap { display: flex; flex-direction: column; gap: 12px; }
.footer-top h5 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.footer-bottom {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy { font-size: 14px; line-height: 1.4; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social .social-link {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.footer-social .social-link img { width: 20px; height: 20px; display: block; }
.footer-social .social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}
/* Make [hidden] actually hide everywhere */
.menu[hidden] { display: none !important; }

/* Mobile dropdown behavior matches JS class "is-open" */
@media (max-width: 1024px) {
  .menu {
    position: absolute;
    right: 0;
    top: 100%;
    width: 200px;
    display: none;           /* default closed */
    flex-direction: column;
    background: #0e1b44e3;
    border: 1px solid #e5e5e5;
    padding: 1rem;
    z-index: 1000;
  }
  .menu.is-open {            /* JS adds this */
    display: flex;
  }
}