:root {
  --primary: #651e1a;
  --secondary: #f4a460;
  --light: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.07);
}
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.header {
  background: var(--light);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  height: 52px;
  width: auto;
}
nav {
  position: relative;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
}
.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.nav-list li {
  position: relative;
}
.nav-list > li > a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-list > li > a:hover,
.nav-list > li > a:focus {
  background: var(--secondary);
  color: var(--light);
}
.has-submenu > a i {
  margin-left: 5px;
  font-size: 0.9em;
}
.submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 110%;
  background: var(--light);
  box-shadow: var(--shadow);
  min-width: 210px;
  border-radius: 5px;
  z-index: 10;
  padding: 0.5rem 0;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  display: block;
}
.submenu li {
  position: relative;
}
.submenu a {
  display: block;
  padding: 10px 22px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  border-radius: 3px;
  transition: background 0.2s;
}
.submenu a:hover,
.submenu a:focus {
  background: var(--secondary);
  color: var(--light);
}
.submenu-right {
  left: 100%;
  top: 0;
}
@media (max-width: 900px) {
  .header-flex {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .logo {
    height: 48px;
  }
}
@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--light);
    position: absolute;
    top: 70px;
    right: 0;
    width: 250px;
    box-shadow: var(--shadow);
    border-radius: 0 0 8px 8px;
    z-index: 99;
  }
  .nav-list.open {
    display: flex;
  }
  .nav-list > li > a {
    padding: 15px 22px;
    border-radius: 0;
  }
  .submenu {
    position: static;
    box-shadow: none;
    min-width: 100%;
    border-radius: 0;
    padding: 0;
  }
  .submenu-right {
    left: 0;
    top: 0;
  }
}
section {
  min-height: 100px;
  padding: 40px 0;
}


/* Hero Section Styles ******************************************************************************************/
/* ভেরিয়েবল */
:root {
  --primary: #651e1a;
  --secondary: #f4a460;
  --light: #fff;
  --dark: #2d2d2d;
  --shadow: 0 4px 12px rgba(101,30,26,0.1);
  --transition: all 0.3s ease;
}

/* বেসিক স্টাইল */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  background: #f8f5f2;
}

/* হিরো সেকশন */
.hero-section {
  background: linear-gradient(rgba(101,30,26,0.93), rgba(101,30,26,0.89)),
              url('hero-bg.jpg') center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  padding: 2rem;
  color: var(--light);
  margin-top: 70px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}

.search-wrapper input {
  width: 100%;
  max-width: 800px;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  font-size: 1.1rem;
  margin: 0 auto;
  display: block;
  transition: var(--transition);
}

.search-wrapper input:focus {
  outline: 3px solid var(--secondary);
  box-shadow: 0 0 20px rgba(244,164,96,0.3);
}

/* ফিল্টার কন্ট্রোল */
.filter-controls {
  max-width: 1200px;
  margin: 2rem auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.custom-select, #branchSearch {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  border: 2px solid var(--primary);
  font-size: 1rem;
  transition: var(--transition);
}

.custom-select {
  background: var(--light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 1rem center/12px;
  appearance: none;
}

#branchSearch {
  flex-grow: 3;
  background: var(--light);
}

/* গ্রিড + ম্যাপ লেআউট */
.grid-with-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  align-content: start;
}

.inline-leaflet-map {
  height: 600px;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--light);
  position: sticky;
  top: 1rem;
}

/* ব্রাঞ্চ কার্ড ডিজাইন */
.branch-card {
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.branch-card:hover {
  transform: translateY(-5px);
}

.map-btn {
  background: var(--primary);
  color: var(--light);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  margin-top: 1rem;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  font-weight: 600;
}

.map-btn:hover, .map-btn:focus {
  background: #7a2b26;
  outline: 2px solid var(--secondary);
}

/* রেস্পন্সিভ ডিজাইন */
@media (max-width: 768px) {
  .grid-with-map {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .inline-leaflet-map {
    height: 400px;
    order: -1;
    margin-bottom: 2rem;
  }

  .hero-section {
    height: 50vh;
    padding: 1rem;
    margin-top: 60px;
  }

  .filter-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .custom-select, #branchSearch {
    width: 100%;
    flex-grow: 1;
  }
}

@media (max-width: 480px) {
  .inline-leaflet-map {
    height: 300px;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .search-wrapper input {
    padding: 0.8rem 1.5rem;
  }
}

/* ************************************************************End/

























/* Section 10: Footer */
.footer-section {
  background: #651e1a;
  color: #fff;
  padding: 48px 0 18px 0;
  font-size: 1rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: left;
  width: 100%;
  justify-content: center;
}

.footer-logo {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}

.footer-org-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-org-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.footer-org-address,
.footer-org-contact {
  font-size: 0.97rem;
  color: #f4eaea;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.5rem 0 0.5rem 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.footer-links a:hover,
.footer-links a:focus {
  background: #fff;
  color: #651e1a;
  outline: none;
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.footer-social-icon img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  transition: box-shadow 0.2s;
}
.footer-social-icon:hover img,
.footer-social-icon:focus img {
  box-shadow: 0 2px 10px #fff5;
}

.footer-newsletter {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
  width: 100%;
  max-width: 400px;
}
.footer-newsletter input[type="email"] {
  padding: 0.6rem 1rem;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  width: 70%;
  outline: none;
}
.newsletter-btn {
  background: #fff;
  color: #651e1a;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.newsletter-btn:hover,
.newsletter-btn:focus {
  background: #f9f8fb;
  color: #a13e3a;
}

.footer-bottom {
  margin-top: 1.2rem;
  font-size: 0.97rem;
  color: #f4eaea;
  text-align: center;
  width: 100%;
}

/* Visually hidden for accessibility */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 700px) {
  .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
  }
  .footer-newsletter {
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
  }
}

/* ===== back-to-top ===== */
/* Back to Top Button Styles */
.back-to-top {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background: #651e1a;
  color: #fff;
  border: none;
  outline: none;
  border-radius: 50px;
  padding: 0.7rem 1.5rem 0.7rem 1.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(101,30,26,0.17);
  cursor: pointer;
  opacity: 0.92;
  transition: background 0.2s, opacity 0.2s, transform 0.18s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.back-to-top:hover,
.back-to-top:focus {
  background: #a13e3a;
  opacity: 1;
  transform: translateY(-4px) scale(1.04);
  outline: 2px solid #fff;
}
.back-to-top-icon {
  font-size: 1.35rem;
  display: inline-block;
  vertical-align: middle;
}
.back-to-top-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-block;
}

/* Responsive: smaller on mobile */
@media (max-width: 600px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    font-size: 1rem;
    padding: 0.6rem 1rem 0.6rem 0.8rem;
  }
  .back-to-top-icon { font-size: 1.1rem; }
  .back-to-top-text { font-size: 0.96rem; }
}

/* ===== Who We Are Section ===== */

/* ===== What We Do (Programs & Projects) ===== */

/* =====  Impact & Success Stories Section ===== */

/* ===== Knowledge Bank Section ===== */

/* ===== Connect With Us Section ===== */

/* ===== Footer Section ===== */


/* ===== New Section ===== */
/* ===== New Section ===== */
/* ===== New Section ===== */
/* ===== New Section ===== */