@import url('https://fonts.googleapis.com/css2?family=Vesper+Libre:wght@400;500;700&display=swap');
@import url('https://fonts.maateen.me/adorsho-lipi/font.css');

:root {
  --font-english: Arial, sans-serif;
  --font-hindi: 'Vesper Libre', serif;
  --font-bengali: 'Adorsho Lipi', 'AdorshoLipi', 'AdarshaLipi', 'AdarshaLipiNormal', sans-serif;
  --site-font: var(--font-english);
  --bs-body-font-family: var(--site-font);
}

html {
  font-family: var(--site-font);
}

body {
  color: #000000;
  font-family: var(--site-font);
  /* font-size: 24px; */
  /* text-shadow: #000 1px 1px 0; */
  margin: 0;
  text-align: left;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
}

body.language-english,
html:lang(en) body {
  --site-font: var(--font-english);
}

body.language-hindi,
html:lang(hi) body {
  --site-font: var(--font-hindi);
}

body.language-bengali,
html:lang(bn) body {
  --site-font: var(--font-bengali);
}

[lang|="en"],
.font-english {
  font-family: var(--font-english);
}

[lang|="hi"],
.font-hindi {
  font-family: var(--font-hindi);
}

[lang|="bn"],
.font-bengali {
  font-family: var(--font-bengali);
}

.font-english [style*="font-family" i],
[lang|="en"] [style*="font-family" i] {
  font-family: var(--font-english) !important;
}

.font-hindi [style*="font-family" i],
[lang|="hi"] [style*="font-family" i] {
  font-family: var(--font-hindi) !important;
}

/* English, Hindi and Bengali text is tagged dynamically in the shared frontend script. */
[lang="EN" i]:not(i):not(.bi):not([class^="fa"]):not([class*=" fa-"]) {
  font-family: var(--font-english) !important;
}

[lang="HI" i]:not(i):not(.bi):not([class^="fa"]):not([class*=" fa-"]) {
  font-family: var(--font-hindi) !important;
}

[lang="BN" i]:not(i):not(.bi):not([class^="fa"]):not([class*=" fa-"]) {
  font-family: var(--font-bengali) !important;
}

.font-bengali [style*="font-family" i],
[lang|="bn"] [style*="font-family" i] {
  font-family: var(--font-bengali) !important;
}

      .h4, h4 {
        font-size: 1.2rem !important;
    }

      .nav-link {
        color: rgb(0 0 0);
        font-size: 20px;
        font-weight: lighter !important;
      }
      
      .breadcrumb-item.active {
          color: var(--bs-breadcrumb-item-active-color);
      }
    
      a {
          color: #57af14;
          text-decoration: underline;
      }

      .hero {
        background: linear-gradient(135deg, #57af14, #ff9800);
        padding: 80px 20px;
      }

      .category-card {
        padding: 30px 10px;
        border-radius: 16px;
        cursor: pointer;
        transition: 0.3s;
      }

      .category-card:hover {
        background: #fff3e0;
        transform: translateY(-5px);
      }

      .app-card {
        background: white;
        border-radius: 16px;
        padding: 30px;
        margin: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
      }

      /* .footer-link {
        color: #ccc;
        text-decoration: none;
      }

      .footer-link:hover {
        color: #fff;
      } */

      /* Our Inspiration dropdown */
      .inspiration-dropdown {
        position: relative;
      }

      .inspiration-menu,
      .inspiration-submenu {
        min-width: 260px;
        padding: 10px 0;
        border: 1px solid rgba(70, 125, 28, 0.18);
        border-top: 3px solid #f07c00;
        border-radius: 14px;
        background: linear-gradient(180deg, #fffdf8 0%, #fff4e7 100%);
        box-shadow: 0 18px 38px rgba(24, 52, 8, 0.16), 0 4px 10px rgba(240, 124, 0, 0.08) !important;
      }

      .inspiration-menu {
        margin-top: 0;
      }

      .inspiration-menu .dropdown-item,
      .inspiration-submenu .dropdown-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px;
        color: #253719;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
        transition: background 0.2s ease, color 0.2s ease;
      }

      .inspiration-menu .dropdown-item span {
        display: inline-flex;
        align-items: center;
        gap: 10px;
      }

      .inspiration-menu .dropdown-item span .bi {
        color: #467d1c;
      }

      .inspiration-menu .dropdown-item:hover,
      .inspiration-menu .dropdown-item:focus,
      .inspiration-submenu .dropdown-item:hover,
      .inspiration-submenu .dropdown-item:focus,
      .dropdown-submenu.show-submenu > .submenu-toggle {
        color: #173006;
        background: linear-gradient(90deg, #e0f8c6 0%, #fff8ed 100%);
      }

      .inspiration-menu .dropdown-item:hover span .bi,
      .inspiration-menu .dropdown-item:focus span .bi,
      .dropdown-submenu.show-submenu > .submenu-toggle span .bi {
        color: #f07c00;
      }

      .submenu-arrow {
        color: #f07c00;
        font-size: 12px;
        transition: transform 0.2s ease;
      }

      .dropdown-submenu {
        position: relative;
      }

      .inspiration-submenu {
        top: 0;
        left: calc(100% - 6px);
      }

/* ===== NAVBAR MENU HOVER ===== */

.navbar-nav .nav-link {
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Hover */
.navbar-nav .nav-link:hover {
  background-color: #e0f8c6;
  color: #180000;
}
/* .navbar-nav .nav-link:hover {
  background-color: #ffffff;   
  color: #467d1c;             
} */

/* Active page */
.navbar-nav .nav-link.active {
  background-color: #ffffff;
  color: #467d1c;
}

.menu-search {
  flex: 0 0 310px;
  max-width: 310px;
}

.menu-search .input-group {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(24, 52, 8, 0.18);
  overflow: hidden;
  padding: 4px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.menu-search .input-group:hover {
  border-color: rgba(224, 248, 198, 0.95);
  box-shadow: 0 12px 26px rgba(24, 52, 8, 0.22);
  cursor: pointer;
  transform: translateY(-1px);
}

.menu-search:focus-within .input-group {
  border-color: #e0f8c6;
  box-shadow: 0 0 0 3px rgba(224, 248, 198, 0.28), 0 12px 26px rgba(24, 52, 8, 0.2);
}

.menu-search .form-control {
  background: transparent;
  border: 0;
  border-radius: 999px 0 0 999px;
  box-shadow: none;
  color: #243018;
  cursor: text;
  font-size: 16px;
  line-height: 1.2;
  min-height: 36px;
  padding: 7px 12px 7px 16px;
}

.menu-search .form-control:focus {
  box-shadow: none;
}

.menu-search .form-control::placeholder {
  color: #718066;
  opacity: 1;
}

.menu-search .form-control[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

.menu-search .form-control[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  background-color: #718066;
  border-radius: 50%;
  cursor: pointer;
  height: 14px;
  margin-left: 8px;
  opacity: 0.65;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  width: 14px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.22 4.22a.75.75 0 0 1 1.06 0L8 6.94l2.72-2.72a.75.75 0 1 1 1.06 1.06L9.06 8l2.72 2.72a.75.75 0 1 1-1.06 1.06L8 9.06l-2.72 2.72a.75.75 0 1 1-1.06-1.06L6.94 8 4.22 5.28a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.22 4.22a.75.75 0 0 1 1.06 0L8 6.94l2.72-2.72a.75.75 0 1 1 1.06 1.06L9.06 8l2.72 2.72a.75.75 0 1 1-1.06 1.06L8 9.06l-2.72 2.72a.75.75 0 1 1-1.06-1.06L6.94 8 4.22 5.28a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.menu-search .form-control[type="search"]::-webkit-search-cancel-button:hover {
  background-color: #f07c00;
  opacity: 1;
  transform: scale(1.08);
}

.menu-search-btn {
  align-items: center;
  background: linear-gradient(135deg, #f07c00 0%, #ff9a2f 100%);
  border: 0;
  border-radius: 999px !important;
  box-shadow: 0 6px 14px rgba(240, 124, 0, 0.24);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
  padding: 7px 16px;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.menu-search-btn:hover,
.menu-search-btn:focus-visible {
  background: linear-gradient(135deg, #e0f8c6 0%, #ffffff 100%);
  box-shadow: 0 8px 18px rgba(224, 248, 198, 0.24);
  color: #243018;
  transform: translateY(-1px);
}

/* ===== DESKTOP NAV DROPDOWN ===== */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    align-items: center;
    gap: 18px;
  }

  .navbar-nav {
    align-items: center;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: center;
    min-width: 0;
  }

  .navbar-nav .nav-link {
    line-height: 1.15;
    white-space: nowrap;
  }

  .menu-search {
    flex-shrink: 0;
  }

  .inspiration-dropdown:hover > .dropdown-menu {
    display: block;
  }

  .dropdown-submenu:hover > .inspiration-submenu,
  .dropdown-submenu:focus-within > .inspiration-submenu {
    display: block;
  }

  .dropdown-submenu:hover > .submenu-toggle .submenu-arrow,
  .dropdown-submenu:focus-within > .submenu-toggle .submenu-arrow {
    transform: translateX(3px);
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-nav .nav-link {
    font-size: 17px;
    padding-inline: 8px;
  }

  .menu-search-btn {
    padding-inline: 12px;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-expand-lg .navbar-collapse {
    gap: 14px;
  }

  .navbar-nav .nav-link {
    font-size: 18px;
    padding-inline: 9px;
  }

  .menu-search {
    flex-basis: 270px;
    max-width: 270px;
  }

  .menu-search .form-control {
    padding-left: 14px;
    padding-right: 8px;
  }

  .menu-search-btn {
    padding-inline: 13px;
  }
}

@media (max-width: 991px) {
  .menu-search {
    flex-basis: auto;
    margin-top: 12px;
    max-width: 100%;
    width: 100%;
  }

  .inspiration-menu,
  .inspiration-submenu {
    position: static !important;
    min-width: 100%;
    margin-top: 0;
    border-radius: 10px;
    box-shadow: none !important;
  }

  .inspiration-menu {
    padding: 8px 0;
  }

  .inspiration-submenu {
    display: none;
    padding: 0 0 6px;
    margin-left: 14px;
    background: #fffaf2;
  }

  .dropdown-submenu.show-submenu > .inspiration-submenu {
    display: block;
  }

  .dropdown-submenu.show-submenu > .submenu-toggle .submenu-arrow {
    transform: rotate(90deg);
  }
}

.bg-menu {
  background: #467d1c;
}

/* ================= HERO SLIDER ================= */
.hero-slider {
  position: relative;
}

/* .hero-slide {
  min-height: 480px;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  position: relative;
} */

.hero-slide {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: inherit !important;
}

/* Optional darker overlay */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.25); */
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    90deg,
    rgba(120, 50, 30, 0.85) 0%,
    rgba(120, 50, 30, 0.6) 45%,
    rgba(120, 50, 30, 0.15) 100%
  ); */
}

.hero-content {
  position: relative;
  max-width: 600px;
  color: #fff;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1rem;
  margin: 15px 0 25px;
}

/* Mobile adjustments */
/* @media (max-width: 768px) {
  .hero-slide {
    background-position: center;
    min-height: 380px;
  } */

  @media (max-width: 768px) {
  .hero-slide {
    height: 55vh;
  }
}

.hero-content h1 {
    font-size: 2rem;
  }

.carousel-fade .carousel-item {
  transition: opacity 0.8s ease-in-out;
}


/* ===== HERO CAROUSEL CONTROLS ===== */

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(70 125 28);
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target] {
    background-color: rgb(70 125 28);
}
/* .carousel-control-prev,
.carousel-control-next {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
} */

/* Position slightly inside */
.carousel-control-prev {
  left: 25px;
}

.carousel-control-next {
  right: 25px;
}

/* Arrow icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  width: 24px;
  height: 24px;
}

/* Hover effect */
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: #467d1c;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transform: translateY(-50%) scale(1.08);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  filter: invert(0);
}

@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 42px;
    height: 42px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }
}

/* End */


/* Navbar Logo */
.navbar-logo {
  height: 48px;
  width: auto;
}

/* Slightly smaller on mobile */
@media (max-width: 768px) {
  .navbar-logo {
    height: 40px;
  }
}

/* ===== NAVBAR SHRINK ON SCROLL ===== */
.navbar-shrinkable {
  transition: padding 0.25s ease, box-shadow 0.25s ease;
  padding: 1% 5% 1% 5%;
}

/* Default logo size */
.navbar-logo {
  height: 48px;
  transition: height 0.25s ease;
}

/* Shrunk state */
.navbar-shrink {
  padding: .5% 5% .5% 5%;
  position: fixed;
    top: 0;
    background: #467d1c;
    z-index: 800;
    right: 0;
    left: 0;
    width: 100%;
    transition: 0.4s;
    box-shadow: 0 0 60px 0 #467d1ca8;
    animation: 300ms ease-in-out 0s normal none 1 running fadeInDown;
  /*padding: 6px 0;*/
  /*box-shadow: 0 4px 12px rgba(0,0,0,0.08);*/
}

.navbar-shrink .navbar-logo {
  height: 50px;
}

/* Mobile fine-tuning */
@media (max-width: 768px) {
  .navbar-logo {
    height: 42px;
  }

  .navbar-shrink .navbar-logo {
    height: 32px;
  }
}


/* ===== TOP BAR ===== */
.top-bar {
  background: #212529;
  color: #f1f1f1;
  font-size: 13px;
  padding: 6px 0;
}

.top-bar i {
  /* color: #000000; */
  margin-right: 4px;
}

.top-bar span {
  white-space: nowrap;
}

/* Search */
.top-search {
  max-width: 320px;
}

.top-search .form-control {
  height: 32px;
  font-size: 13px;
  border-radius: 4px 0 0 4px;
}

.top-search .btn {
  height: 32px;
  border-radius: 0 4px 4px 0;
  padding: 0 12px;
}

/* Mobile behavior */
@media (max-width: 767px) {
  .top-bar {
    font-size: 12px;
  }

  .top-search {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .top-bar span {
    display: none;
  }
}

/* Search Page */
.search-page {
  background-color: #f2f2f2;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-position: 0 0, 3px 3px;
  background-size: 6px 6px;
  padding-bottom: 30px;
  padding-top: 36px;
}

.search-results-heading {
  font-family: var(--font-english);
  margin-bottom: 16px;
}

.search-results-heading h2 {
  color: #1f1f1f;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}

.search-results-heading p {
  color: #1f1f1f;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.search-result-list {
  background: transparent;
}

.search-result-item {
  border-bottom: 0;
  font-family: var(--font-english);
  padding: 0 0 12px;
}

.search-result-item:last-child {
  border-bottom: 0;
}

.search-result-item h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
}

.search-result-item h3 a {
  color: #2878bf;
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-result-item h3 a:hover,
.search-result-item h3 a:focus-visible {
  color: #f07c00;
}

.search-result-item p,
.search-no-results p {
  color: #1f1f1f;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.search-result-item.font-bengali,
.search-result-item.font-bengali h3,
.search-result-item.font-bengali a,
.search-result-item.font-bengali p {
  font-family: var(--font-bengali);
}

.search-no-results {
  background: #fff3e6;
  border: 1px solid rgba(240, 124, 0, 0.22);
  border-radius: 12px;
  padding: 24px;
}

.search-no-results h3 {
  color: #467d1c;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}

.search-no-results .search-page-btn {
  margin-top: 18px;
  text-decoration: none;
}

@media (max-width: 767px) {
  .search-results-heading p {
    font-size: 23px;
  }

  .search-results-heading h2 {
    margin-bottom: 38px;
  }

  .search-result-item h3 {
    font-size: 20px;
  }

  .search-result-item p,
  .search-no-results p {
    font-size: 16px;
  }
}


/* ===== BACKGROUND ===== */
.publications-intro {
  background:
    linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.95)),
    var(--bg);
  background-size: cover;
  padding: 45px 15px;
  overflow: hidden;
}

/* ===== ORANGE PILL ===== */
.pill-title {
  display: inline-block;
  background: #467d1c;
  color: #fff;
  padding: 18px 50px;
  border-radius: 999px;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 28px;
}

/* ===== SUBTITLE ===== */
.intro-subtitle {
  font-size: 20px;
  margin-bottom: 22px;
}

/* ===== DIVIDER ===== */
.intro-divider {
  border: none;
  border-top: 1px solid #000;
  max-width: 90%;
  margin: 22px auto;
}

/* ===== BROWSE LINK ===== */
/* .browse-link {
  position: relative;
  font-size: 28px;
  color: #467d1c;
  font-weight: 500;
  letter-spacing: 2px;
  text-decoration: none;
  padding-bottom: 6px;
}

.browse-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #467d1c;
  transition: width 0.35s ease;
}

.browse-link:hover::after {
  width: 100%;
}

.arrow {
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.browse-link:hover .arrow {
  transform: translateX(6px);
} */

/* ===== BROWSE SECTIONS ===== */
.browse-sections {
  padding: 60px 0;
  /* background: #f4f4f4; */
  background: #57af14;
}

/* Grid */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Card */
.browse-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Link inside */
.browse-card a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 30px;
  text-decoration: none;
  color: #467d1c;
  font-size: 22px;
  font-weight: 500;
}

/* Arrow */
.browse-card .arrow {
  font-size: 26px;
  transition: transform 0.3s ease;
}

/* Hover */
.browse-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.browse-card:hover .arrow {
  transform: translateX(6px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .browse-grid {
    grid-template-columns: 1fr;
  }

  .browse-card a {
    font-size: 18px;
    padding: 22px;
  }
}


/* ===== SCROLL ANIMATION ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  .publications-intro {
    background:
      linear-gradient(rgba(25,25,25,.96), rgba(25,25,25,.96)),
      var(--bg);
  }

  .intro-subtitle,
  .browse-link {
    color: #f1f1f1;
  }

  .intro-divider {
    border-color: #666;
  }

  .browse-link::after {
    background: #ffc107;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .pill-title {
    font-size: 20px;
    padding: 14px 24px;
  }

  .intro-subtitle {
    font-size: 16px;
  }

  .browse-link {
    font-size: 20px;
    letter-spacing: 1px;
  }
}

/* ===== PUBLICATIONS GRID ===== */
.publications-grid {
  background: #fff;
  padding: 40px 0;
}

/* Subtle section backgrounds */
#publications.publications-grid {
  background: #ffffff;
}

#Biographies.publications-grid {
  background: #ffffff;
}

#publications.publications-grid,
#Biographies.publications-grid,
#movies-hindi.publications-grid,
#movies-bangla.publications-grid,
#movies-english.publications-grid {
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(70, 125, 28, 0.12);
  overflow: hidden;
  position: relative;
}

#publications.publications-grid::before,
#Biographies.publications-grid::before,
#movies-hindi.publications-grid::before,
#movies-bangla.publications-grid::before,
#movies-english.publications-grid::before {
  background: linear-gradient(
    90deg,
    rgba(87, 175, 20, 0),
    rgba(87, 175, 20, 0.72),
    rgba(240, 124, 0, 0.84),
    rgba(87, 175, 20, 0.72),
    rgba(87, 175, 20, 0)
  );
  border-radius: 0 0 999px 999px;
  box-shadow: 0 8px 18px rgba(70, 125, 28, 0.14);
  content: "";
  height: 4px;
  left: 50%;
  max-width: 1120px;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: calc(100% - 32px);
}

/* Card */
.pub-card {
  border: 5px solid rgb(87 175 20);
  /* border-radius: 0 0 40px 40px; */
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f6efe9;
  transition: transform 0.3s ease;
}

/* Header */
.pub-card-header {
  background: #467d1c;
  color: #fff;
  text-align: center;
  font-weight: 600;
  padding: 14px;
  font-size: 16px;
}

/* Body */
.pub-card-body {
  padding: 18px;
  flex-grow: 1;
  text-align: center;
}

/* Book grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* .book-grid img {
  width: 100%;
  border-radius: 6px;
} */

/* .book-grid a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
} */

.book-grid img {
  display: block;
  width: 100%;
  border-radius: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-grid a {
  border-radius: 8px;
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.book-grid a:hover {
  transform: translateY(-6px);
}

/* Hover effect */
/* .book-grid a:hover img {
  transform: scale(1.08);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
} */

.book-grid a:hover img {
  transform: scale(1.05);
}

/* Movie grid */

/* .movie-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
}

.movie-grid img {
  width: 100%;
  border-radius: 6px;
} */

/* Quotes */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quote-box {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  color: #444;
}

/* Divider */
.pub-divider {
  height: 1px;
  background: #999;
  margin: 18px 0 10px;
}

/* Label */
.pub-label {
  font-size: 16px;
  color: #666;
}

/* Footer */
.pub-card-footer {
  text-align: center;
  padding: 16px;
  background: #ceffa98a;
}

/* Button */
.pub-card-footer .btn {
  background: #467d1c;
  border: none;
  color: #fff;
  padding: 6px 20px;
  font-size: 16px;
  font-weight: 600 !important;
}

.pub-card-footer .btn:hover {
  background: #467d1cd1;
  color: #ffffff;
}

/* View More button */
.btn-view-more {
  background: #467d1c;
  border: none;
  color: #fff;
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-view-more i {
  transition: transform 0.25s ease;
}

.btn-view-more:hover,
.btn-view-more:focus {
  background: #35630f;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(70, 125, 28, 0.4);
}

.btn-view-more:hover i {
  transform: translateX(4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== SECTION TITLE ===== */
.section-header {
  margin-bottom: 24px;
}

/* .section-title {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin-bottom: 5px;
} */

.section-title {
  align-items: center;
  background: linear-gradient(135deg, #284d18 0%, #467d1c 58%, #ee9f12 100%);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(70, 125, 28, 0.18);
  color: #ffffff;
  display: inline-flex;
  font-size: clamp(22px, 4vw, 24px);
  font-weight: normal;
  justify-content: center;
  line-height: 1.2;
  margin-bottom: 14px;
  /* max-width: 100%; */
  width: 100%;
  overflow-wrap: anywhere;
  /* padding: 14px clamp(22px, 4vw, 44px); */
  padding: 10px !important;
  text-align: center;
  white-space: normal;
}

/* .section-title {
    padding: 1%;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    background: #467d1c;
    border-radius: 25px;
    text-align: center;
} */

.section-title2 {
  font-size: 20px;
  color: #467d1c;
  font-weight: 600;
}

.section-subtitle {
  font-size: 18px;
  color: #000;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-subtitle-bgblack {
  font-size: 18px;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: clamp(22px, 6vw, 28px);
    padding: 12px 18px;
  }

  .section-subtitle {
    font-size: 16px;
  }
}

.title-divider {
  display: none;
  width: 100%;
  height: 1px;
  background:#467d1c;
  opacity: 0.4;
  margin: 14px auto 20px;
}

/* ===== DOWNLOAD APPS SECTION ===== */
.download-apps-section {
  background: #fff;
  padding: 60px 0;
}

/* Section title */
.apps-title {
  font-size: 32px;
  font-weight: 700;
  color: #467d1c;
}

.apps-header {
  margin-bottom: 40px;
}

/* App cards */
.app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  padding: 30px;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

/* Android */
.app-card.android {
  background: linear-gradient(135deg, #57af14, #ffb347);
}

/* iOS */
.app-card.ios {
  /* background: linear-gradient(135deg, #e9ecff, #cfd9ff); */
  background: linear-gradient(135deg, #00ff13bd, #73e919b8);
}

/* Content */
.app-content {
  max-width: 60%;
}

.app-content h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.app-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.app-content p {
  font-size: 16px;
  margin-bottom: 16px;
}

/* Store buttons */
.store-btn img {
  height: 44px;
}

/* App image */
.app-image img {
  height: 220px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .app-card {
    flex-direction: column;
    text-align: center;
  }

  .app-content {
    max-width: 100%;
  }

  .app-image img {
    height: 180px;
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .apps-title {
    font-size: 24px;
  }

  .app-content h2 {
    font-size: 22px;
  }
}

/* ===== HOVER LIFT + GLOW ===== */
.app-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* Default shadow (very subtle) */
.app-card {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Hover effect */
.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* Platform-specific glow */
.app-card.android:hover {
  box-shadow:
    0 18px 45px rgba(255, 140, 66, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.app-card.ios:hover {
  box-shadow:
    0 18px 45px rgba(130, 150, 255, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}
.app-card .app-image img {
  transition: transform 0.4s ease;
}

.app-card:hover .app-image img {
  transform: translateY(-6px) rotate(-1deg);
}

/* Glow pulse animation */
@keyframes glowPulse {
  0% { box-shadow: 0 0 0 rgba(255,140,66,0); }
  50% { box-shadow: 0 0 35px rgba(255,140,66,0.55); }
  100% { box-shadow: 0 0 0 rgba(255,140,66,0); }
}

.app-card.pulse {
  animation: glowPulse 1.8s ease-out;
}

/* iOS variant */
.app-card.ios.pulse {
  animation-name: glowPulseIOS;
}

@keyframes glowPulseIOS {
  0% { box-shadow: 0 0 0 rgba(130,150,255,0); }
  50% { box-shadow: 0 0 35px rgba(130,150,255,0.5); }
  100% { box-shadow: 0 0 0 rgba(130,150,255,0); }
}
/* Ripple button */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.ripple-btn:active::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  from {
    transform: scale(0);
    opacity: 0.6;
  }
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}
/* Reveal animation */
.fx-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

.fx-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.download-apps-section {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

@media (max-width: 992px) {
  .download-apps-section {
    background-attachment: scroll;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* ===== SEARCH / BROWSE SECTION ===== */
.search-browse-section {
  background: #fff;
  padding: 60px 0;
}

/* Title */
.search-title {
  font-size: 32px;
  font-weight: 600;
  color: #467d1c;
  margin: 20px 0 50px;
  letter-spacing: 2px;
}

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid #000;
  max-width: 100%;
  margin: 0 auto;
}

/* Cards container */
.search-options {
  margin-bottom: 40px;
}

/* Card */
.search-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  border-radius: 40px;
  background: linear-gradient(180deg, #ff8c00, #c94b00);
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover effect */
.search-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.45);
  color: #fff;
}

/* Text */
.search-card span {
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .search-title {
    font-size: 22px;
    margin-bottom: 35px;
  }

  .search-card {
    height: 160px;
    font-size: 22px;
    border-radius: 30px;
  }
}
/* ===== SEARCH / BROWSE SECTION ===== */
.search-browse-section {
  background: #fff;
  padding: 60px 0;
}

/* Title */
.search-title {
  font-size: 32px;
  font-weight: 600;
  color: #467d1c;
  margin: 20px 0 50px;
  letter-spacing: 2px;
}

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid #000;
  max-width: 100%;
  margin: 0 auto;
}

/* Cards container */
.search-options {
  margin-bottom: 40px;
}

/* Card */
.search-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  border-radius: 40px;
  background: linear-gradient(180deg, #ff8c00, #c94b00);
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover effect */
.search-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 140, 0, 0.45);
  color: #fff;
}

/* Text */
.search-card span {
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .search-title {
    font-size: 22px;
    margin-bottom: 35px;
  }

  .search-card {
    height: 160px;
    font-size: 22px;
    border-radius: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .search-card,
  .scroll-reveal {
    transition: none !important;
    transform: none !important;
  }
}

/* ===== INDIAN LANGUAGES SECTION ===== */
.languages-section {
  /* background: #fff; */
  padding: 60px 0;
}

/* Title */
.languages-title {
  font-size: 32px;
  font-weight: 600;
  color: #467d1c;
  margin: 20px 0 45px;
  letter-spacing: 2px;
}

.languages-title-bgblack {
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  margin: 20px 0 45px;
  letter-spacing: 2px;
}

/* Language card */
.language-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 200px;
  border-radius: 36px;
  background: linear-gradient(180deg, #ff9800, #c94900);
  color: #fff;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Native script */
.language-card .native {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 6px;
}

/* English label */
.language-card .english {
  font-size: 18px;
  opacity: 0.9;
}

/* Hover + focus */
.language-card:hover,
.language-card:focus-visible {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255,140,0,0.45);
  color: #fff;
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  .languages-section {
    /* background: #499b0a; */
    background-color: #3c8305;
  }

  .languages-title {
    color: #ffa94d;
  }

  .section-divider {
    border-color: #000;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .languages-title {
    font-size: 22px;
  }

  .language-card {
    height: 160px;
    border-radius: 28px;
  }

  .language-card .native {
    font-size: 28px;
  }
}

/* ===== HOVER ARROW ===== */
.language-card {
  position: relative;
  overflow: hidden;
}

.hover-arrow {
  position: absolute;
  bottom: 18px;
  right: 22px;
  font-size: 22px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
}

.language-card:hover .hover-arrow {
  opacity: 1;
  transform: translateX(0);
}
/* ===== FILTER CLICK EFFECT ===== */
.language-card.active {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.8),
              0 0 0 6px rgba(255,140,0,0.8);
  transform: scale(1.05);
}

/* Fade others */
.language-card.dimmed {
  opacity: 0.4;
  transform: scale(0.95);
}
/* ===== SCROLLING SECTION ===== */
.scrolling-section {
  background: #f4f4f4;
  padding: 60px 0;
}

/* Header */
.scrolling-header {
  text-align: center;
  margin-bottom: 30px;
}

.scrolling-title {
  font-size: 30px;
  font-weight: 600;
  color: #467d1c;
}

.scrolling-subtitle {
  font-size: 16px;
  color: #000;
}

/* Scroll wrapper */
.scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

/* Hide scrollbar (optional) */
.scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Track */
.scroll-track {
  display: flex;
  gap: 20px;
  scroll-snap-type: x mandatory;
  padding: 10px;
}

/* Card */
.scroll-card {
  flex: 0 0 220px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  text-decoration: none;
  color: #000;
  scroll-snap-align: start;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.scroll-card h6 {
  font-size: 16px;
  margin-bottom: 4px;
  color: #467d1c;
}

.scroll-card span {
  font-size: 12px;
  color: #666;
}

/* Hover */
.scroll-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .scrolling-title {
    font-size: 22px;
  }

  .scroll-card {
    flex: 0 0 180px;
  }
}

/**new add ani**/
/* ===== AUTHOR CAROUSEL ===== */
.author-carousel-section {
  background: #fbdab1bf;
  padding: 60px 0;
  /* box-shadow: 0 0 25px 0 #467d1c69; */
}

.carousel-header {
  text-align: center;
  margin-bottom: 30px;
}

.carousel-header h2 {
  color: #467d1c;
  font-size: 30px;
}

.carousel-header p {
  color: #666;
}

/* Wrapper */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

/* Track */
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* Card */

@media (min-width: 1200px) {
  .author-card {
    flex: 0 0 calc(25% - 15px); /* 4 cards */
    max-width: calc(25% - 15px);
  }
}

/* Laptop / Tablet landscape: 3 cards */
@media (max-width: 1199px) and (min-width: 992px) {
  .author-card {
    flex: 0 0 calc(33.333% - 15px);
  }
}

/* Tablet: 2 cards */
@media (max-width: 991px) and (min-width: 576px) {
  .author-card {
    flex: 0 0 calc(50% - 15px);
  }
}

/* Mobile: 1 card */
@media (max-width: 575px) {
  .author-card {
    flex: 0 0 80%;
  }
}

/* .carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: hidden; /
} */
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;       /* MUST be auto */
  scroll-behavior: auto; /* disable smooth for auto-scroll */
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}


.author-card:hover {
  transform: translateY(-6px);
}

.author-card img {
  /* width: 100%; */
  /* height: 220px; */
  /* height: 100%; */
  /* object-fit: cover;*/
  /*border-radius: 10px;*/
  width: 100%;
  height: 350px;
  /* height: 100%; */
  object-fit: fill;
  border-radius: 10px;
}

.author-card h6 {
  /* margin-top: 10px;
  color: #467d1c;
  font-size: 16px; */
  background: #467d1c;
  color: #fff;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  align-items: center;
}

.author-card span {
  font-size: 16px;
  color: #467d1c;
}

/* Links */

a {
  /* color: rgba(255,255,255,0.9) !important; */
  margin-top: 5px !important;
  text-decoration: none;
}

/* Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn.left { left: 10px; }
.carousel-btn.right { right: 10px; }

.carousel-btn:hover {
  background: #467d1c;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .author-card {
    flex: 0 0 160px;
  }
}

/**/

/* .go-top-btn {
  position: fixed;
  right: 24px;
  bottom: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}
.go-top-btn.show {
  opacity: 1;
  visibility: visible;
} */

.go-top-btn {
  position: fixed;
  right: 24px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #467d1c;
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s ease;
  z-index: 999;
}

/* Visible state */
.go-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover */
.go-top-btn:hover {
  background: #467d1c;
  transform: translateY(-4px);
}

/* Keyboard focus */
.go-top-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(255,60,0,0.9);
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .go-top-btn {
    right: 16px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  .go-top-btn {
    transition: none;
  }
}

/* ===== FOOTER BASE ===== */
.site-footer {
  background: #f5e2bd;
  color: #ffffff;
  font-size: 16px;
  isolation: isolate;
  min-height: clamp(620px, 36vw, 753px);
  overflow: hidden;
  padding: clamp(46px, 4.8vw, 72px) 0 clamp(18px, 2.2vw, 32px);
  position: relative;
}

.site-footer::before,
.site-footer::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.site-footer::before {
  background: url("../images/rkmlibrary_footer.png") center top / 100% 100% no-repeat;
  z-index: 0;
}

/* .site-footer::after {
  background:
    linear-gradient(180deg, rgba(32, 98, 9, 0.72) 0%, rgba(18, 78, 4, 0.82) 52%, rgba(7, 48, 0, 0.9) 100%),
    linear-gradient(90deg, rgba(4, 38, 0, 0.78) 0%, rgba(42, 126, 13, 0.56) 50%, rgba(4, 38, 0, 0.82) 100%);
  z-index: 0;
} */

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  margin-bottom: clamp(18px, 2.2vw, 30px);
}

.site-footer .row {
  row-gap: clamp(24px, 3vw, 36px);
}

.site-footer [class*="col-"] {
  min-width: 0;
}

/* Logo */
.footer-logo {
  height: 56px;
  margin-bottom: 16px;
}

.footer-main-logo {
  height: auto;
  max-height: 68px;
  max-width: min(280px, 58vw);
  object-fit: contain;
  width: auto;
}

.footer-emblem {
  height: auto;
  margin-bottom: 12px;
  max-width: 66px;
  object-fit: contain;
  width: 66px;
}

.site-footer h4 {
  color: #ffff00;
  font-size: clamp(1.08rem, 1.25vw, 1.35rem) !important;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.48);
}

.site-footer .title-divider {
  background: rgba(87, 175, 20, 0.78);
  margin: 12px 0 18px;
  max-width: 260px;
}

/* About */
.footer-about {
  max-width: 360px;
  line-height: 1.7;
  color: #d0d0d0;
  text-align: left;
}

/* Social */
.footer-social {
  margin-top: 16px;
  text-align: justify;
}

.footer-social a {
  color: #fff;
  font-size: 20px;
  margin-right: 14px;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #57af14;
}

/* Accordion */
.footer-accordion {
  background: none;
  border: none;
  color: #fff;
  font-weight: 600;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  display: none;
  cursor: pointer;
}

.acc-icon {
  float: right;
}

/* Lists */
.footer-links,
.footer-contact {
  list-style: none;
  color: #467d1c;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 22px !important;
  font-weight: 600 !important;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
  max-width: 100%;
  min-width: 0;
}

.footer-links a,
.footer-contact a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #57af14;
}

/* Footer link base */
.footer-links li a {
  color: #e0e0e0;
  display: block;
  line-height: 1.45;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  padding-left: 28px;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
  white-space: normal !important;
  width: 100%;
  word-break: break-word;
}

/* Icon base */
.footer-links li a i {
  font-size: 12px;
  /* color: #57af14; */
  color: #ffff00;
  left: 0;
  margin-right: 0 !important;
  position: absolute;
  top: 0.70em;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover & focus states */
.footer-links li a:hover,
.footer-links li a:focus-visible {
  color: #ffff00;
}

.footer-links li a:hover i,
.footer-links li a:focus-visible i {
  transform: translateX(4px);
  color: #ffff00;
}

.footer-links li a:hover i {
  transform: translateX(2px);
}

.footer-links li a i {
  transition: transform 0.25s ease 0.05s, color 0.25s ease;
}



/*.footer-links li a {
  display: flex;
  align-items: center;
}

.footer-links i {
  font-size: 12px;
  color: #57af14;
}
*/

/* Divider */
.footer-divider {
  border-color: rgba(255,255,255,0.2);
  margin: clamp(26px, 3vw, 40px) 0 clamp(14px, 1.7vw, 22px);
}

/* Bottom */
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #ccc;
  text-align: center;
}

/* ===== MOBILE ACCORDION ===== */
/* @media (max-width: 768px) {
  .footer-accordion {
    display: block;
  }

  .acc-content {
    display: none;
    margin-bottom: 16px;
  }

  .acc-content.open {
    display: block;
  }
} */

.dropdown-menu {
    --bs-dropdown-bg: #e9cb80 !important;
  }

.site-footer .copyright {
  color: #ffff00;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.45;
  margin: 0 0 6px !important;
  /* max-width: 980px; */
  text-align: center !important;
}

.site-footer .copyright:last-child {
  margin-bottom: 0 !important;
}

.site-footer .copyright a {
  color: #ffff00;
  text-decoration: none;
}

.site-footer .copyright a:hover,
.site-footer .copyright a:focus-visible {
  color: #236308;
}

@media (max-width: 991.98px) {
  .site-footer {
    min-height: 0;
    padding-top: 44px;
  }

  .site-footer .title-divider {
    max-width: 220px;
  }
}

@media (max-width: 767.98px) {
  .site-footer {
    font-size: 15px;
    padding: 36px 0 22px;
  }

  .site-footer::before {
    background-position: center top;
    background-size: auto 100%;
  }

  .footer-top {
    margin-bottom: 24px;
  }

  .footer-main-logo {
    max-height: 58px;
  }

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

  .footer-links li a {
    line-height: 1.4;
    padding-left: 26px;
  }

  .footer-divider {
    margin: 24px 0 16px;
  }

  .footer-emblem {
    margin-bottom: 10px;
    width: 58px;
  }
}

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #57af14;
    --bs-btn-border-color: #57af14;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #bb2d3b;
    --bs-btn-hover-border-color: #b02a37;
    --bs-btn-focus-shadow-rgb: 225, 83, 97;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #b02a37;
    --bs-btn-active-border-color: #a52834;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #57af14;
    --bs-btn-disabled-border-color: #57af14;
}

/* CATEGORY BANNER */

/* .category-banner {
  background: linear-gradient(135deg, #467d1c 0%, #bfff73bd 100%);
  padding: 60px 0;
  color: #fff;
} */

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.banner-text h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 10px;
}

.banner-text p {
  font-size: 16px;
  max-width: 520px;
  opacity: 0.95;
}

.banner-text {
  text-align: left !important;
}

.banner-breadcrumb {
  margin-top: 15px;
  font-size: 16px;
}

.banner-breadcrumb a {
  color: #467d1c !important;
  text-decoration: none;
  opacity: 0.9;
}

.banner-breadcrumb span {
  margin: 0 6px;
  opacity: 0.8;
}

/* Right-side image */

.banner-image img {
  max-height: 120px;
  opacity: 0.9;
}

.category-banner {
  background: linear-gradient(135deg, #467d1c1e 0%, #bfff73bd 100%);
  /* padding: 60px 0; */
  padding: 5% 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Background image layer */
.banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.banner-bg img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  object-fit: fill;
  /* opacity: 0.15;  */
  /* subtle background */
}

.category-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(240,124,0,0.85); */
  z-index: 1;
}

/* Keep content above */
.banner-content {
  position: relative;
  z-index: 2;
  color: #467d1c !important;
}
/* Responsive */

@media (max-width: 768px) {
  .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .banner-text h1 {
    font-size: 28px;
  }

  .banner-image img {
    max-height: 90px;
  }
}

/* .category-banner {
  background:
    linear-gradient(rgba(255,140,66,0.9), rgba(255,140,66,0.9)),
    url("../images/banner-1.png") center/cover;
} */

/* Sidebar */

.category-box {
  background: #fff3e6;
  border-radius: 12px;
  padding: 20px;
}

.category-box h5 {
  font-weight: 600;
  color: #57af14;
}

.category-links {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

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

.category-links a {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.category-links a i {
  color: #57af14;
  transition: transform 0.3s ease;
}

.category-links a:hover {
  color: #57af14;
}

.category-links a:hover i {
  transform: translateX(4px);
}

/* Parent */
.has-submenu > a {
  cursor: pointer;
  font-weight: 600;
}

/* Submenu */
.submenu {
  list-style: none;
  padding-left: 22px;
  margin-top: 8px;
  display: none;
}

.submenu li {
  margin-bottom: 6px;
}

.submenu li a {
  font-size: 16px;
  color: #555;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
  text-align: left;
  padding: 6px 12px;
  border-radius: 6px;
  border: solid;
  border-color: #fac096;
  margin: 1%;
}

.submenu li a:hover {
  color: #57af14;
}

@media (max-width: 768px) {
  .category-links a {
    padding: 14px 12px;
  }

  .submenu {
    margin-left: 24px;
  }
}


/* Arrow animation */
.arrow {
  transition: transform 0.3s ease;
}

/* Active state */
.has-submenu.active > a {
  color: #57af14;
}

.has-submenu.active .submenu {
  display: block;
}

.has-submenu.active .arrow {
  transform: rotate(90deg);
}

/* ---------- ACTIVE SUBCATEGORY ---------- */
.submenu a.active {
  color: #57af14;
  font-weight: 600;
  position: relative;
}

.submenu a.active::before {
  content: "â€¢";
  color: #57af14;
  position: absolute;
  left: -12px;
}

/* BASE */
.category-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Parent items */
.category-links > li {
  margin-bottom: 6px;
  border: solid;
    border-color: #fac096;
        border-radius: 10px;
}

.category-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #2c2c2c;
  font-size: 16px;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Parent hover */
.category-links > li > a:hover {
  background: #fff2e8;
  color: #57af14;
}

/* Arrow */
.arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

/* Active parent */
.has-submenu.active > a {
  background: #fff2e8;
  color: #57af14;
  font-weight: 600;
}

/* Rotate arrow */
.has-submenu.active .arrow {
  transform: rotate(90deg);
}

/* SUBMENU CONTAINER */
.submenu {
  list-style: none;
  margin: 6px 0 10px 32px;
  padding: 8px 0;
  border-left: 2px solid #ffe1cc;
  display: none;
}

/* Show submenu */
.has-submenu.active .submenu {
  display: block;
}

/* Submenu links */
/* .submenu li a {
  font-size: 16px;
  padding: 6px 12px;
  color: #555;
  border-radius: 6px;
} */

/* Submenu hover */
.submenu li a:hover {
  /* background: #fff7f0; */
  background: rgba(251, 218, 177, 0.75);;
  color: #000000;
}

/* ---------- MOBILE ACCORDION ---------- */
/* @media (max-width: 768px) {

  .category-links {
    border-top: 1px solid #eee;
  }

  .category-links > li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
  }

  .submenu {
    padding-left: 18px;
  }

  .submenu-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .arrow {
    margin-left: auto;
  }

} */


/* Library Filters */

.library-filter-box {
  background: #fff3e6;
  border: 0;
  border-radius: 12px;
  padding: 20px;
}

.book-filter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-group {
  border: solid;
  border-color: #fac096;
  border-radius: 10px;
  margin: 0;
  padding: 10px 12px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.filter-group:hover,
.filter-group:focus-within {
  background: #fff2e8;
  box-shadow: 0 8px 18px rgba(240, 124, 0, 0.08);
}

.library-filter-box h5,
.library-filter-box .filter-label {
  display: block;
  color: #2c2c2c;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 10px;
}

.language-filter-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.language-filter-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-option {
  color: #555;
  cursor: pointer;
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  padding: 6px 12px;
  border: solid;
  border-color: #fac096;
  border-radius: 6px;
  width: 100%;
  transition: background 0.25s ease, color 0.25s ease;
}

.filter-option:hover,
.language-filter-options input:focus-visible + .filter-option {
  background: rgba(251, 218, 177, 0.75);
  color: #000000;
}

.language-filter-options input:checked + .filter-option {
  color: #57af14;
  font-weight: 600;
}

.filter-control {
  border: 1px solid #fac096;
  border-radius: 6px;
  color: #555;
  font-size: 16px;
  min-height: 38px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.filter-control:focus {
  border-color: #57af14;
  box-shadow: 0 0 0 0.2rem rgba(87, 175, 20, 0.14);
}

.filter-control[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

.filter-control[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  background-color: #8a6b53;
  border-radius: 50%;
  cursor: pointer;
  height: 14px;
  margin-left: 8px;
  opacity: 0.65;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  width: 14px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.22 4.22a.75.75 0 0 1 1.06 0L8 6.94l2.72-2.72a.75.75 0 1 1 1.06 1.06L9.06 8l2.72 2.72a.75.75 0 1 1-1.06 1.06L8 9.06l-2.72 2.72a.75.75 0 1 1-1.06-1.06L6.94 8 4.22 5.28a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.22 4.22a.75.75 0 0 1 1.06 0L8 6.94l2.72-2.72a.75.75 0 1 1 1.06 1.06L9.06 8l2.72 2.72a.75.75 0 1 1-1.06 1.06L8 9.06l-2.72 2.72a.75.75 0 1 1-1.06-1.06L6.94 8 4.22 5.28a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.filter-control[type="search"]::-webkit-search-cancel-button:hover {
  background-color: #f07c00;
  opacity: 1;
  transform: scale(1.08);
}

.fuzzy-filter {
  position: relative;
}

.fuzzy-filter::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #57af14;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 12px;
  top: 17px;
  transition: transform 0.2s ease;
}

.fuzzy-filter.is-open::after {
  transform: rotate(180deg);
}

.fuzzy-filter .filter-control {
  padding-right: 30px;
}

.fuzzy-filter-list {
  background: #fff;
  border: 1px solid rgba(240, 124, 0, 0.34);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(71, 125, 28, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  display: none;
  left: 0;
  margin-top: 6px;
  max-height: 158px;
  overflow-y: scroll;
  overscroll-behavior: contain;
  padding: 6px 6px 6px 10px;
  position: absolute;
  right: 0;
  scrollbar-color: #e6a164 #fff6ee;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  top: 100%;
  z-index: 1050;
}

.book-filter-form .filter-group:last-child .fuzzy-filter-list {
  bottom: 100%;
  margin-bottom: 6px;
  margin-top: 0;
  top: auto;
}

.fuzzy-filter.is-open .fuzzy-filter-list {
  display: block;
}

.fuzzy-filter-item {
  background: #fff;
  border: 0;
  border-radius: 6px;
  color: #3d3d3d;
  display: block;
  font-size: 16px;
  line-height: 1.35;
  padding: 9px 10px;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
  width: 100%;
}

.fuzzy-filter-item:hover,
.fuzzy-filter-item:focus {
  background: #fff2e8;
  color: #467d1c;
  outline: 0;
  padding-left: 14px;
}

.fuzzy-filter-item.is-selected {
  background: rgba(87, 175, 20, 0.12);
  color: #467d1c;
  font-weight: 600;
}

.fuzzy-filter-item.is-hidden {
  display: none;
}

.fuzzy-filter-empty {
  color: #777;
  display: none;
  font-size: 16px;
  padding: 9px 10px;
  text-align: center;
}

.fuzzy-filter.has-no-results .fuzzy-filter-empty {
  display: block;
}

.fuzzy-filter-list::-webkit-scrollbar {
  width: 7px;
}

.fuzzy-filter-list::-webkit-scrollbar-track {
  background: #fff6ee;
  border-radius: 999px;
}

.fuzzy-filter-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fac096 0%, #e18b43 100%);
  border: 2px solid #fff6ee;
  border-radius: 999px;
}

.fuzzy-filter-list::-webkit-scrollbar-thumb:hover {
  background: #f07c00;
}

@media (max-width: 991px) {
  .library-filter-box h5,
  .library-filter-box .filter-label {
    font-size: 16px;
  }

  .filter-option {
    font-size: 16px;
  }
}


/* Book Details */

.book-detail-page {
  background: #fffdf9;
}

.book-detail-toolbar {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(87, 175, 20, 0.18);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(71, 125, 28, 0.1);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 14px 16px;
}

.book-detail-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.book-detail-icon {
  align-items: center;
  background: #e0f8c6;
  border-radius: 8px;
  color: #467d1c;
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.book-detail-kicker {
  color: #f07c00;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
}

.book-detail-heading h2 {
  color: #2f2f2f;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.book-tool-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.book-zoom-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

/* The collapsible circular trigger only exists for the mobile floating layout. */
.book-zoom-toggle {
  display: none;
}

.book-tool-btn {
  align-items: center;
  background: #fff3e6;
  border: 1px solid rgba(240, 124, 0, 0.28);
  border-radius: 8px;
  color: #467d1c;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  width: 38px;
}

.book-tool-btn:hover,
.book-tool-btn:focus-visible {
  background: #f07c00;
  color: #ffffff;
  transform: translateY(-1px);
}

.book-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.book-detail-nav-box {
  background: #fff3e6;
  border: 1px solid rgba(250, 192, 150, 0.85);
  border-radius: 10px;
  padding: 14px;
}

.book-detail-nav-box h3 {
  align-items: center;
  color: #467d1c;
  display: flex;
  font-size: 18px;
  font-weight: 700;
  gap: 8px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.book-detail-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-detail-page-list li {
  margin: 0;
}

.book-detail-page-list a {
  border-radius: 6px;
  color: #333333;
  display: block;
  font-size: 16px;
  line-height: 1.45;
  padding: 8px 10px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.book-detail-page-list a:hover,
.book-detail-page-list a:focus-visible,
.book-detail-page-list a.is-active {
  background: rgba(224, 248, 198, 0.9);
  color: #180000;
  padding-left: 14px;
}

/* Note: Book Chapters uses native <details>/<summary>; this CSS hides the browser marker and adds a custom chevron so expand/collapse works without Blade or JS changes. */
.book-chapters-box {
  background: #ffffff;
  border-color: rgba(240, 124, 0, 0.36);
}

.book-chapter-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: #e6a164 #fff6ee;
  scrollbar-width: thin;
}

.book-chapter-list::-webkit-scrollbar {
  width: 7px;
}

.book-chapter-list::-webkit-scrollbar-track {
  background: #fff6ee;
  border-radius: 999px;
}

.book-chapter-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fac096 0%, #e18b43 100%);
  border: 2px solid #fff6ee;
  border-radius: 999px;
}

.book-chapter-part,
.book-chapter-item {
  border-bottom: 1px solid rgba(240, 124, 0, 0.14);
}

.book-chapter-part:last-child,
.book-chapter-item:last-child {
  border-bottom: 0;
}

.book-chapter-part > summary,
.book-chapter-item > summary {
  align-items: flex-start;
  border-radius: 8px;
  color: #07558b;
  cursor: pointer;
  display: flex;
  font-size: 17px;
  font-weight: 700;
  gap: 10px;
  line-height: 1.35;
  list-style: none;
  padding: 10px 8px;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
  user-select: none;
}

.book-chapter-item > summary {
  font-size: 16px;
}

.book-chapter-part > summary::marker,
.book-chapter-item > summary::marker,
.book-chapter-part > summary::-webkit-details-marker,
.book-chapter-item > summary::-webkit-details-marker {
  content: "";
  display: none;
}

.book-chapter-part > summary::before,
.book-chapter-item > summary::before {
  border-bottom: 2px solid #f07c00;
  border-right: 2px solid #f07c00;
  content: "";
  flex: 0 0 auto;
  height: 9px;
  margin-top: 6px;
  transform: rotate(-45deg);
  transform-origin: center;
  transition: border-color 0.24s ease, transform 0.24s ease;
  width: 9px;
}

.book-chapter-part[open] > summary,
.book-chapter-item[open] > summary {
  color: #07558b;
}

.book-chapter-part[open] > summary::before,
.book-chapter-item[open] > summary::before {
  transform: rotate(45deg);
}

.book-chapter-part > summary:hover,
.book-chapter-part > summary:focus-visible,
.book-chapter-item > summary:hover,
.book-chapter-item > summary:focus-visible {
  background: rgba(224, 248, 198, 0.42);
  color: #467d1c;
  outline: 0;
}

.book-chapter-part > summary:hover::before,
.book-chapter-part > summary:focus-visible::before,
.book-chapter-item > summary:hover::before,
.book-chapter-item > summary:focus-visible::before {
  border-color: #467d1c;
}

.book-chapter-items {
  border-left: 2px solid rgba(87, 175, 20, 0.24);
  margin: 0 0 10px 18px;
  padding-left: 12px;
}

.book-chapter-part[open] > .book-chapter-items,
.book-chapter-item[open] > ul {
  animation: chapterReveal 0.2s ease;
}

.book-chapter-item ul {
  border-left: 2px solid rgba(87, 175, 20, 0.18);
  list-style: none;
  margin: 2px 0 10px 18px;
  padding: 6px 0 6px 16px;
}

.book-chapter-item li {
  margin: 0;
}

.book-chapter-item a,
.book-chapter-link {
  border-radius: 6px;
  color: #333333;
  display: block;
  font-size: 16px;
  line-height: 1.45;
  padding: 8px 10px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
}

.book-chapter-item a:hover,
.book-chapter-item a:focus-visible,
.book-chapter-item a.is-active,
.book-chapter-link:hover,
.book-chapter-link:focus-visible,
.book-chapter-link.is-active {
  background: rgba(224, 248, 198, 0.9);
  color: #180000;
  outline: 0;
  padding-left: 14px;
}

@keyframes chapterReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.book-reader-panel,
.book-reading-block {
  --reader-zoom: 1;
  background: #ffffff;
  border: 1px solid rgba(87, 175, 20, 0.18);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(71, 125, 28, 0.1);
  margin-bottom: 18px;
  padding: 18px;
  max-width: 800px;
}

.book-reader-section {
  display: none;
}

.book-reader-section.is-active {
  display: block;
  font-size: calc(1rem * var(--reader-zoom));
}

.book-reader-header {
  border-bottom: 1px solid rgba(87, 175, 20, 0.16);
  margin-bottom: 18px;
  padding-bottom: 12px;
  text-align: center;
}

.book-reader-header p {
  color: #f07c00;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.book-reader-header h3,
.book-reading-block h3 {
  color: #467d1c;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.book-cover-stage {
  align-items: center;
  background: #fffaf4;
  border: 1px solid rgba(250, 192, 150, 0.7);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  min-height: 420px;
  padding: 22px;
}

.book-cover-stage img {
  height: auto;
  max-height: 560px;
  max-width: 100%;
  object-fit: contain;
}

.book-meta-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.book-meta-grid div {
  background: #f8fff2;
  border: 1px solid rgba(87, 175, 20, 0.16);
  border-radius: 8px;
  padding: 12px;
}

.book-meta-grid span {
  color: #f07c00;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}

.book-meta-grid strong {
  color: #2f2f2f;
  display: block;
  font-size: 16px;
  line-height: 1.4;
}

.book-reading-block p {
  color: #2f2f2f;
  font-size: 18px;
  line-height: 1.75;
  margin: 10px 0 0;
}

.book-reader-text {
  color: #2f2f2f;
  font-size: calc(18px * var(--reader-zoom, 1));
  line-height: 1.75;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

.book-reader-text h4 {
  color: #f07c00;
  font-size: calc(24px * var(--reader-zoom, 1));
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
}

.book-reader-text p,
.book-reader-text ul,
.book-reader-text ol {
  margin: 0 0 14px;
}

.book-reader-text li {
  margin-bottom: 8px;
}

.book-page-head {
  align-items: center;
  border-bottom: 1px solid #bdbdbd;
  color: #111111;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  line-height: 1.35;
  margin-bottom: 14px;
  padding-bottom: 10px;
}

/* Pasted-in book content (Google Docs, Word, etc.) carries inline font-size on
   the actual text runs, which no plain rule on the container can override - so
   the zoom control couldn't reach the glyphs, only the line-height around them.
   Force every non-heading descendant back to the container's scaled size. */
.book-article-content :not(h2):not(h3):not(h4),
.book-reader-text :not(h4) {
  font-size: inherit !important;
}

.book-article-content {
  color: #111111;
  font-size: calc(16px * var(--reader-zoom, 1));
  line-height: 1.7;
  overflow: auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

.book-reader-text::after,
.book-article-content::after {
  clear: both;
  content: "";
  display: table;
}

.book-article-content h2,
.book-article-content h3,
.book-article-content h4 {
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  text-align: center;
}

.book-article-content h2,
.book-article-content h3 {
  color: #800000;
}

.book-article-content h2 {
  font-size: calc(22px * var(--reader-zoom, 1));
}

.book-article-content h3 {
  font-size: calc(20px * var(--reader-zoom, 1));
}

.book-article-content h4 {
  color: #0000cd;
  font-size: calc(18px * var(--reader-zoom, 1));
}

.book-article-summary {
  color: #008000;
  font-weight: 700;
  text-align: center;
}

.book-article-content p {
  margin: 0 0 16px;
  text-align: justify;
}

.book-reader-text img,
.book-article-content img {
  display: inline-block;
  height: auto !important;
  max-width: 100% !important;
}

.book-reader-text img.image-align-left,
.book-article-content img.image-align-left {
  float: left;
  margin: 4px 18px 12px 0;
}

.book-reader-text img.image-align-center,
.book-article-content img.image-align-center {
  display: block;
  float: none;
  margin: 12px auto;
}

.book-reader-text img.image-align-right,
.book-article-content img.image-align-right {
  float: right;
  margin: 4px 0 12px 18px;
}

.book-reader-text img.image-align-none,
.book-article-content img.image-align-none {
  display: block;
  float: none;
  margin: 12px 0;
}

.book-reader-text table,
.book-article-content table,
.content-page table {
  border-collapse: collapse;
  margin: 10px 0;
  max-width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  width: 100%;
}

.book-reader-text th,
.book-reader-text td,
.book-article-content th,
.book-article-content td,
.content-page th,
.content-page td {
  border: 1px solid #111827;
  padding: 6px 8px;
  vertical-align: top;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.book-reader-text th,
.book-article-content th,
.content-page th {
  font-weight: 700;
  text-align: center;
}

/* Word/Docs often uses a borderless nested table purely to align inline content
   (e.g. MCQ options "(a) ... (b) ..."). Without this, the blanket table/td
   border above turns that into a visible boxed "extra table". */
.book-reader-text table table,
.book-article-content table table,
.content-page table table {
  border: none;
  margin: 0;
  max-width: none;
  table-layout: auto;
  width: auto;
}

.book-reader-text table table th,
.book-reader-text table table td,
.book-article-content table table th,
.book-article-content table table td,
.content-page table table th,
.content-page table table td {
  border: none;
  padding: 0 4px;
  white-space: nowrap !important;
}

/* Pasted Word/HTML tables carry explicit per-cell pt/px widths, which
   table-layout:fixed honors over the table's own width:100% - the columns
   refuse to shrink to the phone's screen. Reader init wraps every table in
   .book-table-scroll so it scrolls on its own instead of forcing the whole
   reading pane to scroll (which would drag the surrounding text along) or
   squeezing every column to the same width regardless of content. */
.book-table-scroll {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

.book-article-figure {
  max-width: 620px;
  width: fit-content;
}

.book-article-figure.image-align-left {
  float: left;
  margin: 8px 18px 16px 0;
}

.book-article-figure.image-align-right {
  float: right;
  margin: 8px 0 16px 18px;
}

.book-article-figure.image-align-center {
  float: none;
  margin: 24px auto;
}

.book-article-figure.image-align-none {
  float: none;
  margin: 24px 0;
}

.book-article-figure img {
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
  height: auto;
  max-width: 100%;
}

.book-article-figure figcaption {
  color: #d9251d;
  font-size: calc(16px * var(--reader-zoom, 1));
  font-weight: 700;
  line-height: 1.35;
  margin-top: 8px;
  overflow-wrap: break-word;
  text-align: center;
}

.book-article-subhead {
  color: #008000 !important;
  margin-top: 16px !important;
}

.content-page {
  color: #111111;
  font-size: 16px;
  line-height: 1.65;
  overflow: auto;
}

.content-page::after {
  clear: both;
  content: "";
  display: table;
}

.content-page p {
  margin: 0 0 16px;
  text-align: justify;
}

.content-page img {
  display: inline-block;
  height: auto;
  max-width: 100%;
}

.content-page img.image-align-left {
  float: left;
  margin: 4px 18px 12px 0;
}

.content-page img.image-align-center {
  display: block;
  float: none;
  margin: 12px auto;
}

.content-page img.image-align-right {
  float: right;
  margin: 4px 0 12px 18px;
}

.content-page img.image-align-none {
  display: block;
  float: none;
  margin: 12px 0;
}

.content-page blockquote {
  background: #f8fafc;
  border-left: 4px solid #c7d2fe;
  color: #475569;
  margin: 0 0 16px;
  padding: 8px 14px;
}

.content-page pre {
  background: #111827;
  border-radius: 8px;
  color: #f8fafc;
  padding: 10px 12px;
  white-space: pre-wrap;
}

.content-page .math-inline,
.content-page .math-block {
  display: inline-block;
}

.content-page .math-block {
  display: block;
  margin: 8px 0;
  text-align: center;
}

@media (max-width: 575.98px) {
  /* :not([src^="data:"]) excludes the tiny inline glyph icons Word/Office
     paste leaves behind as embedded base64 images (e.g. small angle/delta
     marks) - stretching those to full width is what made them look blown
     up and blurry. Real photos always come from /storage/editor-images/. */
  .book-reader-text img.image-align-left:not([src^="data:"]),
  .book-reader-text img.image-align-right:not([src^="data:"]),
  .book-article-content img.image-align-left:not([src^="data:"]),
  .book-article-content img.image-align-right:not([src^="data:"]),
  .content-page img.image-align-left:not([src^="data:"]),
  .content-page img.image-align-right:not([src^="data:"]),
  .book-article-figure.image-align-left,
  .book-article-figure.image-align-right {
    display: block;
    float: none;
    margin: 12px auto;
    max-width: 100%;
    width: 100%;
  }
}

.book-footnote {
  border-top: 1px solid #bdbdbd;
  clear: both;
  color: #111111;
  font-size: calc(16px * var(--reader-zoom, 1));
  line-height: 1.65;
  margin-top: 56px;
  padding-top: 12px;
}

.book-reader-pagination {
  align-items: center;
  background: #fff0a8;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 18px;
  min-height: 60px;
  padding: 9px 44px;
}

.book-reader-pagination[hidden] {
  display: none;
}

.book-page-control {
  align-items: center;
  background: #d9534f;
  border: 1px solid #d43f3a;
  border-radius: 5px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 700;
  gap: 4px;
  justify-content: center;
  line-height: 1.2;
  margin-top: 0 !important;
  min-height: 42px;
  min-width: 91px;
  padding: 8px 15px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.book-page-control:hover,
.book-page-control:focus-visible {
  background: #c9302c;
  border-color: #ac2925;
  color: #ffffff;
  outline: 0;
  transform: translateY(-1px);
}

.book-page-control.is-disabled,
.book-page-control:disabled {
  background: #d9534f;
  border-color: #d43f3a;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.book-page-status {
  align-items: center;
  color: #111111;
  display: inline-flex;
  font-size: 18px;
  font-weight: 400;
  justify-content: center;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 991px) {
  .book-detail-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .book-reader-pagination {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 575px) {
  .book-detail-heading h2 {
    font-size: 21px;
  }

  /* Only book/reader pages (.book-detail-page) replace go-top with the zoom
     fab - everywhere else on the site keeps the normal go-top button. */
  .book-detail-page ~ .go-top-btn {
    display: none;
  }

  /* Zoom trio takes over the go-top button's spot on mobile instead of
     sitting in the top toolbar, collapsed into a circular trigger by default. */
  .book-zoom-fab {
    bottom: 20px;
    position: fixed;
    right: 16px;
    z-index: 999;
  }

  .book-zoom-toggle {
    align-items: center;
    background: #467d1c;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-size: 18px;
    height: 48px;
    justify-content: center;
    width: 48px;
  }

  .book-zoom-fab.is-open .book-zoom-toggle {
    display: none;
  }

  .book-zoom-actions {
    background: #467d1c;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: none;
    padding: 5px 10px;
  }

  .book-zoom-fab.is-open .book-zoom-actions {
    display: inline-flex;
  }

  .book-zoom-actions .book-tool-btn {
    background: transparent;
    border-color: transparent;
    color: #ffffff;
  }

  .book-zoom-actions .book-tool-btn:hover,
  .book-zoom-actions .book-tool-btn:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }

  .book-zoom-status {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
  }

  .book-meta-grid {
    grid-template-columns: 1fr;
  }

  .book-cover-stage {
    min-height: 280px;
    padding: 14px;
  }

  .book-reader-pagination {
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .book-page-control {
    min-width: 0;
    width: 100%;
  }

  .book-page-status {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }
}


/* Book Cards */

.book-card-row > [class*="col-"] {
  display: flex;
}

.book-card-row > [class*="col-"] > a {
  display: flex;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.book-card {
  background: #e8ffd780;
  border-radius: 12px;
  padding: 2% !important;
  text-align: center;
  border: 5px solid rgb(87 175 20);
  transition: transform 0.3s ease;
  position: relative;
}

.book-volume-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgb(87 175 20);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.book-card-row .book-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 12px !important;
}

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

.book-card img {
  /* max-height: 15rem; */
   max-height: 20rem;
  margin-bottom: 15px;
}

.book-card-row .book-card img {
  width: 100%;
  height: 15rem;
  max-height: none;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(87, 175, 20, 0.22);
  border-radius: 8px;
}

.btn-orange {
  /* background: #57af14;
  color: #fff;
  border-radius: 20px; */
  color: rgb(255, 255, 255);
    font-size: 16px;
    font-weight: 600 !important;
    background: rgb(240, 124, 0);
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    padding: 6px 20px;
}

.btn-orange:hover {
  background: #e67328 !important;
  color: #000 !important; 
}

.book-card h6 {
 color: #57af14;
}

.book-card-row .book-card h6 {
  margin-bottom: 0;
  min-height: auto;
}

.book-card-row .book-card .book-category {
  color: #f07c00;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
  text-align: center !important;
  display: none;
}

.book-card-row .book-card .book-title {
  color: #467d1c;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.text-muted {
    --bs-text-opacity: 1;
    /* color: var(--bs-secondary-color) !important; */
    color: #57af14 !important;
}

.page-link { 
  color: #000;
}

.active>.page-link, .page-link.active {
    z-index: 3;
    color: #ffffff;
    background-color: #467d1c;
    border-color: #ff8c41;
}

/* ABOUT SECTIONS */

.about-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #333;
}

.about-section p {
  color: #555;
  line-height: 1.7;
}

/* ABOUT CARD */

.about-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #57af14;
  height: 100%;
}

.about-card h3 {
  color: #57af14;
  margin-bottom: 10px;
}

/* LIST */

.about-list {
  padding-left: 20px;
}

.about-list li {
  margin-bottom: 8px;
  color: #555;
}

/* VALUES */

.value-card {
  text-align: center;
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  border: 1px solid #57af14;
}

.value-card i {
  font-size: 28px;
  color: #57af14;
  margin-bottom: 10px;
}

.value-card h4 {
  margin-bottom: 8px;
}

h6 {
    font-weight: bold;
}

.message-photo {
  /* width: 180px; */
  width: 100%;
  height: auto;
  margin-bottom: 5%;
  /* border-radius: 12px; */
  border: 1px solid #57af14;
}
/* blockquote {
  border-left: 4px solid #467d1c;
  padding-left: 15px;
  font-style: italic;
  font-weight:700;
  color: #467d1c;
} */

blockquote {
  position: relative;
  margin: 20px 0;
  padding: 20px 25px;
  background: #fff6ef;
  border-left: 5px solid #467d1c;
  border-radius: 0px;
  /* font-style: normal; */
  font-weight: 700;
  /* font-size: 20px; */
  /* line-height: 1.6; */
  color: #467d1c;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.signature {
  margin-top: 15px;
  color: #57af14;
}

.brochure-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #57af14;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  transition: background 0.3s ease;
}

.brochure-card i {
  font-size: 24px;
  color: #57af14;
}

.brochure-card:hover {
  background: #fff5ed;
}

/* OUR SITES */

.our-sites-directory {
  overflow: hidden;
  margin: 10px 0 54px;
  background: #fff;
  border: 1px solid rgba(70, 125, 28, 0.22);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(18, 36, 8, 0.08);
}

.our-sites-heading,
.our-site-row {
  display: grid;
  grid-template-columns: 96px minmax(280px, 1.25fr) minmax(240px, 0.9fr) 150px;
  align-items: center;
  gap: 20px;
}

.our-sites-heading {
  padding: 14px 24px;
  background: #467d1c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.our-site-row {
  position: relative;
  padding: 22px 24px;
  border-top: 1px solid rgba(70, 125, 28, 0.14);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.our-site-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(244, 255, 233, 0.96) 0%, rgba(255, 251, 244, 0.96) 56%, rgba(240, 124, 0, 0.13) 100%);
  opacity: 0;
  transform: scaleX(0.96);
  transform-origin: left center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.our-site-row > * {
  position: relative;
  z-index: 1;
}

.our-site-row:hover {
  box-shadow: inset 4px 0 0 #f07c00;
}

.our-site-row:hover::before,
.our-site-row:focus-within::before {
  opacity: 1;
  transform: scaleX(1);
}

.our-site-row:focus-within {
  box-shadow: inset 4px 0 0 #f07c00;
}

.our-site-serial {
  width: 54px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4ffe9;
  border: 1px solid rgba(70, 125, 28, 0.24);
  border-radius: 8px;
  color: #467d1c;
  font-size: 18px;
  font-weight: 800;
}

.our-site-content {
  min-width: 0;
}

.our-site-content h3 {
  margin: 0 0 6px;
  color: #202020;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.our-site-content p {
  margin: 0;
  color: #555;
  font-size: 16px;
  line-height: 1.55;
}

.our-site-url {
  color: #467d1c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.our-site-url:hover,
.our-site-url:focus-visible {
  color: #f07c00;
  text-decoration: underline;
}

.our-site-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background: #f07c00;
  border: 1px solid #f07c00;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.our-site-visit:hover,
.our-site-visit:focus-visible {
  background: #467d1c;
  border-color: #467d1c;
  color: #fff;
}

@media (max-width: 1199px) {
  .our-sites-heading,
  .our-site-row {
    grid-template-columns: 80px minmax(240px, 1fr) minmax(220px, 0.9fr) 132px;
  }
}

@media (max-width: 991px) {
  .our-sites-heading {
    display: none;
  }

  .our-site-row {
    grid-template-columns: 64px 1fr;
    gap: 14px 18px;
    align-items: start;
  }

  .our-site-url,
  .our-site-visit {
    grid-column: 2;
  }

  .our-site-visit {
    justify-self: start;
  }
}

@media (max-width: 575px) {
  .our-site-row {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .our-site-url,
  .our-site-visit {
    grid-column: auto;
  }

  .our-site-content h3 {
    font-size: 20px;
  }

  .our-site-visit {
    width: 100%;
  }
}

/* .list-image {
  width: 300px !important;
    height: 450px !important;
    border: solid #FF9800;
    border-style: outset;
} */

.list-image {
  width: 300px;
  height: 420px;
  /* object-fit: cover; */
  border-radius: 12px;
  border: 1px solid #57af14;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover effect */
.book-card:hover .list-image {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(248, 171, 4, 0.33);
}

.about-text {
  font-weight:700;
  color: #467d1c;
}

.impact-list {
  list-style: none;
  padding-left: 0;
  margin-left: 20px;
}

.impact-list li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 40px;
}

.impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23f08d4f'%3E%3Cellipse cx='32' cy='12' rx='8' ry='15'/%3E%3Cellipse cx='32' cy='52' rx='8' ry='15'/%3E%3Cellipse cx='12' cy='32' rx='15' ry='8'/%3E%3Cellipse cx='52' cy='32' rx='15' ry='8'/%3E%3Cellipse cx='18' cy='18' rx='8' ry='15' transform='rotate(-45 18 18)'/%3E%3Cellipse cx='46' cy='18' rx='8' ry='15' transform='rotate(45 46 18)'/%3E%3Cellipse cx='18' cy='46' rx='8' ry='15' transform='rotate(45 18 46)'/%3E%3Cellipse cx='46' cy='46' rx='8' ry='15' transform='rotate(-45 46 46)'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='11' fill='%23ffd76a'/%3E%3Ccircle cx='32' cy='32' r='6' fill='%23f5bc3d'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* .impact-list li::before {
  content: counter(impact-counter) ".";
  position: absolute;
  left: -30px;
  top: 0;
  color: #467d1c;
  font-size: 18px;
  font-weight: 600;
} */

/* .impact-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #444;
} */

/* .impact-list li::before {
  content: "â€¢";
  position: absolute;
  left: 0;
  top: 0;
  color: #467d1c;
  font-size: 22px;
  line-height: 1;
} */


.impact-list strong {
  color: #57af14;
}
strong {
  color: #57af14;
}

/* CONTACT PAGE */

.contact-page {
  background: #fbfff7;
  color: #202020;
}

.contact-page p,
.contact-page li,
.contact-page a,
.contact-page input,
.contact-page select,
.contact-page textarea {
  overflow-wrap: anywhere;
}

.contact-intro {
  padding-top: 28px;
  padding-bottom: 16px;
}

.contact-details-section {
  padding: 24px 0 48px;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid rgba(70, 125, 28, 0.18);
  border-top: 5px solid #467d1c;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(29, 56, 12, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-info-card:hover {
  border-color: rgba(70, 125, 28, 0.38);
  box-shadow: 0 18px 42px rgba(29, 56, 12, 0.13);
  transform: translateY(-4px);
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9ffd8;
  color: #467d1c;
  border: 1px solid rgba(70, 125, 28, 0.18);
  border-radius: 8px;
  font-size: 24px;
  margin-bottom: 18px;
}

.contact-info-card h3,
.contact-form-panel h3,
.contact-visit-panel h3,
.contact-map-header h3 {
  color: #233c12;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-info-card p,
.contact-visit-panel p {
  color: #4a4a4a;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.contact-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #467d1c;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.contact-text-link:hover,
.contact-text-link:focus-visible {
  color: #f07c00;
}

.contact-main-section {
  background: #ffffff;
  padding: 58px 0;
}

.contact-form-panel,
.contact-visit-panel {
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(18, 36, 8, 0.1);
  overflow: hidden;
}

.contact-form-panel {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfff7 100%);
  border: 1px solid rgba(70, 125, 28, 0.16);
  padding: 36px;
}

.contact-form-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, #467d1c 0%, #f07c00 100%);
}

.contact-panel-heading {
  margin-bottom: 24px;
}

.contact-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(70, 125, 28, 0.12);
  padding-bottom: 20px;
}

.contact-form-heading p {
  color: #5d5d5d;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 520px;
}

.contact-form-heading-icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9ffd8;
  border: 1px solid rgba(70, 125, 28, 0.18);
  border-radius: 8px;
  color: #467d1c;
  font-size: 24px;
}

.contact-panel-kicker {
  display: block;
  color: #f07c00;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.contact-form .form-label {
  color: #233c12;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 9px;
}

.contact-form .form-control,
.contact-form .form-select {
  background-color: #ffffff;
  border: 1px solid rgba(70, 125, 28, 0.22);
  border-radius: 6px;
  color: #202020;
  font-size: 16px;
  min-height: 52px;
  padding: 12px 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-form .form-control::placeholder {
  color: #687061;
  opacity: 1;
}

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

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background-color: #ffffff;
  border-color: #467d1c;
  box-shadow: 0 0 0 0.2rem rgba(87, 175, 20, 0.12);
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  min-width: 176px;
  padding: 11px 28px;
  background: #467d1c;
  border: 1px solid #467d1c;
  border-radius: 6px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(70, 125, 28, 0.2);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-submit-btn:hover,
.contact-submit-btn:focus-visible {
  background: #f07c00;
  border-color: #f07c00;
  box-shadow: 0 14px 30px rgba(240, 124, 0, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.contact-visit-panel {
  background: #ffffff;
  border: 1px solid rgba(70, 125, 28, 0.16);
  color: #202020;
}

.contact-visit-media {
  position: relative;
  isolation: isolate;
  background: #f8fcf4;
  border: 1px solid rgba(70, 125, 28, 0.14);
  border-radius: 8px;
  margin: 18px 18px 0;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(18, 36, 8, 0.09);
}

.contact-visit-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(17, 33, 8, 0.06) 0%, rgba(17, 33, 8, 0.08) 45%, rgba(17, 33, 8, 0.68) 100%);
  pointer-events: none;
  z-index: 1;
}

.contact-visit-image {
  width: 100%;
  height: 255px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.contact-visit-panel:hover .contact-visit-image {
  transform: scale(1.03);
}

.contact-visit-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 36px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  color: #233c12;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  padding: 10px 13px;
  box-shadow: 0 14px 32px rgba(18, 36, 8, 0.24);
  backdrop-filter: blur(8px);
}

.contact-visit-badge i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9ffd8;
  border-radius: 6px;
  color: #f07c00;
  font-size: 16px;
}

.contact-visit-content {
  padding: 30px;
}

.contact-visit-panel h3 {
  color: #233c12;
  margin-bottom: 14px;
}

.contact-visit-panel p {
  color: #4a4a4a;
}

.contact-visit-address {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8fcf4;
  border: 1px solid rgba(70, 125, 28, 0.14);
  border-left: 4px solid #467d1c;
  border-radius: 8px;
  margin: 0 0 20px;
  padding: 18px 18px 18px 16px;
}

.contact-visit-address > i {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(70, 125, 28, 0.18);
  border-radius: 8px;
  color: #467d1c;
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(29, 56, 12, 0.06);
}

.contact-visit-address span {
  display: inline-flex;
  align-items: center;
  color: #f07c00;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.contact-visit-address strong {
  display: block;
  color: #233c12;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.contact-visit-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.contact-visit-meta div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  background: #ffffff;
  border: 1px solid rgba(70, 125, 28, 0.14);
  border-radius: 8px;
  color: #233c12;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  padding: 12px 10px;
  box-shadow: 0 10px 22px rgba(18, 36, 8, 0.05);
}

.contact-visit-meta i {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9ffd8;
  border: 1px solid rgba(70, 125, 28, 0.16);
  border-radius: 8px;
  color: #467d1c;
  font-size: 17px;
}

.contact-visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-visit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  padding: 11px 18px;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.contact-visit-btn:hover,
.contact-visit-btn:focus-visible {
  transform: translateY(-2px);
}

.contact-visit-btn-primary {
  background: #467d1c;
  border: 1px solid #467d1c;
  color: #ffffff;
}

.contact-visit-btn-primary:hover,
.contact-visit-btn-primary:focus-visible {
  background: #f07c00;
  border-color: #f07c00;
  color: #ffffff;
}

.contact-visit-btn-secondary {
  background: #ffffff;
  border: 1px solid rgba(70, 125, 28, 0.28);
  color: #467d1c;
}

.contact-visit-btn-secondary:hover,
.contact-visit-btn-secondary:focus-visible {
  background: #e9ffd8;
  border-color: rgba(70, 125, 28, 0.45);
  color: #233c12;
}

.contact-visit-panel .contact-visit-note {
  background: #fffaf3;
  border: 1px solid rgba(240, 124, 0, 0.16);
  border-left: 4px solid #f07c00;
  border-radius: 6px;
  color: #5d5d5d;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 13px 14px;
}

.contact-map-section {
  padding: 58px 0 70px;
}

.contact-map-header {
  margin-bottom: 20px;
}

.contact-map-frame {
  border: 1px solid rgba(70, 125, 28, 0.2);
  border-radius: 8px;
  height: 420px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(18, 36, 8, 0.1);
}

.contact-map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (max-width: 991px) {
  .contact-main-section,
  .contact-map-section {
    padding: 46px 0;
  }

  .contact-form-panel {
    padding: 28px;
  }

  .contact-form-heading {
    align-items: center;
  }
}

@media (max-width: 576px) {
  .contact-info-card,
  .contact-form-panel,
  .contact-visit-content {
    padding: 22px;
  }

  .contact-info-card h3,
  .contact-form-panel h3,
  .contact-visit-panel h3,
  .contact-map-header h3 {
    font-size: 22px;
  }

  .contact-submit-btn {
    width: 100%;
  }

  .contact-form-heading {
    display: block;
  }

  .contact-form-heading-icon {
    margin-top: 16px;
  }

  .contact-visit-image {
    height: 220px;
  }

  .contact-visit-badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
    max-width: none;
  }

  .contact-visit-address {
    gap: 12px;
    padding: 16px;
  }

  .contact-visit-meta {
    gap: 8px;
  }

  .contact-visit-meta div {
    flex-direction: column;
    min-height: 82px;
    font-size: 12px;
    padding: 11px 6px;
    text-align: center;
  }

  .contact-visit-btn {
    width: 100%;
  }

  .contact-map-frame {
    height: 340px;
  }
}

/* =========================================================
   RESPONSIVE OPTIMIZATION LAYER
   Mobile-first polish that preserves the existing palette.
   ========================================================= */

:root {
  --rkm-page-pad: clamp(14px, 4vw, 28px);
  --rkm-section-space: clamp(42px, 7vw, 76px);
  --rkm-card-gap: clamp(16px, 3vw, 24px);
  --rkm-radius: 8px;
  --rkm-touch-target: 44px;
  --rkm-soft-shadow: 0 12px 32px rgba(18, 36, 8, 0.08);
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

.container {
  max-width: min(100% - (var(--rkm-page-pad) * 2), 1320px);
  padding-left: 0;
  padding-right: 0;
}

.row {
  --bs-gutter-x: var(--rkm-card-gap);
  --bs-gutter-y: var(--rkm-card-gap);
}

:where(
  .publications-grid,
  .download-apps-section,
  .search-browse-section,
  .languages-section,
  .scrolling-section,
  .author-carousel-section,
  .contact-details-section,
  .contact-main-section,
  .contact-map-section,
  .browse-sections
) {
  padding-block: var(--rkm-section-space);
}

:where(
  .section-title,
  .apps-title,
  .search-title,
  .languages-title,
  .scrolling-title,
  .carousel-header h2,
  .contact-info-card h3,
  .contact-form-panel h3,
  .contact-visit-panel h3,
  .contact-map-header h3
) {
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

:where(
  .section-subtitle,
  .section-subtitle-bgblack,
  .intro-subtitle,
  .search-subtitle,
  .languages-subtitle,
  .scrolling-subtitle,
  .carousel-header p,
  .contact-page p
) {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
}

:where(
  .pub-card,
  .book-card,
  .app-download-card,
  .search-card,
  .language-card,
  .scroll-card,
  .author-card,
  .about-card,
  .contact-info-card,
  .contact-form-panel,
  .contact-visit-panel,
  .book-reader-panel,
  .book-reading-block
) {
  border-radius: var(--rkm-radius);
}

:where(
  .btn,
  .menu-search-btn,
  .carousel-btn,
  .go-top-btn,
  .book-tool-btn,
  .book-page-control,
  .contact-submit-btn,
  .contact-visit-btn,
  .page-link
) {
  min-height: var(--rkm-touch-target);
}

:where(
  .btn,
  .menu-search-btn,
  .carousel-btn,
  .go-top-btn,
  .book-tool-btn,
  .book-page-control,
  .contact-submit-btn,
  .contact-visit-btn
) {
  align-items: center;
  justify-content: center;
}

:where(
  input,
  select,
  textarea,
  .form-control,
  .form-select
) {
  font-size: 16px;
}

.hero-slide,
.category-banner {
  height: clamp(300px, 52vw, 680px);
  min-height: 300px;
}

.hero-image {
  /* object-fit: cover !important; */
  object-position: center;
}

.carousel-control-prev,
.carousel-control-next {
  width: clamp(42px, 4vw, 60px);
  height: clamp(42px, 4vw, 60px);
}

.publications-grid .row,
.book-card-row {
  align-items: stretch;
}

/* .booklist,
.pub-card,
.book-card-row .book-card {
  height: 100%;
} */

.book-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 92px), 1fr));
  gap: clamp(8px, 1.6vw, 12px);
}

.book-grid a {
  aspect-ratio: 2 / 3;
}

.book-grid img {
  height: 100%;
  object-fit: cover;
}

.pub-card-body,
.pub-card-footer {
  padding: clamp(14px, 2.2vw, 18px);
}

/* .publications-grid .list-image {
  width: min(100%, 300px);
  height: auto;
  object-fit: cover;
} */

.book-card-row .book-card img {
  height: clamp(12rem, 28vw, 15rem);
}

.browse-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.browse-card a {
  min-height: 64px;
}

.carousel-track,
.scroll-track {
  gap: var(--rkm-card-gap);
  scroll-padding-inline: var(--rkm-page-pad);
}

.author-card {
  box-shadow: var(--rkm-soft-shadow);
}

.author-card img {
  height: clamp(220px, 32vw, 350px);
  object-fit: cover;
}

.footer-bottom,
.contact-visit-actions,
.book-reader-pagination,
.book-detail-toolbar {
  gap: clamp(10px, 2vw, 16px);
}

.book-meta-grid,
.contact-visit-meta {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}

.contact-map-frame {
  height: clamp(320px, 42vw, 460px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Small Mobile (480px and below) */
@media (width <= 480px) {
  :root {
    --rkm-page-pad: 14px;
    --rkm-section-space: 36px;
    --rkm-card-gap: 14px;
  }

  .section-header,
  .carousel-header,
  .contact-map-header {
    margin-bottom: 24px;
  }

  .section-title,
  .apps-title,
  .search-title,
  .languages-title,
  .scrolling-title,
  .carousel-header h2 {
    font-size: 22px;
    padding-inline: 14px;
  }

  .hero-slide,
  .category-banner {
    height: 300px;
    min-height: 300px;
  }

  .carousel-control-prev,
  .carousel-control-next,
  .carousel-btn,
  .go-top-btn {
    width: 42px;
    height: 42px;
  }

  .carousel-control-prev {
    left: 8px;
  }

  .carousel-control-next {
    right: 8px;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pub-card-header {
    font-size: 16px;
    padding: 12px;
  }

  .pub-card-footer .btn,
  .contact-submit-btn,
  .contact-visit-btn,
  .book-page-control {
    width: 100%;
  }

  .author-card {
    flex-basis: 86%;
  }

  .contact-visit-address,
  .book-detail-toolbar,
  .book-reader-pagination {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Mobile (481px - 767px) */
@media (width >= 481px) and (width < 768px) {
  :root {
    --rkm-page-pad: 18px;
    --rkm-section-space: 44px;
  }

  .book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .author-card {
    flex-basis: 78%;
  }
}

/* Mobile and smaller tablets (up to 767px) */
@media (width < 768px) {
  .navbar-shrinkable,
  .navbar-shrink {
    padding: 10px var(--rkm-page-pad);
  }

  .navbar-nav .nav-link {
    font-size: 18px;
    min-height: var(--rkm-touch-target);
  }

  .menu-search {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }

  .top-bar .container,
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .browse-card a,
  .pub-card-footer .btn,
  .app-store-btn,
  .contact-submit-btn,
  .contact-visit-btn {
    width: 100%;
  }

  .contact-form-heading,
  .book-detail-toolbar,
  .book-reader-header {
    align-items: flex-start;
  }

  .footer-about,
  .footer-links,
  .footer-contact {
    max-width: 100%;
    text-align: left;
  }
}

/* Tablet (768px - 991px) */
@media (width >= 768px) and (width < 992px) {
  :root {
    --rkm-page-pad: 22px;
    --rkm-section-space: 54px;
  }

  .container {
    max-width: min(100% - 44px, 720px);
  }

  .hero-slide,
  .category-banner {
    height: clamp(360px, 52vw, 520px);
  }

  .book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .author-card {
    flex: 0 0 calc(50% - var(--rkm-card-gap));
    max-width: calc(50% - var(--rkm-card-gap));
  }

  .contact-visit-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Desktop (992px - 1199px) */
@media (width >= 992px) and (width < 1200px) {
  :root {
    --rkm-page-pad: 24px;
    --rkm-section-space: 60px;
  }

  .container {
    max-width: min(100% - 48px, 960px);
  }

  .menu-search {
    flex-basis: 260px;
    max-width: 260px;
  }

  .author-card {
    flex: 0 0 calc(33.333% - var(--rkm-card-gap));
    max-width: calc(33.333% - var(--rkm-card-gap));
  }
}

/* Desktop (1200px and up) */
@media (width >= 1200px) {
  :root {
    --rkm-page-pad: 28px;
    --rkm-section-space: 68px;
  }

  .container {
    max-width: min(100% - 56px, 1140px);
  }

  .hero-slide,
  .category-banner {
    height: min(75vh, 680px);
  }

  .author-card {
    flex: 0 0 calc(25% - var(--rkm-card-gap));
    max-width: calc(25% - var(--rkm-card-gap));
  }
}

/* Large Desktop (1400px and up) */
@media (width >= 1400px) {
  :root {
    --rkm-section-space: 76px;
  }

  .container {
    max-width: 1320px;
  }

  .publications-grid .container,
  .author-carousel-section .container,
  .contact-page .container {
    max-width: 1320px;
  }

  .hero-slide,
  .category-banner {
    height: min(75vh, 760px);
  }
}

/* ===== MOVIES SECTION POLISH ===== */
:is(#movies-hindi, #movies-bangla, #movies-english).publications-grid {
  padding-block: clamp(52px, 7vw, 86px);
}

:is(#movies-hindi, #movies-bangla, #movies-english) .section-header {
  margin: 0 auto clamp(28px, 4vw, 44px);
  max-width: 780px;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .section-subtitle {
  color: #454d3f;
  max-width: 680px;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card {
  background: #ffffff;
  border: 1px solid rgba(70, 125, 28, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(43, 69, 24, 0.1);
  isolation: isolate;
  position: relative;
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card::before {
  background: linear-gradient(90deg, #57af14, #f0a012, #57af14);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card:hover,
:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card:focus-within {
  border-color: rgba(240, 160, 18, 0.55);
  box-shadow: 0 24px 48px rgba(43, 69, 24, 0.18);
  transform: translateY(-8px);
}

:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card-header {
  background: linear-gradient(135deg, #315f1c 0%, #467d1c 100%);
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  padding: 18px 16px 16px;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card-body {
  background: linear-gradient(180deg, #fbfff8 0%, #ffffff 100%);
  padding: clamp(16px, 2vw, 22px);
}

:is(#movies-hindi, #movies-bangla, #movies-english) .movie-details {
  margin-top: 18px;
  /* text-align: left; */
}

:is(#movies-hindi, #movies-bangla, #movies-english) .movie-date {
  align-items: center;
  background: rgba(240, 160, 18, 0.12);
  border: 1px solid rgba(240, 160, 18, 0.28);
  border-radius: 999px;
  color: #5a3c0a;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  line-height: 1;
  padding: 8px 12px;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .movie-title {
  color: #244514;
  display: inline-block;
  font-family: inherit;
  font-size: clamp(17px, 1.35vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  margin: 10px 0 10px;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  text-align: center;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card:hover .movie-title,
:is(#movies-hindi, #movies-bangla, #movies-english) .movie-title:hover,
:is(#movies-hindi, #movies-bangla, #movies-english) .movie-title:focus-visible {
  color: #d17b00;
  transform: translateX(3px);
}

:is(#movies-hindi, #movies-bangla, #movies-english) .movie-title:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(240, 160, 18, 0.38);
  outline-offset: 3px;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .movie-description {
  color: #454d3f;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  text-align: center;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .movie-link {
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .movie-link:focus-visible {
  outline: 3px solid rgba(240, 160, 18, 0.5);
  outline-offset: 4px;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .movie-wrapper {
  aspect-ratio: 985 / 765;
  background: #15240f;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36), 0 14px 26px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transform: translateZ(0) scale(1);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .movie-wrapper::before {
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(240, 160, 18, 0.86);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 0 0 8px rgba(240, 160, 18, 0.2);
  content: "";
  height: 62px;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.84);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  width: 62px;
  z-index: 1;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .movie-wrapper::after {
  border-bottom: 10px solid transparent;
  border-left: 16px solid #467d1c;
  border-top: 10px solid transparent;
  content: "";
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
  left: calc(50% + 3px);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.84);
  transition: border-left-color 0.35s ease, filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  z-index: 2;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .movie-image {
  aspect-ratio: 985 / 765;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease, filter 0.45s ease;
  width: 100%;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .movie-image:hover {
  box-shadow: none;
}

:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card:hover .movie-wrapper,
:is(#movies-hindi, #movies-bangla, #movies-english) .movie-wrapper:hover,
:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card:focus-within .movie-wrapper {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44), 0 20px 34px rgba(70, 125, 28, 0.22);
  transform: translateZ(0) scale(1.01);
}

:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card:hover .movie-wrapper::before,
:is(#movies-hindi, #movies-bangla, #movies-english) .movie-wrapper:hover::before {
  animation: playButtonPulse 1.35s ease-in-out infinite;
  background: linear-gradient(135deg, #467d1c 0%, #f0a012 100%);
  border-color: rgba(255, 255, 255, 0.96);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.12);
}

:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card:hover .movie-wrapper::after,
:is(#movies-hindi, #movies-bangla, #movies-english) .movie-wrapper:hover::after {
  border-left-color: #ffffff;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.28));
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.14);
}

:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card:hover .movie-image,
:is(#movies-hindi, #movies-bangla, #movies-english) .movie-wrapper:hover .movie-image,
:is(#movies-hindi, #movies-bangla, #movies-english) .pub-card:focus-within .movie-image {
  filter: saturate(1.08) contrast(1.04) brightness(0.9);
  transform: scale(1.06);
}

@keyframes playButtonPulse {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), 0 0 0 8px rgba(240, 160, 18, 0.24);
  }

  50% {
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 0 14px rgba(240, 160, 18, 0.12);
  }
}

@media (width < 992px) {
  :is(#movies-hindi, #movies-bangla, #movies-english) .pub-card {
    margin-inline: auto;
    max-width: 560px;
  }
}

/* ===== HOMEPAGE SECTION BACKGROUND EFFECTS ===== */
:is(
  #publications,
  #Biographies,
  #movies-hindi,
  #movies-bangla,
  #movies-english
).publications-grid {
  isolation: isolate;
}

:is(
  #publications,
  #Biographies,
  #movies-hindi,
  #movies-bangla,
  #movies-english
).publications-grid > .container {
  position: relative;
  z-index: 1;
}

#publications.publications-grid {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 255, 235, 0.96) 54%, rgba(255, 251, 239, 0.95) 100%),
    repeating-linear-gradient(135deg, rgba(70, 125, 28, 0.05) 0 1px, transparent 1px 18px);
}

#Biographies.publications-grid {
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.98) 0%, rgba(242, 249, 255, 0.96) 58%, rgba(255, 255, 255, 0.98) 100%),
    repeating-linear-gradient(90deg, rgba(240, 160, 18, 0.06) 0 1px, transparent 1px 24px);
}

#movies-hindi.publications-grid {
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.98) 0%, rgba(255, 255, 255, 0.96) 45%, rgba(255, 240, 219, 0.94) 100%),
    repeating-linear-gradient(135deg, rgba(240, 160, 18, 0.07) 0 1px, transparent 1px 20px);
}

#movies-bangla.publications-grid {
  background:
    linear-gradient(180deg, rgba(237, 255, 246, 0.98) 0%, rgba(255, 255, 255, 0.96) 48%, rgba(235, 248, 255, 0.95) 100%),
    repeating-linear-gradient(135deg, rgba(35, 130, 107, 0.055) 0 1px, transparent 1px 20px);
}

#movies-english.publications-grid {
  background:
    linear-gradient(180deg, rgba(245, 248, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 46%, rgba(251, 245, 255, 0.94) 100%),
    repeating-linear-gradient(135deg, rgba(70, 94, 150, 0.055) 0 1px, transparent 1px 20px);
}

:is(
  #publications,
  #Biographies,
  #movies-hindi,
  #movies-bangla,
  #movies-english
).publications-grid::after {
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.44) 38%, transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 42%, rgba(70, 125, 28, 0.04));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

p { 
  margin-top: 1% !important;
  margin-bottom: 1% !important;
  text-align: justify !important;
}

.book-reader-text [style*="text-align: center" i],
.book-article-content [style*="text-align: center" i],
.content-page [style*="text-align: center" i] {
  text-align: center !important;
}

.book-reader-text [style*="text-align: left" i],
.book-article-content [style*="text-align: left" i],
.content-page [style*="text-align: left" i] {
  text-align: left !important;
}

.book-reader-text [style*="text-align: right" i],
.book-article-content [style*="text-align: right" i],
.content-page [style*="text-align: right" i] {
  text-align: right !important;
}

.book-reader-text [style*="text-align: justify" i],
.book-article-content [style*="text-align: justify" i],
.content-page [style*="text-align: justify" i] {
  text-align: justify !important;
}

.text-muted {
  text-align: center !important;
}

.section-subtitle {
  color: #454d3f !important;
  font-size: clamp(15px, 1.4vw, 17px) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  margin: 0 auto !important;
  max-width: 620px !important;
  text-align: center !important;
}

/* ===== RESPONSIVE AUDIT STABILITY FIXES ===== */
.bi,
.fa,
.fas,
.far,
.fab {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  min-width: 1.1em;
  vertical-align: -0.125em;
  width: 1.1em;
}

.bi::before,
.fa::before,
.fas::before,
.far::before,
.fab::before {
  display: inline-block;
  line-height: 1;
  text-align: center;
  width: 1em;
}

.hero-slider,
.category-banner {
  background-color: #467d1c;
}

.category-banner {
  align-items: center;
  display: flex;
  padding-block: 0;
}

.banner-bg img,
.hero-image {
  display: block;
}

.carousel-item,
.hero-image {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.banner-content {
  min-height: clamp(142px, 14vw, 184px);
  width: 100%;
}

.banner-text {
  max-width: min(100%, 720px);
}

.banner-image {
  align-items: center;
  display: flex;
  height: clamp(76px, 9vw, 120px);
  width: clamp(220px, 30vw, 368px);
}

.banner-image img {
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  width: 100%;
}

.banner-breadcrumb {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.banner-breadcrumb span {
  margin: 0;
}

.banner-breadcrumb a {
  overflow-wrap: anywhere;
}

.impact-list {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding-right: 0;
}

.impact-list li {
  min-width: 0;
}

.book-card-row .book-card img {
  display: block;
  min-height: clamp(12rem, 28vw, 15rem);
}

.book-cover-stage img {
  aspect-ratio: 2 / 3;
  background: #ffffff;
  border: 1px solid rgba(87, 175, 20, 0.22);
  border-radius: 8px;
  display: block;
  min-height: clamp(260px, 36vw, 420px);
  width: min(100%, 360px);
}

:is(#publications, #Biographies).publications-grid .booklist {
  display: flex;
  flex-direction: column;
  height: 100%;
}

:is(#publications, #Biographies).publications-grid .pub-card-body {
  min-height: 190px;
}

:is(#publications, #Biographies).publications-grid .book-grid {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(86px, 110px));
  justify-content: center;
}

:is(#publications, #Biographies).publications-grid .book-grid a {
  aspect-ratio: 2 / 3;
  background: #ffffff;
  border: 1px solid rgba(87, 175, 20, 0.24);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(70, 125, 28, 0.1);
  display: flex;
  overflow: hidden;
  padding: 4px;
  transform: translateY(0);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  width: 100%;
}

:is(#publications, #Biographies).publications-grid .book-grid img {
  background: #ffffff;
  border-radius: 5px;
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
}

:is(#publications, #Biographies).publications-grid .book-grid a:hover,
:is(#publications, #Biographies).publications-grid .book-grid a:focus-visible {
  border-color: rgba(87, 175, 20, 0.65);
  box-shadow: 0 12px 30px rgba(248, 171, 4, 0.33);
  outline: 0;
  transform: translateY(-4px);
}

:is(#publications, #Biographies).publications-grid .book-grid a:hover img,
:is(#publications, #Biographies).publications-grid .book-grid a:focus-visible img {
  transform: scale(1.03);
}

:is(#publications, #Biographies).publications-grid .pub-card {
  flex: 1 1 auto;
  height: auto;
}

:is(#publications, #Biographies).publications-grid .pub-card-footer {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 72px;
}

:is(#publications, #Biographies).publications-grid .pub-card-footer .btn {
  align-items: center;
  display: inline-flex;
  font-weight: 700 !important;
  height: 38px;
  justify-content: center;
  line-height: 1;
  min-width: 116px;
  padding: 0 18px;
  width: 116px;
}

@media (max-width: 991px) {
  .impact-list {
    margin-left: 0;
    width: 100%;
  }

  .impact-list li {
    padding-left: 34px;
  }

  .impact-list li::before {
    height: 22px;
    top: 0.2em;
    width: 22px;
  }
}

@media (max-width: 768px) {
  .banner-content {
    min-height: 190px;
  }

  .banner-image {
    height: 84px;
    margin-inline: auto;
    width: min(290px, 82vw);
  }

  .banner-image img {
    object-position: center;
  }
}

@media (max-width: 480px) {
  .impact-list li {
    padding-left: 30px;
  }

  .impact-list li::before {
    height: 20px;
    width: 20px;
  }

  .book-cover-stage {
    min-height: 320px;
    padding: 16px;
  }

  .book-cover-stage img {
    min-height: 260px;
  }
}

/* Language shelves (default, unfiltered book list) */

.language-shelf-title {
  color: #57af14;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.shelf-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shelf-scroll.book-card-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.shelf-scroll.book-card-row::-webkit-scrollbar {
  display: none;
}

.shelf-item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  display: flex;
}

.shelf-item > a {
  display: flex;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.shelf-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #57af14;
  background: #fff;
  color: #57af14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.shelf-arrow:hover:not(:disabled) {
  background: #57af14;
  color: #fff;
}

.shelf-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.shelf-no-overflow .shelf-arrow {
  display: none;
}

@media (max-width: 767px) {
  .shelf-item {
    width: 160px;
  }

  .shelf-arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}
