:root {
  --navy-blue: #002147;
  --gold: #FFD700;
  --white: #FFFFFF;
  --light-gray: #f5f5f5;
  --dark-gray: #333;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
}

.navbar {
  background: var(--navy-blue);
  padding: 0.55rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo .nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-logo h2 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  transition: 0.3s ease;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 33, 71, 0.8), rgba(0, 33, 71, 0.8)),
              url('https://lh3.googleusercontent.com/d/1BWeFngcJrQ1uB6RAI_a68AQuooiDQsnc') center/cover;
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  animation: fadeInUp 1s ease;
}

.hero-logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  border: 5px solid var(--gold);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
  }
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--navy-blue);
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--navy-blue);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gold);
}

.highlight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--gold);
}

/* Article card styles */
.articles-grid, .articles, #articles-section, #articles-section .articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.article-card, .article {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  border: 1px solid rgba(0,0,0,0.04);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.06);
}

.article-title {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  color: var(--navy-blue);
  font-weight: 700;
}

.article-author {
  font-style: italic;
  color: #555;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.article-summary {
  color: #666;
  line-height: 1.6;
  margin: 0.5rem 0 1rem;
  flex-grow: 1;
}

.read-more, .article-cta {
  display: inline-block;
  color: #6b21a8;
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.15s ease, transform 0.15s ease;
}

.read-more:hover, .article-cta:hover {
  color: #4c1d95;
  text-decoration: none;
  transform: translateY(-2px);
}

@media (max-width: 520px) {
  .article-card { padding: 1rem; }
  .article-title { font-size: 1.05rem; }
}

.card-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--navy-blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.carousel-item {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: scale(1.05);
}

.carousel-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.carousel-content {
  padding: 1.5rem;
}

.carousel-content h3 {
  color: var(--navy-blue);
  margin-bottom: 0.5rem;
}

.carousel-content .date {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer {
  background: var(--navy-blue);
  color: var(--white);
  padding: 1.4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.3rem;
  margin-bottom: 1.4rem;
  text-align: center;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-section h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.4px;
}

.footer-section p {
  font-size: 0.85rem;
  margin: 0.15rem 0;
  line-height: 1.55;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.85rem;
  display: inline-block;
}

.contact-item a:hover {
  color: var(--gold);
  text-decoration: none;
}

.contact-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-top: 0;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.contact-item div {
  font-size: 0.82rem;
  line-height: 1.4;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.88rem;
}

.footer-section a:hover {
  color: var(--gold);
}

.social-icons {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.social-icons a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy-blue);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

.social-icons a:hover {
  transform: scale(1.08);
  background: var(--white);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.social-icons img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  font-size: 0.82rem;
  margin: 0.2rem 0;
  opacity: 0.85;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: start;
}

.leader-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(2, 8, 23, 0.12);
}

.leader-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f7f8fa;
  padding: 12px;
  display: block;
}

/* Placeholder for leaders without photos */
.leader-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f0f2f5, #ffffff);
  color: #1A365D;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 1px;
}

.leader-info {
  padding: 1rem 1rem 1.25rem;
  flex: 1 1 auto;
}

/* Responsive breakpoints for leadership grid */
@media (max-width: 1200px) {
  .leadership-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  .leader-card img {
    height: 180px;
  }
}

/* Albums and Sermon card styles */
#albums-grid, #albums-container, #photosSelection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.wing-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(2,8,23,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.wing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 50px rgba(2,8,23,0.12);
}

.wing-card img.lazy-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.wing-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.wing-content h3 {
  color: var(--navy-blue);
  font-size: 1.25rem;
  margin: 0;
}

.wing-content .date {
  color: var(--gold);
  font-weight: 600;
}

.wing-button {
  margin-top: auto;
  align-self: start;
  padding: 0.8rem 1.4rem;
  border-radius: 40px;
  background: linear-gradient(180deg, var(--navy-blue), #001231);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,33,71,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wing-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,33,71,0.18);
}

.photos-grid, .albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.photo-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(2,8,23,0.06);
}

.photo-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

/* Image spinner overlay used while lazy-loading images */
.image-wrap {
  position: relative;
  overflow: hidden;
}
.image-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  z-index: 5;
}
.image-spinner .ring {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(26,54,93,0.12);
  border-top-color: #1a365d; /* dark-blue */
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.image-spinner.hidden { display: none; }

/* Smaller spinner for compact thumbnails */
.image-spinner.small { width: 36px; height: 36px; }

/* Global full-page loader shown while album covers and images load */
.global-loader {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.global-loader .loader-card{
  background: white;
  padding: 18px 24px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  display: flex;
  gap: 12px;
  align-items: center;
}
.global-loader .loader-card .text { font-weight: 700; color: #1a365d; }


.photo-name {
  font-size: 0.85rem;
  color: #444;
  margin-top: 0.5rem;
}

.sermon {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 8px 24px rgba(2,8,23,0.06);
  transition: transform 0.18s ease;
}

.sermon:hover {
  transform: translateY(-6px);
}

.sermon h3 { color: var(--navy-blue); margin-bottom: 0.25rem; }
.sermon h5 { color: #666; margin: 0; font-weight: 600; }

.sermon-downloads a {
  display: inline-block;
  background: var(--light-gray);
  color: var(--navy-blue);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  margin-left: 6px;
  font-weight: 600;
}

.sermon-downloads {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 700px) {
  .wing-card img.lazy-image { height: 180px; }
  .wing-content { padding: 1rem; }
  #albums-grid, #albums-container, #photosSelection { gap: 1rem; }
}

/* Support legacy server-rendered album & sermon card classes */
.album-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(2,8,23,0.08);
  display: flex;
  flex-direction: column;
}
.album-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.album-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.album-title { color: var(--navy-blue); margin: 0; }
.album-date { color: var(--gold); font-weight: 600; }
.album-description { color: #555; }
.album-button {
  display: inline-block;
  margin-top: auto;
  padding: 0.6rem 1rem;
  background: var(--navy-blue);
  color: var(--white);
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
}

.sermon-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(2,8,23,0.06);
}
.sermon-title { color: var(--navy-blue); margin: 0; }
.sermon-speaker { color: #666; font-weight: 600; }
.sermon-date { color: #666; }
.download-btn {
  display: inline-block;
  background: var(--light-gray);
  color: var(--navy-blue);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  margin-right: 6px;
  font-weight: 600;
}
.download-links { margin-top: 0.5rem; }

/* Stronger selectors to ensure sermon/album cards are styled in all render paths */
#sermons-container .sermon,
#sermons-container .sermon-card,
#sermons-section .sermon,
#sermons-section .sermon-card,
.sermons-grid .sermon,
.sermons-grid .sermon-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 8px 24px rgba(2,8,23,0.06);
}

#sermons-container .sermon h3,
#sermons-container .sermon-card h3,
.sermon-title {
  color: var(--navy-blue);
  margin: 0 0 0.25rem 0;
}

#sermons-container .sermon-downloads a,
#sermons-container .download-btn,
.sermon-downloads a {
  display: inline-block;
  background: var(--light-gray);
  color: var(--navy-blue);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  margin-left: 6px;
  font-weight: 600;
}

.leader-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.leader-info {
  padding: 1.5rem;
}

.leader-info h3 {
  color: var(--navy-blue);
  margin-bottom: 0.5rem;
}

.leader-info .role {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bible-verse {
  background: linear-gradient(135deg, var(--navy-blue), #003366);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  margin: 3rem 0;
  font-style: italic;
  font-size: 1.3rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.bible-verse .reference {
  margin-top: 1rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

.wings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.wing-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

/* Make link-wrapped cards act and look like blocks */
.wing-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.wing-card-link .wing-button {
  display: inline-block;
}

/* Small overlay that shows the Drive folder URL for testing/clickability */
.folder-url {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #666;
  word-break: break-all;
  opacity: 0.9;
}

.folder-url:hover {
  color: var(--navy-blue);
}

/* Card visual improvements */
.wing-card {
  display: flex;
  flex-direction: column;
}

.wing-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.wing-content {
  padding: 1.5rem;
}

.album-title-link {
  color: var(--navy-blue);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
}

.album-title-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.wing-button-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: var(--navy-blue);
  color: #fff;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
}

.wing-button-link:hover {
  background: var(--gold);
  color: var(--navy-blue);
}

.wing-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.wing-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.wing-content {
  padding: 2rem;
}

.wing-content h3 {
  color: var(--navy-blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.wing-content p {
  margin-bottom: 1.5rem;
}

.wing-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--navy-blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.wing-button:hover {
  background: var(--gold);
  color: var(--navy-blue);
  transform: scale(1.05);
}

.gallery-container {
  margin-top: 3rem;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-button {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  color: var(--navy-blue);
  border: 2px solid var(--navy-blue);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.filter-button:hover,
.filter-button.active {
  background: var(--navy-blue);
  color: var(--white);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: var(--navy-blue);
  font-size: 1.2rem;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  z-index: 2001;
}

.events-container {
  margin-top: 3rem;
}

.event-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  /* Force poster above content and ensure content area uses full width */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

/* Ensure the content area inside cards takes full width and wraps text nicely */
.event-card .event-info,
.event-card .event-content {
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
}

/* For very wide screens, allow horizontal card layout but keep content readable */
@media (min-width: 1100px) {
  .events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }
  .event-card.horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .event-card.horizontal .event-poster {
    height: 220px;
  }
}

.event-info {
  padding: 2rem;
}

.event-info h3 {
  color: var(--navy-blue);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.event-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-weight: 600;
}

.event-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--navy-blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  margin-top: 1rem;
  transition: all 0.3s ease;
  font-weight: 600;
}

.event-button:hover {
  background: var(--gold);
  color: var(--navy-blue);
}

.form-container {
  max-width: 700px;
  margin: 3rem auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-blue);
}

.radio-group {
  display: flex;
  gap: 2rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background: var(--navy-blue);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.submit-button:hover {
  background: var(--gold);
  color: var(--navy-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 2rem;
  color: var(--gold);
  min-width: 40px;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

@media (max-width: 968px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--navy-blue);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .wings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .wings-grid {
    grid-template-columns: 1fr;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Video thumbnail and play overlay styles */
.video-item .video-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--light-gray);
}
.video-item .video-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.video-item .video-thumb a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.video-item .video-thumb .play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.65);
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.video-item .video-thumb:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(0,0,0,0.75);
}
.video-item.no-embed-item {
  margin-bottom: 1.5rem;
}
