/* ========================================
   Ayurveda eLibrary - Botanical Luxury CSS
   ======================================== */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&display=swap");

:root {
  --forest: #1a3a2a;
  --forest-mid: #2d5a3d;
  --forest-lt: #4a7c59;
  --saffron: #d4813a;
  --saffron-lt: #e8a05e;
  --saffron-dk: #b5611a;
  --cream: #f5f0e8;
  --cream-dk: #ede4d3;
  --parchment: #faf7f2;
  --bark: #8b5e3c;
  --charcoal: #2c2c2c;
  --slate: #5a6472;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(26, 58, 42, 0.1);
  --shadow-md: 0 4px 20px rgba(26, 58, 42, 0.15);
  --shadow-lg: 0 8px 40px rgba(26, 58, 42, 0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  background: var(--parchment);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.25;
}
h4,
h5,
h6 {
  font-family: "Lato", sans-serif;
  font-weight: 700;
}
.italic-serif {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
}

/* ── UTILITIES ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.text-center {
  text-align: center;
}
.text-forest {
  color: var(--forest);
}
.text-saffron {
  color: var(--saffron);
}
.bg-forest {
  background: var(--forest);
}
.bg-cream {
  background: var(--cream);
}

/* ── TOPBAR ── */
.topbar {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 2px solid var(--saffron);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.notice-tag {
  background: var(--saffron);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.notice-ticker {
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
}
.notice-ticker span {
  animation: ticker 25s linear infinite;
  display: inline-block;
}
@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.topbar-right a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 12px;
  transition: var(--transition);
}
.topbar-right a:hover {
  color: var(--saffron-lt);
}

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(26, 58, 42, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon {
  width: 46px;
  height: 46px;
  background: var(--forest);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.brand-text .name {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: var(--forest);
  line-height: 1.1;
  font-weight: 700;
}
.brand-text .sub {
  font-size: 11px;
  color: var(--slate);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--charcoal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--cream);
  color: var(--forest);
}
.nav-links .btn-saffron {
  background: var(--saffron);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 30px;
}
.nav-links .btn-saffron:hover {
  background: var(--saffron-dk) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--cream-dk);
  padding: 12px 0;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--cream-dk);
  transition: var(--transition);
}
.mobile-nav a:hover {
  background: var(--cream);
  color: var(--forest);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(
    135deg,
    var(--forest) 0%,
    var(--forest-mid) 60%,
    #1c4a33 100%
  );
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(212, 129, 58, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(212, 129, 58, 0.1) 0%,
      transparent 40%
    );
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M30 0C13.4 0 0 13.4 0 30s13.4 30 30 30 30-13.4 30-30S46.6 0 30 0zm0 54C16.7 54 6 43.3 6 30S16.7 6 30 6s24 10.7 24 24-10.7 24-24 24z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 50px;
}
.hero-text {
  flex: 1;
  color: var(--white);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 129, 58, 0.2);
  border: 1px solid rgba(212, 129, 58, 0.4);
  color: var(--saffron-lt);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
  color: var(--white);
}
.hero h1 em {
  color: var(--saffron-lt);
  font-style: normal;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-visual {
  flex-shrink: 0;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: var(--saffron-lt);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ── SEARCH BAR ── */
.search-section {
  background: var(--white);
  padding: 28px 0;
  border-bottom: 1px solid var(--cream-dk);
}
.search-bar {
  display: flex;
  background: var(--parchment);
  border: 2px solid var(--cream-dk);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.search-bar:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(26, 58, 42, 0.08);
}
.search-select {
  background: none;
  border: none;
  padding: 14px 16px 14px 20px;
  font-size: 14px;
  color: var(--forest);
  font-weight: 600;
  cursor: pointer;
  border-right: 1px solid var(--cream-dk);
  outline: none;
  min-width: 140px;
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--charcoal);
  outline: none;
}
.search-input::placeholder {
  color: var(--slate);
}
.search-btn {
  background: var(--forest);
  color: var(--white);
  border: none;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-btn:hover {
  background: var(--saffron);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--saffron);
  color: var(--white);
  border-color: var(--saffron);
}
.btn-primary:hover {
  background: var(--saffron-dk);
  border-color: var(--saffron-dk);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}
.btn-forest {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}
.btn-forest:hover {
  background: var(--forest-mid);
}
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--cream-dk);
}
.btn-ghost:hover {
  background: var(--cream);
}
.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}
.btn-icon {
  padding: 10px;
  border-radius: 8px;
}

/* ── SECTIONS ── */
.section {
  padding: 70px 0;
}
.section-sm {
  padding: 50px 0;
}
.section-header {
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--forest);
}
.section-header p {
  color: var(--slate);
  max-width: 500px;
  margin-top: 8px;
}
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.divider-line {
  width: 40px;
  height: 2px;
  background: var(--saffron);
  border-radius: 2px;
}
.divider-dot {
  width: 6px;
  height: 6px;
  background: var(--saffron);
  border-radius: 50%;
}
.divider-label {
  font-size: 12px;
  color: var(--saffron);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── CATEGORY CARDS ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--forest);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cat-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}
.cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
}
.cat-count {
  font-size: 12px;
  color: var(--slate);
  margin-top: 4px;
}

/* ── BOOK CARDS ── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.book-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--cream-dk);
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.book-cover {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}
.book-cover-placeholder .book-emoji {
  font-size: 48px;
  margin-bottom: 8px;
  opacity: 0.6;
}
.book-cover-placeholder .book-title-sm {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  font-family: "Playfair Display", serif;
}
.book-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--saffron);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.book-bookmark {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.book-bookmark:hover {
  background: var(--white);
  transform: scale(1.1);
}
.book-info {
  padding: 16px;
}
.book-category-tag {
  font-size: 11px;
  color: var(--saffron);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.book-title {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  color: var(--forest);
  line-height: 1.3;
  margin-bottom: 4px;
}
.book-author {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 12px;
}
.book-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--slate);
  margin-bottom: 12px;
}
.book-actions {
  display: flex;
  gap: 8px;
}
.book-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 12px;
  padding: 8px 12px;
}

/* ── FEATURES STRIP ── */
.features-strip {
  background: var(--forest);
  padding: 50px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--white);
}
.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(212, 129, 58, 0.2);
  border: 1px solid rgba(212, 129, 58, 0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.feature-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* ── LEADERSHIP / DIGNITARIES ── */
.dignitaries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
}
.dignitary-card {
  background: var(--white);
  border: 1px solid var(--cream-dk);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.dignitary-card .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, #f4efe6, #e9e3d6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dignitary-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dignitary-name {
  font-weight: 800;
  color: var(--forest);
  font-size: 16px;
}
.dignitary-title {
  color: var(--slate);
  font-size: 13px;
  line-height: 1.35;
}

/* ── JOURNALS ── */
.journals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.journal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border-left: 4px solid var(--forest);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.journal-card:hover {
  border-left-color: var(--saffron);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.journal-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.journal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.3;
}
.journal-desc {
  font-size: 12px;
  color: var(--slate);
  margin-top: 2px;
}

/* ── NOTICE BOARD ── */
.notice-board {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--cream-dk);
  box-shadow: var(--shadow-sm);
}
.notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--cream-dk);
}
.notice-header h3 {
  font-size: 18px;
  color: var(--forest);
}
.notice-dot {
  width: 10px;
  height: 10px;
  background: var(--saffron);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--parchment);
  border-radius: var(--radius-sm);
}
.notice-bullet {
  width: 6px;
  height: 6px;
  background: var(--saffron);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.notice-text {
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.5;
}
.notice-date {
  font-size: 11px;
  color: var(--slate);
  margin-top: 2px;
}

/* ── FORMS ── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream-dk);
  max-width: 480px;
  margin: 0 auto;
}
.form-title {
  font-size: 28px;
  color: var(--forest);
  margin-bottom: 6px;
}
.form-subtitle {
  color: var(--slate);
  margin-bottom: 28px;
  font-size: 15px;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cream-dk);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--parchment);
  transition: var(--transition);
  outline: none;
  font-family: "Lato", sans-serif;
}
.form-control:focus {
  border-color: var(--forest);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26, 58, 42, 0.06);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--slate);
  font-size: 14px;
}
.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cream-dk);
}
.form-link {
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}
.form-link:hover {
  color: var(--saffron);
}
.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--slate);
}

/* ── ALERTS ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}
.alert-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}
.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  padding: 50px 0 40px;
  color: var(--white);
}
.page-header h1 {
  font-size: clamp(24px, 4vw, 40px);
  margin-bottom: 8px;
}
.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--saffron-lt);
}
.breadcrumb-sep {
  opacity: 0.5;
}

/* ── CATALOG FILTERS ── */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}
.filter-sidebar {
  flex-shrink: 0;
}
.filter-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dk);
  margin-bottom: 16px;
}
.filter-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--forest);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cream-dk);
}
.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--charcoal);
  transition: var(--transition);
}
.filter-list label:hover {
  background: var(--cream);
}
.filter-list input[type="checkbox"] {
  accent-color: var(--forest);
  width: 15px;
  height: 15px;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.results-count {
  font-size: 15px;
  color: var(--slate);
}
.results-count strong {
  color: var(--forest);
}
.sort-select {
  padding: 8px 14px;
  border: 2px solid var(--cream-dk);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--charcoal);
  background: var(--white);
  cursor: pointer;
  outline: none;
}

/* ── BOOK DETAIL ── */
.book-detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.book-cover-large {
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.book-cover-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-detail h1 {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--forest);
  margin-bottom: 8px;
}
.book-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px 0;
}
.meta-item {
  display: flex;
  flex-direction: column;
}
.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate);
  font-weight: 700;
}
.meta-value {
  font-size: 14px;
  color: var(--charcoal);
  font-weight: 600;
  margin-top: 2px;
}
.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.tag {
  padding: 5px 12px;
  background: var(--cream);
  border-radius: 20px;
  font-size: 12px;
  color: var(--forest);
  font-weight: 600;
}
.book-description {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.8;
  margin: 16px 0;
}

/* ── ADMIN ── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--forest);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-brand {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}
.admin-brand-name {
  font-family: "Playfair Display", serif;
  color: var(--white);
  font-size: 18px;
}
.admin-brand-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-left: 3px solid var(--saffron);
}
.admin-nav .nav-section {
  padding: 16px 20px 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}
.admin-content {
  padding: 32px;
  background: var(--parchment);
}
.admin-header {
  margin-bottom: 28px;
}
.admin-header h1 {
  font-size: 28px;
  color: var(--forest);
}
.admin-header p {
  color: var(--slate);
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--cream-dk);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.stat-card-num {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: var(--forest);
  line-height: 1;
}
.stat-card-label {
  font-size: 13px;
  color: var(--slate);
  margin-top: 2px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate);
  background: var(--cream);
  border-bottom: 2px solid var(--cream-dk);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--cream-dk);
  font-size: 14px;
}
.data-table tr:hover td {
  background: var(--parchment);
}
.table-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dk);
}
.table-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--cream-dk);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.table-header h3 {
  font-size: 16px;
  color: var(--forest);
}
.badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.badge-green {
  background: #d4edda;
  color: #155724;
}
.badge-yellow {
  background: #fff3cd;
  color: #856404;
}
.badge-red {
  background: #f8d7da;
  color: #721c24;
}
.badge-blue {
  background: #cce5ff;
  color: #004085;
}
.action-btns {
  display: flex;
  gap: 6px;
}
.btn-edit {
  background: var(--forest);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}
.btn-delete {
  background: #dc3545;
  color: var(--white);
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* ── FOOTER ── */
.footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.8);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding: 60px 0 40px;
}
.footer-brand h3 {
  font-family: "Playfair Display", serif;
  color: var(--white);
  font-size: 22px;
  margin-bottom: 6px;
}
.footer-brand p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 20px;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover {
  background: var(--saffron);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--saffron-lt);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: var(--saffron-lt);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--saffron-lt);
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 2px solid var(--cream-dk);
  background: var(--white);
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}
.page-btn:hover,
.page-btn.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--forest), var(--forest-mid));
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.about-text h2 {
  font-size: 32px;
  color: var(--forest);
  margin-bottom: 16px;
}
.about-text p {
  color: var(--slate);
  margin-bottom: 16px;
  line-height: 1.8;
}
.value-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.value-icon {
  width: 28px;
  height: 28px;
  background: rgba(212, 129, 58, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.value-text {
  font-size: 14px;
  color: var(--charcoal);
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--cream-dk);
  display: flex;
  gap: 14px;
}
.contact-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(26, 58, 42, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate);
  font-weight: 700;
}
.contact-card-value {
  font-size: 15px;
  color: var(--charcoal);
  font-weight: 600;
  margin-top: 2px;
}
.contact-card-sub {
  font-size: 13px;
  color: var(--slate);
}

/* ── PROFILE ── */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}
.profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dk);
}
.profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
  color: var(--white);
}
.profile-name {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--forest);
}
.profile-role {
  font-size: 13px;
  color: var(--saffron);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}
.profile-dept {
  font-size: 14px;
  color: var(--slate);
  margin-top: 8px;
}
.profile-stat {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-dk);
}
.profile-stat-item {
  text-align: center;
}
.profile-stat-num {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--forest);
}
.profile-stat-label {
  font-size: 12px;
  color: var(--slate);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 220px 1fr;
  }
  .book-detail-layout {
    grid-template-columns: 220px 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .topbar-right {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-content {
    flex-direction: column;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    display: none;
  }
  .filter-sidebar.show {
    display: block;
  }
  .book-detail-layout {
    grid-template-columns: 1fr;
  }
  .book-cover-large {
    max-width: 240px;
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 50px 0;
  }
  .section {
    padding: 50px 0;
  }
  .search-select {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
  .stat-cards {
    grid-template-columns: 1fr 1fr;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-card {
    padding: 24px 20px;
  }
}
