/* Copied from root style.css — placed under static/css/ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Tamil:wght@400;700&display=swap');

:root {
    --primary: #4b6cb7;
    --primary-dark: #2c3d7a;
    --accent: #6c5ce7;
    --text: #1f2a3d;
    --muted: #6b7280;
    --bg: #f7f8fc;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
  }
  
  a {
    color: var(--primary);
    text-decoration: none;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1.5rem;
  padding: 0.6rem 1.5rem;
}

.top-banner {
  text-align: center;
  padding: 0.25rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--white);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0;
}
  
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
  
.brand img {
  height: 140px;
  width: auto;
  display: block;
}

.brand span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.1rem;
}
  
  .nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
  }
  
  nav {
    background: var(--white);
  justify-self: end;
  }
  
  .nav-links {
    display: flex;
    gap: 1rem;
  padding: 0;
    flex-wrap: wrap;
  }
  
.marquee {
  background: linear-gradient(90deg, rgba(75,108,183,0.12), rgba(108,92,231,0.14));
  color: var(--primary-dark);
  overflow: hidden;
  border-top: 1px solid #e6e9f0;
  border-bottom: 1px solid #e6e9f0;
}

.marquee-track {
  display: inline-block;
  padding: 0.55rem 0;
  padding-left: 50%;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-weight: 700;
  letter-spacing: 0.4px;
  min-width: 100%;
}

@keyframes marquee {
  0% { transform: translateX(50%); }
  100% { transform: translateX(-100%); }
}

  .nav-links a {
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s ease;
  }
  
  .nav-links a.active {
    color: var(--primary);
  }
  
  .nav-links a:hover {
    background: var(--primary);
    color: var(--white);
  }
  
  .hero {
    position: relative;
    padding: 2.5rem 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: var(--white);
  }
  
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.14), transparent 40%),
                radial-gradient(circle at 75% 10%, rgba(255,255,255,0.1), transparent 40%);
    pointer-events: none;
  }
  
  .hero-content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  }
  
  .hero h1 {
  margin: 0 0 1rem;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    letter-spacing: -0.5px;
  line-height: 1.12;
  }
  
  .hero p {
    max-width: 720px;
  margin: 0.4rem 0 1rem;
    font-size: 1.05rem;
    color: #e8edff;
  }

.hero-visual {
  justify-self: end;
}

.hero-visual img {
  width: 100%;
  max-width: 440px;
  /* border-radius: 18px; */
  /* box-shadow: var(--shadow); */
  display: block;
}
  
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    border: 0;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  
  .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: var(--shadow);
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
  }
  
  .btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }
  
  .section {
    padding: 3.5rem 1.5rem;
  }
  
  .section-inner {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .section h2 {
    margin: 0 0 0.25rem;
    font-size: 2rem;
    letter-spacing: -0.2px;
  }
  
  .section .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    display: inline-block;
  }
  
  .lead {
    font-size: 1.05rem;
    color: #444d5c;
    margin-top: 0.4rem;
  }
  
  .grid {
    display: grid;
    gap: 1.5rem;
  }
  
  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  
  .card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
    border: 1px solid #e6e9f0;
  }
  
  .card h3 {
    margin: 0 0 0.5rem;
  }
  
  .muted {
    color: var(--muted);
  }
  
  .list {
    padding-left: 1.1rem;
    margin: 0.4rem 0 0;
    color: #3a4456;
  }
  
  .badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(75,108,183,0.1);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.8rem;
  }
  
  .committee-card {
    text-align: center;
    padding: 1.2rem;
  }
  
  .committee-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 0.9rem;
    border: 3px solid rgba(75,108,183,0.2);
  }
  
  .event-date {
    font-weight: 700;
    color: var(--primary-dark);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .gallery-item {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #e6e9f0;
  }
  
  .gallery-item .info {
    padding: 0.9rem 1rem 1.1rem;
  }
  
  .contact-card {
    display: grid;
    gap: 0.6rem;
    align-items: start;
  }
  
  footer {
    background: #0f172a;
    color: #d9e1ff;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
  }
  
  footer a {
    color: #d9e1ff;
    font-weight: 600;
  }
  
  @media (max-width: 900px) {
  header {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.4rem;
    padding: 0.5rem 1rem;
  }
    .nav-toggle {
      display: block;
    }
  .brand img {
    height: 110px;
  }
  nav {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
    .nav-links {
      display: none;
      flex-direction: column;
      gap: 0.5rem;
    padding: 0.8rem 0;
      background: #f9fafb;
      border-top: 1px solid #e6e9f0;
    }
    .nav-links.show {
      display: flex;
    }
    .nav-links a {
      padding: 0.6rem 1rem !important;
      white-space: normal;
    }
    .hero {
      padding: 3rem 1.2rem;
    }
    .hero h1 {
      font-size: clamp(1.8rem, 3vw, 2.5rem);
    }
    .section h2 {
      font-size: 1.6rem;
    }
    .grid-2, .gallery-grid {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .grid-3 {
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .card {
      padding: 1.1rem;
    }
    .committee-card {
      padding: 1rem;
    }
    .committee-card img {
      width: 100px;
      height: 100px;
    }
  }
  
  @media (max-width: 640px) {
    header {
      grid-template-columns: auto 1fr;
      padding: 0.4rem 0.8rem;
      column-gap: 1rem;
    }
    .topbar {
      gap: 0.4rem;
    }
    .brand img {
      height: 80px;
    }
    .brand-text {
      display: none;
    }
    .card, .section, .hero {
      padding: 1.2rem;
    }
    .section {
      padding: 2.2rem 1rem;
    }
    .hero {
      padding: 2.5rem 1rem;
    }
    .hero h1 {
      font-size: clamp(1.5rem, 5vw, 2rem);
      margin-bottom: 0.8rem;
    }
    .hero p {
      font-size: 0.95rem;
    }
    .section h2 {
      font-size: 1.4rem;
      margin-bottom: 0.5rem;
    }
    .hero-content {
      gap: 1.2rem;
      grid-template-columns: 1fr;
    }
    .hero-visual {
      justify-self: center;
    }
    .hero-visual img {
      max-width: 100%;
    }
    .grid-2, .gallery-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    .grid-3 {
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 1rem;
    }
    .card {
      padding: 1rem;
    }
    .card h3 {
      font-size: 1.05rem;
      margin-bottom: 0.4rem;
    }
    .btn {
      padding: 0.6rem 0.9rem;
      font-size: 0.95rem;
    }
    .committee-card {
      padding: 0.8rem;
    }
    .committee-card img {
      width: 90px;
      height: 90px;
      margin-bottom: 0.7rem;
    }
    .committee-card h3 {
      font-size: 0.95rem;
      margin: 0.5rem 0 0.3rem;
    }
    .gallery-item .info {
      padding: 0.7rem 0.8rem 0.9rem;
    }
    .nav-links a {
      font-size: 0.95rem;
      padding: 0.5rem 0.8rem !important;
    }
    .lang-toggle {
      font-size: 0.75rem;
      padding: 0.25rem 0.4rem;
    }
  }
  
  @media (max-width: 480px) {
    header {
      grid-template-columns: auto 1fr;
      padding: 0.3rem 0.6rem;
      column-gap: 0.8rem;
    }
    .brand img {
      height: 70px;
    }
    .section {
      padding: 1.8rem 0.8rem;
    }
    .hero {
      padding: 2rem 0.8rem;
    }
    .hero h1 {
      font-size: clamp(1.3rem, 6vw, 1.8rem);
      margin-bottom: 0.6rem;
    }
    .hero p {
      font-size: 0.9rem;
      line-height: 1.5;
    }
    .section h2 {
      font-size: 1.2rem;
    }
    .eyebrow {
      font-size: 0.65rem !important;
      letter-spacing: 1px !important;
    }
    .card {
      padding: 0.9rem;
      border-radius: 12px;
    }
    .grid-2, .gallery-grid, .grid-3 {
      grid-template-columns: 1fr;
      gap: 0.9rem;
    }
    .btn {
      padding: 0.55rem 0.8rem;
      font-size: 0.9rem;
      border-radius: 10px;
    }
    .committee-card {
      padding: 0.7rem;
    }
    .committee-card img {
      width: 80px;
      height: 80px;
      margin-bottom: 0.6rem;
    }
    .nav-toggle {
      font-size: 1.3rem;
    }
    .list {
      padding-left: 1rem;
      font-size: 0.95rem;
    }
    footer {
      padding: 1.2rem 0.8rem;
      font-size: 0.9rem;
    }
  }

  /* Language toggle button */
  .lang-toggle {
    background: transparent;
    border: 1px solid rgba(75,108,183,0.12);
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
  }

  /* Header small adjustments */
  .topbar { gap: 0.6rem; }

  @media (max-width: 900px) {
    .lang-toggle { font-size: 0.8rem; padding: 0.3rem 0.5rem; }
  }

  /* Improve nav link mobile layout */
  .nav-links a { white-space: nowrap; }

  /* Tamil text styling when language is set to Tamil */
  body.lang-ta [data-ta] {
    font-family: "Noto Serif Tamil", serif;
    font-size: 1.05em;
  }

  /* Make Tamil headings bigger */
  body.lang-ta h1[data-ta],
  body.lang-ta h2[data-ta],
  body.lang-ta h3[data-ta] {
    font-size: 1.35em;
    font-weight: 700;
  }


/* ===============================
   GALLERY
================================ */

/* Force hidden elements to stay hidden */
.hidden {
  display: none !important;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Gallery cards (years + events) */
.gallery-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.gallery-item h3 {
  margin: 0;
  font-size: 1.4rem;
}

.gallery-item .muted {
  margin-top: 0.4rem;
  color: #666;
  font-size: 0.95rem;
}


/* ===============================
   SLIDESHOW MODAL
================================ */
/* ===== Modern Slideshow (for desktop) ===== */
.slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  padding: 1rem;
  transition: opacity 0.3s ease;
}

.slideshow img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Close button */
.slideshow .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: color 0.2s ease;
}
.slideshow .close:hover {
  color: #ff5555;
}

/* Side navigation buttons */
.slideshow .controls {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* prevent blocking click on image */
}

.slideshow .controls button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  pointer-events: auto; /* enable button clicks */
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}

.slideshow .controls button:hover {
  background: rgba(255,255,255,0.5);
  transform: scale(1.1);
}

/* ===== Responsive (Mobile) Slideshow Buttons ===== */
@media (max-width: 768px) {
  /* Move controls below image */
  .slideshow .controls {
    position: static;
    top: auto;
    transform: none;
    width: auto;
    margin-top: 0.5rem;
    justify-content: center;
    gap: 1rem;
  }

  .slideshow .controls button {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.3);
  }

  .slideshow img {
  width: auto;
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.7);
}

}

/* Optional: fade animation for image change */
.slideshow img {
  transition: opacity 0.3s ease-in-out;
}


/* ===== Back Button Style ===== */
.back-btn {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: bold;
  color: #333;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.back-btn:hover {
  background: #333;
  color: #fff;
}


/* Photo grid inside slideshow */
.photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.photo-grid img:hover {
  transform: scale(1.1);
}


/* ===============================
   FEATURED GALLERY SLIDER (ON HOMEPAGE)
================================ */

.featured-slider {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.featured-slider .slides {
  display: flex;
  width: 100%;
  animation: slideShow 20s infinite;
}

.featured-slider img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Auto-slide animation */
@keyframes slideShow {
  0%   { transform: translateX(0%); }
  20%  { transform: translateX(0%); }
  25%  { transform: translateX(-100%); }
  45%  { transform: translateX(-100%); }
  50%  { transform: translateX(-200%); }
  70%  { transform: translateX(-200%); }
  75%  { transform: translateX(-300%); }
  95%  { transform: translateX(-300%); }
  100% { transform: translateX(0%); }
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .featured-slider img {
    aspect-ratio: 4 / 3;
  }
}

/* ===============================
   HEADER SCROLL FADE EFFECT
================================ */

header {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Header hidden state */
header.header-hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* ===============================
   TAMIL FONT AUTO SIZE ADJUSTMENTS
================================ */

/* Increase font size when Tamil is active */
body.lang-ta .hero h1 {
  font-size: 2.5rem;   /* slightly bigger for Tamil */
}

body.lang-ta .hero p {
  font-size: 1rem;
}

/* ===============================
   DROPDOWN MENU FOR RESOURCES
================================ */

/* Dropdown container */
.nav-item {
  position: relative;
}

/* Dropdown button */
.dropdown-toggle {
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
  display: inline-block;
}

.dropdown-toggle:hover {
  background: var(--primary);
  color: var(--white);
}

/* Hidden dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-radius: 8px;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

/* Dropdown links */
.dropdown-menu a {
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: black;
  display: block;
}

.dropdown-menu a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Show on hover */
.nav-item:hover .dropdown-menu {
  display: flex;
}


/* ===============================
sri rama jayam
================================ */


.top-blessing {
  text-align: center;
  font-size: 0.9rem;
  padding: 6px 0;
  /* background: linear-gradient(90deg, rgba(75,108,183,0.12), rgba(108,92,231,0.14)); */
  background: #e8ebf4;
  color: #03249b;
  /* color: rgb(210, 180, 12); */
  border-top: 1px solid #e6e9f0;
  /* border-bottom: 1px solid #e6e9f0; */
  font-weight: 500;
}