/* ==========================================================================
   BATANAGAR RIVERSIDE CULTURAL AND WELFARE ASSOCIATION (BRCAWA)
   Official Master Design System & Custom Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Bengali:wght@300;400;500;600;700&family=Noto+Serif+Bengali:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
  --primary-green: #08783F;
  --forest-green: #075E35;
  --leaf-green: #16A34A;
  --river-blue: #1479C9;
  --sky-blue: #3BA7E8;
  --warm-yellow: #F5B335;
  --terracotta: #C96B3B;
  --bengal-red: #C62828;
  --magenta-accent: #D81B60;
  --cream-bg: #FFFDF5;
  --pure-white: #FFFFFF;
  --dark-text: #17221B;
  --muted-text: #4B5563;
  --light-border: #E5E7EB;

  --font-heading: 'Playfair Display', 'Noto Serif Bengali', serif;
  --font-body: 'Inter', 'Noto Sans Bengali', sans-serif;
  --font-bengali-heading: 'Noto Serif Bengali', serif;
  --font-bengali-body: 'Noto Sans Bengali', sans-serif;
}

/* Global Reset & Core Styling */
body {
  font-family: var(--font-body);
  background-color: var(--cream-bg);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-heading);
  color: var(--forest-green);
  font-weight: 700;
}

a {
  color: var(--river-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-green);
}

/* Dynamic Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #075E35 0%, #1479C9 50%, #08783F 100%);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.announcement-bar a {
  color: #FFE082;
  text-decoration: underline;
}

/* Responsive Premium Header */
.brcawa-navbar {
  background: rgba(255, 253, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(8, 120, 63, 0.15);
  transition: all 0.3s ease-in-out;
}

.brcawa-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding-top: 6px;
  padding-bottom: 6px;
}

.navbar-brand-logo {
  height: 58px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand-logo:hover {
  transform: scale(1.03);
}

.nav-link {
  font-weight: 600;
  color: var(--forest-green) !important;
  font-size: 0.98rem;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--river-blue) !important;
  background-color: rgba(20, 121, 201, 0.08);
}

.btn-brcawa-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--forest-green) 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 14px rgba(8, 120, 63, 0.25);
  transition: all 0.3s ease;
}

.btn-brcawa-primary:hover {
  background: linear-gradient(135deg, var(--river-blue) 0%, var(--primary-green) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 121, 201, 0.35);
}

.btn-brcawa-outline {
  border: 2px solid var(--primary-green);
  color: var(--primary-green) !important;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-brcawa-outline:hover {
  background: var(--primary-green);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.lang-switch-btn {
  background: rgba(20, 121, 201, 0.1);
  color: var(--river-blue);
  font-weight: 700;
  border: 1px solid var(--river-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.lang-switch-btn:hover {
  background: var(--river-blue);
  color: #FFF;
}

/* Homepage Full-Bleed Hero Carousel */
.hero-carousel-section {
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary-green);
}

.hero-slide-item {
  position: relative;
  min-height: 750px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 70px;
  padding-top: 140px;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  /* Green tint removed - Natural dark gradient overlay at bottom for crisp text readability */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.05) 75%);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

.hero-carousel-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
}

.hero-carousel-subtitle {
  font-size: 1.35rem;
  color: #FFE082;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
}

.hero-carousel-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 680px;
  margin-bottom: 22px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-badge {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFE082;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2.9rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.45rem;
  color: #FFE082;
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  line-height: 1.6;
}

.hero-img-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  border: 4px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

.hero-img-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-img-frame:hover img {
  transform: scale(1.04);
}

/* Cards & Section Styling */
.section-title-wrap {
  position: relative;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--forest-green);
  font-weight: 800;
}

.section-subtitle {
  color: var(--river-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.88rem;
}

.brcawa-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(8, 120, 63, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  padding: 28px;
  transition: all 0.35s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.brcawa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(8, 120, 63, 0.14);
  border-color: var(--primary-green);
}

.card-icon-box {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: rgba(8, 120, 63, 0.12);
  color: var(--primary-green) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.card-icon-box i {
  color: var(--primary-green) !important;
  font-size: 1.75rem;
  line-height: 1;
  display: inline-block;
}

.brcawa-card:hover .card-icon-box {
  background: var(--primary-green) !important;
  color: #FFFFFF !important;
}

.brcawa-card:hover .card-icon-box i {
  color: #FFFFFF !important;
}

.activity-badge-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--warm-yellow);
  line-height: 1;
}

/* Environment Section */
.env-section {
  background: linear-gradient(135deg, #075E35 0%, #08783F 100%);
  color: #FFFFFF;
  padding: 80px 0;
  position: relative;
}

.env-section h2, .env-section p {
  color: #FFFFFF;
}

.env-photo-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.env-photo-grid img:hover {
  transform: scale(1.05);
  border-color: #FFFFFF;
}

/* Gallery Masonry & Lightbox */
.gallery-filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  margin: 4px;
  transition: all 0.25s ease;
}

.gallery-filter-btn.active, .gallery-filter-btn:hover {
  background: var(--primary-green);
  color: #FFFFFF;
}

.gallery-item-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  cursor: pointer;
}

.gallery-item-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 94, 53, 0.9) 0%, rgba(0,0,0,0.1) 70%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #FFFFFF;
  transition: opacity 0.35s ease;
}

.gallery-item-card:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #FFF;
  font-size: 2.5rem;
  cursor: pointer;
}

/* Social Media Section */
.social-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(8, 120, 63, 0.12);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.social-icon-fb {
  color: #1877F2;
  font-size: 3rem;
}

.social-icon-insta {
  color: #E4405F;
  font-size: 3rem;
}

/* Footer Styling */
.brcawa-footer {
  background: #09170E;
  color: #E2E8F0;
  padding: 70px 0 30px 0;
  border-top: 4px solid var(--primary-green);
}

.brcawa-footer h5 {
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-link {
  color: #CBD5E1;
  display: block;
  margin-bottom: 10px;
  transition: color 0.25s ease;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: #FFE082;
}

.brcawa-footer .text-muted {
  color: #CBD5E1 !important;
}

.brcawa-footer a.text-muted {
  color: #94A3B8 !important;
  transition: color 0.2s ease;
}

.brcawa-footer a.text-muted:hover {
  color: #FFE082 !important;
}

.footer-contact-list li {
  color: #E2E8F0 !important;
  font-size: 0.95rem;
}

.footer-tagline {
  color: var(--warm-yellow);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
}

/* Responsive Tweaks */
@media (max-width: 991px) {
  .hero-slide-item {
    min-height: 480px;
    padding-top: 70px;
    padding-bottom: 45px;
  }
  .hero-carousel-title { font-size: 2.0rem; }
  .hero-carousel-subtitle { font-size: 1.15rem; }
  .hero-carousel-desc { font-size: 0.95rem; }
  .hero-img-frame img { height: 320px; }
  .section-title { font-size: 1.8rem; }
}

@media (max-width: 575px) {
  .hero-slide-item {
    min-height: 430px;
    padding-top: 50px;
    padding-bottom: 22px;
  }
  .hero-carousel-title {
    font-size: 1.12rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }
  .hero-carousel-subtitle {
    font-size: 0.80rem !important;
    margin-bottom: 4px !important;
  }
  .hero-carousel-desc {
    font-size: 0.74rem !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-badge {
    font-size: 0.64rem !important;
    padding: 2px 8px !important;
    margin-bottom: 4px !important;
  }
  .hero-slide-content .btn {
    padding: 4px 12px !important;
    font-size: 0.75rem !important;
  }
  .carousel-indicators {
    margin-bottom: 4px !important;
  }
  .navbar-brand-logo { height: 44px; }

  /* 2-Column Side-by-Side Mobile Card Sizing */
  .brcawa-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }
  .card-icon-box {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.25rem !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
  }
  .card-icon-box i {
    font-size: 1.25rem !important;
  }
  .brcawa-card h5 {
    font-size: 0.92rem !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
  }
  .brcawa-card p {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0 !important;
  }
}
