/* ============================================
   Medicare Foundation - Clean Professional Styles
   Logo colours: Red #E30613 | Blue #003087
   ============================================ */

:root {
  --red: #E30613;
  --red-dark: #b8050f;
  --blue: #003087;
  --blue-dark: #001f5c;
  --dark: #1e1e1e;
  --gray: #5a5a5a;
  --light-gray: #f5f6f8;
  --white: #ffffff;
  --border: #e2e5ea;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.1);
  --radius: 10px;
  --transition: all 0.25s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  line-height: 1.65;
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

h1 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 700; line-height: 1.35; }
p, li { font-size: 0.95rem; }

.section p,
.section li,
.content-block p {
  font-size: 0.95rem;
  line-height: 1.65;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== NAVBAR ========== */
.navbar {
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.4rem 0.55rem;
  border-radius: 5px;
  white-space: nowrap;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2.5px;
  background: var(--red);
  border-radius: 2px;
}

.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-hover);
  border-radius: 8px;
  min-width: 220px;
  padding: 0.45rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1200;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--dark);
  font-size: 0.85rem;
}

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

.btn-portal {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem !important;
  margin-left: 0.35rem;
  white-space: nowrap;
}

.btn-portal:hover {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.navbar-toggler span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  margin: 4.5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 58vh;
  min-height: 380px;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #003087 0%, #002060 50%, #8b0a12 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 1.5rem;
  max-width: 680px;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.hero-content p {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 400;
  opacity: 0.92;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

/* ========== INTRO VIDEO ========== */
.intro-video-section {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
  overflow: hidden;
}
.intro-video-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 20, 60, 0.18);
  background: #0b1a3a;
}
.intro-video-wrap video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  background: #0b1a3a;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
}

.btn-secondary:hover {
  background: var(--light-gray);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

/* ========== SECTIONS ========== */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.section-header p {
  color: var(--gray);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 1rem auto 0;
}

/* ========== CARDS ========== */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.35rem;
}

.card-grid > .card,
.card-grid > .article-card,
.card-grid > article {
  flex: 1 1 300px;
  max-width: 360px;
  width: 100%;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  height: 170px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.card-body p {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--white);
  font-size: 1.15rem;
}

/* ========== VALUES ========== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  text-align: center;
}

.value-item {
  background: var(--white);
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.value-item i {
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.value-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue);
}

/* ========== CONTENT BLOCKS ========== */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }

.content-block img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.content-block h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.content-block p {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* ========== TEAM ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.15rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 1rem;
  border: 3px solid var(--light-gray);
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.2rem;
}

.team-card .role {
  color: var(--red);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.team-card p {
  color: var(--gray);
  font-size: 0.85rem;
}

/* ========== GALLERY ========== */
.section-gallery { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8eef5;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Show full image without aggressive cropping */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f0f4f8;
  transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,48,135,0.7), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  pointer-events: none;
}

.gallery-item:hover .overlay { opacity: 1; }

/* Placeholder blocks (before real photos are uploaded) */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(145deg, #e8eef5 0%, #d4dde8 100%);
  color: #003087;
  text-align: center;
  padding: 1rem;
}
.img-placeholder i {
  font-size: 1.75rem;
  opacity: 0.55;
  color: #E30613;
}
.img-placeholder span {
  font-weight: 600;
  font-size: 0.9rem;
}
.img-placeholder small {
  font-size: 0.72rem;
  opacity: 0.65;
  color: #445;
}

.gallery-hint {
  font-size: 0.88rem;
  color: #556;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: #f5f8fc;
  border-left: 3px solid #003087;
  border-radius: 0 6px 6px 0;
}
.gallery-hint code {
  font-size: 0.8rem;
  background: #e8eef5;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

/* ========== ARTICLES ========== */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.article-card .article-img { height: 155px; }

.article-card .article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card .article-body {
  padding: 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card .date {
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.article-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.article-card p {
  color: var(--gray);
  font-size: 0.85rem;
  flex: 1;
}

.article-card .read-more {
  color: var(--red);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ========== DONATE ========== */
.donate-box {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.donate-box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.donate-box p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
}

.donate-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.donate-amount {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: white;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.donate-amount:hover,
.donate-amount.active {
  background: var(--red);
  border-color: var(--red);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info-card {
  background: var(--white);
  padding: 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  margin-bottom: 0.85rem;
}

.contact-info-card:hover { transform: translateY(-3px); }

.contact-info-card i {
  font-size: 1.4rem;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.contact-info-card h4 {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.contact-info-card p,
.contact-info-card a {
  color: var(--gray);
  font-size: 0.88rem;
}

.contact-info-card a:hover { color: var(--red); }

.contact-form {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========== FOOTER ========== */
footer {
  background: var(--red);
  color: var(--white);
  padding: 2.75rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand img {
  display: block;
  height: 58px;
  width: auto;
  max-width: 240px;
  margin-bottom: 0.75rem;
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  filter: none;
  -webkit-filter: none;
}

@media (max-width: 768px) {
  .footer-brand {
    align-items: center;
    text-align: center;
  }
  .footer-brand img {
    height: 70px;
    max-width: 280px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    padding: 8px 10px;
    filter: none !important;
    -webkit-filter: none !important;
  }
}

.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.55;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 24px;
  height: 2.5px;
  background: rgba(255,255,255,0.45);
  border-radius: 2px;
}

.footer-col ul li { margin-bottom: 0.45rem; }

.footer-col ul a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}

.footer-col ul a:hover {
  color: var(--white);
  padding-left: 3px;
}

.social-links {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.social-links a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--white);
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 1.15rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ========== PARTNERS (continuous scroll on every page) ========== */
.partners-band {
  background: #f5f7fa;
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--border);
}
.partners-band .section-header { margin-bottom: 1rem; }
.partners-band .section-header h2 { font-size: 1.15rem; margin-bottom: 0; }
.partners-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.partners-track {
  display: flex;
  gap: 1.25rem;
  animation: scrollPartners 70s linear infinite;
  width: max-content;
  align-items: center;
}
.partners-track:hover { animation-play-state: paused; }
.partner-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 52px;
  padding: 0.5rem 1.1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid #e8ebf0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #003087;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
}
.partner-pill span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: #666;
}
.partners-track img {
  height: 52px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  background: white;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid #e8ebf0;
  flex-shrink: 0;
}
@keyframes scrollPartners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== PAGE HERO ========== */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 60%, #8b0a12 100%);
  padding: 3.25rem 0 2.75rem;
  text-align: center;
  color: white;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto;
}

/* ========== FAQ ========== */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question:hover { color: var(--red); }

.faq-answer {
  padding: 0 1.2rem 1rem;
  color: var(--gray);
  font-size: 0.9rem;
  display: none;
}

.faq-item.open .faq-answer { display: block; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .nav-link { font-size: 0.78rem; padding: 0.35rem 0.45rem; }
  .btn-portal { font-size: 0.75rem !important; padding: 0.35rem 0.75rem !important; }
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-block { grid-template-columns: 1fr; }
  .content-block.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Compact mobile menu – dropdown under the bar only */
  .navbar {
    position: sticky;
    top: 0;
  }

  .navbar .container {
    position: relative;
    flex-wrap: wrap;
  }

  .navbar-toggler {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    z-index: 1002;
  }

  .navbar-toggler.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .navbar-toggler.active span:nth-child(2) {
    opacity: 0;
  }
  .navbar-toggler.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .nav-menu {
    display: none !important;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 0.35rem 0 0.75rem;
    margin: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    gap: 0 !important;
    z-index: 1001;
    max-height: min(75vh, 520px);
    overflow-y: auto;
    list-style: none;
  }

  .nav-menu.open {
    display: flex !important;
  }

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid #eef0f3;
    text-align: left;
  }

  .nav-menu > li:last-child {
    border-bottom: none;
  }

  .nav-menu .nav-link {
    display: block !important;
    width: 100%;
    padding: 0.75rem 1.15rem !important;
    font-size: 0.92rem !important;
    white-space: normal;
    text-align: left !important;
    color: var(--dark);
    border-radius: 0;
  }

  .nav-menu .nav-link:hover {
    background: #f7f8fa;
  }

  .nav-link.active::after {
    display: none !important;
  }

  .nav-link.active {
    color: var(--red) !important;
    font-weight: 600;
  }

  /* Portal / Donate / Contact always visible */
  .btn-portal {
    display: block !important;
    width: calc(100% - 2.3rem) !important;
    margin: 0.55rem 1.15rem 0.35rem !important;
    text-align: center !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
  }

  /* Nested dropdowns (Our Work / Projects) */
  .nav-dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: none;
    background: #f5f7fa;
    border-radius: 0;
    min-width: 100%;
  }

  .nav-dropdown.open > .nav-dropdown-menu {
    display: block !important;
  }

  .nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.15rem 0.6rem 1.85rem !important;
    font-size: 0.88rem !important;
    text-align: left;
    color: var(--dark);
  }

  .nav-dropdown-menu a:hover {
    background: #eef1f5;
    color: var(--red);
  }

  .nav-dropdown > .nav-link {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }

  .nav-dropdown > .nav-link .fa-chevron-down {
    transition: transform 0.2s ease;
  }

  .nav-dropdown.open > .nav-link .fa-chevron-down {
    transform: rotate(180deg);
  }
}

@media (max-width: 768px) {
  .hero { height: 48vh; min-height: 320px; }
  .section { padding: 2.5rem 0; }
  .intro-video-wrap { border-radius: 8px; }
  .intro-video-section { padding-left: 0; padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col h4::after { left: 50%; transform: translateX(-50%); }
  .social-links { justify-content: center; }
  .content-block img { height: 220px; }
}

@media (max-width: 480px) {
  .hero { height: 42vh; min-height: 280px; }
  .hero-content h1 { font-size: 1.4rem; }
  .section { padding: 2rem 0; }
}

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.4rem; }
.mb-2 { margin-bottom: 0.75rem; }
.mb-3 { margin-bottom: 1.15rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1.15rem; }
.mt-4 { margin-top: 1.5rem; }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.bg-light { background: var(--light-gray); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ========== GALLERY CATEGORIES ========== */
.gallery-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

.gallery-cat-card {
  display: block;
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 400px;
  flex: 0 0 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: #fff;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 48, 135, 0.18);
}

.gallery-cat-card > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  max-width: none;
}

.gallery-cat-card .cat-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(to top, rgba(0, 30, 80, 0.92), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-cat-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.gallery-cat-card p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
}

.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: #003087;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.gallery-back:hover {
  color: #E30613;
}

/* Thumbnail grid inside a category */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: #e8eef5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.96);
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.lightbox.open {
  display: flex;
}

.lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 100001;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(227, 6, 19, 0.9);
}

.lightbox-close {
  top: 12px;
  right: 12px;
}

.lightbox-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100001;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Tablet */
@media (max-width: 900px) {
  .gallery-categories {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .gallery-cat-card {
    max-width: 100%;
    height: 320px;
  }

  .gallery-cat-card h3 {
    font-size: 1.2rem;
  }

  .gallery-cat-card p {
    font-size: 0.85rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .gallery-categories {
    gap: 0.9rem;
    padding: 0;
  }

  .gallery-cat-card {
    height: 220px;
    border-radius: 8px;
  }

  .gallery-cat-card .cat-overlay {
    padding: 0.85rem 1rem;
  }

  .gallery-cat-card h3 {
    font-size: 1.05rem;
  }

  .gallery-cat-card p {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .lightbox-prev,
  .lightbox-next,
  .lightbox-close {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
}
