/* ==========================================================================
   1. GLOBAL LAYOUT OVERRIDE
   ========================================================================== */
main.main-content {
  display: block !important;
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   2. CINEMATIC SLIDESHOW
   ========================================================================== */
.slideshow-container {
  max-width: 720px;
  height: 400px;
  margin: 2.5rem auto;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.slideshow-container .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
  transform: scale(1.05);
}

.slideshow-container .slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slideshow-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-container .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
  z-index: 2;
}

.slideshow-container .caption {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  z-index: 3;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* ==========================================================================
   3. INDEX PAGE MAIN CONTAINER
   ========================================================================== */
.index-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   4. GLASS CARD STYLING
   ========================================================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   5. TOP SECTION (BIRTHDAYS + MISSION/VISION)
   ========================================================================== */
.top-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  margin-top: 2rem;
}

.birthdays-card,
.mission-vision-card {
  flex: 1;
  min-width: 280px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.birthdays-card h3,
.mission-vision-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

/* ==========================================================================
   6. CINEMATIC SLOGAN SECTION
   ========================================================================== */
.slogan-wrapper {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding: 2rem 1rem;
  position: relative;
  z-index: 5;
  animation: fadeInUp 1.5s ease forwards;
  opacity: 0;
}

.slogan-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 40%;
  height: 80%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  z-index: -1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.slogan-wrapper h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(to right, #a1c4fd, #c2e9fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.slogan-wrapper p {
  font-size: 1.2rem;
  font-weight: 400;
  color: #eee;
  margin: 0 auto;
  max-width: 600px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   7. EVENT PHOTOS GRID — COMPACT VERSION
   ========================================================================== */
.events-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 1rem 0;
}

.event-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  text-align: center;
  color: white;
  padding: 8px;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-card img {
  width: 50%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.event-title {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 8px;
}

.event-date {
  font-size: 0.8em;
  margin-bottom: 8px;
  opacity: 0.85;
}

/* ==========================================================================
   8. BIRTHDAY LIST — SCROLLING
   ========================================================================== */
.birthday-scroll-wrapper {
  height: 150px;
  overflow: hidden;
  position: relative;
  padding-top: 5px;
}

.birthday-scroll-list {
  display: flex;
  flex-direction: column;
}

.birthday-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 8px;
  min-height: 50px;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.birthday-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
}

.birthday-info {
  display: flex;
  flex-direction: column;
}

.birthday-info strong {
  font-size: 0.95em;
}

.birthday-info span {
  font-size: 0.8em;
  opacity: 0.85;
}

/* ==========================================================================
   9. MOBILE OVERRIDES
   ========================================================================== */
@media (max-width: 768px) {
  .slideshow-container {
    max-width: 90%;
    height: 280px;
  }

  .slideshow-container .caption {
    font-size: 1.2rem;
    bottom: 1rem;
    left: 1rem;
  }

  .top-row {
    flex-direction: column;
    align-items: stretch;
  }

  /* Mobile slogan heading size */
  .slogan-wrapper h1 {
    font-size: 2rem;
  }

  .slogan-wrapper p {
    font-size: 1rem;
  }

  /* ✅ Fix mobile slogan background alignment */
  .slogan-wrapper::before {
    width: 90%;          /* Make background wide enough for mobile */
    height: auto;        /* Let height adjust naturally */
    top: 0;
    bottom: 0;
  }

  /* Optional: match text width to background */
  .slogan-wrapper p {
    max-width: 90%;
  }

  .event-card img {
    width: 100%;
    height: auto;
  }

  /* ✅ NEW: hide slogan wrapper + mission grid on mobile */
  .slogan-wrapper,
  .mission-vision-card {
    display: none !important;
  }
}
/* iOS anti-zoom */
@supports (-webkit-touch-callout: none){
  input, select, textarea { font-size:16px !important; min-height:44px; }
  .gro-btn { font-size:16px; padding:12px 16px; }
}
/* ensure the mobile submenu button is visible everywhere (safe) */
.gro-item [data-act="more"]{ display:inline-flex !important; }
