:root {
  --primary: #1a56a0;
  --primary-dark: #0f3d7a;
  --primary-light: #3b82c4;
  --accent: #e8a020;
  --accent-light: #fbbf24;
  --white: #ffffff;
  --off-white: #f8faff;
  --gray-50: #f1f5fb;
  --gray-100: #e4ecf7;
  --gray-300: #94afd4;
  --gray-600: #4a6490;
  --gray-800: #1e3556;
  --text: #1e3556;
  --text-muted: #5a7aaa;
  --shadow-sm: 0 2px 8px rgba(26,86,160,0.08);
  --shadow-md: 0 8px 32px rgba(26,86,160,0.13);
  --shadow-lg: 0 20px 60px rgba(26,86,160,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* Base Layout */
.section { padding: 90px 2rem; }
.section-sm { padding: 60px 2rem; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; }
.page-hero {
  background: linear-gradient(135deg, #0f3d7a, #1a56a0);
  padding: 120px 2rem 60px; text-align: center; color: var(--white);
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem,5vw,3rem);
  margin-bottom: 1rem;
  color: var(--white);
}
.page-hero p {
  font-size: 1.1rem; opacity: 0.85; max-width: 560px; margin: 0 auto;
  color: rgba(255,255,255,0.9);
}
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; justify-content: center;
  margin: 0 0 1rem; font-size: 0.85rem; opacity: 0.7; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
@media (max-width:900px) { .grid-3 { grid-template-columns: 1fr; } }

/* Home Carousels */
.am-carousel {
  position: relative;
}
.am-carousel-viewport {
  overflow: hidden;
  width: 100%;
}
.am-carousel-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 2rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.am-carousel-slide {
  flex: 0 0 calc((100% - (var(--am-gap, 2rem) * (var(--am-per-view, 3) - 1))) / var(--am-per-view, 3));
  min-width: 0;
}
.am-carousel .events-grid,
.am-carousel .grid-3,
.am-carousel .team-grid {
  grid-template-columns: none;
}
.am-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 12px 30px rgba(26,86,160,0.22);
  transition: var(--transition);
}
.am-carousel-arrow:hover {
  background: var(--primary-dark);
}
.am-carousel-arrow span {
  font-size: 1.15rem;
  line-height: 1;
}
.am-carousel-arrow-prev {
  left: -26px;
}
.am-carousel-arrow-next {
  right: -26px;
}
.am-carousel-arrow[disabled] {
  opacity: 0.45;
  cursor: default;
}
.am-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.am-carousel-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: #c8d2e3;
  cursor: pointer;
  transition: var(--transition);
}
.am-carousel-dot.is-active {
  background: var(--primary);
  transform: scale(1.12);
}

/* Generic Card Styles (Campaigns) */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
  overflow: hidden; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-img-placeholder { background: #e2e8f0; color: #64748b; display: flex; align-items: center; justify-content: center; }
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block; background: var(--gray-50); color: var(--primary);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem; border-radius: 100px; margin-bottom: 0.75rem;
}
.card-title { font-weight: 700; font-size: 1.1rem; color: var(--gray-800); margin-bottom: 0.5rem; }
.card-title-link { color: inherit; text-decoration: none; }
.card-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Shared Section Header */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block; background: var(--gray-50); color: var(--primary);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1rem;
  border: 1px solid var(--gray-100);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gray-800); line-height: 1.25; margin-bottom: 1rem;
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 580px; margin: 0.75rem auto 0; }
.divider {
  width: 56px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px; margin: 1rem auto 0;
}

/* Contact + Forms */
.am-page-hero {
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}
.am-contact-page,
.am-gallery-page {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.am-contact-page .section,
.am-gallery-page .section {
  position: relative;
}
.am-contact-page .section::before,
.am-gallery-page .section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(59,130,196,0.08), transparent 32%),
    radial-gradient(circle at bottom left, rgba(232,160,32,0.07), transparent 28%);
  pointer-events: none;
}
.am-contact-page .container,
.am-gallery-page .container {
  position: relative;
  z-index: 1;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.am-muted-copy {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  color: var(--primary);
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-value,
.contact-value a {
  color: var(--gray-800);
  text-decoration: none;
  line-height: 1.6;
}
.contact-map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.am-panel-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
}
.am-panel-card-narrow {
  max-width: 680px;
  margin: 0 auto;
}
.am-panel-title {
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}
.am-panel-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
}
.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: var(--white);
  color: var(--gray-800);
  font-size: 0.95rem;
}
.form-textarea {
  min-height: 130px;
  resize: vertical;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(26,86,160,0.08);
}
.am-wide-btn {
  width: 100%;
  justify-content: center;
}
.am-donation-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.method-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1.5px solid var(--gray-100);
  margin-bottom: 1.25rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.method-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.am-method-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.am-method-icon {
  font-size: 1.5rem;
}
.method-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}
.method-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.bank-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.bank-row:last-child {
  border-bottom: none;
}
.bank-row strong {
  color: var(--text-muted);
}
.upi-id,
.am-mono {
  font-family: monospace;
}
.upi-id {
  background: var(--gray-50);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 700;
  border: 1px solid var(--gray-100);
  display: inline-block;
  margin-top: 0.5rem;
}
.am-form-notice {
  margin-bottom: 2rem;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  font-weight: 600;
}
.am-form-notice-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.am-form-notice-error {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.am-contact-page .section-tag,
.am-gallery-page .section-tag {
  box-shadow: 0 8px 18px rgba(26,86,160,0.08);
}
.am-contact-page .section-title,
.am-gallery-page .section-title {
  text-wrap: balance;
}
.am-contact-page .btn,
.am-gallery-page .btn {
  text-decoration: none !important;
}
.am-gallery-page .am-filter-btn,
.am-gallery-page button.filter-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  font: inherit;
  text-decoration: none;
}
.am-contact-page .am-action-btn,
.am-contact-page button.am-action-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.95rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  background: var(--primary) !important;
  color: var(--white) !important;
  box-shadow: 0 14px 32px rgba(26,86,160,0.22);
}
.am-contact-page .am-action-btn:hover,
.am-contact-page button.am-action-btn:hover,
.am-contact-page .am-action-btn:focus,
.am-contact-page button.am-action-btn:focus {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

/* Gallery */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: var(--gray-50) !important;
  color: var(--gray-600) !important;
  border: 1.5px solid var(--gray-100) !important;
  border-radius: 100px !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(26,86,160,0.05) !important;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 10px 22px rgba(26,86,160,0.18) !important;
}
.gallery-section {
  margin-bottom: 3rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(228,236,247,0.9);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.gallery-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gray-800);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.gallery-section-title span {
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
}
.photo-grid,
.photo-gallery,
.event-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* Admin Gallery Preview Styles */
.am-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    min-height: 50px;
    border-radius: 4px;
}
.am-gallery-item {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid #ccc;
    background: #eee;
}
.am-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.am-remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 18px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}
.am-remove-image:hover {
    background: #ff0000;
    color: white;
}

.photo-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.photo-item.wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}
.photo-item:hover img {
  transform: scale(1.08);
}
.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,86,160,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  font-size: 1.5rem;
}
.photo-item:hover .photo-overlay {
  opacity: 1;
}
.am-gallery-page .photo-item {
  box-shadow: 0 10px 24px rgba(26,86,160,0.08);
}

/* Scoped hardening for theme conflicts */
.am-contact-page .contact-info-item,
.am-contact-page .am-panel-card,
.am-contact-page .method-card,
.am-contact-page .am-form-notice,
.am-gallery-page .gallery-section,
.am-gallery-page .filter-btn {
  box-sizing: border-box;
}
.am-contact-page .form-input,
.am-contact-page .form-textarea,
.am-contact-page select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--white) !important;
}
.am-contact-page a,
.am-gallery-page a {
  color: inherit;
}
.am-contact-page .contact-value a,
.am-gallery-page .gallery-section-title a {
  text-decoration: none;
}
.am-contact-page .contact-value a:hover,
.am-gallery-page .gallery-section-title a:hover {
  color: var(--primary);
}

/* Supporting Sections */
.am-value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.am-value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.am-value-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.am-value-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}
.am-value-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.cta-strip {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 4rem 2rem;
  text-align: center;
  color: var(--white);
}
.cta-strip h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem,4vw,2.4rem);
  margin-bottom: 1rem;
  color: var(--white);
}
.cta-strip p {
  opacity: 0.85;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,160,32,0.28);
}
.btn-accent:hover {
  background: var(--accent-light);
  color: var(--white);
}
.btn-white {
  background: var(--primary);
  color: var(--white);
}
.btn-white:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* Campaigns Progress */
.progress-bar { background: var(--gray-100); border-radius: 100px; height: 8px; margin: 1rem 0 0.5rem; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 100px; transition: width 1.5s ease; }
.campaign-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); }
.campaign-raised { font-weight: 700; color: var(--primary); }

/* Homepage Events */
.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.event-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: var(--transition);
  width: 100%;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.event-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.event-img-placeholder {
  background: #e2e8f0; color: #64748b; display: flex; align-items: center; justify-content: center;
}
.event-body { padding: 1.5rem; }
.event-date { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }
.event-title { font-weight: 700; font-size: 1.05rem; color: var(--gray-800); margin-bottom: 0.5rem; }
.event-title-link { color: inherit; text-decoration: none; }
.event-loc { font-size: 0.85rem; color: var(--text-muted); }
.event-summary { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.75rem; line-height: 1.7; }
.event-summary-wrap { margin-top: 0.75rem; }
.event-summary-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card .event-summary-toggle,
.event-summary-wrap .event-summary-toggle {
  background: transparent;
  border: none !important;
  color: #111111 !important;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0 !important;
  margin-top: 0.35rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  outline: none !important;
}
.event-card .event-summary-toggle:hover,
.event-card .event-summary-toggle:focus,
.event-card .event-summary-toggle:active,
.event-summary-wrap .event-summary-toggle:focus,
.event-summary-wrap .event-summary-toggle:active,
.event-summary-wrap .event-summary-toggle:hover {
  background: transparent !important;
  color: #111111 !important;
  transform: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.event-cta { margin-top: 1rem; padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Events Detailed Card */
.event-detail-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
  overflow: hidden; margin-bottom: 3rem; width: 100%;
  transition: var(--transition);
}
.event-detail-card:hover { box-shadow: var(--shadow-md); }
.event-detail-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); padding: 2rem 2.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.event-number { font-family:'Playfair Display',serif; font-size:3rem; font-weight:700; opacity:0.3; }
.event-detail-meta { flex: 1; }
.event-detail-meta h2 { font-family:'Playfair Display',serif; font-size:1.6rem; margin-bottom:0.5rem; }
.event-meta-row { display:flex; gap:1.5rem; font-size:0.88rem; opacity:0.85; flex-wrap:wrap; }
.event-detail-body { padding: 2.5rem; }
.highlight-tag {
  display:inline-flex; align-items:center; gap:6px;
  background:var(--gray-50); color:var(--primary); border:1px solid var(--gray-100);
  border-radius:100px; padding:0.3rem 0.9rem; font-size:0.82rem; font-weight:600; margin:0.3rem;
}
.event-photos-grid-single {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem;
}
.event-photos-grid-single img {
  width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow-sm);
}
.event-photos-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.5rem;
}
.event-photos-grid img {
  width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: var(--transition);
}
.event-photos-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* Lightbox */
.am-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 2rem;
}
.am-lightbox.open { display: flex; }
.am-lightbox-stage {
  max-width: min(1100px, 86vw);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.am-lightbox-stage img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.am-lightbox .am-lightbox-close,
.am-lightbox .am-lightbox-nav {
  position: absolute;
  border: none !important;
  color: var(--white) !important;
  background: var(--primary) !important;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26,86,160,0.28);
}
.am-lightbox .am-lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
}
.am-lightbox .am-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.35rem;
}
.am-lightbox .am-lightbox-close:hover,
.am-lightbox .am-lightbox-nav:hover {
  background: var(--white) !important;
  color: var(--primary) !important;
}
.am-lightbox .am-lightbox-prev { left: 1.25rem; }
.am-lightbox .am-lightbox-next { right: 1.25rem; }
.am-lightbox .am-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Leadership */
.leader-feature {
  background: linear-gradient(135deg,var(--off-white),var(--gray-50));
  border-radius: var(--radius-lg); padding: 3rem; margin-bottom: 2.5rem; border: 1px solid var(--gray-100);
  display: grid; grid-template-columns: 200px 1fr; gap: 3rem; align-items: center;
}
.leader-feature-media { text-align: center; }
.leader-feature-photo {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 5px solid var(--primary);
  box-shadow: var(--shadow-md); display: block; margin: 0 auto 1rem;
}
.leader-feature-name { font-weight: 800; font-size: 1.2rem; color: var(--gray-800); }
.leader-feature-role { color: var(--primary); font-weight: 700; margin-top: 0.25rem; }
.leader-feature-tags { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.leader-feature-heading { font-family:'Playfair Display',serif; font-size:1.5rem; color:var(--gray-800); margin-bottom:1rem; }
.leader-feature-content { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.leader-feature-meta { margin-top:1.5rem; display:flex; gap:1rem; flex-wrap:wrap; }
.leader-feature-meta span { display:flex; align-items:center; gap:6px; font-size:0.88rem; color:var(--gray-600); }
.leader-placeholder {
  background: var(--gray-100); color: var(--gray-600); display: flex; align-items: center; justify-content: center;
}
.team-join-card {
  border: 2px dashed var(--gray-100); box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.team-join-icon {
  width:120px; height:120px; border-radius:50%; background:var(--gray-50); border:3px dashed var(--gray-300);
  display:flex; align-items:center; justify-content:center; font-size:2.5rem; margin-bottom:1rem;
}

/* Campaign Single */
.campaign-single-grid { display:grid; grid-template-columns:1fr 350px; gap:3rem; align-items:start; }
.campaign-single-media { margin-bottom:2rem; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-md); }
.campaign-single-media img { width:100%; height:auto; display:block; }
.campaign-single-content { color:var(--text-muted); line-height:1.8; }
.campaign-single-sidebar {
  background:var(--white); padding:2rem; border-radius:var(--radius-lg); border:1px solid var(--gray-100);
  box-shadow:var(--shadow-md); position:sticky; top:2rem;
}
.campaign-single-tag {
  display:inline-block; background:rgba(15,61,122,0.1); color:var(--primary); padding:0.4rem 1rem;
  border-radius:100px; font-size:0.85rem; font-weight:700; margin-bottom:1rem;
}
.campaign-single-heading { font-family:'Playfair Display',serif; font-size:1.5rem; color:var(--gray-800); margin-bottom:1.5rem; }
.campaign-single-progress { background:var(--gray-100); height:8px; border-radius:100px; overflow:hidden; margin-bottom:1rem; }
.campaign-single-meta { display:flex; justify-content:space-between; font-size:0.9rem; font-weight:600; color:var(--gray-600); margin-bottom:2rem; }
.campaign-single-button {
  width:100%; justify-content:center; padding:1rem; font-size:1.1rem; background:var(--primary); color:var(--white);
  border-radius:100px; text-align:center; display:block; text-decoration:none;
}

/* Team Grid and Cards */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.team-card { text-align: center; background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: var(--transition); }
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.25rem; border: 4px solid var(--primary); display: block; }
.team-name { font-weight: 700; font-size: 1.1rem; color: var(--gray-800); }
.team-role { color: var(--primary); font-size: 0.9rem; font-weight: 600; margin-top: 0.25rem; }
.team-bio { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.75rem; }
.leadership-home-grid { align-items: stretch; }
.leadership-home-card {
  padding: 2.5rem 2rem 2.25rem;
  min-height: 100%;
}
.leadership-home-photo {
  width: 118px;
  height: 118px;
  margin-bottom: 1.5rem;
}
.leadership-home-bio {
  margin-top: 0.95rem;
  font-size: 0.92rem;
  line-height: 1.75;
}
.leadership-home-button {
  padding: 0.85rem 2rem;
  border-radius: 14px;
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
}
.leadership-home-button:hover,
.leadership-home-button:focus,
.leadership-home-button:active,
.leadership-home-button:visited {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  text-decoration: none !important;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .events-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .leader-feature { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; } }
@media (max-width: 900px) { .campaign-single-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .campaign-single-sidebar { position: static; } }
@media (max-width: 900px) { .event-photos-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .photo-gallery { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px) { .photo-item.wide { grid-column: span 2; } }
@media (max-width: 900px) { .gallery-section { padding: 1.2rem; } }
@media (max-width: 900px) {
  .am-carousel-arrow {
    width: 46px;
    height: 46px;
  }
  .am-carousel-arrow-prev {
    left: -14px;
  }
  .am-carousel-arrow-next {
    right: -14px;
  }
}
@media (max-width: 768px) { .section { padding: 60px 1.25rem; } }
@media (max-width: 768px) { .page-hero { padding: 100px 1.25rem 50px; } }
@media (max-width: 768px) { .event-detail-header { padding: 1.5rem; } }
@media (max-width: 768px) { .event-detail-body { padding: 1.5rem; } }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .am-panel-card { padding: 1.6rem; } }
@media (max-width: 580px) { .event-photos-grid { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .am-lightbox { padding: 1rem; } }
@media (max-width: 580px) { .am-lightbox-nav { width: 44px; height: 44px; } }
@media (max-width: 580px) { .photo-gallery { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .photo-item.wide { grid-column: span 1; aspect-ratio: 1; } }
@media (max-width: 580px) { .gallery-section { padding: 1rem; } }
@media (max-width: 580px) {
  .am-carousel-track {
    gap: 1rem;
  }
  .am-carousel-arrow {
    width: 42px;
    height: 42px;
  }
  .am-carousel-arrow-prev {
    left: -8px;
  }
  .am-carousel-arrow-next {
    right: -8px;
  }
}
@media (max-width: 768px) {
  .cta-strip {
    padding: 3rem 1.25rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none; text-decoration: none;
  transition: var(--transition); letter-spacing: 0.01em;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 16px rgba(26,86,160,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,86,160,0.4); }
.text-center .btn.btn-primary,
.text-center .btn-primary,
a.btn.btn-primary,
a.btn-primary {
  color: var(--white) !important;
}
.text-center .btn.btn-primary:hover,
.text-center .btn-primary:hover,
a.btn.btn-primary:hover,
a.btn-primary:hover,
.text-center .btn.btn-primary:focus,
.text-center .btn-primary:focus,
a.btn.btn-primary:focus,
a.btn-primary:focus,
.text-center .btn.btn-primary:active,
.text-center .btn-primary:active,
a.btn.btn-primary:active,
a.btn-primary:active,
.text-center .btn.btn-primary:visited,
.text-center .btn-primary:visited,
a.btn.btn-primary:visited,
a.btn-primary:visited {
  color: var(--white) !important;
  text-decoration: none !important;
}

/* Animation */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
