/* =================================================
   IMPORT GOOGLE FONTS
================================================= */
@import url('fonts.css');

/* =================================================
   RESET & BASE STYLES
================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-en-body);
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Colors - Updated to use blue (#15b8e0) */
  --bg: #ffffff;
  --text: #111111;
  --section: #f9f9f9;
  --primary: #15b8e0;
  --secondary: #15b8e0;
  --accent: #0ea5e9;
  --soft-gray: #f3f4f6;
  --text-gray: #6b7280;

  /* Fonts - Enhanced for both English and Bangla */
  --font-en: 'Poppins', 'Montserrat', sans-serif;
  --font-en-body: 'DM Sans', 'Montserrat', sans-serif;
  --font-bn-title: "Anek Bangla", "Galada", "Hind Siliguri", sans-serif;
  --font-bn: "Noto Sans Bengali", "Hind Siliguri", "Tiro Bangla", sans-serif;
  --font-logo: 'Kaushan Script', 'Dancing Script', cursive;

  /* Sizes */
  --hero-h1: clamp(4.5rem, 10vw + 1rem, 5.625rem);
  --hero-h1-sm: clamp(2.8rem, 8vw + 0.5rem, 3.75rem);

  /* Spacing & transitions */
  --content-pad: clamp(1.25rem, 5vw, 8%);
  --section-pad: clamp(4rem, 10vw, 8rem);
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s ease;
}

/* Dark mode */
body.dark {
  --bg: #0f172a;
  --text: #e5e7eb;
  --section: #020617;
  --primary: #15b8e0;
  --secondary: #15b8e0;
  --accent: #0ea5e9;
  --soft-gray: #1e293b;
  --text-gray: #94a3b8;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition-fast), color var(--transition-fast);
  line-height: 1.6;
}

/* =================================================
   SECTION HEADER (Reusable)
================================================= */
.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-family: var(--font-logo);
  font-size: clamp(2.5rem, 6vw, 3.125rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(16px, 3vw, 18px);
  color: var(--text-gray);
  line-height: 1.7;
}

body[data-lang="bn"] .section-header h2 {
  font-family: var(--font-bn-title);
}

body[data-lang="bn"] .section-subtitle {
  font-family: var(--font-bn);
  color: var(--text) !important;
}

/* =================================================
   HERO SECTION
================================================= */
.home {
  position: relative;
  min-height: 100vh;
  height: auto;
  overflow: hidden;
  z-index: 10;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: -5%;
  background: url('../Images/homeback.png') center / cover no-repeat;
  animation: zoomHero 26s ease-in-out infinite alternate;
  z-index: 1;
}

/* Responsive hero background - will be overridden by inline styles if media assets exist */
@media (max-width: 768px) {
  .hero-bg {
    background-image: url('../Images/homeback.png') !important;
  }
}

@keyframes zoomHero {
  from { transform: scale(1.00); }
  to   { transform: scale(1.14); }
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21, 184, 224, 0.4), rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 800px;
  padding: 0 var(--content-pad);
  color: #ffffff;
}

.hero-content h1 {
  font-family: var(--font-logo);
  font-size: var(--hero-h1);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-tagline {
  font-size: clamp(18px, 4vw, 22px);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease 0.2s both;
  max-width: 600px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body[data-lang="bn"] .hero-content h1 {
  font-family: var(--font-bn-title);
}

body[data-lang="bn"] .hero-tagline {
  font-family: var(--font-bn);
}

.hero-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: clamp(16px, 3.5vw, 22px) clamp(45px, 8vw, 75px);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: clamp(16px, 3.5vw, 18px);
  letter-spacing: 1.5px;
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(21, 184, 224, 0.3);
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scale(0);
  border-radius: 50px;
  z-index: -1;
  transition: transform 0.4s ease;
}

.hero-btn:hover {
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(21, 184, 224, 0.4);
}

.hero-btn:hover::before {
  transform: scale(1);
}

body[data-lang="bn"] .hero-btn {
  font-family: var(--font-bn);
}

/* =================================================
   OUR APPROACH SECTION
================================================= */
.our-approach {
  position: relative;
  padding: var(--section-pad) var(--content-pad);
  background: var(--section);
  z-index: 1;
}

.approach-cards-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.approach-cards {
  display: flex;
  gap: clamp(2rem, 4vw, 2.5rem);
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.approach-cards::-webkit-scrollbar {
  display: none;
}

.approach-cards {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.approach-card {
  background: #fff;
  padding: clamp(2rem, 4vw, 2.5rem);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(21, 184, 224, 0.1);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  flex: 0 0 calc(33.333% - 2rem);
  min-width: 280px;
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .approach-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .approach-card {
    flex: 0 0 100%;
  }
  .approach-cards-wrapper {
    padding: 0 1rem;
  }
}

.approach-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
}

.approach-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(21, 184, 224, 0.2);
}

.approach-card:hover::before {
  transform: scaleX(1);
}

.approach-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(21, 184, 224, 0.1), rgba(14, 165, 233, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth);
}

.approach-card:hover .approach-icon {
  transform: scale(1.1) rotate(5deg);
}

.approach-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.approach-card h3 {
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.approach-card p {
  font-size: clamp(15px, 2.5vw, 16px);
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.approach-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(15px, 2.5vw, 16px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.approach-link:hover {
  gap: 1rem;
  color: var(--accent);
}

body[data-lang="bn"] .approach-card h3 {
  font-family: var(--font-bn-title);
}

body[data-lang="bn"] .approach-card p,
body[data-lang="bn"] .approach-link {
  font-family: var(--font-bn);
}

body[data-lang="bn"] .approach-card p {
  color: var(--text) !important;
}

/* Approach Navigation Arrows - Hidden */
.approach-nav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.approach-cards-wrapper {
  position: relative;
}

.approach-nav-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(21, 184, 224, 0.3);
  pointer-events: auto;
  position: absolute;
}

.approach-nav-btn:first-child {
  left: -25px;
}

.approach-nav-btn:last-child {
  right: -25px;
}

@media (max-width: 768px) {
  .approach-nav-btn:first-child {
    left: 10px;
  }
  
  .approach-nav-btn:last-child {
    right: 10px;
  }
}

.approach-nav-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(21, 184, 224, 0.4);
}

.approach-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.approach-nav-btn:disabled:hover {
  transform: none;
}

/* =================================================
   ABOUT SECTION
================================================= */
.about {
  padding: var(--section-pad) var(--content-pad);
  background: var(--bg);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: clamp(3rem, 6vw, 4rem);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

.about-card {
  background: linear-gradient(135deg, #fff, var(--soft-gray));
  padding: clamp(2rem, 4vw, 2.5rem);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  height: auto;
  min-height: 300px;
  grid-column: span 1;
  overflow: hidden;
}

@media (min-width: 768px) {
  .about-card.expanded {
    grid-column: span 2;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(21, 184, 224, 0.2);
    border-color: var(--primary);
  }
}

@media (max-width: 767px) {
  .about-card.expanded {
    grid-column: span 1;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(21, 184, 224, 0.2);
    border-color: var(--primary);
  }
}

.about-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: none;
  transform-style: flat;
}

.about-card-front,
.about-card-back {
  position: relative;
  width: 100%;
  height: auto;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.about-card-back {
  display: none;
  transform: none;
}

.about-card.expanded .about-card-back {
  display: block;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(21, 184, 224, 0.2);
}

.about-card.expanded .about-card-front p {
  display: none;
}

.about-card:hover {
  box-shadow: 0 15px 35px rgba(21, 184, 224, 0.15);
  border-color: var(--primary);
}

.about-card-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform var(--transition-smooth);
}

.about-card:hover .about-card-icon {
  transform: scale(1.2) rotate(10deg);
}

.about-card h3 {
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-card p {
  font-size: clamp(15px, 2.5vw, 16px);
  color: var(--text-gray);
  line-height: 1.7;
}

.about-card-preview {
  display: block;
}

.about-card.expanded .about-card-preview {
  display: none;
}

.about-history {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(21, 184, 224, 0.05), rgba(14, 165, 233, 0.05));
  border-radius: 20px;
  border-left: 4px solid var(--primary);
}

.about-history p {
  font-size: clamp(16px, 3vw, 18px);
  line-height: 1.8;
  color: var(--text);
}

body[data-lang="bn"] .about-card h3 {
  font-family: var(--font-bn-title);
}

body[data-lang="bn"] .about-card p {
  color: var(--text) !important;
}

body[data-lang="bn"] .about-card p,
body[data-lang="bn"] .about-history p {
  font-family: var(--font-bn);
}

/* =================================================
   IMPACT / STATISTICS SECTION
================================================= */
.impact {
  padding: var(--section-pad) var(--content-pad);
  background: linear-gradient(135deg, var(--soft-gray), #fff);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.impact-box {
  background: #fff;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.impact-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(21, 184, 224, 0.05), rgba(14, 165, 233, 0.05));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.impact-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(21, 184, 224, 0.2);
}

.impact-box:hover::before {
  opacity: 1;
}

.impact-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-smooth);
}

.impact-box:hover .impact-icon {
  transform: scale(1.2) rotate(10deg);
}

.impact-box h3 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  display: inline-block;
}

.counter-suffix {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.impact-box p {
  font-size: clamp(16px, 3vw, 18px);
  color: var(--text-gray);
  font-weight: 600;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

body[data-lang="bn"] .impact-box p {
  font-family: var(--font-bn);
  color: var(--text) !important;
}

/* =================================================
   PROJECTS / PROGRAMS SECTION
================================================= */
.projects {
  padding: var(--section-pad) var(--content-pad);
  background: var(--bg);
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 4vw, 2.5rem);
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(21, 184, 224, 0.2);
}

.project-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-card-image img {
  transform: scale(1.1);
}

.project-card-content {
  padding: clamp(2rem, 4vw, 2.5rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-icon {
  transform: scale(1.2) rotate(10deg);
}

.project-card-content h3 {
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.project-card-content p {
  font-size: clamp(15px, 2.5vw, 16px);
  color: var(--text-gray);
  line-height: 1.7;
  flex: 1;
}

body[data-lang="bn"] .project-card-content h3 {
  font-family: var(--font-bn-title);
}

body[data-lang="bn"] .project-card-content p {
  font-family: var(--font-bn);
  color: var(--text) !important;
}

/* =================================================
   CONTACT / MESSAGE FORM
================================================= */
.message-section {
  padding: var(--section-pad) var(--content-pad);
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.message-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.message-left h2 {
  font-family: var(--font-logo);
  font-size: clamp(2.5rem, 6vw, 3rem);
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.message-left p {
  font-size: clamp(16px, 3vw, 18px);
  line-height: 1.8;
  color: var(--text-gray);
}

.message-form {
  background: #ffffff;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: clamp(14px, 3vw, 16px) clamp(16px, 3.5vw, 20px);
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  font-size: clamp(15px, 3vw, 16px);
  transition: all var(--transition-fast);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en-body) !important;
  width: 100%;
}

/* Bangla font for form inputs */
body[data-lang="bn"] .form-group input,
body[data-lang="bn"] .form-group select,
body[data-lang="bn"] .form-group textarea {
  font-family: var(--font-bn) !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(21, 184, 224, 0.1);
}

.message-form textarea {
  resize: none !important;
  min-height: 140px;
}

/* Hide textarea resize handle */
.message-form textarea::-webkit-resizer {
  display: none;
}

.message-btn {
  width: 100%;
  padding: clamp(16px, 3.5vw, 20px);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: clamp(16px, 3.5vw, 18px);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 20px rgba(21, 184, 224, 0.3);
}

.message-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(21, 184, 224, 0.4);
}

.message-btn:active {
  transform: translateY(-1px);
}

body[data-lang="bn"] .message-left h2 {
  font-family: var(--font-bn-title);
}

body[data-lang="bn"] .message-left p,
body[data-lang="bn"] .form-group label,
body[data-lang="bn"] .message-btn {
  font-family: var(--font-bn);
}

body[data-lang="bn"] .message-left p {
  color: var(--text) !important;
}

/* =================================================
   FOOTER
================================================= */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 5rem 0 2rem;
  font-size: 15px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2.5rem, 6vw, 4rem);
  padding: 0 var(--content-pad) 3rem;
}

.footer-logo {
  width: 88px;
  margin-bottom: 1.2rem;
}

.footer-about p {
  line-height: 1.7;
  opacity: 0.9;
  max-width: 420px;
}

.footer-col h4 {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  color: #fff;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #cbd5f5;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.2rem var(--content-pad);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.85;
}

/* =================================================
   BANGLA FONT OVERRIDES
================================================= */
body[data-lang="bn"] :is(
  h1, h2, h3, h4, .hero-content h1, .message-left h2, .footer-col h4
) {
  font-family: var(--font-bn-title) !important;
}

body[data-lang="bn"] :is(
  p, li, span, a, button, input, textarea, select, label, option,
  .message-left p, .footer-about p, .hero-tagline
) {
  font-family: var(--font-bn) !important;
}

/* Ensure all input fields use proper fonts */
body[data-lang="bn"] input[type="text"],
body[data-lang="bn"] input[type="email"],
body[data-lang="bn"] input[type="tel"],
body[data-lang="bn"] input[type="number"],
body[data-lang="bn"] input[type="password"],
body[data-lang="bn"] input[type="date"],
body[data-lang="bn"] input[type="file"],
body[data-lang="bn"] textarea,
body[data-lang="bn"] select,
body[data-lang="bn"] option {
  font-family: var(--font-bn) !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="file"],
textarea,
select,
option {
  font-family: var(--font-en-body) !important;
}

/* =================================================
   DARK MODE ADJUSTMENTS
================================================= */
body.dark .impact {
  background: linear-gradient(135deg, #0f172a, #020617);
}

body.dark .impact-box {
  background: #1f293b;
  color: #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

body.dark .message-section {
  background: linear-gradient(135deg, #0f172a, #020617);
}

body.dark .message-form {
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body.dark .message-form input,
body.dark .message-form select,
body.dark .message-form textarea {
  background: #111827;
  border-color: #4b5563;
  color: #e5e7eb;
}

body.dark .project-card {
  background: #1e293b;
  color: #e5e7eb;
}

body.dark .approach-card {
  background: #1e293b;
  color: #e5e7eb;
  box-shadow: 0 4px 15px rgba(21, 184, 224, 0.15);
}

body.dark .approach-card:hover {
  box-shadow: 0 8px 25px rgba(21, 184, 224, 0.25);
}

body.dark .about-card {
  background: #1f293b;
  color: #e5e7eb;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

body.dark .about-history {
  background: linear-gradient(135deg, rgba(21, 184, 224, 0.1), rgba(14, 165, 233, 0.1));
  border-left-color: var(--primary);
}

body.dark .section-subtitle,
body.dark .about-card p,
body.dark .approach-card p,
body.dark .project-card-content p {
  color: #cbd5e1;
}

/* =================================================
   RESPONSIVE BREAKPOINTS
================================================= */
@media (max-width: 1100px) {
  .message-wrapper {
    grid-template-columns: 1fr;
  }

  .message-left {
    text-align: center;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: var(--hero-h1-sm);
  }

  .hero-btn {
    padding: clamp(14px, 3vw, 18px) clamp(35px, 7vw, 55px);
  }

  .approach-cards,
  .about-cards,
  .impact-grid,
  .project-cards {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: clamp(3rem, 8vw, 5rem);
  }

  .hero-tagline {
    font-size: 16px;
  }
}

/* =================================================
   RESPONSIVE TABLES (FRONTEND)
================================================= */
@media screen and (max-width: 768px) {
  .responsive-table {
    width: 100%;
    border-collapse: collapse;
    display: block;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody,
  .responsive-table tr {
    display: block;
    width: 100%;
  }

  .responsive-table tr {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #fff;
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
  }

  .responsive-table td:before {
    content: attr(data-label);
    flex: 1 1 50%;
    position: static;
    padding: 0;
    text-align: left;
    font-weight: 600;
    color: #374151;
  }

  .responsive-table td > * {
    margin-left: auto;
  }

  .responsive-table td:last-child {
    border-bottom: 0;
  }
}

/* =================================================
   ANIMATIONS & UTILITIES
================================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

/* Smooth scroll for anchor links */
html {
  scroll-padding-top: 80px;
}

/* =================================================
   BANGLA TEXT COLOR OVERRIDE
   Ensure all Bangla text is black instead of gray
================================================= */
body[data-lang="bn"] p,
body[data-lang="bn"] span,
body[data-lang="bn"] div,
body[data-lang="bn"] li,
body[data-lang="bn"] td,
body[data-lang="bn"] th,
body[data-lang="bn"] label {
  color: var(--text) !important;
}
