/* ============================================================
   BANGABASI MITHILA SAMAJ SAMITY - MAIN STYLESHEET
   Theme: Madhubani-inspired, Cultural, Traditional+Modern
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Tiro+Devanagari+Hindi&family=Noto+Sans+Bengali:wght@400;600&family=Lato:wght@300;400;700&display=swap');

:root {
  --maroon: #7B1C2E;
  --maroon-dark: #5a1220;
  --maroon-light: #a02540;
  --gold: #C9922A;
  --gold-light: #E8B84B;
  --gold-pale: #FFF3D6;
  --earth: #8B5E3C;
  --cream: #FDF6E3;
  --dark: #2C1810;
  --text: #3a2a1a;
  --muted: #7a6a5a;
  --white: #FFFFFF;
  --border: #e0c897;
  --shadow: 0 4px 24px rgba(123,28,46,0.10);
  --font-display: 'Playfair Display', 'Tiro Devanagari Hindi', serif;
  --font-body: 'Lato', 'Noto Sans Bengali', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

/* ---- MADHUBANI PATTERN BACKGROUND ---- */
.madhubani-bg {
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,146,42,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(123,28,46,0.06) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9922A' fill-opacity='0.04'%3E%3Cpath d='M40 0C17.9 0 0 17.9 0 40s17.9 40 40 40 40-17.9 40-40S62.1 0 40 0zm0 72C22.4 72 8 57.6 8 40S22.4 8 40 8s32 14.4 32 32-14.4 32-32 32z'/%3E%3Cpath d='M40 16c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm0 40c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---- TOPBAR ---- */
#topbar {
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 5px 0;
}
#topbar a { color: var(--gold-light); text-decoration: none; }
#topbar .social-links a { margin-left: 10px; font-size: 15px; }

/* ---- HEADER ---- */
#header {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  padding: 12px 0;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
#header .logo-text {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
#header .logo-text small {
  display: block;
  font-size: 12px;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-weight: 300;
}
#header .logo img { height: 55px; }

/* ---- NAVBAR ---- */
.navbar-main {
  background: var(--maroon-dark);
  border-top: 1px solid rgba(201,146,42,0.3);
}
.navbar-main .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px !important;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--gold-light) !important;
  background: rgba(201,146,42,0.15);
  border-radius: 4px;
}
.navbar-main .dropdown-menu {
  background: var(--maroon-dark);
  border: 1px solid var(--gold);
  border-radius: 0 0 8px 8px;
}
.navbar-main .dropdown-item {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}
.navbar-main .dropdown-item:hover {
  background: rgba(201,146,42,0.2);
  color: var(--gold-light);
}

/* ---- HERO BANNER ---- */
#hero {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 40%, var(--earth) 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23C9922A' stroke-width='0.5' opacity='0.3'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23C9922A' stroke-width='0.3' opacity='0.2'/%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%23E8B84B' stroke-width='0.3' opacity='0.2'/%3E%3Cpath d='M50 10 L90 50 L50 90 L10 50 Z' fill='none' stroke='%23C9922A' stroke-width='0.4' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.4;
}
#hero .hero-content { position: relative; z-index: 2; }
#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  font-weight: 900;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  line-height: 1.2;
  margin-bottom: 10px;
}
#hero .subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--gold-light);
  margin-bottom: 20px;
  letter-spacing: 1px;
}
#hero .ornament {
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 8px;
  display: block;
  margin-bottom: 12px;
}

/* ---- SECTION TITLES ---- */
.section-title {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 8px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 30px;
}
.ornament-line {
  color: var(--gold);
  letter-spacing: 6px;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

/* ---- CARDS ---- */
.card-cultural {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card-cultural:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(123,28,46,0.18);
}
.card-cultural .card-header-band {
  background: linear-gradient(90deg, var(--maroon), var(--maroon-light));
  color: var(--white);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- GOVERNING BODY CARDS ---- */
.member-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  padding: 24px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.member-card:hover { transform: translateY(-4px); }
.member-card .photo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--gold);
}
.member-card .photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-card .photo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 28px;
  color: white;
}
.member-card .name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--maroon);
  font-size: 16px;
}
.member-card .designation {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}
.member-card .tenure { font-size: 12px; color: var(--muted); }

/* ---- EVENTS ---- */
.event-card {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.event-card:hover { transform: translateX(4px); }
.event-card .event-date {
  background: var(--maroon);
  color: var(--white);
  border-radius: 6px;
  padding: 8px 12px;
  text-align: center;
  min-width: 60px;
}
.event-card .event-date .day { font-size: 22px; font-weight: 700; line-height: 1; }
.event-card .event-date .month { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.event-card .event-title { font-family: var(--font-display); font-weight: 700; color: var(--maroon); }
.event-card .event-venue { font-size: 13px; color: var(--muted); }

/* ---- ANNOUNCEMENT TICKER ---- */
.announcement-ticker {
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.announcement-ticker .badge-new {
  background: var(--maroon);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 8px;
}

/* ---- DONATION SECTION ---- */
.donation-box {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border-radius: 16px;
  padding: 36px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.donation-box::before {
  content: '🙏';
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 60px;
  opacity: 0.1;
}
.donation-box .qr-box {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.donation-box .qr-box img { max-width: 120px; }
.donation-box .upi-id {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: monospace;
  font-size: 16px;
  color: var(--gold-light);
  letter-spacing: 1px;
}

/* ---- BUTTONS ---- */
.btn-primary-cultural {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color: var(--white);
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary-cultural:hover {
  background: linear-gradient(135deg, var(--maroon-light), var(--maroon));
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123,28,46,0.35);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,146,42,0.4);
  color: var(--dark);
}

/* ---- FORMS ---- */
.form-cultural .form-control,
.form-cultural .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-cultural .form-control:focus,
.form-cultural .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,146,42,0.15);
  outline: none;
}
.form-cultural label {
  font-size: 13px;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 4px;
}
.captcha-box {
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 2px;
}

/* ---- GALLERY ---- */
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(123,28,46,0.85));
  color: white;
  padding: 12px 10px 8px;
  font-size: 12px;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.gallery-item:hover .overlay { transform: translateY(0); }

/* ---- MEMBERS TABLE ---- */
.members-table th {
  background: var(--maroon);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.members-table th:hover { background: var(--maroon-light); }
.members-table tr:hover { background: var(--gold-pale); }

/* ---- FOOTER ---- */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 0;
}
#footer .footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-light);
  margin-bottom: 12px;
}
#footer h6 {
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,146,42,0.3);
}
#footer a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; }
#footer a:hover { color: var(--gold-light); }
#footer .footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 16px 0;
  margin-top: 32px;
  font-size: 13px;
  text-align: center;
}
#footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(201,146,42,0.2);
  border-radius: 50%;
  color: var(--gold-light) !important;
  margin-right: 8px;
  font-size: 16px;
  transition: background 0.2s;
}
#footer .social-icon:hover { background: var(--gold); color: var(--dark) !important; }

/* ---- ALERT / FLASH ---- */
.flash-alert {
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 16px;
  border-left: 4px solid;
}
.flash-success { background: #d4edda; border-color: #28a745; color: #155724; }
.flash-error { background: #f8d7da; border-color: #dc3545; color: #721c24; }
.flash-info { background: var(--gold-pale); border-color: var(--gold); color: var(--maroon); }

/* ---- PAGINATION ---- */
.pagination .page-link {
  color: var(--maroon);
  border-color: var(--border);
}
.pagination .page-item.active .page-link {
  background: var(--maroon);
  border-color: var(--maroon);
}

/* ---- LANGUAGE SWITCHER ---- */
.lang-switcher select {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
}

/* ---- STATUS BADGES ---- */
.badge-approved { background: #28a745; color: white; }
.badge-pending { background: var(--gold); color: var(--dark); }
.badge-rejected { background: #dc3545; color: white; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  #hero { min-height: 320px; }
  #hero h1 { font-size: 1.6rem; }
  .donation-box { padding: 24px 18px; }
  .member-card { margin-bottom: 16px; }
}

/* ---- PRINT ---- */
@media print {
  #header, #footer, .navbar-main, #topbar { display: none; }
}
