:root {
  --bg: #ffffff;
  --fg: #222;
  --muted: #666;
  --card: #fafafa;
  --accent: #b11226;
  --accent-dark: #850d1b;
  --radius: 14px;
}

/* Base styles (keeps fonts, layout and animations intact) */
body {
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:"Inter",sans-serif;
  text-align:center;
  line-height:1.6;
}
h1,h2,h3 { font-family:"Playfair Display",serif; font-weight:700; }
h2.accent-title { color:var(--accent); margin-bottom:12px; font-size:2rem; }
.section-subtitle { color:var(--muted); margin-bottom:28px; font-size:1.05rem; }

/* Navbar */
.navbar { display:flex; justify-content:space-between; align-items:center; padding:14px 24px; background:#fff; border-radius:30px; box-shadow:3px 6px 13px rgba(0, 0, 0, 0.05); }
.navbar.floating { position:fixed; top:30px; left:50%; transform:translateX(-50%); width:min(1100px,95%); z-index:50; }
.logo { height:35px; margin-right:10px; }
.club-name { font-size:1.4rem; font-weight:700; color:var(--accent); font-family:"Playfair Display",serif; }
.navbar ul { list-style:none; display:flex; gap:20px; margin:0; padding:0; }
.navbar a { color:var(--fg); text-decoration:none; font-weight:600; font-family:"Inter",sans-serif; }
.navbar a:hover { color:var(--accent); }

/* Hero */
.hero { min-height:85vh; display:flex; align-items:center; justify-content:center; padding:60px 20px; background:linear-gradient(135deg,#fff,#fdfdfd); }
.hero-title { font-size:clamp(50px,7vw,90px); color:var(--accent); margin-bottom:12px; }
.hero-tagline { color:var(--muted); margin-bottom:20px; }

/* Buttons */
.btn { padding:12px 20px; border-radius:30px; font-weight:600; transition:0.3s; cursor:pointer; font-family:"Inter",sans-serif; }
.btn-primary { background:var(--accent); color:#fff; border:none; }
.btn-primary:hover { background:var(--accent-dark); transform:translateY(-2px); }
.btn-outline { border:1px solid var(--accent); color:var(--accent); background:transparent; }
.btn-outline:hover { background:var(--accent); color:#fff; }

/* Poster container */
.poster-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background: #f9f9f9; /* optional light background */
}

/* Poster image style */
.poster {
  width: clamp(260px, 35vw, 380px);  /* medium-large but controlled */
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
  cursor: pointer;
}

/* Hover animation */
.poster:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Optional caption styling */
.poster-caption {
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
  color: #333;
  font-family: "Poppins", sans-serif;
}

/* For phones (smaller view) */
@media (max-width: 600px) {
  .poster {
    width: 85%;
    max-width: 320px;
  }
}


/* Sections */
.section { padding:80px 0; }
.container { width:min(1100px,92%); margin:0 auto; }
.about-text { max-width:700px; margin:20px auto; line-height:1.7; font-size:1.05rem; }

/* ================= Why Join Us (marketing cards) ================= */
.why-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:24px; }
.why-card { perspective:1000px; }
.why-inner { position:relative; width:100%; height:360px; transform-style:preserve-3d; transition:transform 0.8s; border-radius:var(--radius); }
.why-card:hover .why-inner { transform:rotateY(180deg); }
.why-front, .why-back {
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; border-radius:var(--radius);
  backface-visibility:hidden; overflow:hidden; background:#fff;
  /* red 3D glow */
  box-shadow:
    0 8px 20px rgba(177,18,38,0.36),
    0 14px 40px rgba(177,18,38,0.18);
}
.why-front img { width:100%; height:70%; object-fit:cover; display:block; }
.why-front h3 { margin:12px 0; color:var(--accent); font-size:1.15rem; font-family:"Playfair Display",serif; }
.why-back { transform:rotateY(180deg); padding:20px; color:var(--fg); text-align:center; }

:root {
  --accent: #b11226;
  --accent-dark: #7d0d1b;
  --fg: #333;
  --radius: 12px;
}

/* Flip Card Container */
.card {
  width: 340px;
  height: 420px;
  margin: 24px auto;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s;
}

#flipCard.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  backface-visibility: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(177,18,38,0.28);
  text-align: center;
}

.card-back {
  transform: rotateY(180deg);
}

.card-front h2, .card-back h2 {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: "Playfair Display", serif;
}

/* Form Styling */
form input {
  width: 80%;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  color: var(--fg);
  margin: 6px 0;
  font-family: "Inter", sans-serif;
}

form input:focus {
  outline: none;
  border-color: var(--accent-dark);
}

form button {
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  transition: background 0.3s ease;
}

form button:hover {
  background: var(--accent-dark);
}

p a {
  color: var(--accent);
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

p a:hover {
  text-decoration: underline;
}
/* ================= Gallery ================= */
/* grid of white cards with soft black shadow */
.gallery-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:20px;
  align-items:stretch;
  margin-top:16px;
}
.gallery-item {
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  cursor:pointer;
  transition: transform .28s ease, box-shadow .28s ease;
  display:flex; align-items:center; justify-content:center; min-height:150px;
}
.gallery-item img { width:100%; height:100%; object-fit:cover; display:block; }
.gallery-item:hover { transform:translateY(-6px) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,0.24); }

.popup-viewer {
  position:fixed; inset:0; display:none; z-index:1200; align-items:center; justify-content:center;
  background: rgba(0,0,0,0.56); backdrop-filter: blur(6px);
}
.popup-viewer img {
  max-width:88%; max-height:85%; border-radius:12px; box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  animation: popIn .35s ease;
}
@keyframes popIn { from { transform:translateY(8px) scale(.98); opacity:0 } to { transform:none; opacity:1 } }
.close-btn { position:fixed; top:18px; right:30px; font-size:36px; color:#fff; background:transparent; border:none; cursor:pointer; z-index:1300; }

/* ================= Special Mentions ================= */
.mentions-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:20px; margin-top:10px; }
.mention-card { background:#fff; border-radius:12px; padding:16px; box-shadow: 0 8px 22px rgba(0,0,0,0.12); text-align:center; }
.mention-card img { width:88px; height:88px; object-fit:cover; border-radius:50%; margin-bottom:10px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.mention-card h3 { margin:8px 0 4px; font-size:1.05rem; }
.mention-card p { color:var(--muted); font-size:0.95rem; }

/* Contact + Footer */
.contact-links { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:16px; }
.contact-links a { border:1px solid var(--accent); padding:10px 16px; border-radius:30px; color:var(--accent); transition:.3s; text-decoration:none; font-weight:600; }
.contact-links a:hover { background:var(--accent); color:#fff; }
.site-footer { padding:20px; text-align:center; color:var(--muted); background:#f7f7f7; margin-top:40px; }

/* Animations (reveal & stagger) */
.reveal { opacity:0; transform:translateY(40px); transition:opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.stagger { opacity:0; transform:translateY(30px); transition:opacity 0.8s ease, transform 0.8s ease; }
.stagger.visible { opacity:1; transform:translateY(0); }

/* small responsive tweaks */
@media (max-width:700px) {
  .why-inner { height:320px; }
  .card { width:300px; height:400px; }
}
/* --- Rotating Standing Posters --- */
.rotating-poster {
  position: relative;
  width: 100%;
  max-width: 260px; /* portrait width */
  height: 380px;    /* standing rectangle look */
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  background: #000; /* fallback in case images load slowly */
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 100%;
  opacity: 0;
  transition: all 1s ease-in-out;
  border-radius: 14px;
}

.poster-img.active {
  left: 0;
  opacity: 1;
}

.poster-img.prev {
  left: -100%;
  opacity: 0;
}

/* Keep single posters still (Event 2) */
.rotating-poster.single img {
  position: relative;
  left: 0;
  opacity: 1;
  transition: none;
}
