/* ============================================
   KHAIRUN NISA MADRASATUL BANAT & ISLAMIC MISSION
   Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Noto+Naskh+Arabic:wght@400;700&family=Noto+Sans+Bengali:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1a8a3f;
  --primary-dark: #0f6d2f;
  --primary-light: #27ae60;
  --secondary: #c8a84e;
  --secondary-dark: #a8862e;
  --secondary-light: #e8c96e;
  --accent: #d4a843;
  --beige: #f5f0e8;
  --beige-dark: #e8e0d0;
  --white: #ffffff;
  --off-white: #faf8f5;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --dark-3: #0f3460;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --border: #e0dcd4;
  --shadow: 0 5px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-hover: 0 15px 50px rgba(0,0,0,0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: rgba(255,255,255,0.85);
  --glass-border: rgba(255,255,255,0.3);
  --font-en: 'Poppins', sans-serif;
  --font-bn: 'Noto Sans Bengali', sans-serif;
  --font-ar: 'Amiri', 'Noto Naskh Arabic', serif;
  --header-height: 80px;
}

[data-theme="dark"] {
  --primary: #27ae60;
  --primary-dark: #1a8a3f;
  --secondary: #e8c96e;
  --accent: #d4a843;
  --beige: #1e1e2e;
  --beige-dark: #2a2a3e;
  --white: #1a1a2e;
  --off-white: #16162a;
  --dark: #f5f0e8;
  --dark-2: #e8e0d0;
  --dark-3: #d4c8b0;
  --text: #e0dcd4;
  --text-light: #b0aca4;
  --text-lighter: #807c74;
  --border: #2a2a3e;
  --shadow: 0 5px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  --shadow-hover: 0 15px 50px rgba(0,0,0,0.5);
  --glass: rgba(30,30,46,0.9);
  --glass-border: rgba(255,255,255,0.08);
}

[dir="rtl"] {
  --font-en: 'Amiri', 'Noto Naskh Arabic', serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body[lang="bn"] { font-family: var(--font-bn); }
body[lang="ar"] { font-family: var(--font-ar); }
[dir="rtl"] { direction: rtl; text-align: right; }

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.section-padding { padding: 100px 0; }
.section-bg { background: var(--beige); }
.section-white { background: var(--white); }
.section-off-white { background: var(--off-white); }

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  position: relative;
}

.section-title h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  position: relative;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Islamic decorative divider */
.islamic-divider {
  text-align: center;
  font-size: 24px;
  color: var(--secondary);
  margin: 20px 0;
  letter-spacing: 8px;
}

/* Glassmorphism */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(26, 138, 63, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 138, 63, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(200, 168, 78, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 168, 78, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--beige);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* Cards */
.card {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--dark);
  color: var(--beige);
  font-size: 13px;
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}

.top-bar a {
  color: var(--beige);
  margin: 0 10px 0 0;
  font-size: 13px;
}

.top-bar a:hover { color: var(--secondary); }

.top-bar .contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar .contact-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.top-bar .contact-info i {
  color: var(--secondary);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-switcher .lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--beige);
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.language-switcher .lang-btn:hover,
.language-switcher .lang-btn.active {
  background: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.main-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar {
  padding: 0 15px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .brand-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.2;
}

.brand-text .brand-tagline {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  padding: 28px 16px !important;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

/* Dropdown */
.dropdown-menu {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 220px;
  margin-top: 0;
  border-top: 3px solid var(--primary);
}

.dropdown-menu .dropdown-item {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  border-radius: 8px;
  transition: var(--transition);
}

.dropdown-menu .dropdown-item:hover {
  background: var(--beige);
  color: var(--primary);
  padding-left: 22px;
}

.dropdown-toggle::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  background: var(--beige);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  transition: var(--transition);
}

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

/* Mobile */
.navbar-toggler {
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark-2) 50%, var(--dark-3) 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.5;
}

.hero-section .islamic-pattern {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path d="M50 0 L61.2 35.4 L100 38.2 L70 61.8 L80.9 100 L50 77.6 L19.1 100 L30 61.8 L0 38.2 L38.8 35.4 Z" fill="%23c8a84e"/></svg>');
  background-size: 60px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.hero-content .badge {
  display: inline-block;
  background: rgba(200, 168, 78, 0.2);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--secondary);
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-shape {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 2;
}

/* ============================================
   PRAYER TIMES
   ============================================ */
.prayer-table-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.prayer-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 18px 30px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.prayer-header i {
  margin-right: 8px;
  color: var(--secondary);
}

[dir="rtl"] .prayer-header i {
  margin-right: 0;
  margin-left: 8px;
}

.prayer-row {
  padding: 16px 30px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
}

.prayer-row:last-of-type {
  border-bottom: none;
}

.prayer-row:hover {
  background: var(--beige);
  padding-left: 35px;
}

[dir="rtl"] .prayer-row:hover {
  padding-left: 30px;
  padding-right: 35px;
}

.prayer-row .prayer-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prayer-row .prayer-name i {
  color: var(--primary);
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.prayer-row .prayer-time {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.prayer-row .prayer-status {
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 50px;
}

.prayer-row .prayer-status.active {
  background: rgba(26, 138, 63, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.prayer-row .prayer-status.upcoming {
  background: rgba(200, 168, 78, 0.1);
  color: var(--secondary-dark);
  border: 1px solid var(--secondary);
}

.prayer-row .prayer-status.friday {
  background: rgba(26, 138, 63, 0.08);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
}

.prayer-row.prayer-jumuah {
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.05), rgba(200, 168, 78, 0.1));
  border-left: 4px solid var(--secondary);
}

[dir="rtl"] .prayer-row.prayer-jumuah {
  border-left: none;
  border-right: 4px solid var(--secondary);
}

[dir="rtl"] .prayer-header .text-end {
  text-align: left !important;
}

[dir="rtl"] .prayer-row .text-end {
  text-align: left !important;
}

.prayer-footer {
  background: var(--beige);
  padding: 12px 30px;
  font-size: 13px;
  color: var(--text-light);
}

.prayer-footer i {
  color: var(--secondary);
}

/* Status text translation — hidden by default, shown via CSS */
.status-text {
  font-size: 12px;
}

/* Dark mode adjustments */
[data-theme="dark"] .prayer-table-wrapper {
  border-color: var(--border);
}

[data-theme="dark"] .prayer-row:hover {
  background: rgba(255,255,255,0.03);
}

[data-theme="dark"] .prayer-row.prayer-jumuah {
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.08), rgba(200, 168, 78, 0.03));
}

@media (max-width: 767px) {
  .prayer-header,
  .prayer-row {
    padding: 12px 16px;
  }
  .prayer-row .prayer-name {
    font-size: 14px;
  }
  .prayer-row .prayer-time {
    font-size: 15px;
  }
  .prayer-row .prayer-status {
    font-size: 11px;
    padding: 2px 10px;
  }
  .prayer-footer {
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.about-image .experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-image .experience-badge h3 {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
}

.about-image .experience-badge p {
  font-size: 12px;
  margin: 0;
  opacity: 0.9;
}

.about-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}

.about-features li i {
  color: var(--primary);
  font-size: 16px;
}

/* ============================================
   VISION MISSION
   ============================================ */
.vision-box,
.mission-box {
  padding: 40px;
  border-radius: var(--radius-lg);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.vision-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.mission-box {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
}

.vision-box .icon,
.mission-box .icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.vision-box h4,
.mission-box h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.vision-box p,
.mission-box p {
  opacity: 0.9;
  font-size: 15px;
}

/* ============================================
   PRINCIPAL MESSAGE
   ============================================ */
.principal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.principal-card .principal-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--secondary);
}

.principal-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-top: 20px;
}

.principal-card .designation {
  color: var(--secondary);
  font-weight: 500;
}

.principal-card blockquote {
  font-size: 16px;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.8;
  padding: 20px;
  border-left: 4px solid var(--primary);
  background: var(--beige);
  border-radius: 0 var(--radius) var(--radius) 0;
}

[dir="rtl"] .principal-card blockquote {
  border-left: none;
  border-right: 4px solid var(--primary);
  border-radius: var(--radius) 0 0 var(--radius);
}

/* ============================================
   COURSES SECTION
   ============================================ */
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.course-card .icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--beige), var(--beige-dark));
  color: var(--primary);
  transition: var(--transition);
}

.course-card:hover .icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.course-card h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.course-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  height: 100%;
  border-bottom: 3px solid transparent;
}

.why-card:hover {
  border-bottom-color: var(--primary);
  transform: translateY(-5px);
}

.why-card .icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 15px;
}

.why-card h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

/* ============================================
   TEACHERS SECTION
   ============================================ */
.teacher-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.teacher-card .teacher-img {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.teacher-card .teacher-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.teacher-card:hover .teacher-img img {
  transform: scale(1.05);
}

.teacher-card .teacher-social {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  transition: var(--transition);
}

.teacher-card:hover .teacher-social {
  bottom: 0;
}

.teacher-card .teacher-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}

.teacher-card .teacher-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.teacher-card .teacher-info {
  padding: 20px;
  text-align: center;
}

.teacher-card .teacher-info h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.teacher-card .teacher-info span {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 500;
}

/* ============================================
   FACILITIES
   ============================================ */
.facility-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.facility-card:hover img {
  transform: scale(1.1);
}

.facility-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  color: var(--white);
}

.facility-card .overlay .icon {
  font-size: 36px;
  color: var(--secondary);
  margin-bottom: 10px;
}

.facility-card .overlay h5 {
  font-size: 18px;
  font-weight: 600;
}

/* ============================================
   STATS COUNTER
   ============================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark-2));
  color: var(--white);
  padding: 80px 0;
}

.stats-section .stat-item {
  text-align: center;
  padding: 20px;
}

.stats-section .stat-item .icon {
  font-size: 40px;
  color: var(--secondary);
  margin-bottom: 15px;
}

.stats-section .stat-item h3 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 5px;
}

.stats-section .stat-item p {
  font-size: 15px;
  opacity: 0.8;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  margin: 15px;
}

.testimonial-card .quote-icon {
  font-size: 36px;
  color: var(--secondary);
  opacity: 0.3;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.8;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.testimonial-card .author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card .author h6 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.testimonial-card .author span {
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================
   NOTICE BOARD
   ============================================ */
.notice-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.notice-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.notice-card .date-badge {
  min-width: 60px;
  text-align: center;
  background: var(--beige);
  border-radius: var(--radius);
  padding: 10px 5px;
}

.notice-card .date-badge .day {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.notice-card .date-badge .month {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
}

.notice-card .notice-content h6 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
}

.notice-card .notice-content p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

.notice-card .notice-content .notice-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-item .gallery-overlay i {
  font-size: 40px;
  color: var(--white);
}

/* ============================================
   DONATION SECTION
   ============================================ */
.donation-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
  height: 100%;
  transition: var(--transition);
}

.donation-card.featured {
  border: 2px solid var(--secondary);
  position: relative;
}

.donation-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--white);
  padding: 4px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.donation-card .icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 20px;
}

.donation-card h5 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.donation-card .price {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
}

.donation-card .price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-light);
}

.donation-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Bank Details */
.bank-details {
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: 35px;
}

.bank-details h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 25px;
}

.bank-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.bank-details .detail-row:last-child {
  border-bottom: none;
}

.bank-details .detail-row .label {
  font-weight: 600;
  color: var(--text);
}

.bank-details .detail-row .value {
  color: var(--text-light);
  text-align: right;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  height: 100%;
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-5px);
}

.contact-info-card .icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, var(--beige), var(--beige-dark));
  color: var(--primary);
}

.contact-info-card h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.contact-info-card p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form .form-control {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
  background: var(--beige);
  color: var(--text);
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 138, 63, 0.1);
  background: var(--white);
}

.contact-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: var(--beige);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.footer-widget h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

[dir="rtl"] .footer-widget h5::after {
  left: auto;
  right: 0;
}

.footer-widget p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.8;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: var(--beige);
  opacity: 0.7;
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a:hover {
  opacity: 1;
  color: var(--secondary);
  padding-left: 5px;
}

[dir="rtl"] .footer-links li a:hover {
  padding-left: 0;
  padding-right: 5px;
}

.footer-links li a i {
  font-size: 10px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-newsletter .input-group {
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  overflow: hidden;
}

.footer-newsletter .input-group input {
  background: transparent;
  border: none;
  padding: 12px 18px;
  color: var(--white);
  font-family: inherit;
}

.footer-newsletter .input-group input::placeholder {
  color: rgba(255,255,255,0.5);
}

.footer-newsletter .input-group input:focus {
  box-shadow: none;
}

.footer-newsletter .input-group .btn {
  border-radius: 50px;
  padding: 10px 24px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.7;
}

.footer-bottom .footer-bottom-links a {
  color: var(--beige);
  opacity: 0.7;
  margin-left: 20px;
  font-size: 13px;
}

.footer-bottom .footer-bottom-links a:hover {
  opacity: 1;
  color: var(--secondary);
}

[dir="rtl"] .footer-bottom .footer-bottom-links a {
  margin-left: 0;
  margin-right: 20px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(26, 138, 63, 0.4);
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(26, 138, 63, 0.5);
  color: var(--white);
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  transform: translateX(-50%);
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item .timeline-content {
  width: 45%;
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.timeline-item .timeline-dot {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--primary);
  transform: translateX(-50%);
}

[dir="rtl"] .timeline-item .timeline-dot {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.timeline-item .year {
  display: inline-block;
  padding: 4px 16px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-item h5 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   ACCORDION / FAQ
   ============================================ */
.accordion-item {
  background: var(--white);
  border: none;
  border-radius: var(--radius) !important;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion-button {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  background: var(--white);
}

.accordion-button::after {
  background-size: 12px;
  transition: var(--transition);
}

.accordion-body {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark-2));
  padding: 120px 0 60px;
  text-align: center;
  color: var(--white);
  position: relative;
}

.page-banner h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-banner .breadcrumb {
  justify-content: center;
  background: transparent;
  margin: 0;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.page-banner .breadcrumb-item.active {
  color: var(--secondary);
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* ============================================
   GALLERY FILTER
   ============================================ */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
}

.lightbox .close-lb {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: none;
}

/* ============================================
   SOCIAL WELFARE CARDS
   ============================================ */
.welfare-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.welfare-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.welfare-card .welfare-img {
  height: 200px;
  overflow: hidden;
}

.welfare-card .welfare-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.welfare-card:hover .welfare-img img {
  transform: scale(1.05);
}

.welfare-card .welfare-info {
  padding: 25px;
}

.welfare-card .welfare-info .icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 15px;
}

.welfare-card .welfare-info h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.welfare-card .welfare-info p {
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   ADMISSION PAGE
   ============================================ */
.process-step {
  text-align: center;
  padding: 30px;
  position: relative;
}

.process-step .step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.process-step h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   TEAM GRID
   ============================================ */
.team-member {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--beige);
}

.team-member h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.team-member .role {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 10px;
}

.team-member p {
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================
   VOLUNTEER SECTION
   ============================================ */
.volunteer-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.benefit-item {
  text-align: center;
  padding: 25px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.benefit-item i {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 15px;
}

.benefit-item h6 {
  font-size: 15px;
  color: var(--dark);
  font-weight: 600;
}

/* ============================================
   DONATE PAGE SPECIFIC
   ============================================ */
.donation-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark-2));
  padding: 120px 0 80px;
  text-align: center;
  color: var(--white);
}

.razorpay-btn {
  background: #3399ff;
  color: white;
  padding: 16px 40px;
  font-size: 18px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.razorpay-btn:hover {
  background: #1a8cff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 153, 255, 0.4);
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px dashed var(--border);
  color: var(--text-lighter);
  font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
  .hero-content h1 { font-size: 42px; }
}

@media (max-width: 991px) {
  .navbar-nav .nav-link {
    padding: 12px 16px !important;
  }
  .navbar-nav .nav-link::after { display: none; }
  .hero-content h1 { font-size: 36px; }
  .section-padding { padding: 70px 0; }
  .section-title h2 { font-size: 30px; }
  .timeline::before { left: 20px; }
  .timeline-item .timeline-content { width: calc(100% - 50px); margin-left: 50px !important; }
  .timeline-item .timeline-dot { left: 20px; }
}

@media (max-width: 767px) {
  .top-bar .contact-info { font-size: 12px; gap: 10px; flex-wrap: wrap; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 16px; }
  .section-title h2 { font-size: 26px; }
  .section-padding { padding: 50px 0; }
  .principal-card { padding: 25px; }
  .principal-card .principal-img { width: 150px; height: 150px; }
  .page-banner h1 { font-size: 30px; }
  .page-banner { padding: 100px 0 40px; }
  .stats-section .stat-item h3 { font-size: 32px; }
  .about-features { grid-template-columns: 1fr; }
  .bank-details .detail-row { flex-direction: column; gap: 5px; }
  .bank-details .detail-row .value { text-align: left; }
  .footer-bottom .footer-bottom-links { margin-top: 10px; }
  .footer-bottom .footer-bottom-links a { margin-left: 0; margin-right: 15px; }
}

@media (max-width: 575px) {
  .hero-content h1 { font-size: 24px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .navbar-brand img { height: 40px; }
  .brand-text .brand-name { font-size: 12px; }
  .brand-text .brand-tagline { display: none; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .top-bar, .main-header, .back-to-top, .floating-whatsapp, .footer { display: none; }
}
