/* ===== VARIABLES ===== */
:root {
  --primary: #DF5311;
  --secondary: #142D47;
  --accent: #130F95;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--secondary); background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== LAYOUT ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1; padding-top: 88px; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; font-weight: 700; font-size: 0.875rem; padding: 0.625rem 1.25rem; border-radius: 4px; transition: filter 0.2s, background 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline { border: 2px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: #fff; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.top-bar { background: var(--secondary); color: #fff; font-size: 0.75rem; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.375rem 1.5rem; }
.top-bar-left { display: flex; align-items: center; gap: 1.5rem; }
.top-bar-link { display: flex; align-items: center; gap: 0.375rem; color: #fff; opacity: 0.9; transition: opacity 0.2s; }
.top-bar-link:hover { opacity: 1; }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 1.5rem; }
.logo img { height: 40px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 1.5rem; }
.nav-item { position: relative; }
.nav-btn { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 500; color: var(--secondary); transition: color 0.15s; padding: 0.5rem 0; }
.nav-btn:hover, .nav-btn.active { color: var(--primary); }
.nav-btn svg { transition: transform 0.2s; }
.nav-item.open .nav-btn svg { transform: rotate(180deg); }

.dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); min-width: 200px; padding: 0.5rem 0; z-index: 200; }
.nav-item.open .dropdown { display: block; }
.dropdown li a { display: block; padding: 0.625rem 1.25rem; font-size: 0.875rem; color: var(--secondary); transition: background 0.15s, color 0.15s; }
.dropdown li a:hover { background: var(--gray-50); color: var(--primary); }

.nav-ctas { display: flex; align-items: center; gap: 0.75rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--secondary); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SOCIAL ICONS ===== */
.social-icons { display: flex; align-items: center; gap: 0.5rem; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; transition: background 0.2s; }
.social-icon:hover { background: var(--primary); }
.site-footer .social-icon { background: rgba(255,255,255,0.1); }

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; height: 90vh; min-height: 500px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,45,71,0.75) 0%, rgba(20,45,71,0.3) 100%); }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-text { max-width: 600px; padding: 0 2rem; color: #fff; }
.hero-text .eyebrow { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 1rem; }
.hero-text h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.25rem; }
.hero-text p { font-size: 1.125rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.6; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: background 0.3s; }
.hero-dot.active { background: var(--primary); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-bg-gray { background: var(--gray-50); }
.section-bg-dark { background: var(--secondary); }
.section-bg-primary { background: var(--primary); }

.section-label { font-size: 0.875rem; color: var(--gray-500); display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.section-label::after { content: ''; display: inline-block; height: 1px; width: 64px; background: rgba(223,83,17,0.6); }
.section-title { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--secondary); margin-bottom: 2.5rem; }
.section-title.light { color: #fff; }
.section-eyebrow { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.section-eyebrow::after { content: ''; display: inline-block; height: 1px; width: 64px; background: rgba(223,83,17,0.5); }

/* ===== WELCOME SECTION ===== */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.welcome-subtitle { font-size: 1.125rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.welcome-divider { width: 40px; height: 4px; background: var(--primary); margin-bottom: 1.5rem; }
.welcome-text { color: var(--gray-700); line-height: 1.75; margin-bottom: 2rem; }
.welcome-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.welcome-point { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--gray-700); }
.welcome-point-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.welcome-point-icon svg { color: #fff; }
.video-wrapper { border-radius: 8px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.15); aspect-ratio: 16/9; background: #000; }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; }

/* ===== STATS ===== */
.stats-section { position: relative; padding: 5rem 0; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; background: var(--gray-300); }
.stats-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.6); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item { }
.stat-number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.875rem; color: var(--gray-700); margin-top: 0.25rem; }

/* ===== TESTIMONIALS ===== */
.testimonial-slider { position: relative; }
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; }
.testimonial-quote { font-size: 1rem; color: var(--secondary); line-height: 1.8; font-style: italic; text-align: center; margin-bottom: 0; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gray-100); }
.testimonial-name { font-weight: 700; color: var(--secondary); font-size: 0.9375rem; }
.testimonial-role { font-size: 0.8125rem; color: var(--gray-400); }
.testimonial-nav { display: flex; gap: 0.5rem; margin-top: 1.5rem; justify-content: center; }
.testimonial-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); border: none; cursor: pointer; transition: background 0.3s, width 0.3s; }
.testimonial-dot.active { background: var(--secondary); width: 24px; border-radius: 4px; }

/* ===== PHOTO STRIP ===== */
.photo-strip { display: flex; gap: 0.75rem; padding: 0 0.75rem; height: 200px; overflow: hidden; }
.photo-strip-item { flex: 1; position: relative; border-radius: 8px; overflow: hidden; }
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; opacity: 0.9; }
.photo-strip-item:hover img { transform: scale(1.05); }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); background: #fff; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.5rem; }
.card-title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.5rem; line-height: 1.4; }
.card-excerpt { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 1rem; }
.card-link { font-size: 0.875rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 0.25rem; }
.card-link:hover { text-decoration: underline; }

/* ===== PARTNER MARQUEE ===== */
.marquee-wrapper { overflow: hidden; }
.marquee-track { display: flex; gap: 3rem; animation: marquee 25s linear infinite; width: max-content; align-items: center; }
.marquee-track:hover { animation-play-state: paused; }
.partner-logo { height: 48px; width: auto; object-fit: contain; transition: opacity 0.3s; opacity: 0.85; }
.partner-logo:hover { opacity: 1; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== NEWSLETTER ===== */
.newsletter-section { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); padding: 5rem 0; text-align: center; }
.newsletter-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.newsletter-title { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.newsletter-desc { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 2rem; max-width: 400px; margin-left: auto; margin-right: auto; }
.newsletter-box { background: #fff; border-radius: 16px; padding: 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.2); max-width: 480px; margin: 0 auto; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter-form input { padding: 0.75rem 1rem; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 0.875rem; font-family: inherit; outline: none; transition: border-color 0.2s; }
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form button { background: var(--primary); color: #fff; font-weight: 700; padding: 0.75rem; border-radius: 6px; font-size: 0.875rem; transition: filter 0.2s; }
.newsletter-form button:hover { filter: brightness(1.1); }
.form-msg { font-size: 0.875rem; margin-top: 0.5rem; }
.form-msg.success { color: green; }
.form-msg.error { color: red; }

/* ===== FOOTER ===== */
.site-footer { background: var(--secondary); color: #fff; position: relative; overflow: hidden; margin-top: auto; }
.footer-texture { position: absolute; inset: 0; opacity: 0.05; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0); background-size: 24px 24px; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 1.5rem; }
.footer-about img { margin-bottom: 1rem; }
.footer-about p { color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; }
.footer-col h3 { color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--primary); }
.footer-contact-link { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: color 0.2s; }
.footer-contact-link:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 0.75rem; }
.footer-links { display: flex; align-items: center; gap: 1rem; }
.footer-links a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

/* ===== PAGE HERO ===== */
.page-hero { background: var(--secondary); padding: 5rem 0 3rem; text-align: center; color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(223,83,17,0.15) 0%, transparent 60%); }
.page-hero-content { position: relative; }
.page-hero h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.125rem; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-top: 1rem; }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--secondary); margin-bottom: 0.375rem; }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 0.875rem; font-family: inherit; outline: none; transition: border-color 0.2s; }
.form-control:focus { border-color: var(--primary); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { background: var(--primary); color: #fff; font-weight: 700; padding: 0.875rem 2rem; border-radius: 6px; font-size: 0.875rem; transition: filter 0.2s; width: 100%; }
.form-submit:hover { filter: brightness(1.1); }

/* ===== DONATE PAGE ===== */
.donate-amounts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.amount-btn { padding: 0.625rem 1.5rem; border: 2px solid var(--gray-300); border-radius: 6px; font-weight: 600; font-size: 0.875rem; color: var(--secondary); transition: all 0.2s; }
.amount-btn.selected, .amount-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(223,83,17,0.05); }

/* ===== ACCORDION ===== */
.accordion-item { border-bottom: 1px solid var(--gray-100); }
.accordion-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; font-weight: 600; color: var(--secondary); font-size: 1rem; text-align: left; }
.accordion-btn svg { flex-shrink: 0; transition: transform 0.3s; }
.accordion-item.open .accordion-btn svg { transform: rotate(180deg); }
.accordion-body { display: none; padding-bottom: 1.25rem; color: var(--gray-700); line-height: 1.75; font-size: 0.9375rem; }
.accordion-item.open .accordion-body { display: block; }

/* ===== NEWSLETTER POPUP ===== */
.newsletter-popup { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.newsletter-popup.show { opacity: 1; pointer-events: all; }
.popup-box { background: #fff; border-radius: 16px; padding: 2.5rem; max-width: 440px; width: 90%; position: relative; }
.popup-close { position: absolute; top: 1rem; right: 1rem; color: var(--gray-400); transition: color 0.2s; }
.popup-close:hover { color: var(--secondary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* nav mobile handled in main responsive block */
@media (max-width: 768px) {
  .main-nav, .nav-ctas { display: none; }
  .hamburger { display: flex; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--gray-100); box-shadow: 0 8px 24px rgba(0,0,0,0.1); padding: 1rem; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-item { width: 100%; }
  .nav-btn { width: 100%; justify-content: space-between; padding: 0.75rem 0.5rem; }
  .dropdown { position: static; box-shadow: none; padding: 0 0 0 1rem; display: none; }
  .nav-item.open .dropdown { display: block; }
  .nav-ctas.open { display: flex; padding: 0.75rem 0.5rem 1rem; gap: 0.75rem; }
  .form-grid { grid-template-columns: 1fr; }
  .photo-strip { height: 120px; }
  .stats-section { padding: 2.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .welcome-grid { grid-template-columns: 1fr; }
}

/* 480px handled in grid classes section */

/* ===== FULL-SCREEN HERO SLIDER ===== */
main { padding-top: 88px; }

.hero-full { position: relative; min-height: 100vh; overflow: hidden; }

.hslide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; pointer-events: none; display: flex; align-items: flex-end; }
.hslide.active { opacity: 1; pointer-events: all; }
.hslide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hslide-overlay { position: absolute; inset: 0; }

.hslide-content { position: relative; z-index: 10; width: 100%; max-width: 900px; margin: 0 auto; padding: 0 1.5rem 5rem; text-align: center; }
.hslide-sub { color: var(--primary); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.hslide-title { font-family: var(--font-heading); font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 1.25rem; }
.hslide-desc { color: rgba(255,255,255,0.85); font-size: 1.125rem; line-height: 1.7; max-width: 600px; margin: 0 auto 2rem; }
.hslide-btns { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-ghost { display: inline-block; border: 2px solid rgba(255,255,255,0.7); color: #fff; font-weight: 700; font-size: 0.875rem; padding: 0.625rem 1.25rem; border-radius: 4px; transition: background 0.2s, color 0.2s; }
.btn-ghost:hover { background: #fff; color: var(--secondary); }

.hslide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.2); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.hslide-arrow:hover { background: rgba(0,0,0,0.5); }
.hslide-prev { left: 1rem; }
.hslide-next { right: 1rem; }

.hslide-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 0.5rem; align-items: center; }
.hslide-dot { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: all 0.3s; width: 8px; }
.hslide-dot.active { width: 32px; background: var(--primary); }

/* ===== TOP BAR — ORANGE ===== */
.top-bar { background: var(--primary) !important; }
.top-bar .social-icon { width: 24px; height: 24px; background: rgba(255,255,255,0.2); }
.top-bar .social-icon:hover { background: rgba(255,255,255,0.4); }

/* ===== NAV BUTTONS ===== */
.btn-primary { background: var(--primary); color: #fff !important; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary) !important; background: #fff; }
.btn-outline:hover { background: var(--primary); color: #fff !important; }

/* ===== PAGE HERO WITH BG IMAGE ===== */
.page-hero { min-height: 280px; display: flex; align-items: center; background-size: cover !important; background-position: center !important; }

/* ===== FELLOW CARD ===== */
.fellow-card { background:#fff; border:1px solid var(--gray-100); border-radius:12px; padding:1.5rem 1rem; text-align:center; box-shadow:0 2px 8px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.fellow-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.fellow-card-photo { width:160px; height:160px; border-radius:50%; object-fit:cover; object-position:top; margin:0 auto 1rem; display:block; }
.fellow-card-name { font-family:var(--font-heading); font-size:0.9375rem; font-weight:700; color:var(--secondary); }

/* ===== FACULTY CARD — no box, just photo + text ===== */
.faculty-card { background: transparent; text-align: center; }
.faculty-card-photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; display: block; border-radius: 8px; }
.faculty-card-body { padding: 0.875rem 0.25rem; }
.faculty-card-name { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.25rem; }
.faculty-card-title { font-size: 0.75rem; color: var(--primary); line-height: 1.4; text-align: center; }

/* ===== COMMITTEE CARD ===== */
.committee-card { background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,0.08); }
.committee-card-photo { width:100%; aspect-ratio:4/3; object-fit:cover; object-position:top; display:block; }
.committee-card-body { padding:1rem; }
.committee-card-name { font-family:var(--font-heading); font-size:1rem; font-weight:700; color:var(--secondary); margin-bottom:0.25rem; }
.committee-card-title { font-size:0.8rem; color:var(--gray-500); line-height:1.4; }

/* ===== ALUMNI CARD — large rounded photo, no name overlay ===== */
.alumni-card { border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.2s; }
.alumni-card:hover { transform: translateY(-4px); }
.alumni-card-photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; display: block; }
.alumni-card-name { font-size: 0.8rem; font-weight: 600; color: var(--secondary); padding: 0.5rem; text-align: center; }

/* ===== FILTER PILLS ===== */
.filter-pills { display:flex; flex-wrap:wrap; gap:0.5rem; margin-bottom:2rem; }
.filter-pill { padding:0.5rem 1.25rem; border-radius:999px; border:1px solid var(--gray-300); font-size:0.875rem; font-weight:500; color:var(--secondary); background:#fff; cursor:pointer; transition:all 0.2s; }
.filter-pill.active { background:var(--secondary); color:#fff; border-color:var(--secondary); }

/* ===== SECTION LABEL WITH LINE ===== */
.section-label-line { font-size:0.875rem; color:var(--gray-400); display:flex; align-items:center; justify-content:center; gap:0.75rem; margin-bottom:1rem; }
.section-label-line::after { content:''; display:inline-block; height:1px; width:48px; background:rgba(223,83,17,0.5); }

/* ===== NESTED DROPDOWN ===== */
.nav-item.has-dropdown .dropdown li { position:relative; }
.nav-item.has-dropdown .dropdown li:hover > .sub-dropdown { display:block; }
.sub-dropdown { display:none; position:absolute; left:100%; top:0; background:#fff; border-radius:8px; box-shadow:0 8px 32px rgba(0,0,0,0.12); min-width:180px; padding:0.5rem 0; z-index:300; }
.sub-dropdown li a { display:block; padding:0.625rem 1.25rem; font-size:0.875rem; color:var(--secondary); transition:background 0.15s, color 0.15s; }
.sub-dropdown li a:hover { background:var(--gray-50); color:var(--primary); }
.has-sub > a::after { content:' ›'; color:var(--gray-400); }

/* ===== STAFF SPOTLIGHT ===== */
.staff-spotlight { background:var(--secondary); border-left:4px solid var(--primary); border-radius:8px; padding:2rem; display:grid; grid-template-columns:256px 1fr; gap:2rem; align-items:center; margin-bottom:3rem; }
.staff-spotlight-photo { width:256px; height:256px; border-radius:8px; object-fit:cover; object-position:top; }
.staff-spotlight-content { color:#fff; }
.staff-spotlight-name { font-family:var(--font-heading); font-size:1.5rem; font-weight:700; margin-bottom:0.5rem; }
.staff-spotlight-title { font-size:1rem; color:var(--primary); font-weight:600; margin-bottom:1rem; }
.staff-spotlight-desc { font-size:0.9375rem; line-height:1.7; opacity:0.9; }

/* ===== STAFF CARD ===== */
.staff-card { background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,0.08); text-align:center; }
.staff-card-photo { width:100%; aspect-ratio:1; object-fit:cover; object-position:top; display:block; }
.staff-card-body { padding:1rem; }
.staff-card-name { font-family:var(--font-heading); font-size:1rem; font-weight:700; color:var(--secondary); margin-bottom:0.25rem; }
.staff-card-title { font-size:0.8rem; color:var(--gray-500); line-height:1.4; }

/* ===== PARTNERS LAYOUT ===== */
.partners-intro { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; margin-bottom:4rem; }
.partners-intro-img { width:100%; border-radius:8px; box-shadow:0 4px 16px rgba(0,0,0,0.1); }
.partners-intro-text { font-size:1rem; line-height:1.75; color:var(--gray-700); }
.partners-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; margin-bottom:4rem; }
.partner-logo-card { background:var(--gray-50); border-radius:8px; padding:2rem; display:flex; align-items:center; justify-content:center; min-height:140px; }
.partner-logo-card img { max-width:100%; max-height:80px; object-fit:contain; }
.sponsors-image-wrapper { position:relative; cursor:pointer; border-radius:8px; overflow:hidden; box-shadow:0 4px 16px rgba(0,0,0,0.1); }
.sponsors-image-wrapper img { width:100%; display:block; }

/* ===== LIGHTBOX ===== */
.lightbox { position:fixed; inset:0; background:rgba(0,0,0,0.9); z-index:9999; display:none; align-items:center; justify-content:center; padding:2rem; }
.lightbox.active { display:flex; }
.lightbox-content { max-width:90%; max-height:90%; position:relative; }
.lightbox-content img { max-width:100%; max-height:90vh; object-fit:contain; }
.lightbox-close { position:absolute; top:-2.5rem; right:0; color:#fff; font-size:2rem; cursor:pointer; background:none; border:none; padding:0.5rem; }

@media (max-width: 768px) {
  .staff-spotlight { grid-template-columns:1fr; text-align:center; }
  .staff-spotlight-photo { margin:0 auto; }
  .partners-intro { grid-template-columns:1fr; }
  .partners-grid { grid-template-columns:repeat(2,1fr); }
}

/* ===== RESPONSIVE GRID — .rg class collapses on mobile, desktop uses inline style ===== */
/* Desktop layout is defined by inline style on each element — .rg only fires on mobile */
.sticky-sidebar { position: sticky; top: 100px; }

/* Fellows/Faculty/Committee grid — 4-col desktop, 2-col mobile */
.fellows-grid { display: grid; }

/* FAQ layout — flex row on desktop, stack on mobile */
.faq-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.faq-main { flex: 1; min-width: 0; }
.faq-sidebar { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1.5rem; }

/* Blog post layout */
.blog-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.blog-layout > div:first-child { flex: 1; min-width: 0; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  img { max-width: 100%; height: auto; }

  /* .rg = any grid that should collapse to 1-col on mobile */
  .rg { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

  /* Fellows/Faculty/Committee — 2-col on mobile */
  .fellows-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }

  /* Stats strip — 4-col becomes 2-col on mobile */
  .stats-strip { grid-template-columns: 1fr 1fr !important; gap: 0.75rem !important; }

  /* FAQ and blog flex layouts stack on mobile */
  .faq-layout, .blog-layout {
    flex-direction: column;
    gap: 1.5rem;
  }
  .faq-sidebar {
    width: 100% !important;
  }
  .blog-layout > aside {
    width: 100% !important;
    flex-shrink: unset;
  }

  /* Named utility classes */
  .mobile-stack, .mobile-stack-nr, .clp-program-grid,
  .welcome-grid, .partners-intro, .staff-spotlight,
  .admin-grid-2, .editor-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Sticky sidebar becomes normal flow */
  .rg-sticky, .sticky-sidebar { position: static !important; }

  /* No justify on mobile */
  p { text-align: left !important; }

  /* Nav */
  .main-nav, .nav-ctas { display: none; }
  .hamburger { display: flex; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--gray-100); box-shadow: 0 8px 24px rgba(0,0,0,0.1); padding: 1rem; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-item { width: 100%; }
  .nav-btn { width: 100%; justify-content: space-between; padding: 0.75rem 0.5rem; }
  .dropdown { position: static; box-shadow: none; padding: 0 0 0 1rem; display: none; }
  .nav-item.open .dropdown { display: block; }
  .nav-ctas.open { display: flex; padding: 0.75rem 0.5rem 1rem; gap: 0.75rem; }
  .top-bar-left { display: none; }

  /* Page hero */
  .page-hero { min-height: 180px !important; padding: 2rem 0 1.25rem !important; }
  .page-hero h1 { font-size: 1.625rem !important; }
  .page-hero p { font-size: 0.9375rem !important; }

  /* Sections */
  .section { padding: 2.5rem 0 !important; }
  .section-title { font-size: 1.5rem !important; }

  /* Hero slider */
  .hslide-title { font-size: 1.75rem !important; }
  .hslide-desc { font-size: 0.9375rem !important; }
  .hslide-content { padding: 0 1rem 4rem !important; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr !important; }
  .form-grid { grid-template-columns: 1fr !important; }
  .photo-strip { height: 120px; }

  /* Stats */
  .stats-section { padding: 2.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 1.5rem !important; padding: 2rem 1rem !important; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  /* Partners */
  .partners-intro { grid-template-columns: 1fr !important; }
  .partners-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Staff spotlight */
  .staff-spotlight { grid-template-columns: 1fr !important; text-align: center; }
  .staff-spotlight-photo { margin: 0 auto; }

  /* Container */
  .container { padding: 0 1rem; }

  /* Admin */
  .admin-grid-2, .admin-grid-3 { grid-template-columns: 1fr !important; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .container { padding: 0 0.875rem; }
}
