/* ===== WEBSITE GLOBAL STYLES ===== */
.website-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--soft-gray);
  font-family: 'Inter', sans-serif;
}

/* NAVBAR */
.w-navbar {
  height: 80px;
  background: var(--deep-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.w-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}
.w-nav-links {
  display: flex;
  gap: 32px;
}
.w-nav-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s;
}
.w-nav-link:hover, .w-nav-link.active {
  color: #fff;
}
.w-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.w-nav-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 24px;
  padding: 0 14px;
  height: 40px;
  gap: 8px;
  transition: background 0.2s;
}
.w-nav-search:focus-within {
  background: rgba(255,255,255,0.2);
}
.w-nav-search-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.w-nav-search-icon svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255,255,255,0.7);
}
.w-nav-search-input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  width: 220px;
  font-family: inherit;
}
.w-nav-search-input::placeholder {
  color: rgba(255,255,255,0.55);
}
/* Social sub-nav bar */
.w-subnav {
  background: #2d4fa0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: sticky;
  top: 80px;
  z-index: 99;
}
.w-subnav-tagline {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-subnav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.w-subnav-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-right: 4px;
  font-weight: 500;
}
.w-subnav-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.w-subnav-icon:hover { background: rgba(255,255,255,0.25); }
.w-subnav-icon svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.w-nav-mobile-signin,
.w-nav-mobile-cta { display: none; }
.w-signin {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}
.w-signin:hover {
  text-decoration: underline;
}
.w-cta-btn {
  background: var(--vibrant-green);
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: filter 0.2s;
}
.w-cta-btn:hover {
  filter: brightness(0.9);
}
.w-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.w-hamburger svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

/* MAIN CONTENT */
.w-content {
  flex: 1;
}

/* FOOTER */
.w-footer {
  background: var(--deep-blue);
  color: #fff;
  padding: 64px 48px 24px;
  margin-top: auto;
}
.w-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.w-footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 280px;
}
.w-footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
}
.w-footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  margin-bottom: 24px;
  color: #fff;
}
.w-footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s;
}
.w-footer-col a:hover {
  color: #fff;
}
.w-footer-social {
  display: flex;
  gap: 16px;
}
.w-footer-social a.w-social-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0;
}
.w-footer-social a.w-social-circle:hover {
  background: rgba(255,255,255,0.2);
}
.w-footer-social a.w-social-circle svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
}
.w-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

/* SEARCH COMPONENT */
.w-search-bar {
  background: #fff;
  border-radius: 32px;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  max-width: 800px;
  width: 100%;
}
.w-search-icon {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.w-search-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}
.w-search-input {
  flex: 1;
  border: none;
  height: 100%;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.w-search-btn {
  background: var(--vibrant-green);
  color: #fff;
  border: none;
  height: 48px;
  padding: 0 32px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

/* SECTION HEADERS */
.w-section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.w-section-title h2 {
  font-size: 32px;
  color: var(--deep-blue);
}
.w-section-title a {
  color: var(--vibrant-green);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* GRID LAYOUTS */
.w-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.w-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* CAMPAIGN CARD (Website specific) */
.w-campaign-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.w-campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.w-card-img {
  width: 100%;
  height: 200px;
  background: #ddd;
  position: relative;
  background-size: cover;
  background-position: center;
}
.w-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.w-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.w-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 8px;
  line-height: 1.3;
}
.w-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex: 1;
}
.w-card-raised {
  font-weight: 700;
  color: var(--charcoal);
  font-size: 18px;
}
.w-card-pct {
  float: right;
  color: var(--text-muted);
  font-size: 14px;
}
.w-card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}

/* HERO SECTION */
.w-hero {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
}
.w-hero-title {
  text-align: center;
  margin-bottom: 48px;
}
.w-hero-title h1 {
  font-size: 36px;
  margin-bottom: 16px;
}
.w-hero-title p {
  font-size: 20px;
  color: var(--text-muted);
}
.w-hero-layout {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 1440px;
}
.w-hero-layout {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 1440px;
  align-items: flex-start;
}
.w-hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.w-hero-title {
  text-align: center;
  margin-bottom: 24px;
}
.w-hero-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.w-hero-title h1 {
  font-size: 36px;
  margin-bottom: 16px;
}
.w-hero-title p {
  font-size: 20px;
  color: var(--text-muted);
}
.w-hero-left {
  width: 240px;
  flex-shrink: 0;
}
.hero-left-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.w-hero-center {
  flex: 1;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 500px;
  background: #ddd;
}
.w-hero-right {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* AD CARD */
.w-ad-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  gap: 12px;
}
.w-ad-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #eee;
  flex-shrink: 0;
}
.w-ad-info h5 {
  font-size: 14px;
  color: var(--deep-blue);
  margin-bottom: 4px;
}
.w-ad-info p {
  font-size: 12px;
  color: var(--text-light);
}
.w-ad-label {
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* RESPONSIVE */
@media(max-width: 1024px) {
  .w-footer-inner { grid-template-columns: 1fr 1fr; }
  .w-hero-layout { flex-direction: column; }
  .w-hero-left, .w-hero-right { width: 100%; }
  .hero-left-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
    gap: 8px;
  }
  .hero-left-nav::-webkit-scrollbar { display: none; }
  .hero-left-nav a { white-space: nowrap; font-size: 14px; }
  .w-hero-center { flex: none; width: 100%; height: 400px; }
  .w-grid-3, .w-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 768px) {
  .w-navbar { padding: 0 16px; }
  .w-nav-links { display: none; }
  .w-hamburger { display: block; }

  /* Hide the desktop right-side buttons on mobile, but keep search */
  .w-nav-right .w-signin,
  .w-nav-right .w-cta-btn,
  .w-subnav { display: none; }

  /* Make search bar fill the space between logo and hamburger */
  .w-nav-right {
    flex: 1;
    margin: 0 12px;
  }
  .w-nav-search {
    width: 100%;
  }
  .w-nav-search-input {
    width: 100%;
  }

  /* Open state: dropdown panel */
  .w-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--deep-blue);
    padding: 16px 24px 24px;
    gap: 0;
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .w-nav-links.open .w-nav-link {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 15px;
  }

  /* Show mobile-only items when menu is open */
  .w-nav-links.open .w-nav-mobile-signin {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
  }
  .w-nav-links.open .w-nav-mobile-cta {
    display: block;
    margin-top: 16px;
    text-align: center;
    background: var(--vibrant-green);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 15px;
    border: none;
  }

  /* Hero Section */
  .w-hero { padding: 24px 16px; }
  .w-hero-title { margin-bottom: 24px; }
  .w-hero-title h1 { font-size: 26px; line-height: 1.2; }

  /* Left nav becomes compact horizontal pills */
  .hero-left-nav {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .hero-left-nav::-webkit-scrollbar { display: none; }
  .hero-left-nav a.nav-item {
    font-size: 13px !important;
    white-space: nowrap;
    padding: 8px 14px !important;
    border-radius: 20px;
    background: var(--soft-gray) !important;
    border: 1px solid var(--border) !important;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .hero-left-nav a.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

  /* Hero center card - use min-height so content isn't cut off */
  .w-hero-center {
    height: auto !important;
    min-height: 360px;
    border-radius: 16px !important;
  }
  /* The overlay div inside hero center */
  .w-hero-center > div {
    position: absolute !important;
    inset: 0 !important;
    padding: 24px !important;
    background: linear-gradient(to top, rgba(30,58,138,0.95) 0%, rgba(30,58,138,0.75) 60%, rgba(30,58,138,0.4) 100%) !important;
  }
  .w-hero-center h2 {
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }
  .w-hero-center p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Ad cards - horizontal list */
  .w-hero-right { gap: 10px; }
  .w-ad-label { margin-top: 8px; }

  /* Grids go single column */
  .w-grid-3, .w-grid-4 { grid-template-columns: 1fr; }
  .w-footer-inner { grid-template-columns: 1fr; }
  .w-footer { padding: 48px 24px 24px; }

  /* Search bar */
  .w-search-bar { border-radius: 16px; }
  .w-search-input { font-size: 15px !important; padding: 14px 16px !important; }
}

@media(max-width: 480px) {
  .w-hero-title h1 { font-size: 23px; }
  .w-hero-center { min-height: 300px; }
  .w-hero-center h2 { font-size: 20px !important; }
  .w-hero-center p { font-size: 13px !important; -webkit-line-clamp: 2; }
}
