/* ------------------
   CSS RESET & BASIC STYLES
-------------------*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F8F7F2;
  color: #222; /* high contrast */
  font-family: 'Noto Sans Bengali', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
u,ol,li { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px solid #22965D; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

/* ------------------
   TYPOGRAPHY HIERARCHY
-------------------*/
h1,h2,h3,h4,h5,h6 {
  font-family: 'Baloo Da 2', 'Noto Sans Bengali', Arial, sans-serif;
  color: #1a7347;
  line-height: 1.12;
  font-weight: 700;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.75rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; font-weight: 600; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, li, small { font-family: 'Noto Sans Bengali', Arial, sans-serif; font-size: 1rem; }
small { color: #444; }
strong { font-weight: 600; }

/* ------------------
   CONTAINERS & LAYOUT
-------------------*/
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 700px) {
  .content-wrapper {
    gap: 24px;
  }
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 10px rgba(60,80,61,0.04), 0 1.5px 6px rgba(34,150,93,0.03);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.17s;
}
section:last-child, .section:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .section, section {
    padding: 26px 8px;
    margin-bottom: 40px;
    border-radius: 10px;
  }
}

.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(60,80,61,0.06);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-width: 210px;
  flex: 1 1 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Custom style for flex layouts as per requirements */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Cards and testimonial cards */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F8F7F2;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(60,80,61,0.06);
  margin-bottom: 22px;
  position: relative;
  min-width: 200px;
  max-width: 600px;
  border-left: 6px solid #22965D;
}
.testimonial-card p {
  color: #1a2929;
  font-size: 1.07rem;
  flex: 1 1 auto;
}
.testimonial-card small {
  font-size: 0.97em;
  font-style: italic;
  color: #1a7347;
  min-width: 120px;
  text-align: right;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    border-left: 3px solid #22965D;
    gap: 8px;
    padding: 14px 8px;
  }
  .testimonial-card small {
    text-align: left;
  }
}

/* ------------------
   HEADER & NAVIGATION
-------------------*/
header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 2px 6px rgba(34,150,93,0.03);
  position: sticky;
  top: 0; left: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 58px;
}
.logo {
  display: flex;
  align-items: center;
  min-width: 130px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Noto Sans Bengali', Arial, sans-serif;
  font-size: 1rem;
  color: #23402d;
  padding: 4px 10px;
  border-radius: 7px;
  transition: background 0.15s, color 0.2s;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a:focus {
  background: #22965D22;
  color: #1a7347;
}
.cta-primary {
  color: #fff;
  background: #22965D;
  padding: 7px 24px;
  border-radius: 22px;
  font-family: 'Baloo Da 2', 'Noto Sans Bengali', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(34,150,93,0.13);
  margin-left: 6px;
  transition: background 0.15s, transform 0.1s;
  border: none;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #1a7347;
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 4px 18px rgba(34,150,93,0.18);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #1a7347;
  margin-left: 20px;
  z-index: 1202;
  border-radius: 7px;
  width: 42px;
  height: 42px;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E4EFE8;
  color: #22965D;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -100vw;
  height: 100vh;
  width: 89vw;
  max-width: 340px;
  background: #fff;
  box-shadow: -4px 0 20px rgba(34,150,93,0.16);
  transition: transform 0.33s cubic-bezier(.62,.1,.24,1), right 0.29s cubic-bezier(.62,.1,.24,1);
  z-index: 1201;
  padding: 38px 26px 16px 24px;
}
.mobile-menu.open {
  right: 0;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #22965D;
  align-self: flex-end;
  margin-bottom: 30px;
  cursor: pointer;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E4EFE8;
  color: #22965D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-size: 1.1rem;
  color: #1a7347;
  background: transparent;
  padding: 7px 0;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
  font-family: 'Baloo Da 2', 'Noto Sans Bengali', Arial, sans-serif;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F8F7F2;
  color: #D92E4D;
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 961px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Overlay when mobile menu is open */
.mobile-menu-backdrop {
  content: '';
  position: fixed;
  top: 0; left: 0;
  z-index: 1200;
  width: 100vw;
  height: 100vh;
  background: rgba(34,150,93,0.10);
  transition: opacity 0.3s;
}

/* Accessibility: scroll lock when mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* -----------------------
   FEATURE, SERVICE, & CARDS
------------------------*/
ul {
  margin: 0 0 12px 0;
  padding-left: 22px;
}
ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #23402d;
  display: flex;
  align-items: center;
  min-height: 24px;
}
ul li img {
  display: inline-block;
  margin-right: 10px;
  height: 24px;
  width: 24px;
}
@media (max-width: 700px) {
  ul li {
    padding-left: 4px;
    margin-bottom: 7px;
    font-size: 1em;
  }
}

.featured-post {
  background: #E4EFE8;
  padding: 14px 16px;
  border-radius: 9px;
  color: #17482c;
  box-shadow: 0 2px 5px rgba(34,150,93,0.09);
  margin-top: 20px;
}

/* ------------------
   BUTTONS
-------------------*/
button, .button {
  font-family: inherit;
  padding: 8px 18px;
  border-radius: 18px;
  border: none;
  background: #22965D;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.13s, transform 0.1s;
  box-shadow: 0 1px 6px rgba(34,150,93,0.10);
}
button:hover, button:focus, .button:hover, .button:focus {
  background: #1a7347;
  color: #fff;
  transform: translateY(-1.5px) scale(1.02);
}

/* Secondary / outline buttons */
.button--secondary, .cookie-btn-secondary {
  background: #fff;
  color: #22965D;
  border: 2px solid #22965D;
}
.button--secondary:hover, .button--secondary:focus, .cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #22965D22;
  color: #1a7347;
  border-color: #1a7347;
}

.button--danger, .cookie-btn-danger {
  background: #D92E4D;
  color: #fff;
  border: none;
}
.button--danger:hover, .cookie-btn-danger:hover {
  background: #B0263C;
  color: #fff;
}

/* ------------------
   FOOTER
-------------------*/
footer {
  background: #fff;
  border-top: 1.7px solid #e7e7e0;
  margin-top: 60px;
  padding: 38px 0 12px 0;
  box-shadow: 0 -2px 14px rgba(34,150,93,0.04);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #1a7347;
  font-weight: 500;
  background: none;
  font-family: 'Baloo Da 2', 'Noto Sans Bengali', Arial, sans-serif;
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #D92E4D;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #555;
  font-size: 0.98rem;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 5px;
  height: 18px;
  width: 18px;
  display: inline-block;
  opacity: 0.88;
}
@media (min-width: 740px) {
  footer .container {
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
  }
}

/* --------------
   FORM ELEMENTS
--------------*/
input, textarea, select {
  font-family: 'Noto Sans Bengali', Arial, sans-serif;
  font-size: 1rem;
  border: 1.4px solid #E4EFE8;
  border-radius: 7px;
  padding: 9px 12px;
  background: #fff;
  color: #1a2929;
  margin-bottom: 14px;
  outline: none;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #22965D;
}

/* --------------
   RESPONSIVE (mobile-first)
--------------*/
@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  .main-nav {
    display: none;
  }
  .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* ------------------
   COOKIE CONSENT BANNER
-------------------*/
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #E4EFE8;
  box-shadow: 0 -1.5px 8px rgba(34,150,93,0.15);
  z-index: 1700;
  padding: 18px 14px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  animation: slideUpCookies 0.6s cubic-bezier(.66,-0.01,.13,1.1);
  font-size: 1rem;
}
.cookie-consent-banner p {
  color: #175326;
  font-size: 1rem;
}
.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 2px;
}
.cookie-btn, .cookie-btn-secondary, .cookie-btn-danger {
  padding: 6px 18px;
  border-radius: 14px;
  font-size: 1rem;
  font-family: 'Noto Sans Bengali', Arial, sans-serif;
  border: none;
  background: #22965D;
  color: #fff;
  transition: background 0.16s, color 0.13s;
  margin-top: 0;
  font-weight: 500;
}
.cookie-btn-secondary {
  background: #fff;
  color: #22965D;
  border: 1.5px solid #22965D;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #22965D22;
  color: #1a7347;
}
.cookie-btn-danger {
  background: #D92E4D;
  color: #fff;
}
.cookie-btn-danger:hover, .cookie-btn-danger:focus {
  background: #B0263C;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    padding: 13px 6px 13px 6px;
    font-size: 0.97em;
  }
  .cookie-consent-buttons { gap: 8px; }
}
@keyframes slideUpCookies {
  from { transform: translateY(100%); opacity: 0.35; }
  to   { transform: translateY(0); opacity: 1; }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,150,93,0.18);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.34s cubic-bezier(.43,.17,.38,1.12);
}
.cookie-modal {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 18px rgba(34,150,93,0.15);
  padding: 36px 26px 22px 26px;
  min-width: 290px;
  max-width: 96vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  margin-top: 0; font-size: 1.35rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding: 7px 0;
}
.cookie-category-row label {
  flex: 1 1 auto;
  font-size: 1rem;
}
.cookie-toggle {
  width: 36px;
  height: 21px;
  border-radius: 20px;
  background: #f0f0ec;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
  flex-shrink: 0;
  border: 1.5px solid #ccc;
}
.cookie-toggle.checked {
  background: #22965D;
  border-color: #22965D;
}
.cookie-toggle::after {
  content: '';
  display: block;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 2px;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(70,70,70,0.13);
}
.cookie-toggle.checked::after {
  left: 16px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 26px 8px 16px 8px;
    min-width: 0; max-width: 99vw;
  }
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* ------------------
   UTILITY & EFFECTS
-------------------*/
.shadow-xs {
  box-shadow: 0 1px 4px rgba(34,150,93,0.09);
}
.shadow-md {
  box-shadow: 0 5px 18px rgba(34,150,93,0.13);
}
.round-lg {
  border-radius: 18px !important;
}
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }

/* Transitions for micro-interactions */
a, button, .cta-primary, .button {
  transition: background 0.14s, color 0.13s, box-shadow 0.14s, transform 0.10s;
}
.card, .testimonial-card, .featured-post {
  transition: box-shadow 0.15s, transform 0.13s;
}
.card:hover, .testimonial-card:hover, .featured-post:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 32px rgba(34,150,93,0.09);
}

/* Misc */
::-webkit-scrollbar { width: 9px; background: #F8F7F2; }
::-webkit-scrollbar-thumb { background: #E4EFE8; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #b0dac9; }

/* Hide visually for accessibility (used with elements for modals, etc) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Prevent overlapping */
.card, .testimonial-card, .section, section, .content-grid, .card-container { margin-bottom: 20px; }
.card:last-child, .testimonial-card:last-child, .section:last-child, section:last-child, .content-grid:last-child, .card-container:last-child { margin-bottom: 0; }

/* Ensure minimum spacing in flex layouts */
.card-container > *, .card-grid > *, .content-grid > * {
  margin-bottom: 0 !important;
}

/* Z-index for overlays */
.mobile-menu, .cookie-modal-overlay, .cookie-consent-banner {
  z-index: 2000;
}

/* --------------
   SCANDINAVIAN ELEMENTS
--------------*/
section, .section {
  border: 0.6px solid #F8F7F2;
}
.card, .testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(60,80,61,0.06);
}

/* Subtle accent line for headings */
h2::after, h1::after {
  display: block;
  margin-top: 7px;
  content: "";
  width: 40px;
  height: 3px;
  background: #22965D;
  border-radius: 2px;
  opacity: 0.13;
}

/* ------------------
   END OF BASIDS BAR CSS
-------------------*/