/* =======================================
   Theme tokens (uses your existing colors)
======================================= */
:root{
  --brand:#3f1941;          /* header/accents (existing) */
  --ink:#333;               /* body text (existing) */
  --ink-soft:#555;          /* secondary text (existing) */
  --bg:#fff;                /* backgrounds (existing) */
  --footer:#000;            /* footer (existing) */

  /* brand tints from the same color (no new hues) */
  --brand-06:rgba(63,25,65,.06);
  --brand-12:rgba(63,25,65,.12);
  --brand-18:rgba(63,25,65,.18);
  --brand-55:rgba(63,25,65,.55);

  --radius-s:6px;
  --radius-m:10px;
  --radius-l:14px;

  --shadow-1:0 2px 6px rgba(0,0,0,.08);
  --shadow-2:0 6px 18px rgba(0,0,0,.12);
  --shadow-3:0 10px 24px rgba(0,0,0,.14);

  --space-1:.5rem;
  --space-2:1rem;
  --space-3:1.5rem;
  --space-4:2rem;
  --space-5:3rem;

  --container:1200px; /* matches your layout width */
}

/* Base */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.container{ max-width:var(--container); margin:0 auto; padding:0 20px; }
main{ min-height:calc(100vh - 140px); padding:2rem 0; }

/* Header & nav (keeps your brand color) */
header{
  background:var(--brand);
  color:#fff;
  padding:1rem 0;
  position:sticky; top:0; z-index:100;
  box-shadow:var(--shadow-1);
}
header .container{ display:flex; justify-content:space-between; align-items:center; gap:var(--space-2); }
.logo{ display:flex; align-items:center; gap:12px; }
.logo-link{ display:flex; align-items:center; text-decoration:none; color:inherit; }
.logo-img{ height:48px; width:auto; display:block; border-radius:6px; }
.site-title{ font-weight:700; font-size:1.1rem; color:#fff; line-height:1; white-space:nowrap; }

nav ul{ list-style:none; display:flex; gap:1.25rem; }
nav a{
  color:#fff; text-decoration:none;
  padding:.5rem .9rem; border-radius:var(--radius-s);
  letter-spacing:.2px; font-weight:600;
  transition:background-color .2s ease, transform .2s ease;
}
nav a:hover, nav a.active, nav a:focus-visible{
  background-color:rgba(255,255,255,.16);
  outline:none; transform:translateY(-1px);
}

/* Page header */
.page-header{ text-align:center; margin-bottom:3rem; }
.page-header h1{
  font-size:clamp(2rem, 3vw, 2.75rem);
  color:var(--brand); margin-bottom:.75rem;
}

/* Slideshow / Hero */
.slideshow-container{
  position:relative; width:90%; max-width:1200px; margin:22px auto;
  overflow:hidden; border-radius:var(--radius-m); box-shadow:var(--shadow-2); background:#000;
}
.slideshow{ position:relative; height:min(60vh, 680px); min-height:300px; }
.slide{ position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity .45s ease; }
.slide.active{ opacity:1; visibility:visible; z-index:1; }
.slide img{ width:100%; height:100%; object-fit:cover; display:block; opacity:0; transition:opacity .35s ease; }
.slide img.is-loaded{ opacity:1; }
/* gentle bottom gradient for caption legibility */
.slideshow-container::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,0) 55%, rgba(0,0,0,.25));
  pointer-events:none;
}
/* Controls (brand, no new colors) */
.prev,.next{
  position:absolute; top:50%; transform:translateY(-50%);
  background-color:rgba(63,25,65,.85); color:#fff; border:none;
  padding:.9rem; cursor:pointer; font-size:1.1rem; border-radius:var(--radius-s);
  transition:background-color .2s ease, transform .2s ease;
}
.prev{ left:.5rem; } .next{ right:.5rem; }
.prev:hover,.next:hover{ background-color:rgba(63,25,65,1); transform:translateY(-50%) scale(1.02); }

/* Welcome / Description */
.welcome-wrapper{ max-width:1200px; margin:28px auto; padding:0 16px; }
#welcome-title{
  text-align:center; color:var(--brand);
  margin:0 0 18px; font-size:clamp(1.5rem, 2.2vw, 1.9rem); line-height:1.1;
}
.welcome-text{ text-align:left; color:#150101; line-height:1.7; font-size:18px; }
.welcome-text p{ margin:0 0 14px; }

/* About */
.about-content{ max-width:800px; margin:0 auto; }
.about-content section{ margin-bottom:3rem; }
.about-content h2{
  color:var(--brand); font-size:1.8rem; margin-bottom:1rem;
  border-bottom:2px solid var(--brand); padding-bottom:.5rem;
}
.about-content p{ font-size:1.1rem; line-height:1.8; margin-bottom:1rem; color:var(--ink-soft); }

/* Events */
.events-section{ margin-bottom:3rem; }
.events-section h2{
  color:var(--brand); font-size:2rem; margin-bottom:2rem; text-align:center;
  border-bottom:3px solid var(--brand); padding-bottom:1rem;
}
.events-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:2rem; max-width:1000px; margin:0 auto;
}
.event-card{
  background:#fff; padding:1.75rem; border-radius:var(--radius-m);
  box-shadow:0 4px 15px rgba(0,0,0,.1);
  border-left:4px solid var(--brand);
  transition:transform .25s ease, box-shadow .25s ease;
}
.event-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-3); }
.event-card h3{ color:var(--brand); font-size:1.3rem; margin-bottom:.75rem; }
.event-card p{ color:var(--ink-soft); margin-bottom:.8rem; line-height:1.6; }
.event-details p{ margin-bottom:.5rem; font-size:.95rem; }
.event-details strong{ color:var(--brand); }

/* Compact layout for limited upcoming cards */
.events-grid.compact{ display:flex; justify-content:left; gap:1.5rem; flex-wrap:wrap; padding-top:.5rem; }
.events-grid.compact .event-card{ flex:0 0 320px; max-width:320px; }

/* Activities */
.activities-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:2rem; max-width:1000px; margin:0 auto;
}
.activity-card{
  background:#fff; border-radius:var(--radius-m); overflow:hidden;
  box-shadow:0 4px 15px rgba(0,0,0,.1);
  transition:transform .25s ease, box-shadow .25s ease;
}
.activity-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-3); }
.activity-card img{ width:100%; height:200px; object-fit:cover; display:block; }
.activity-content{ padding:1.25rem 1.5rem; }
.activity-content h3{ color:var(--brand); font-size:1.25rem; margin-bottom:.75rem; }
.activity-content p{ color:var(--ink-soft); line-height:1.6; }

/* Gallery */
.gallery-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); gap:1rem; }
.gallery-item{
  aspect-ratio:1; overflow:hidden; border-radius:var(--radius-m);
  box-shadow:0 4px 10px rgba(0,0,0,.1);
  transition:transform .2s ease; background:#eee;
}
.gallery-item:hover{ transform:scale(1.03); }
.gallery-item img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Members */
.members-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); gap:2rem; }
.member-card{
  background:rgb(63,25,65); padding:2rem; border-radius:15px; text-align:center;
  box-shadow:0 4px 15px rgba(0,0,0,.1);
  transition:transform .25s ease, box-shadow .25s ease;
}
.member-card:hover{ transform:translateY(-10px); box-shadow:0 8px 25px rgba(0,0,0,.15); }
.member-photo{ width:150px; height:150px; margin:0 auto 1rem; border-radius:50%; overflow:hidden; border:4px solid #fff; }
.member-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.member-card h3{ color:#fff; font-size:1.2rem; margin-bottom:.4rem; }
.member-card p{ color:#fffdfd; font-size:1rem; font-weight:500; }

/* Buttons (respect existing colors, including your blue .register-btn) */
.btn{
  display:inline-block; padding:.7rem 1.1rem; border-radius:8px; text-decoration:none;
  font-weight:600; background:var(--brand); color:#fff; /* brand button option */
  box-shadow:0 6px 14px rgba(0,0,0,.08);
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:hover,.btn:focus{ transform:translateY(-2px); box-shadow:0 10px 20px rgba(0,0,0,.12); outline:none; }
/* Enhance existing .register-btn without changing its background color */
.register-btn{
  display:inline-block; border-radius:8px; box-shadow:0 6px 14px rgba(0,0,0,.08);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.register-btn:hover,.register-btn:focus{
  transform:translateY(-2px); box-shadow:0 10px 20px rgba(0,0,0,.12); outline:none;
  filter:brightness(1.03); /* subtly livens without changing the color value */
}

/* Footer (keeps black background) */
footer{ background:var(--footer); color:#fff; padding:2rem 0 1rem; margin-top:auto; }
.footer-content{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:2rem; text-align:center;
}
.footer-content h3{ margin-bottom:1rem; color:#fff; }
.footer-content p{ margin-bottom:.5rem; color:rgba(255,255,255,.85); }
.footer-social{ display:flex; flex-direction:column; gap:10px; align-items:flex-start; margin-top:12px; }
.social-link{
  display:inline-flex; align-items:center; gap:10px; padding:8px 12px; border-radius:8px;
  background:rgba(255,255,255,.06); color:#fff; text-decoration:none; font-weight:700;
  transition:transform .12s ease, background .12s ease; width:fit-content;
}
.social-link:hover,.social-link:focus{
  transform:translateY(-2px);
  background:rgba(255,255,255,.12);
  box-shadow:0 8px 20px rgba(63,25,65,.12);
  outline:none;
}
.copyright{
  grid-column:1 / -1; text-align:center; padding-top:1rem;
  border-top:1px solid rgba(255,255,255,.2); margin-top:1rem;
}

/* Accessibility & utilities */
:focus-visible{ outline:2px solid var(--brand-55); outline-offset:2px; }
.sr-only{
  position:absolute !important; width:2px; height:2px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.text-center{ text-align:center; }
.flow > * + *{ margin-top:var(--space-2); }

/* Responsive */
@media (max-width:768px){
  .container{ padding:0 15px; }
  header .container{ flex-direction:column; gap:1rem; }
  nav ul{ flex-wrap:wrap; justify-content:center; gap:1rem; }
  .slideshow{ height:50vh; }
  .page-header h1{ font-size:2rem; }
  .events-grid, .activities-grid{ grid-template-columns:1fr; }
  .gallery-grid, .members-grid{ grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); }
  .logo-img{ height:40px; } .site-title{ font-size:1rem; }
}
@media (max-width:480px){
  .slideshow{ height:40vh; }
  .description h2{ font-size:1.5rem; }
  .description p, .welcome-text{ font-size:1rem; }
  .event-card, .activity-card, .member-card{ padding:1.5rem; }
  .gallery-grid{ grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); }
  .register-btn{ padding:.9rem 1rem; width:100%; text-align:center; display:block; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
}

#videoSlide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
  overflow: hidden;
  border-radius: var(--radius-m); /* if slideshow slides have radius */
}

#videoSlide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

#videoSlide video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* or 'contain' if you want letterboxing */
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: rgba(0,0,0,0.25);
  z-index: 2;
  backdrop-filter: blur(1px);
}
.hero-overlay h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: .5rem;
}
.hero-overlay p {
  font-size: 1.2rem;
  font-weight: 400;
}

.mission-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}
.mission-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.mission-content {
  flex: 1;
}
.mission-content h2 {
  color: var(--brand);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.mission-content p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Smooth visibility and overlay styles for video + slideshow */
#videoSlide {
  position: absolute;
  inset: 0;
  opacity: 1;
  z-index: 1;
  overflow: hidden;
}
#videoSlide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .6s ease;
}
#videoSlide video.is-playing {
  opacity: 1;
}

/* Overlay */
/* CSS to minimize the image size in the modi_qr section */

/* Styling for the Event Card (Context for the image) */
/* Targeting the container with the ID selector */
/* --- YOUTUBE BUTTON STYLING --- */


/* The actual link/button */

