/* ==========================================================================
   LIVING WORD PUBLICATIONS - BOOKIM PREMIUM DESIGN SYSTEM
   Theme: Bookim Red/Crimson Accent (#E62E04) & Midnight Charcoal (#121A24)
   Source: https://gentle-dieffenbachia-3f26db.netlify.app/
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & ROOT VARIABLES (BOOKIM THEME)
   -------------------------------------------------------------------------- */
:root {
  /* Bookim Sage Green Color Palette (#7AB278) */
  --color-primary: #121A24;
  /* Deep Midnight Charcoal */
  --color-primary-hover: #1A2432;
  /* Hover Charcoal */
  --color-secondary: #7AB278;
  /* Elegant Sage Green Accent (#7AB278) */
  --color-secondary-hover: #679F65;
  /* Darker Sage Green Hover */
  --color-accent: #7AB278;
  /* Sage Green Accent */
  --color-accent-soft: #EEF6EE;
  /* Soft Green Tint */
  --color-yellow: #FFBB00;
  /* Rating & Discount Yellow */
  --color-mint: #56A382;
  /* Secondary Mint Badge */

  /* Surface & Background */
  --color-bg-main: #FAF7F2;
  /* Soft Warm Paper Parchment Background */
  --color-bg-alt: #F3EFE9;
  /* Slightly Darker Parchment Neutral */
  --color-surface: #FFFFFF;
  /* Pure White Surface */
  --color-surface-hover: #FAFAF9;
  --color-header-bg: rgba(255, 255, 255, 0.98);

  /* Text & Neutrals */
  --color-text-main: #1D2327;
  /* Deep Crisp Text */
  --color-text-muted: #5C656C;
  /* Muted Subtitle Text */
  --color-text-light: #7E878E;
  /* Light Caption Text */
  --color-text-inverse: #FFFFFF;
  /* White Text */

  /* Borders & Shadows */
  --color-border: #E8E3DA;
  /* Soft Card Border */
  --color-border-hover: #7AB278;
  --color-border-dark: #121A24;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(18, 26, 36, 0.05);
  --shadow-md: 0 8px 24px rgba(18, 26, 36, 0.08);
  --shadow-lg: 0 16px 36px rgba(18, 26, 36, 0.12);
  --shadow-book: -6px 10px 22px rgba(0, 0, 0, 0.18);
  --shadow-book-hover: -10px 18px 32px rgba(122, 178, 120, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
  font-family: var(--font-heading) !important;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #000000;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: #7AB278;
}

img {
  max-width: 100%;
  height: auto;
}

.text-muted-custom {
  color: var(--color-text-muted) !important;
}

.bg-surface {
  background-color: var(--color-surface) !important;
}

.bg-alt {
  background-color: var(--color-bg-alt) !important;
}

/* --------------------------------------------------------------------------
   3. BUTTONS & UI CONTROLS
   -------------------------------------------------------------------------- */
.btn-yellow,
.btn-burgundy {
  background-color: var(--color-secondary);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-secondary);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-yellow:hover,
.btn-burgundy:hover {
  background-color: var(--color-secondary-hover);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-black,
.btn-navy {
  background-color: var(--color-primary);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-primary);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-black:hover,
.btn-navy:hover {
  background-color: var(--color-primary-hover);
  color: #7AB278 !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-black,
.btn-outline-burgundy,
.btn-outline-navy {
  background-color: transparent;
  color: #000000 !important;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid #000000;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-black:hover,
.btn-outline-burgundy:hover,
.btn-outline-navy:hover {
  background-color: #000000;
  color: #7AB278 !important;
  transform: translateY(-2px);
}

/* Badges */
.badge-lang {
  background-color: #000000;
  color: #7AB278;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-cat {
  background-color: #7AB278;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-burgundy {
  background-color: #000000;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   4. ANNOUNCEMENT BAR & HEADER NAVIGATION
   -------------------------------------------------------------------------- */
.announcement-bar {
  background-color: #7AB278;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.775rem;
  padding: 0.3rem 0;
}

.announcement-bar a {
  color: #FFFFFF;
  font-weight: 800;
  text-decoration: underline;
}

.announcement-bar a:hover {
  color: #EEF6EE;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--color-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-fast);
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading) !important;
  font-weight: 800;
  font-size: 1.15rem;
  color: #000000 !important;
  letter-spacing: -0.02em;
}

.navbar-brand-logo img {
  width: 32px !important;
  height: auto !important;
}

.navbar-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 0.1rem;
}

.nav-item {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-link {
  font-family: var(--font-body) !important;
  font-size: 0.785rem !important;
  font-weight: 700;
  color: #121212 !important;
  padding: 0.35rem 0.5rem !important;
  white-space: nowrap !important;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #000000 !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2.5px;
  background-color: var(--color-secondary, #7AB278);
  border-radius: 2px;
}

/* Quick Search Button in Header */
.header-search-btn {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.65rem;
  font-size: 0.775rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  height: 32px;
}

.header-search-btn:hover {
  background-color: #000000;
  color: #7AB278;
}

.inquiry-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #000000;
  color: #7AB278;
  border: 1.5px solid #000000;
  padding: 0.38rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inquiry-icon-btn:hover {
  background-color: #7AB278;
  color: #FFFFFF;
  border-color: #7AB278;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(122, 178, 120, 0.4);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 4.5rem 0 3.5rem 0;
  position: relative;
  background-color: #121A24;
  background-image: linear-gradient(180deg, rgba(18, 26, 36, 0.8) 0%, rgba(18, 26, 36, 0.9) 100%), url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-border);
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #7AB278;
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  color: #000000;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-trust-metrics {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.trust-metric-item h4 {
  font-family: var(--font-body) !important;
  font-weight: 800;
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 0.1rem;
}

.trust-metric-item p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
  font-weight: 600;
}

/* 3D Hero Book Showcase Stack */
.hero-book-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.hero-featured-cover {
  width: 240px;
  border-radius: 8px;
  box-shadow: var(--shadow-book-hover);
  transform: perspective(800px) rotateY(-12deg) rotateX(4deg);
  transition: var(--transition-normal);
  position: relative;
  z-index: 2;
}

.hero-featured-cover:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.03);
}

.hero-back-cover {
  width: 200px;
  position: absolute;
  left: 20px;
  top: 30px;
  opacity: 0.85;
  transform: perspective(800px) rotateY(-18deg) rotateX(6deg) translateZ(-40px);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.hero-floating-tag {
  position: absolute;
  bottom: 20px;
  right: 15px;
  z-index: 3;
  background-color: var(--color-surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 2px solid #7AB278;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   6. BOOK CARD COMPONENT & GRID
   -------------------------------------------------------------------------- */
.book-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #000000;
}

.book-cover-wrap {
  background-color: var(--color-bg-alt);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.book-cover-img {
  max-height: 220px;
  width: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-book);
  transition: var(--transition-bounce);
  object-fit: cover;
}

.book-card:hover .book-cover-img {
  transform: scale(1.05) rotateY(-4deg);
  box-shadow: var(--shadow-book-hover);
}

.book-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.book-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-title {
  font-family: var(--font-heading) !important;
  font-size: 1.15rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.book-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
}

.book-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: #000000;
}

.book-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon-quickview {
  background-color: var(--color-bg-alt);
  color: #000000;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon-quickview:hover {
  background-color: #000000;
  color: #7AB278;
}

/* --------------------------------------------------------------------------
   7. FILTER PILLS & SEARCH BAR
   -------------------------------------------------------------------------- */
.filter-pills-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.filter-pill {
  background-color: var(--color-surface);
  border: 1.5px solid #000000;
  color: #000000;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.filter-pill:hover {
  background-color: #7AB278;
  color: #FFFFFF;
}

.filter-pill.active {
  background-color: #000000;
  border-color: #000000;
  color: #7AB278;
}

/* --------------------------------------------------------------------------
   8. AUTHOR CARD COMPONENT
   -------------------------------------------------------------------------- */
.author-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
  height: 100%;
}

.author-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #000000;
}

.author-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #7AB278;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.author-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.8125rem;
  color: #000000;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   9. ARTICLE CARD COMPONENT
   -------------------------------------------------------------------------- */
.article-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #000000;
}

.article-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background-color: #000000 !important;
  color: #7AB278 !important;
}

.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.article-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   10. PRODUCT DETAIL PAGE STYLING
   -------------------------------------------------------------------------- */
.detail-cover-main {
  background-color: var(--color-bg-alt);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-cover-img {
  max-height: 420px;
  border-radius: 8px;
  box-shadow: var(--shadow-book-hover);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.spec-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  width: 35%;
}

/* Reader Excerpt Box */
.chapter-preview-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid #7AB278;
  padding: 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body) !important;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-main);
}

/* --------------------------------------------------------------------------
   11. FOOTER STYLING (Solid Black Footer)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #000000;
  color: #A1A1AA;
  padding: 4.5rem 0 2rem 0;
  border-top: 4px solid #7AB278;
}

.site-footer h5 {
  color: #FFFFFF;
  font-family: var(--font-heading) !important;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.site-footer a {
  color: #D4D4D8;
  font-weight: 500;
  transition: var(--transition-fast);
}

.site-footer a:hover {
  color: #7AB278;
  padding-left: 4px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list li {
  margin-bottom: 0.6rem;
}

.footer-newsletter-box {
  background-color: #121212;
  border: 1px solid #27272A;
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.footer-bottom {
  border-top: 1px solid #27272A;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE MEDIA QUERIES & BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .hero-section {
    padding: 2.5rem 0;
  }

  .hero-trust-metrics {
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  .hero-book-stack {
    min-height: 280px;
    margin-top: 2rem;
  }

  .hero-featured-cover {
    width: 170px;
  }

  .hero-back-cover {
    width: 140px;
    left: 10px;
  }

  .book-cover-wrap {
    padding: 1rem;
  }

  .book-cover-img {
    max-height: 180px;
  }
}

/* Back to Top Floating Button */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #000000;
  color: #7AB278;
  border: 2px solid #7AB278;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 1000;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background-color: #7AB278;
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* Scrollable Inner Sidebar Filter Card */
.sidebar-filter-card {
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #000000 #F1F5F9;
}

.sidebar-filter-card::-webkit-scrollbar {
  width: 5px;
}

.sidebar-filter-card::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}

.sidebar-filter-card::-webkit-scrollbar-thumb {
  background-color: #000000;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   13. CARD HOVER ACTIONS (Cart & Wishlist Overlay)
   -------------------------------------------------------------------------- */
.book-cover-wrap {
  position: relative;
}

.book-hover-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.book-card:hover .book-hover-actions {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.btn-hover-action-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background-color: #000000;
  color: #7AB278;
  border: 2px solid #7AB278;
  font-size: 0.825rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-hover-action-inquiry:hover {
  background-color: #7AB278;
  color: #FFFFFF;
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   14. ULTRA-SMOOTH CAROUSEL FADE TRANSITION
   -------------------------------------------------------------------------- */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transition-duration: 0.8s;
  transition-timing-function: ease-in-out;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  z-index: 1;
  opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

/* Tab-Wise Catalog Navigation Buttons */
.filter-tab-btn {
  color: var(--color-text-main) !important;
  background-color: #FFFFFF !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 50px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.25rem !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
}

.filter-tab-btn:hover,
.filter-tab-btn.active {
  color: #FFFFFF !important;
  background-color: #7AB278 !important;
  border-color: #7AB278 !important;
  box-shadow: 0 6px 18px rgba(122, 178, 120, 0.35) !important;
}

/* ==========================================================================
   15. BOOKIM TEMPLATE COMPONENT STYLES (SAGE GREEN THEME #7AB278)
   ========================================================================== */

/* Bookim Theme Buttons (.theme-btn) */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 2rem;
  background-color: #7AB278;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 2px solid #7AB278;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(122, 178, 120, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.theme-btn:hover {
  background-color: #121A24;
  border-color: #121A24;
  color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(18, 26, 36, 0.3);
}

.theme-btn.style-2 {
  background-color: #121A24;
  border-color: #121A24;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(18, 26, 36, 0.2);
}

.theme-btn.style-2:hover {
  background-color: #7AB278;
  border-color: #7AB278;
  color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(122, 178, 120, 0.35);
}

.theme-btn.style-white {
  background-color: #FFFFFF;
  border-color: #E8E3DA;
  color: #1D2327 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.theme-btn.style-white:hover {
  background-color: #7AB278;
  border-color: #7AB278;
  color: #FFFFFF !important;
  transform: translateY(-3px);
}

/* Black Theme Button (.theme-btn-black - Same shape & feel as Inquiry button, but Black) */
.theme-btn-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  background-color: #000000;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50px;
  border: 1.5px solid #000000;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.theme-btn-black:hover {
  background-color: #7AB278;
  border-color: #7AB278;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(122, 178, 120, 0.35);
}

/* Decorative Title Line Shape (.line-shape) */
.line-shape {
  position: relative;
  display: inline-block;
  color: #7AB278;
}

.line-shape::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12'%3E%3Cpath d='M3 9C40 2 120 2 157 9' stroke='%237AB278' stroke-width='4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

/* ==========================================================================
   HERO BANNER - EQUIPPING BELIEVERS. TRANSFORMING NATIONS. (EXACT MATCH)
   ========================================================================== */
.hero-transform-section {
  background-color: #FAF7F2;
  background-image: linear-gradient(180deg, #FFFFFF 0%, #FAF7F2 100%);
  padding: 2rem 0 1.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #EBE5DB;
}

.hero-tagline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #7AB278;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.hero-tagline-gold .dash {
  width: 24px;
  height: 2.5px;
  background-color: #7AB278;
  display: inline-block;
  border-radius: 2px;
}

.hero-title-serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 3rem;
  font-weight: 800;
  color: #0B1B3D;
  line-height: 1.15;
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
}

.hero-title-serif .highlight-gold {
  color: #7AB278;
}

.hero-subtitle-lead {
  font-size: 1.05rem;
  color: #4B5563;
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 1.25rem;
}

.btn-hero-explore {
  background-color: #0B1B3D;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.35rem;
  border-radius: 8px;
  border: 2px solid #0B1B3D;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(11, 27, 61, 0.2);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-hero-explore:hover {
  background-color: #162E5C;
  border-color: #162E5C;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 27, 61, 0.3);
}

.btn-hero-support {
  background-color: #FAF7F2;
  color: #7AB278 !important;
  font-weight: 700;
  font-size: 0.825rem;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.35rem;
  border-radius: 8px;
  border: 2px solid #7AB278;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-hero-support:hover {
  background-color: #7AB278;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(122, 178, 120, 0.25);
}

.hero-showcase-img {
  width: 100%;
  max-width: 680px;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.hero-showcase-img:hover {
  transform: translateY(-4px);
}

@media (max-width: 991.98px) {
  .hero-title-serif {
    font-size: 2.4rem;
  }
}

/* Bookim Hero Banner Wrapper (.hero-bookim-banner - Dark Charcoal & Sage Green Blend with hero-banner.jpg Background) */
.hero-bookim-banner {
  background-color: #121A24;
  background-image: linear-gradient(180deg, rgba(18, 26, 36, 0.78) 0%, rgba(18, 26, 36, 0.88) 100%),
    url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  color: #FFFFFF;
}

.hero-subtitle-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(122, 178, 120, 0.18);
  color: #7AB278;
  border: 1px solid rgba(122, 178, 120, 0.4);
  font-weight: 800;
  font-size: 0.825rem;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-subtitle-badge span {
  background-color: #7AB278;
  color: #FFFFFF;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
}

/* Bookim Feature Box Items (.feature-box-items) */
.feature-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-box-items {
  background-color: #FFFFFF;
  border: 1px solid #E8E3DA;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.feature-box-items:hover {
  transform: translateY(-4px);
  border-color: #7AB278;
  box-shadow: 0 10px 25px rgba(122, 178, 120, 0.15);
}

.feature-box-items .icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #EEF6EE;
  color: #7AB278;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-box-items h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #121A24;
}

.feature-box-items p {
  font-size: 0.825rem;
  color: #5C656C;
  margin: 0;
}

/* /* Bookim Shop Box Item Card (.shop-box-card & .book-card - Compact Modern Layout) */
.shop-box-card,
.book-card {
  background-color: #FFFFFF;
  border: 1px solid #E8E3DA;
  border-radius: 14px;
  padding: 0.85rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.shop-box-card:hover,
.book-card:hover {
  transform: translateY(-5px);
  border-color: #7AB278;
  box-shadow: 0 12px 28px rgba(122, 178, 120, 0.15);
}

.shop-box-card .book-thumb,
.book-card .book-cover-wrap {
  position: relative;
  background-color: #FAF7F2;
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.shop-box-card .book-thumb img {
  max-height: 155px !important;
  width: auto;
  transition: transform 0.3s ease;
}

.shop-box-card:hover .book-thumb img {
  transform: scale(1.04);
}

.shop-box-card .post-badges,
.book-card .book-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

.shop-box-card .badge-item,
.book-card .badge-lang,
.book-card .badge-cat {
  background-color: #7AB278;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.shop-box-card .badge-item.badge-lang,
.book-card .badge-lang {
  background-color: #121A24;
}

.shop-box-card .shop-icon-actions {
  position: absolute;
  right: -45px;
  top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s ease;
  z-index: 2;
}

.shop-box-card:hover .shop-icon-actions {
  right: 8px;
}

.shop-box-card .action-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: #121A24;
  border: 1px solid #E8E3DA;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.shop-box-card .action-circle-btn:hover {
  background-color: #7AB278;
  color: #FFFFFF;
  border-color: #7AB278;
}

.shop-box-card .shop-content h5 {
  font-size: 0.925rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.shop-box-card .author-post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid #F3EFE9;
}

.shop-box-card .author-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.shop-box-card .author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #7AB278;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
}

.shop-box-card .star-rating {
  color: #FFBB00;
  font-size: 0.75rem;
}

/* Gallery Card Hover Styling */
.gallery-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(18, 26, 36, 0.15) !important;
}

.theme-banner-section {
  background-color: var(--color-secondary, #7AB278);
  transition: background-color 0.4s ease;
}

/* ==========================================================================
   THEME COLOR PICKER FLOATING WIDGET (#7AB278, #FED24F, #266210, #FB6C00)
   ========================================================================== */
.theme-picker-floating {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 26, 36, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-picker-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.theme-swatch-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.theme-swatch-btn:hover {
  transform: scale(1.3);
}

.theme-swatch-btn.active {
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

/* ==========================================================================
   MAIN CATEGORY SWITCHER (BOOKS VS BOOKLETS)
   ========================================================================== */
.main-category-switcher {
  background-color: #F3EFE9 !important;
  border: 1px solid #E2DCD4 !important;
  border-radius: 50px;
}

.main-cat-btn {
  background: transparent;
  color: #5C656C;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.55rem 1.6rem;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.main-cat-btn:hover {
  color: #121A24;
}

.main-cat-btn.active {
  background-color: #121A24;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px rgba(18, 26, 36, 0.25);
}

/* Ensure Testimonial and Card Paragraph Text is Always Visible */
.bg-white p,
.card p,
.p-4.bg-white p {
  color: #121A24 !important;
  opacity: 1 !important;
}

/* ==========================================================================
   CAROUSEL HOVER ARROW CONTROLS (SHOW ON HOVER & GLASSMORPHISM)
   ========================================================================== */
.carousel {
  position: relative;
}

.carousel .carousel-control-prev,
.carousel .carousel-control-next {
  width: 52px !important;
  height: 52px !important;
  top: 50% !important;
  transform: translateY(-50%) scale(0.85);
  opacity: 0 !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 20;
}

.carousel .carousel-control-prev {
  left: -15px !important;
}

.carousel .carousel-control-next {
  right: -15px !important;
}

/* Hover on Carousel container triggers smooth fade-in */
.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1) !important;
}

/* Glassmorphism Arrow Icon Badge */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background-color: rgba(18, 26, 36, 0.88) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  background-size: 45% 45% !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease !important;
}

/* Hover state on arrow icon badge */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: var(--color-secondary, #7AB278) !important;
  border-color: #FFFFFF !important;
  transform: scale(1.12);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

/* Hide Floating Theme Swatch Widget */
.theme-picker-floating,
#themeColorPickerWidget {
  display: none !important;
}



/*kishor css*/

.book-tabs {
  gap: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.book-tabs .nav-link {
  color: #222;
  background: #f1f1f1;
  border-radius: 5px;
  padding: 10px 22px;
  font-weight: 600;
}

.book-tabs .nav-link:hover {
  background: #7AB278;
  color: #fff;
}

.book-tabs .nav-link.active {
  background: #7AB278;
  color: #fff;
}


/* Book Card */

.book-card {
  height: 100%;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.book-image {
  display: block;
  overflow: hidden;
}

.book-image img {
  width: 100%;
  height: 163px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.book-card:hover .book-image img {
  transform: scale(1.04);
}

.book-content {
  padding: 10px;
}

.book-content p {
  font-size: 12px;
}

.book-title {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.book-title a {
  color: #222;
  text-decoration: none;
}

.book-title a:hover {
  color: #0d6efd;
}

.book-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* ==========================================================================
   STUNNING CUSTOM PHOTO GALLERY CAROUSEL (INSIDE CONTAINER)
   ========================================================================== */
.custom-photo-gallery {
  position: relative;
  padding: 0 16px;
}

@media (max-width: 575.98px) {
  .custom-photo-gallery {
    padding: 0 12px;
  }
}

/* Bootstrap Multi-Item Carousel Overrides */
@media (min-width: 768px) {

  #galleryCarousel .carousel-inner .carousel-item-end.active,
  #galleryCarousel .carousel-inner .carousel-item-next {
    transform: translateX(25%);
  }

  #galleryCarousel .carousel-inner .carousel-item-start.active,
  #galleryCarousel .carousel-inner .carousel-item-prev {
    transform: translateX(-25%);
  }
}

@media (min-width: 768px) {

  #authorsCarousel .carousel-inner .carousel-item-end.active,
  #authorsCarousel .carousel-inner .carousel-item-next {
    transform: translateX(33.333333%);
  }

  #authorsCarousel .carousel-inner .carousel-item-start.active,
  #authorsCarousel .carousel-inner .carousel-item-prev {
    transform: translateX(-33.333333%);
  }
}

#galleryCarousel .carousel-inner .carousel-item-end,
#galleryCarousel .carousel-inner .carousel-item-start,
#authorsCarousel .carousel-inner .carousel-item-end,
#authorsCarousel .carousel-inner .carousel-item-start {
  transform: translateX(0);
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: flex !important;
}

/* Card Visual Improvements */
.gallery-card {
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  border-radius: 18px !important;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.28), 0 0 15px rgba(122, 178, 120, 0.25);
}

.gallery-img-wrapper {
  position: relative;
}

.gallery-img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 26, 36, 0.75) 0%, rgba(18, 26, 36, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

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

.gallery-zoom-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #121A24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transform: scale(0.7);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.gallery-card:hover .gallery-zoom-btn {
  transform: scale(1);
}

/* Glassmorphism Navigation Buttons – centred on the image viewport */
.custom-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #121A24;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.custom-gallery-nav:hover {
  background: #7AB278;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 25px rgba(122, 178, 120, 0.55);
}

.custom-gallery-prev {
  left: -20px;
}

.custom-gallery-next {
  right: -20px;
}

/* Glowing Dots Pagination */
.custom-gallery-dots .custom-gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-gallery-dots .custom-gallery-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.custom-gallery-dots .custom-gallery-dot.active {
  background: #7AB278;
  width: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(122, 178, 120, 0.6);
}

/* =============================================
   SCHOLARS & WRITERS – CUSTOM AUTO CAROUSEL
   ============================================= */

.authors-carousel-wrapper {
  position: relative;
  padding: 0 52px 56px;
  /* side room for nav buttons, bottom for dots */
}

/* Outer clip so only 1 slide-group is visible */
.authors-track-outer {
  overflow: hidden;
}

/* Prev / Next arrow buttons */
.authors-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(122, 178, 120, 0.15);
  color: #7AB278;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  z-index: 10;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.authors-ctrl:hover {
  background: #7AB278;
  color: #fff;
  box-shadow: 0 4px 20px rgba(122, 178, 120, 0.45);
}

.authors-ctrl-prev {
  left: -18px;
}

.authors-ctrl-next {
  right: -18px;
}

/* Dot indicators */
.authors-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.authors-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s, border-radius 0.3s;
}

.authors-dot.active {
  background: #7AB278;
  width: 28px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(122, 178, 120, 0.55);
}

/* =============================================
   AUTHORS BOOTSTRAP CAROUSEL – CUSTOM CONTROLS
   ============================================= */

/* Make the control buttons theme-coloured circles */
.authors-bs-ctrl {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(122, 178, 120, 0.12) !important;
  opacity: 1 !important;
  transition: background 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.authors-bs-ctrl:hover {
  background: #7AB278 !important;
  box-shadow: 0 4px 18px rgba(122, 178, 120, 0.4);
}

/* Hide the default Bootstrap arrow icons */
.authors-bs-ctrl .carousel-control-prev-icon,
.authors-bs-ctrl .carousel-control-next-icon {
  display: none;
}

/* Custom arrow text */
.authors-bs-icon {
  font-size: 2rem;
  line-height: 1;
  color: #7AB278;
  font-weight: 300;
  transition: color 0.3s;
}

.authors-bs-ctrl:hover .authors-bs-icon {
  color: #fff;
}

/* Indicators – match the green theme */
#authorsCarousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  opacity: 1;
  transition: background 0.3s, width 0.3s, border-radius 0.3s;
}

#authorsCarousel .carousel-indicators .active {
  background: #7AB278;
  width: 28px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(122, 178, 120, 0.5);
}

/* Push indicators below the cards */
#authorsCarousel .carousel-indicators {
  bottom: -8px;
}

/* =============================================
   AUTHORS MULTI-CAROUSEL-ITEM OVERRIDES
   – Show 3 carousel-items at once, slide 1 at a time
   ============================================= */

/* Clip wrapper hides the overflow */
.authors-multi-clip {
  position: relative;
  overflow: hidden;
  padding: 0 50px 48px;
  /* side room for ctrl buttons */
}

/* The Bootstrap carousel fills its clip container */
.authors-multi-clip .carousel {
  overflow: visible;
}

/* Make carousel-inner a flex row so items sit side by side */
.authors-multi-clip .carousel-inner {
  display: flex;
  will-change: transform;
  /* Bootstrap adds transform via JS – we let it work naturally */
}

/* Each carousel-item is exactly 1/3 of the clip width */
.authors-multi-clip .carousel-item {
  display: block !important;
  /* override BS hiding non-active items */
  flex: 0 0 33.333%;
  max-width: 33.333%;
  opacity: 1 !important;
  /* kill BS's own slide / fade transforms */
  transform: none !important;
  transition: none !important;
  float: none !important;
  margin-right: 0 !important;
}

/* Tablet: 2 per row */
@media (max-width: 991px) {
  .authors-multi-clip .carousel-item {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .authors-multi-clip {
    padding: 0 44px 48px;
  }
}

/* Mobile: 1 per row */
@media (max-width: 575px) {
  .authors-multi-clip .carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Prev / Next buttons inside the clip */
.authors-multi-clip .authors-bs-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
}

.authors-multi-clip .carousel-control-prev.authors-bs-ctrl {
  left: 0;
}

.authors-multi-clip .carousel-control-next.authors-bs-ctrl {
  right: 0;
}

/* Dot row */
.authors-multi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.authors-multi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.16);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s, border-radius 0.3s;
}

.authors-multi-dot.active {
  background: #7AB278;
  width: 28px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(122, 178, 120, 0.55);
}