/* ==========================================================================
   Sri Sai Ram Book Store — Main Stylesheet
   ========================================================================== */


@import url('https://fonts.googleapis.com/css2?family=Krona+One&family=Inter:wght@200;300;400;600;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');


/* ---------- Design tokens ---------- */
:root {
  /* ---- Brand palette — single source of truth ----
     Pearl white (dominant bg) · Rose (brand) · Gold (accent/CTA/prices) · Warm ink (text) */
  --pearl:      #FAF6EE;
  --rose:       #9C4A5A;
  --rose-dark:  #7E3B48;   /* hover / secondary */
  --gold-brand: #9C4A5A;
  --gold-dark:  #7E3B48;
  --ink:        #33291F;   /* warm text, not pure black */

  /* ---- Semantic tokens ---- */
  --background: var(--pearl);
  --foreground: var(--ink);
  --border: #E7DECB;

  --card: #FFFFFF;
  --card-foreground: var(--ink);
  --card-border: #E7DECB;

  --primary: var(--rose);
  --primary-foreground: #FFFFFF;

  --secondary: var(--rose-dark);
  --secondary-foreground: #FFFFFF;

  --muted: #F3EADB;
  --muted-foreground: #7B6F60;

  --accent: var(--gold-brand);
  --accent-foreground: #FFFFFF;

  --whatsapp: #25D366;
  --whatsapp-hover: #20ba59;

  /* ---- Legacy brand aliases repointed to the new palette, so every existing
          var(--brand-*) reference across the sheet re-themes with no duplication. ---- */
  --brand-emerald: var(--rose);
  --brand-forest:  var(--rose-dark);
  --brand-gold:    var(--gold-brand);
  --brand-navy:    var(--ink);

  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Inter', serif;

  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--brand-emerald);
  line-height: 1.15;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
}

iframe {
  border: 0;
}
.mt-2 {
  margin-top: 2.25rem;
}
.gray-bg {
  background: var(--background) !important;
      border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
/* ---------- Accessibility: skip link ---------- */
.skip-link {
  position: absolute;
  top: -2.25rem;
  left: 0.5rem;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.2.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Focus visibility for keyboard nav */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container { padding: 0 1.5rem; }
}

.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-label.gold { color: var(--brand-gold); }

.section-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
}

@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 2.25rem; }
}

.divider-gold {
  width: 6rem;
  height: 4px;
  background: var(--brand-gold);
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: var(--secondary); }

.btn-outline-white {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--whatsapp-hover); }

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.announcement-bar {
  background: var(--brand-emerald);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: 2.1rem;
  position: relative;
  line-height: 1rem;
}

@media (min-width: 640px) {
  .announcement-bar { font-size: 0.875rem; }
}

.announcement-bar p {
  text-align: center;
  font-weight: 500;
  max-width: 56rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.announcement-bar p.active {
  opacity: 1;
  transform: translateY(0);
}

.announcement-bar p.leaving {
  opacity: 0;
  transform: translateY(-20px);
}

.header-main {
  width: 100%;
  background: #fff;
  padding: 0.8rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid #eee;
background: var(--background);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link img {
  height: 3.5rem;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
.site-nav .nav-link.active {
  color: var(--brand-gold) !important;
}

.mega-links a {
  font-size: 0.9rem;
}
.mega-links a:hover {
  color: var(--brand-gold);
}
@media (min-width: 640px) {
  .logo-link img { height: 4rem; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .header-actions { gap: 0.75rem; }
}

.call-now-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .call-now-btn { padding: 0.625rem 1.5rem; }
}

.call-now-btn:hover {
  background: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.call-now-btn span { display: none; }
@media (min-width: 640px) {
  .call-now-btn span { display: inline; }
}

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(156, 74, 90,0.1);
  color: var(--primary);
  transition: all 0.2s ease;
}

.hamburger-btn:hover { background: var(--primary); color: #fff; }

@media (min-width: 1024px) {
  .hamburger-btn { display: none; }
}

.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
  }

  .site-nav-list {
    display: flex;
    align-items: center;
    gap: 2.25rem;
  }
}

.site-nav .nav-link,
.site-nav .mega-trigger {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s ease;
}

.site-nav .nav-link.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.2.25rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.site-nav .nav-link:hover,
.site-nav .mega-trigger:hover {
  color: var(--primary);
}

@media (max-width: 1023px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: var(--shadow-2xl);
    border-top: 1px solid #f3f4f6;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    max-height: calc(100vh - var(--header-height, 128px));
    overflow-y: auto;
  }

  .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav .nav-item,
  .site-nav .nav-link {
    border-bottom: 1px solid #f3f4f6;
    padding:5px 25px;
  }

  .site-nav .nav-link,
  .site-nav .mega-trigger {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
  }

  .site-nav .nav-link:hover,
  .site-nav .mega-trigger:hover {
    color: var(--primary);
    background: rgba(156, 74, 90,0.05);
  }

  .site-nav .nav-link.active {
    color: var(--primary);
  }

  .site-nav .mega-menu {
    position: static;
    display: none;
    background: #fafafa;
    border-top: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  .site-nav .nav-item.has-mega.mobile-open .mega-menu {
    display: block;
  }

  .site-nav .mega-menu-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.75rem 1.5rem 1rem 2.25rem;
  }

  .site-nav .mega-promo {
    display: none;
  }

  .site-nav .mega-col-title {
    margin-bottom: 0.6rem;
  }

  .site-nav .mega-link {
    padding: 0.25rem 0;
  }

  .mobile-nav-cta {
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .mobile-nav-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
  }

  .mobile-nav-cta a.call { background: var(--primary); }
  .mobile-nav-cta a.call:hover { background: var(--secondary); }
  .mobile-nav-cta a.whatsapp { background: var(--whatsapp); }
  .mobile-nav-cta a.whatsapp:hover { background: var(--whatsapp-hover); }
}

/* Mobile navigation */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1024px) {
  .mobile-backdrop { display: none; }
}

/* ==========================================================================
   MEGA MENU (NEW) — Desktop full-width dropdown for Products & Services
   Only touches the two nav items requested; all other nav links/styles
   (.desktop-nav a, .mobile-drawer a, etc.) are untouched.
   ========================================================================== */

/* Wraps a trigger + its dropdown panel. */
.nav-item.has-mega {
  position: relative;
}

/* Invisible hover-bridge spanning the gap between the trigger and the
   dropdown panel below the header, so moving the mouse down into the
   menu never drops the :hover state and causes flicker. */
.nav-item.has-mega::after {
  content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
  }

/* Trigger button styled to look identical to the plain <a> nav links
   it sits beside. */
.site-nav .nav-link.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.2.25rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  transition: color 0.2s ease;
}


/* Mouse interaction is driven by JS (.mega-open class, toggled with a
   close-delay timer — see navigation.js) so the menu can stay open while
   the cursor travels from the trigger into the panel, and only close a
   short beat after the mouse truly leaves. Keyboard users still get
   instant, delay-free access via :focus-within. */
.nav-item.has-mega.mega-open .mega-trigger,
.nav-item.has-mega:focus-within .mega-trigger {
  color: var(--primary);
}

.mega-caret {
  transition: transform 0.25s ease;
}

.nav-item.has-mega.mega-open .mega-caret,
.nav-item.has-mega:focus-within .mega-caret {
  transform: rotate(180deg);
}

/* Full-width dropdown panel, fixed to the viewport and anchored just below
   the header via the same --header-height variable used by the hero fix. */
.mega-menu {
  position: fixed;
   top:var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-2xl);
  opacity: 0;
  visibility: hidden;
  pointer-events:none;
   transform:translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 45; /* below header (50), above page content */
  pointer-events: none;
}

.nav-item.has-mega.mega-open .mega-menu,
.nav-item.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.1fr;
  gap: 2.5rem;
  padding-top: 2.25rem;
  padding-bottom: 1.75rem;
}

.mega-menu-inner--services {
  grid-template-columns: repeat(3, 1fr);
}

.mega-col-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

.mega-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--foreground);
  transition: color 0.2s ease, transform 0.2s ease;
}

.mega-link svg {
  color: var(--primary);
  flex-shrink: 0;
}

.mega-link:hover {
  color: var(--primary);
  transform: translateX(2px);
}

/* Featured promo tile (Products menu) — reuses an existing project image */
.mega-promo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 160px;
  display: block;
}

.mega-promo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

.mega-promo:hover img {
  transform: scale(1.05);
}

.mega-promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(156, 74, 90,0.9), rgba(156, 74, 90,0.15));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.mega-promo-label {
  color: var(--brand-gold);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.mega-promo-title {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Services menu: icon + title + description link, one per column */
.mega-service-link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.mega-service-link:hover {
  background: var(--muted);
}

.mega-service-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: rgba(156, 74, 90,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mega-service-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mega-service-title {
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.95rem;
}

.mega-service-desc {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

/* Bottom CTA strip shared by both mega menus */
.mega-cta {
  background: var(--muted);
  border-top: 1px solid var(--border);
}

.mega-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.mega-cta-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.mega-cta-buttons {
  display: flex;
  gap: 0.75rem;
}

/* ---- Mobile accordion (Products / Services inside the mobile drawer) ---- */
.drawer-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.drawer-accordion-trigger:hover {
  color: var(--primary);
  background: rgba(156, 74, 90,0.05);
}

.drawer-accordion-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.drawer-accordion-trigger[aria-expanded="true"] .drawer-accordion-chevron {
  transform: rotate(180deg);
}

.drawer-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fafafa;
}

.drawer-accordion-list {
  padding: 0.25rem 1.5rem 0.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.drawer-accordion-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.drawer-accordion-list a svg {
  color: var(--primary);
  flex-shrink: 0;
}

.drawer-accordion-list a:hover {
  color: var(--primary);
}

/* Allow the drawer to grow with expanded accordions without overflowing
   the viewport on short mobile screens. */
.mobile-drawer {
  max-height: calc(100vh - var(--header-height, 128px));
  overflow-y: auto;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  /* FIX: dynamic top offset equal to the fixed header's real height (set via JS,
     see navigation.js) so the hero always starts immediately below the header
     instead of hardcoding a value that breaks when the header height changes. */
  padding-top: var(--header-height, 128px);
  padding-bottom: 0;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero { padding-bottom: 2.25rem; min-height: 200px; }
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 5.5s ease-out;
}

.hero-slide.active .hero-slide-img-wrap img {
  transform: scale(1.06);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2), transparent);
}

.hero-content-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-content {
  position: relative;
  max-width: 48rem;
  min-height: clamp(18rem, 42vw, 26rem);
  display: flex;
  align-items: center;
}

.hero-text-block {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Hug the text: width and height fit the content instead of filling the hero */
  width: fit-content;
  max-width: 48rem;
  opacity: 0;
  /* translateY(-50%) keeps it vertically centered; the extra 28px is the entry offset */
  transform: translateY(-50%) translateY(28px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  /* Translucent panel that sits only around the title + description */
  background: rgba(11, 18, 32, 0.55);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-sm);
}

.hero-text-block.active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}

.hero-headline {
  font-size: 1.85rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .hero-headline { font-size: 2.5rem; } }
@media (min-width: 1024px) { .hero-headline { font-size: 3rem; } }

.hero-subtext {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
  max-width: 36rem;
  font-weight: 300;
}

@media (min-width: 768px) { .hero-subtext { font-size: 1.1rem; } }

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  display: none;
}

@media (min-width: 768px) {
  .hero:hover .hero-arrow { opacity: 1; }
  .hero-arrow { display: flex; }
}

.hero-arrow:hover { background: rgba(255,255,255,0.2); }
.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }

.hero-dots {
  position: absolute;
  bottom: 2.25rem;
  left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.hero-dot {
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  transition: all 0.5s ease;
}

.hero-dot:hover { background: rgba(255,255,255,0.8); }

.hero-dot.active {
  background: var(--brand-gold);
  width: 2.25rem;
}

/* ==========================================================================
   BEST SELLERS (NEW) — premium featured strip right below the hero
   ========================================================================== */
.best-sellers {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #FFFFFF, #F3EADB);
}

@media (min-width: 1024px) { .best-sellers { padding: 4rem 0; } }

/* Best Sellers reuses .catalog-grid (defined once, in the shared
   catalog-grid section below) for its grid/scroll behavior — previously
   duplicated here as .bestsellers-grid with identical rules. The only
   difference worth preserving is the mobile card width, scoped here. */
@media (max-width: 767px) {
  #best-sellers .catalog-grid > .product-card {
    flex-basis: 200px;
  }
}


.product-card:hover .product-card-inner {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}


.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-cover img { transform: scale(1.06); }

.product-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--brand-emerald), var(--brand-forest));
}

.product-cover-fallback span {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  background: var(--brand-gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.product-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.2.25rem;
}

.product-body h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.35;
}

.product-author {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.2.25rem;
  color: var(--brand-gold);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.product-rating span { color: var(--foreground); }

.product-cta {
  margin-top: 0.75rem;
  width: 100%;
}

/* ==========================================================================
   TRUST SIGNALS
   ========================================================================== */
.trust-signals {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #fff, #fff);
}

@media (min-width: 1024px) { .trust-signals { padding: 4rem 0; } }

.trust-signals-header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-signals-header h3 { margin-bottom: 1rem; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(6, 1fr); } }

.trust-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid transparent;
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.trust-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.trust-card:hover {
  box-shadow: var(--shadow-xl);
  border-top-color: var(--brand-gold);
  transform: translateY(-4px) !important;
}

.trust-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-lg);
  background: rgba(156, 74, 90,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.trust-card:hover .trust-icon-wrap { transform: scale(1.1); }

.trust-icon-float {
  animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.trust-card span {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.4;
}
.trust-card .trust-icon-float {
  color: var(--brand-gold);
}
/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
  padding: 5rem 0;
  overflow: hidden;
  background:#fff;
}

@media (min-width: 1024px) { .about { padding: 4rem 0; } }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.about-image-col {
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image-col.in-view { opacity: 1; transform: translateX(0); }

.about-blur-1, .about-blur-2 {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
}

.about-blur-1 {
  top: -1.5rem; left: -1.5rem;
  width: 8rem; height: 8rem;
  background: rgba(156, 74, 90,0.1);
}

.about-blur-2 {
  bottom: -1.5rem; right: -1.5rem;
  width: 10rem; height: 10rem;
  background: rgba(156, 74, 90,0.05);
}

.about-img-frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  aspect-ratio: 4/5;
}

@media (min-width: 1024px) { .about-img-frame { aspect-ratio: 1/1; } }

.about-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-img-border {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 1.5rem;
}

.about-badge {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid #fff;
  border-left: 4px solid var(--brand-gold);
}

.about-badge-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-badge-num {
  width: 2.25rem; height: 2.25rem;
  background: var(--primary);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  flex-shrink: 0;
}

.about-badge-text p:first-child {
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.2;
}

.about-badge-text p:last-child {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.about-text-col {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text-col.in-view { opacity: 1; transform: translateX(0); }

.about-heading {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.service-card h4 {
    color: var(--ink);
}
@media (min-width: 768px) { .about-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .about-heading { font-size: 2.25rem; } }

.about-paragraphs {
  font-size: 1.125rem;
  margin-bottom: 2.25rem;
}

.about-paragraphs p { margin-bottom: 1rem; }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .about-highlights { grid-template-columns: 1fr 1fr; }
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-highlights svg {
  color: var(--primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.about-highlights span {
  font-weight: 500;
  color: rgba(31,41,55,0.8);
}

/* ==========================================================================
   CATEGORIES
   ========================================================================== */
.categories { padding: 5rem 0; background: #fff; }
@media (min-width: 1024px) { .categories { padding: 4rem 0; } }

.section-intro {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-intro p.lead {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.section-intro h3 { margin-bottom: 1.5rem; }

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}

@media (min-width: 768px) { .categories-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; } }

.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--background);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.category-card.in-view { opacity: 1; transform: translateY(0); }
.category-card:hover {
  border-color: rgba(156, 74, 90,0.3);
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px) !important;
}

.category-img-wrap {
  height: 12.25rem;
  overflow: hidden;
  position: relative;
  background: var(--muted);
}

.category-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-img-placeholder {
  width: 100%; height: 100%;
  background: rgba(156, 74, 90,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-img-placeholder svg {
  width: 4rem; height: 4rem;
  color: rgba(156, 74, 90,0.2);
}

.category-icon-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 2.5rem; height: 2.5rem;
  background: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--primary);
  transition: transform 0.3s ease;
}

.category-card:hover .category-icon-badge { transform: rotate(12deg) scale(1.1); }

.category-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-body h4 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.category-card:hover .category-body h4 { color: var(--brand-emerald); }

.category-body p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.category-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}
.category-link:hover { text-decoration: underline; }
.category-link span { margin-left: 0.25rem; }

.section-cta { text-align: center; }

/* ==========================================================================
   SHOP BY EXAMS
   ========================================================================== */
.shop-exams { padding: 4rem 0; }
@media (min-width: 1024px) { .shop-exams { padding: 4rem 0; } }

.exams-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  gap: 1rem;
}

@media (min-width: 768px) {
  .exams-header { flex-direction: row; align-items: flex-end; }
}

.exams-header p.desc {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  font-size: 0.9rem;
  max-width: 36rem;
}

.exams-header .btn { align-self: flex-start; }

.exams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) { .exams-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .exams-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .exams-grid { grid-template-columns: repeat(6, 1fr); } }

.exam-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateY(18px);
}

.exam-card.in-view { opacity: 1; transform: translateY(0); }

.exam-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  transform: translateY(-5px) !important;
  border-color: currentColor;
}

.exam-icon-wrap {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.exam-card:hover .exam-icon-wrap { transform: scale(1.1); }

.exam-card span.label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.exam-underline {
  display: block;
  width: 1.5rem;
  height: 2px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exam-card:hover .exam-underline { opacity: 1; }

/* ==========================================================================
   TRENDING BOOKS / CAROUSELS
   ========================================================================== */
.trending-books { padding: 4rem 0; background-color: #fff;  }
@media (min-width: 1024px) { .trending-books { padding: 4rem 0; } }

.top-young-adult { padding: 5rem 0; background: #fff; }
@media (min-width: 1024px) { .top-young-adult { padding: 4rem 0; } }

.carousel-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .carousel-header { flex-direction: row; align-items: flex-end; }
}

.carousel-nav-buttons {
  display: none;
  gap: 0.75rem;
}

@media (min-width: 768px) { .carousel-nav-buttons { display: flex; } }

.carousel-nav-btn {
  width: 2.5rem; height: 2.5rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover { background: var(--primary); color: #fff; }
.carousel-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.carousel-nav-btn:disabled:hover { background: #fff; color: var(--primary); }

.top-young-adult .carousel-nav-btn {
  background: #F3EADB;
  border: 1px solid rgba(156, 74, 90,0.2);
}
.top-young-adult .carousel-nav-btn:hover { background: var(--primary); color: #fff; }
.top-young-adult .carousel-nav-btn:disabled:hover { background: #F3EADB; color: var(--primary); }

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.book-card {
  flex-shrink: 0;
  width: 260px;
  scroll-snap-align: start;
  transition: transform 0.25s ease;
}

@media (min-width: 768px) { .book-card { width: 288px; } }

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

.book-card-inner {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.3s ease;
    border:1px solid #edebeb;

}

.book-card:hover .book-card-inner { box-shadow: var(--shadow-xl); }

.book-card-top {
  height: 10rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-card-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.book-card-top svg {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.8);
  transition: transform 0.5s ease;
}

.book-card:hover .book-card-top svg { transform: scale(1.1); }

.book-pill {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 1;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  backdrop-filter: blur(4px);
}

.book-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  z-index: 1;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 999px;
  color: #fff;
}

.book-badge.new { background: #059669; }
.book-badge.trending { background: #f59e0b; }
.book-badge.best-seller { background: #e11d48; }

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

.book-card-body h4 {
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--foreground);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.book-card-body p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.book-card-body a {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.book-card-body a:hover { text-decoration: underline; }

.trending-bottom {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) { .trending-bottom { flex-direction: row; } }

/* Young Adult specific card */
.ya-card { width: 176px;  }

.ya-card-cover {
  position: relative;
  overflow: hidden;
  height: 14rem;
  background: linear-gradient(135deg, rgba(156, 74, 90,0.1), rgba(201, 154, 59,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.ya-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ya-card:hover .ya-card-cover img { transform: scale(1.05); }

.ya-card-fallback {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-emerald), var(--brand-forest));
}

.ya-card-fallback span {
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}

.ya-rank-badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  width: 1.75rem; height: 1.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}

.ya-card-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
      align-items: center;
    text-align: center;
    justify-content: center;
}

.ya-card-info h4 {
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.35;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ya-card-info p {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.ya-card-info a {
  margin-top: auto;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.ya-card-info a:hover { text-decoration: underline; }

.ya-bottom {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.ya-bottom p { color: var(--muted-foreground); font-size: 0.9rem; }
.ya-bottom a { color: var(--primary); font-weight: 600; }
.ya-bottom a:hover { text-decoration: underline; }
.ya-bottom a.whatsapp-link { color: var(--whatsapp); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  position: relative;
  padding: 4rem 0;
  background-color: #fff;
}

@media (min-width: 1024px) { .services { padding: 4rem 0; } }

.services-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.services-bg img { width: 100%; height: 100%; object-fit: cover; }

.services-overlay {
  position: absolute;
  inset: 0;

}

.services .container { position: relative; z-index: 10; }

.services-intro {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.services-intro h2 { color: var(--brand-gold); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding: 0 1rem;
}

@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
      border: 1px solid var(--border);
}

.service-card.in-view { opacity: 1; transform: translateY(0); }
.service-card:hover { background: rgba(255,255,255,0.2); }

.service-icon {
  width: 3.5rem; height: 3.5rem;
  background: var(--brand-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.service-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  line-height: 1.6;
  margin-bottom: 2.25rem;
  flex-grow: 1;
}

.service-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.service-actions a {
  flex: 1;
  padding: 0.65rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}

.service-actions a.call {
  background: #fff;
  color: var(--brand-emerald);
  border: 1px solid var(--primary);
}
.service-actions a.call:hover { background: #f3f4f6; }

.service-actions a.whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border: 1px solid rgba(37,211,102,0.3);
}
.service-actions a.whatsapp:hover { background: var(--whatsapp-hover); }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery { padding: 5rem 0; background: var(--background); }
@media (min-width: 1024px) { .gallery { padding: 4rem 0; } }

.gallery-intro {
  text-align: center;
  max-width: 42.25rem;
  margin: 0 auto 2.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 150px;
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
}

.gallery-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.in-view { opacity: 1; transform: translateY(0); }
.gallery-item:hover { transform: scale(1.02); }

.gallery-item.span-2 { grid-column: span 2; grid-row: span 2; }

@media (max-width: 767px) {
  .gallery-item.span-2 { grid-column: span 2; grid-row: span 1; }
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(156, 74, 90,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-item:hover .gallery-overlay { background: rgba(156, 74, 90,0.5); }

.gallery-zoom-icon {
  width: 4rem; height: 4rem;
  background: var(--brand-gold);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.gallery-zoom-icon svg { color: #fff; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(156, 74, 90,0.95);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  padding: 0.5rem;
  border-radius: 999px;
  transition: color 0.2s ease;
}
.lightbox-close:hover { color: #fff; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-2xl);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.open img { transform: scale(1); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding: 5rem 0; background: rgba(244,247,242,0.3); }
@media (min-width: 1024px) { .contact { padding: 4rem 0; } }

.contact-intro {
  text-align: center;
  max-width: 42.25rem;
  margin: 0 auto 4rem;
}

.contact-intro p.lead {font-size: 1.125rem; margin-top: 0.7rem; }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.contact-card.in-view { opacity: 1; transform: translateY(0); }

.contact-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px) !important;
}

.contact-icon-wrap {
  width: 4rem; height: 4rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon-wrap { transform: scale(1.1); }

.contact-card h4 { font-size: 1.125rem; color: var(--foreground); margin-bottom: 0.5rem; }
.contact-card .value { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }
.contact-card .sub { font-size: 0.875rem; color: var(--muted-foreground); }

.contact-map-block {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) { .contact-map-block { flex-direction: row; } }

.contact-info-col {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) { .contact-info-col { width: 50%; padding: 2.25rem; } }

.contact-info-col h4 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.contact-info-rows { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-info-row { display: flex; gap: 1rem; }
.contact-info-row svg { color: var(--primary); flex-shrink: 0; margin-top: 0.25rem; }
.contact-info-row p:first-child { font-weight: 500; color: var(--brand-emerald); }
.contact-info-row p:last-child {  margin-top: 0.25rem; }

.contact-cta-block {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.contact-cta-block p.title { font-weight: 500; color: var(--foreground); }
.contact-cta-block p.sub { font-size: 0.875rem; color: var(--muted-foreground); margin: 0.25rem 0 1.5rem; }

.contact-cta-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.contact-cta-buttons a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.contact-cta-buttons a.directions { background: var(--primary); color: #fff; }
.contact-cta-buttons a.directions:hover { background: var(--secondary); }

.contact-cta-buttons a.call {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.contact-cta-buttons a.call:hover { background: rgba(156, 74, 90,0.05); }

.contact-cta-buttons a.whatsapp { background: var(--whatsapp); color: #fff; }
.contact-cta-buttons a.whatsapp:hover { background: var(--whatsapp-hover); }

.contact-map-col {
  position: relative;
  min-height: 300px;
  background: var(--muted);
}

@media (min-width: 768px) { .contact-map-col { width: 50%; } }

.contact-map-col iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}

.contact-map-col iframe:hover { filter: grayscale(0); }

/* ==========================================================================
   WHOLESALE ENQUIRY CTA (NEW) — sits directly above the footer
   ========================================================================== */
.wholesale-cta {
  padding: 4rem 0 5rem;
  background: var(--background);
}

@media (min-width: 1024px) { .wholesale-cta { padding: 4rem 0 6rem; } }

.wholesale-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-emerald), var(--brand-forest));
  box-shadow: var(--shadow-2xl);
  padding: 2.25rem 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.wholesale-cta-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .wholesale-cta-card { padding: 4rem 2.25rem; }
}

/* Subtle repeating book/pen pattern using the site's own gold accent —
   pure CSS/SVG, no image asset or extra JS required. */
.wholesale-cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23C99A3B' stroke-width='2'%3E%3Crect x='10' y='14' width='18' height='24' rx='2'/%3E%3Cline x1='19' y1='14' x2='19' y2='38'/%3E%3Cline x1='46' y1='16' x2='46' y2='40' stroke-linecap='round'/%3E%3Cpath d='M46 40 44 36 48 36Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.wholesale-cta-content {
  position: relative;
  z-index: 1;
  max-width: 42.25rem;
  margin: 0 auto;
}

.wholesale-cta-content h3 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .wholesale-cta-content h3 { font-size: 2.25rem; } }

.wholesale-cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

@media (min-width: 768px) { .wholesale-cta-content p { font-size: 1.05rem; } }

.wholesale-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 480px) {
  .wholesale-cta-buttons { flex-direction: row; justify-content: center; }
}

.wholesale-cta-buttons .btn-primary {
  background: var(--brand-gold);
  color: #fff;
}

.wholesale-cta-buttons .btn-primary:hover {
  background: #B0842D;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--brand-emerald);
  color: rgba(255,255,255,0.8);
  border-top: 4px solid var(--brand-gold);
}

.footer-inner { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 0.85fr; } }

.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  margin-bottom: 1.5rem;
      width: 202px;
}

.footer-logo-wrap img { height: 2.25rem; width: auto; max-width: 180px; object-fit: contain; }

.footer-about p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }

.footer-col h4 {
  font-family: var(--font-sans);
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-col li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }

.footer-dot {
  width: 0.375rem; height: 0.375rem;
  border-radius: 999px;
  background: rgba(201, 154, 59,0.6);
  flex-shrink: 0;
}

.footer-col a { transition: color 0.2s ease; }
.footer-col a:hover { color: var(--brand-gold); }

.footer-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.footer-hours-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-hours-note p { font-size: 0.75rem; text-align: center; margin-bottom: 0; }

.footer-bottom {
  border-top: 1px solid rgba(201, 154, 59,0.3);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

.footer-bottom p.copyright { font-size: 0.75rem; margin-bottom:0 }

.footer-socials { display: flex; align-items: center; gap: 1rem; }

.footer-socials a {
  width: 2.25rem; height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer-socials a:hover { border-color: var(--brand-gold); color: var(--brand-gold); }

.footer-credit { font-size: 0.75rem; }
.footer-credit a {
  color: #FFEB3B;
}

/* ==========================================================================
   FLOATING ACTIONS
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 6rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .floating-actions { bottom: 3rem; right: 2.25rem; }
}

.scroll-top-btn {
  width: 2.5rem; height: 2.5rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-emerald);
  transition: all 0.2s ease;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  visibility: hidden;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  visibility: visible;
}

.scroll-top-btn:hover { background: #f9fafb; }

.whatsapp-fab {
  width: 3.5rem; height: 3.5rem;
  background: var(--whatsapp);
  box-shadow: 0 20px 25px -5px rgba(37,211,102,0.2);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}

.whatsapp-fab:hover { background: var(--whatsapp-hover); transform: scale(1.1); }

/* ==========================================================================
   MOBILE BOTTOM BAR
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 100;
  box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.05);
  padding-bottom: env(safe-area-inset-bottom);
  display: none;
}

@media (max-width: 767px) {
  .mobile-bottom-bar { display: block; }
}

.mobile-bottom-bar-inner { display: flex; height: 4rem; }

.mobile-bottom-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-right: 1px solid var(--border);
  transition: background 0.2s ease;
}

.mobile-bottom-bar a:last-child { border-right: none; }

.mobile-bottom-bar a.call { color: var(--primary); }
.mobile-bottom-bar a.call:active { background: rgba(156, 74, 90,0.1); }

.mobile-bottom-bar a.whatsapp { color: var(--whatsapp); }
.mobile-bottom-bar a.whatsapp:active { background: rgba(37,211,102,0.1); }

.mobile-bottom-bar a.directions { color: var(--foreground); }
.mobile-bottom-bar a.directions:active { background: rgba(0,0,0,0.1); }

.mobile-bottom-bar span {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Padding so mobile bottom bar doesn't overlap content */
@media (max-width: 767px) {
  body { padding-bottom: 4rem; }
}

/* Icon sizing helper (inline SVGs use currentColor) */
svg { display: inline-block; vertical-align: middle; }

/* ==========================================================================
   INTERIOR PAGES (NEW) — shared components for About/Services/Contact/Products
   Reuses existing design tokens (colors, radius, shadow) so new pages feel
   like a seamless extension of the Home page, not a separate design.
   ========================================================================== */

/* ---- Page banner: lighter-weight version of the homepage hero, used at
   the top of every interior page. Same overlap fix (--header-height),
   same gradient/typography language, but static (no slideshow JS) since
   interior pages don't need a carousel. ---- */
.page-banner {
  position: relative;
  /* Only a small buffer beyond the header height — the banner should be
     a compact strip, not a second hero. (Previously stacked 3-4rem on
     top of the header offset, which made it far taller than intended.) */
   margin-top: 123px;
  padding: 3rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-emerald), var(--brand-forest));
}



.page-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,18,32,0.55), rgba(156, 74, 90,0.55));
}

.page-banner-content {
  position: relative;
  z-index: 1;
}

.page-banner-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}

.page-banner-breadcrumb a { color: rgba(255,255,255,0.9); }
.page-banner-breadcrumb a:hover { color: var(--brand-gold); }

.page-banner h1 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) { .page-banner h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .page-banner h1 { font-size: 2.25rem; } }

.page-banner p {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  max-width: 40rem;
  font-weight: 300;
}

@media (min-width: 768px) { .page-banner p { font-size: 1.1rem; } }

/* ---- Catalog grid: grid on desktop, horizontal snap-scroll on mobile.
   Generalized version of .bestsellers-grid so it can wrap any card type
   (book-card, product-card) used across the new catalog sections. ---- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) { .catalog-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .catalog-grid { grid-template-columns: repeat(5, 1fr); gap: 1.75rem; } }

@media (max-width: 767px) {
  .catalog-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    margin: 0 -1rem;
    padding: 0 1rem 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .catalog-grid::-webkit-scrollbar { display: none; }
  .catalog-grid > .book-card,
  .catalog-grid > .product-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
}

/* Section wrapper used for each catalog category on products.html */
.catalog-section { padding: 4rem 0; }
@media (min-width: 1024px) { .catalog-section { padding: 4rem 0; } }

@media (min-width: 1024px) { .catalog-section { padding: 4rem 0; } }

/* ---- Featured Authors: circular placeholder avatars ---- */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 1.5rem;
  text-align: center;
}

@media (min-width: 640px) { .authors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .authors-grid { grid-template-columns: repeat(6, 1fr); } }

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.author-card.in-view { opacity: 1; transform: translateY(0); }

.author-avatar {
  position: relative;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 3px solid #fff;
  transition: transform 0.3s ease;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-card:hover .author-avatar { transform: scale(1.06); }

.author-badge {
  position: absolute;
  bottom: -0.25rem;
  right: -0.25rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--brand-gold);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid #fff;
}

.author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--foreground);
}

.author-role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* About page reuses .about-grid (defined once, above, alongside the rest
   of the About section styles) for this two-column layout — previously
   duplicated here as .story-block with identical rules. */

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) { .milestones-grid { grid-template-columns: repeat(4, 1fr); } }

.milestone-card {
  text-align: center;
  padding: 2.25rem 1rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.milestone-card.in-view { opacity: 1; transform: translateY(0); }

.milestone-number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.milestone-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* ---- Services page: process steps ---- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  counter-reset: step;
}

@media (min-width: 768px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.in-view { opacity: 1; transform: translateY(0); }

.process-step-number {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.875rem; color: var(--muted-foreground); }

/* ---- Contact page: department cards ---- */
.department-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) { .department-grid { grid-template-columns: repeat(3, 1fr); } }

.department-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.department-card.in-view { opacity: 1; transform: translateY(0); }
.department-card:hover { box-shadow: var(--shadow-lg); }

.department-card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.department-card p { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.department-card a { color: var(--primary); font-weight: 600; font-size: 0.875rem; }
.department-card a:hover { text-decoration: underline; }



/* ==========================================================================
   1. DESIGN TOKENS — Premium Black & Gold Luxury Theme
   ========================================================================== */
:root{
  --bg:            #fff;
  --card:          #161616;
  --card-elevated: #1C1C1C;
  --gold:          #C99A3B;
  --gold-soft:     rgba(201, 154, 59, 0.35);
  --gold-glow:     rgba(201, 154, 59, 0.55);
  --text-white:    #F5F5F5;
  --text-secondary:#BDBDBD;
  --border-hair:   rgba(245, 245, 245, 0.08);


  --ease-premium:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-elastic:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   2. SECTION BASE
   ========================================================================== */
.law-books-section{
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 154, 59,0.08), transparent 60%),
    var(--bg);
  color: var(--text-white);
  font-family: var(--font-body);
  padding: 6rem 0 7rem;
  overflow: hidden;
  position: relative;
}

/* faint gold hairline top border to separate from previous section */
.law-books-section::before{
  content:'';
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:min(1100px, 90%); height:1px;
  background:linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

/* ---- Heading block ---- */
.lb-heading-wrap{
  text-align:center;
  margin-bottom: 3rem;
  opacity:0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-premium), transform .9s var(--ease-premium);
}
.lb-heading-wrap.in-view{ opacity:1; transform:translateY(0); }

.lb-eyebrow{
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  display:flex; align-items:center; justify-content:center; gap:.75rem;
  margin-bottom: 1rem;
}
.lb-eyebrow::before, .lb-eyebrow::after{
  content:''; width:28px; height:1px; background:var(--gold-soft);
}

.lb-title{
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  letter-spacing: .01em;
  margin-bottom: .75rem;

}

.lb-subtitle{
  color: var(--bs-body-color);
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================================================
   3. SEMESTER SELECTOR (custom — NOT Bootstrap tabs)
   ========================================================================== */
.lb-selector-outer{
  display:flex;
  justify-content:center;
  margin-bottom: 3.5rem;
  background: var(--green);
}

.lb-selector{
  position: relative;
  display: flex;
  gap: .35rem;
  background: var(--brand-emerald);
  border: 1px solid var(--border-hair);
  border-radius: 999px;
  padding: .4rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);

  /* mobile: horizontally scrollable pill rail */
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.lb-selector::-webkit-scrollbar{ display:none; }

/* the sliding gold "pill" that glides under the active tab */
.lb-selector-glider{
  position:absolute;
  top:.4rem; left:.4rem;
  height: calc(100% - .8rem);
  border-radius:999px;
  background: linear-gradient(135deg, #E6C77E, var(--gold) 55%, #9E7529);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 4px 18px var(--gold-glow);
  transition: transform .55s var(--ease-elastic), width .55s var(--ease-elastic);
  z-index: 0;
  will-change: transform, width;
}

.lb-tab{
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: .68rem 1.4rem;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .35s ease, transform .25s var(--ease-elastic);
}

.lb-tab:hover{ color: var(--text-white); }

/* elastic "press" click feedback */
.lb-tab:active{ transform: scale(0.92); }

.lb-tab.active{
  color: #14110A; /* near-black text on gold, per spec */
  font-weight: 700;
}

/* subtle glow ring pulse when a tab becomes active */
.lb-tab.active::after{
 content:'';
  position:absolute; inset:-6px;
  border-radius:999px;
  box-shadow: 0 0 22px 2px var(--gold-glow);
  opacity:0;
  animation: lb-glow-pulse .6s var(--ease-premium) forwards;
  pointer-events: none;  /* stop it from intercepting clicks on neighboring tabs */
  z-index: -1;           /* keep it strictly behind all button content */
}
@keyframes lb-glow-pulse{
  0%{ opacity:.9; }
  100%{ opacity:0; }
}

/* ==========================================================================
   4. TRANSITION ICON (⚖️ rotates briefly between semester switches)
   ========================================================================== */
.lb-transition-icon{
  position:absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0) rotate(0deg);
  font-size: 2.75rem;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 14px var(--gold-glow));
}
.lb-transition-icon.playing{
  animation: lb-icon-spin .7s var(--ease-premium) forwards;
}
@keyframes lb-icon-spin{
  0%   { opacity:0;  transform: translate(-50%,-50%) scale(.4)  rotate(-30deg); }
  35%  { opacity:1;  transform: translate(-50%,-50%) scale(1.15) rotate(200deg); }
  70%  { opacity:1;  transform: translate(-50%,-50%) scale(1)    rotate(360deg); }
  100% { opacity:0;  transform: translate(-50%,-50%) scale(.85)  rotate(380deg); }
}

/* ==========================================================================
   5. BOOKS GRID + STAGGERED SWITCH ANIMATION
   ========================================================================== */
.lb-grid-wrap{
  position: relative;
  min-height: 220px; /* avoids layout jump mid-transition */
}

.lb-grid{
  --bs-gutter-x: 1.5rem;
}

/* Each card column: default resting state */
.lb-col{
  opacity: 1;
  transform: translateX(0) scale(1);
  transition:
    opacity .5s var(--ease-premium),
    transform .5s var(--ease-premium);
}

/* Exiting state: fade out + slide left */
.lb-col.lb-exit{
  opacity: 0;
  transform: translateX(-36px) scale(.96);
}

/* Entering state (pre-animation starting point): off to the right, invisible */
.lb-col.lb-enter-from{
  opacity: 0;
  transform: translateX(48px) scale(.94);
  transition: none; /* set before paint, then transition kicks in on next frame */
}

/* Entering state (target): pop in with slight overshoot scale, then settle */
.lb-col.lb-enter-to{
  opacity: 1;
  transform: translateX(0) scale(1.015);
  transition:
    opacity .55s var(--ease-premium),
    transform .55s var(--ease-elastic);
}
.lb-col.lb-settle{
  transform: translateX(0) scale(1);
  transition: transform .35s var(--ease-premium);
}

/* ==========================================================================
   6. BOOK CARD — luxury styling + hover interactions
   ========================================================================== */
.lb-card{
  position: relative;
  height: 100%;
  display:flex;
  flex-direction:column;
  border: 1px solid var(--border-hair);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  transition:
    transform .45s var(--ease-premium),
    box-shadow .45s var(--ease-premium),
    border-color .45s var(--ease-premium);
  will-change: transform;

  /* gentle ambient float loop, subtle so it doesn't compete with hover */
  animation: lb-float 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}
@keyframes lb-float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-4px); }
}

.lb-card:hover{
  animation-play-state: paused;
  transform: translateY(-10px) scale(1.03);
  border-color: var(--gold);
  box-shadow:
    0 22px 45px rgba(0,0,0,0.55),
    0 0 0 1px var(--gold-soft),
    0 0 32px var(--gold-glow);
}

/* Cover image + zoom-on-hover */
.lb-cover{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f0f0f;
  max-height: 200px;
}
.lb-cover img{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
  transition: transform .6s var(--ease-premium), filter .6s ease;
  filter: saturate(.92) brightness(.95);
}
.lb-card:hover .lb-cover img{
  transform: scale(1.12);
  filter: saturate(1.05) brightness(1.02);
}

/* soft gradient overlay so text over image (badge) stays legible */
.lb-cover::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  pointer-events:none;
}

/* "Latest Edition" badge */
.lb-badge{
  position:absolute;
  top: .75rem; left: .75rem;
  z-index: 2;
  background: rgba(11,11,11,0.65);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* Card body */
.lb-body{
  padding: 1.1rem 1.15rem 1.25rem;
  display:flex;
  flex-direction:column;
  flex: 1;
}

.lb-book-name{
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-emerald);
  line-height: 1.25;
  margin-bottom: .5rem;
}

.lb-meta{
  font-size: .82rem;
  color: var(--primary);
  margin-bottom: .18rem;
  display:flex;
  gap: .4rem;
}
.lb-meta strong{
  color: var(--text-white);
  font-weight: 600;
}
.lb-meta .lb-meta-label{
  color: var(--gold);
  font-weight: 600;
  min-width: 76px;
  flex-shrink:0;
}

/* View Details button — with ripple */
.lb-btn{
  position: relative;
  overflow: hidden;
  margin-top: auto;
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .35s var(--ease-premium), color .35s var(--ease-premium), transform .2s ease, box-shadow .35s ease;
}
.lb-btn:hover{
  background: var(--gold);
  color: #14110A;
  box-shadow: 0 6px 20px var(--gold-glow);
}
.lb-btn:active{ transform: scale(.97); }

/* ripple span injected by JS */
.lb-ripple{
  position:absolute;
  border-radius:50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: lb-ripple-anim .6s ease-out;
  pointer-events:none;
}
@keyframes lb-ripple-anim{
  to{ transform: scale(2.6); opacity: 0; }
}

/* ==========================================================================
   7. RESPONSIVE — 4 / 2 / 1 columns
   ========================================================================== */
/* Bootstrap grid handles most of this via column classes in the HTML,
   these rules fine-tune spacing per breakpoint. */
@media (max-width: 991.98px){
  .law-books-section{ padding: 4.5rem 0 5rem; }
  .lb-selector{ justify-content: flex-start; }
}
@media (max-width: 575.98px){
  .lb-selector-outer{ margin-bottom: 2.5rem; }
  .lb-tab{ padding:.6rem 1.1rem; font-size:.85rem; }
  .lb-book-name{ font-size:1.1rem; }
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce){
  .lb-card, .lb-col, .lb-heading-wrap, .lb-tab, .lb-transition-icon, .lb-selector-glider{
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Showcase Carousel — "Trusted By" testimonial carousel
   Reuses the site's existing design tokens (--brand-emerald, --brand-gold,
   --card, --border, --shadow-*) defined in css/style.css so this section
   reads as part of the same system, not a bolted-on widget.
   ========================================================================== */

.showcase-section {
  position: relative;
  padding: 3rem 0 3.5rem;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

@media (min-width: 1024px) {
  .showcase-section { padding: 2.75rem 0 3rem; }
}

/* ---- Ambient background: faint grid + soft radial glow, no heavy color ---- */

.showcase-bg-glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(900px, 90vw);
  height: 480px;
  transform: translateX(-50%);
  z-index: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(201, 154, 59, 0.16), transparent 70%),
              radial-gradient(ellipse 40% 40% at 50% 50%, rgba(156, 74, 90, 0.10), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.showcase-section .container {
  position: relative;
  z-index: 1;
}

.showcase-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}

.showcase-intro p.lead {
  color: var(--muted-foreground);
  font-size: 1rem;
  margin-top: 0.6rem;
}

/* ==========================================================================
   Carousel shell
   ========================================================================== */
.showcase-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  outline: none;
}

.showcase-track {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* All cards share the same grid cell — the container's height auto-fits to
   the card's real content (image + title), so there's never dead space
   above/below, and it shrinks naturally as the viewport gets smaller.
   Position within the stack is driven purely by transform/opacity/filter
   via a data-state attribute, so animation stays compositor-only. */
.showcase-card {
  grid-row: 1;
  grid-column: 1;
  width: min(520px, 82vw);
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  will-change: transform, opacity, filter;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
}

/* Active / center card */
.showcase-card[data-state="active"] {
  transform: translateX(0) scale(1) rotateY(0deg);
  opacity: 1;
  filter: blur(0px);
  z-index: 30;
  pointer-events: auto;
}

/* Immediate neighbours, partially visible behind the active card */
.showcase-card[data-state="prev"] {
  transform: translateX(-62%) scale(0.86) rotateY(6deg);
  opacity: 0.4;
  filter: blur(3px);
  z-index: 20;
  pointer-events: none;
}

.showcase-card[data-state="next"] {
  transform: translateX(62%) scale(0.86) rotateY(-6deg);
  opacity: 0.4;
  filter: blur(3px);
  z-index: 20;
  pointer-events: none;
}

/* Everything further away: fully hidden, parked just off the visible edge */
.showcase-card[data-state="far-prev"] {
  transform: translateX(-92%) scale(0.75);
  opacity: 0;
  filter: blur(4px);
  z-index: 10;
  pointer-events: none;
}

.showcase-card[data-state="far-next"] {
  transform: translateX(92%) scale(0.75);
  opacity: 0;
  filter: blur(4px);
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 767px) {
  .showcase-card[data-state="prev"],
  .showcase-card[data-state="next"],
  .showcase-card[data-state="far-prev"],
  .showcase-card[data-state="far-next"] {
    opacity: 0;
    pointer-events: none;
  }
  .showcase-card[data-state="prev"] { transform: translateX(-30%) scale(0.9); }
  .showcase-card[data-state="next"] { transform: translateX(30%) scale(0.9); }
}

/* ---- Card content: image + title only ---- */
.showcase-card {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .showcase-card { padding: 1.25rem; }
}

.showcase-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  background: var(--muted, #F3EADB);
  margin-bottom: 0.85rem;
}

.showcase-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-card[data-state="active"]:hover .showcase-image-wrap img {
  transform: scale(1.04);
}

.showcase-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-emerald);
}

@media (min-width: 768px) {
  .showcase-title { font-size: 1.25rem; }
}

/* ==========================================================================
   Navigation buttons
   ========================================================================== */
.showcase-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--brand-emerald);
  border: 1px solid var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-nav-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.08);
}

.showcase-nav-btn:active { transform: translateY(-50%) scale(0.95); }

.showcase-nav-btn.prev { left: 0.25rem; }
.showcase-nav-btn.next { right: 0.25rem; }

@media (min-width: 768px) {
  .showcase-nav-btn.prev { left: -0.5rem; }
  .showcase-nav-btn.next { right: -0.5rem; }
}

@media (min-width: 1200px) {
  .showcase-nav-btn.prev { left: -1.5rem; }
  .showcase-nav-btn.next { right: -1.5rem; }
}

.showcase-nav-btn:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

/* ==========================================================================
   Pagination dots
   ========================================================================== */
.showcase-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.showcase-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--border);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-dot:hover { background: var(--brand-gold); }

.showcase-dot.active {
  width: 1.6rem;
  background: var(--primary);
}

.showcase-dot:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .showcase-card,
  .showcase-nav-btn,
  .showcase-dot {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   MERGED COMPATIBILITY RULES
   Added from the second stylesheet:
   footer layout/classes used by the alternate working-hours markup.
   These selectors did not exist in the primary stylesheet.
   ========================================================================== */

.footer-about-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-about-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 95%;
}

.footer-hours-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-col-title {
  font-family: var(--font-sans);
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-hours-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
}

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(201, 154, 59, 0.2);
}

.footer-hours-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hours-label {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  flex-grow: 1;
}

.hours-value {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive support for the alternate footer markup */
@media (max-width: 575px) {
  .footer-hours-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-bottom: 0.5rem;
  }

  .hours-value {
    color: var(--brand-gold);
  }

  .footer-col-title {
    font-size: 0.8rem;
  }

  .footer-hours-wrapper {
    gap: 0.75rem;
  }

  .footer-about-col p {
    font-size: 0.85rem;
  }
}

@media (min-width: 576px) {
  .footer-hours-row {
    flex-direction: row;
    gap: 0.75rem;
  }

  .hours-label {
    min-width: 150px;
  }

  .hours-value {
    text-align: right;
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .footer-hours-row {
    padding-bottom: 0.85rem;
    gap: 0.75rem;
  }

  .hours-label {
    min-width: 155px;
  }

  .hours-value {
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) {
  .footer-about-col p {
    font-size: 0.95rem;
    max-width: 90%;
  }
}

@media (min-width: 1200px) {
  .footer-hours-col {
    gap: 1.75rem;
  }

  .footer-about-col p {
    max-width: 75%;
  }
}


   /**
 * MODERN DROPDOWN MENU - CSS STYLING
 * 
 * Features:
 * - Modern dropdown with icons
 * - Hover state management
 * - Mobile responsive
 * - Smooth animations
 * - Clean typography
 */

/* ========================================================================
   NAVIGATION BAR STYLING
   ======================================================================== */
/**
 * MODERN DROPDOWN MENU - CSS STYLING
 * 
 * Features:
 * - Modern dropdown with icons
 * - Hover state management
 * - Mobile responsive
 * - Smooth animations
 * - Clean typography
 */
 /* ========================================
           NAVIGATION BAR STYLING
           ======================================== */
 
     .srbs-navbar {
  position: relative;
  z-index: 50;
  border-bottom: 0;
  box-shadow: none;
}

.srbs-navbar-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 1px;
  padding: 0;
  margin: 0;
}

.srbs-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  position: relative;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  width: auto;
  max-height: none;
  overflow: visible;
}

.srbs-nav-item {
  position: relative;
}

.srbs-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.srbs-nav-link:hover,
.srbs-nav-link:focus-visible {
  color: var(--primary);
  background: rgba(156, 74, 90, 0.05);
}
.srbs-nav-link.activemenu {
  background: rgba(156, 74, 90, 0.08);
  border-bottom: 2px solid var(--rose-dark);
} 
.srbs-nav-link:focus-visible,
.srbs-dropdown-item:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.srbs-dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.srbs-nav-dropdown:hover .srbs-dropdown-arrow,
.srbs-nav-dropdown.active .srbs-dropdown-arrow {
  transform: rotate(180deg);
}

.srbs-dropdown-menu {
  position: absolute;
  top: calc(100% + 0);
  left: 0;
  min-width: 320px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}

.srbs-nav-dropdown:hover .srbs-dropdown-menu,
.srbs-nav-dropdown:focus-within .srbs-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.srbs-dropdown-content {
  padding: 12px 0;
  max-height: 500px;
  overflow-y: auto;
}

.srbs-dropdown-section {
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

.srbs-dropdown-section:last-child {
  border-bottom: 0;
  padding-bottom: 12px;
}

.srbs-dropdown-title {
  padding: 0 20px;
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.srbs-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 20px;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  cursor: pointer;
  border-left: 4px solid transparent;
}
.srbs-dropdown-item.active {
  background: rgba(156, 74, 90, 0.1);
  color: var(--primary);
  border-left-color: var(--brand-gold);
  padding-left: 16px;
}
.srbs-dropdown-item:hover {
  background: #f9fafb;
  color: #33291F;
  border-left-color: var(--brand-gold);
  padding-left: 16px;
}

.srbs-dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  background: #f3f4f6;
  border-radius: 8px;
  color: var(--primary);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.srbs-dropdown-item:hover .srbs-dropdown-icon {
  background: rgba(156, 74, 90, 0.1);
  transform: scale(1);
}

.srbs-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.srbs-dropdown-label {
  display: block;
  font-weight: normal;
  font-size: 0.95rem;
  color: #33291F;
}

.srbs-dropdown-desc {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Mobile navigation
   -------------------------------------------------------------------------- */
.srbs-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(156, 74, 90, 0.1);
  color: var(--primary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.srbs-hamburger:hover,
.srbs-hamburger:focus-visible {
  background: var(--primary);
  color: #fff;
}

.srbs-hamburger.active {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 1023px) {
  .srbs-navbar {
    position: static;
  }

  .srbs-navbar-container {
    min-height: 0;
  }

  .srbs-hamburger {
    display: flex;
    flex-shrink: 0;
  }

  .srbs-nav-menu {
    position: fixed;
    top: var(--header-height, 128px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 49;
  }

  .srbs-nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .srbs-nav-item {
    width: 100%;
    border-bottom: 1px solid #f0f1f3;
  }

  .srbs-nav-link {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 0;
    text-align: left;
    font-size: 1rem;
  }

  .srbs-nav-link:hover,
  .srbs-nav-link:focus-visible {
    background: rgba(156, 74, 90, 0.05);
  }

  /* Books dropdown becomes an accordion. */
  .srbs-dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fafafa;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: max-height 0.3s ease;
  }

  /* Disable desktop hover opening on touch/mobile. */
  .srbs-nav-dropdown:hover .srbs-dropdown-menu,
  .srbs-nav-dropdown:focus-within .srbs-dropdown-menu {
    max-height: 0;
  }

  .srbs-nav-dropdown.active .srbs-dropdown-menu {
    max-height: 420px;
  }

  .srbs-dropdown-content {
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .srbs-dropdown-section {
    padding: 0;
    border: 0;
  }

  .srbs-dropdown-item {
    align-items: center;
    min-height: 48px;
    padding: 12px 20px 12px 42px;
    border-left: 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 0.92rem;
    justify-content: center;
  }

  .srbs-dropdown-item:hover {
    padding-left: 42px;
    border-left: 0;
    background: #F3EADB;
  }

  .srbs-dropdown-icon {
    display: none;
  }

  .srbs-dropdown-desc {
    display: none;
  }

  .srbs-dropdown-label {
    font-size: 0.92rem;
  }

  .srbs-dropdown-title {
    padding: 10px 20px 6px 42px;
    margin: 0;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .srbs-nav-link {
    min-height: 50px;
    padding: 13px 16px;
    font-size: 0.95rem;
  }

  .srbs-dropdown-item {
    padding-left: 34px;
    font-size: 0.88rem;
  }

  .srbs-dropdown-item:hover {
    padding-left: 34px;
  }

  .srbs-dropdown-label {
    font-size: 0.88rem;
  }
}

/* Responsive page-content styles */
@media (max-width: 768px) {
  /* Hero Section Mobile */
            .srbs-hero {
                padding: 50px 20px;
            }
 
            .srbs-hero h1 {
                font-size: 1.8rem;
            }
 
            .srbs-hero p {
                font-size: 1rem;
            }
 
            .srbs-section {
                padding: 40px 20px;
            }
 
            .srbs-section h2 {
                font-size: 1.5rem;
            }
 
            .srbs-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }
        }
 

/* ========================================
   RESPONSIVE - SMALL MOBILE (480px and below)
   ======================================== */

@media (max-width: 480px) {
  .srbs-hero h1 {
    font-size: 1.5rem;
  }

  .srbs-section h2 {
    font-size: 1.25rem;
  }

  footer {
    padding: 30px 16px;
  }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

 
        .srbs-dropdown-content::-webkit-scrollbar {
            width: 6px;
        }
 
        .srbs-dropdown-content::-webkit-scrollbar-track {
            background: #f3f4f6;
            border-radius: 3px;
        }
 
        .srbs-dropdown-content::-webkit-scrollbar-thumb {
            background: #d1d5db;
            border-radius: 3px;
        }
 
        .srbs-dropdown-content::-webkit-scrollbar-thumb:hover {
            background: #9ca3af;
        }
 
        /* ========================================
           ACCESSIBILITY
           ======================================== */
 
        .srbs-nav-link:focus-visible {
            outline: 2px solid #3b82f6;
            outline-offset: 2px;
        }
 
        .srbs-dropdown-item:focus-visible {
            outline: 2px solid #3b82f6;
            outline-offset: -2px;
        }

        .info-banner {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin: 0 0 25px;
  padding: 12px 16px;
  background: #FBF3E4;          /* banner background */
  border: 1px solid var(--brand-emerald);    /* border */
  border-left: 4px solid var(--brand-emerald); /* accent stripe */
  border-radius: 8px;
  font-size: 14px;
  color: #33291F;
}


.info-banner-text { margin: 0; flex: 1; }

.info-banner-text a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
}

.info-banner-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0 4px;
}
.info-banner-close:hover { color: #33291F; }
.srbs-book-section-count {
  display: none;
}


#aibe-special-packages .aibe-card-media { padding: 0; }

#aibe-special-packages .aibe-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 380px) {
  #aibe-special-packages .aibe-card-media { min-height: 150px; }
}