/* ========================================================
   Sakala Epaper Archives - Pixel-Perfect Redesign Styles
   ======================================================== */

:root {
  --sakala-red: #d3161b;
  --sakala-red-dark: #b30f14;
  --sakala-red-light: #fff5f5;
  --sakala-red-border: #fee2e2;
  --sakala-yellow: #ffde17;
  --sakala-dark: #0d1520;
  --sakala-text-dark: #0f172a;
  --sakala-text-muted: #64748b;
  --sakala-border-light: #e2e8f0;
}

/* ========================================================
   Boxed Page Layout - 1320px Max Width (No Full-Width)
   ======================================================== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: var(--sakala-text-dark);
  background-color: #f1f5f9 !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.sakala-site-frame {
  max-width: 1320px !important;
  width: 100% !important;
  margin: 0 auto !important;
  background-color: #ffffff;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.06);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.sakala-main-content {
  flex: 1 0 auto;
  width: 100%;
  position: relative;
}

/* Enforce 1320px max-width across all Bootstrap containers */
.container,
.container-fluid {
  max-width: 1320px !important;
  width: 100% !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 1320px) {
  .container,
  .container-fluid,
  .container-xl,
  .container-lg {
    max-width: 1320px !important;
    width: 1320px !important;
  }
  .sakala-site-frame {
    max-width: 1320px !important;
    width: 1320px !important;
  }
}

/* ──────────────────────────────────────────────────────────
   1. HEADER NAVBAR
   ────────────────────────────────────────────────────────── */
.sakala-main-navbar {
  background: #ffffff !important;
  border-bottom: 1px solid #eef2f6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  position: relative;
  z-index: 100;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.sakala-main-navbar .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 2rem;
}

.header-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-divider {
  color: #cbd5e1;
  font-size: 1.4rem;
  font-weight: 300;
  margin: 0 0.85rem;
  line-height: 1;
}

.brand-text-wrap {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.22rem;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.brand-sakala-red {
  color: var(--sakala-red);
  font-weight: 800;
  margin-right: 5px;
}

.brand-archives-dark {
  color: #1e293b;
  font-weight: 500;
}

/* Nav menu items */
.sakala-main-navbar .nav-link-custom {
  color: #334155 !important;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.sakala-main-navbar .nav-link-custom:hover {
  color: var(--sakala-red) !important;
}

/* Active red pill button in header */
.sakala-main-navbar .nav-pill-active {
  background-color: var(--sakala-red) !important;
  color: #ffffff !important;
  border-radius: 20px;
  padding: 0.45rem 1.25rem !important;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(211, 22, 27, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.sakala-main-navbar .nav-pill-active:hover {
  background-color: var(--sakala-red-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Header search form */
.header-search-wrap {
  position: relative;
  width: 260px;
}

.header-search-input {
  width: 100%;
  height: 38px;
  border-radius: 20px !important;
  border: 1px solid var(--sakala-border-light) !important;
  padding-left: 1rem;
  padding-right: 2.5rem;
  font-size: 0.88rem;
  background-color: #ffffff !important;
  color: #334155;
  transition: all 0.2s ease;
}

.header-search-input:focus {
  border-color: var(--sakala-red) !important;
  box-shadow: 0 0 0 3px rgba(211, 22, 27, 0.12) !important;
  outline: none;
}

.header-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--sakala-red);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-search-btn:hover {
  background: var(--sakala-red-dark);
}

/* ──────────────────────────────────────────────────────────
   2. HERO SECTION
   ────────────────────────────────────────────────────────── */
.sakala-hero-section {
  position: relative;
  background: radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%),
              linear-gradient(135deg, #a70b10 0%, #d3161b 50%, #8b060a 100%);
  padding: 4.5rem 0 7.5rem 0;
  overflow: hidden;
  color: #ffffff;
}

/* Curved organic bottom border using SVG wave */
.sakala-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}

.sakala-hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.sakala-hero-wave .shape-fill {
  fill: #f8fafc;
}

.hero-main-title {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-title-yellow {
  color: var(--sakala-yellow);
  font-weight: 800;
  display: inline-block;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

/* Glass Feature Badges */
.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.hero-glass-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-glass-pill svg {
  flex-shrink: 0;
  color: #ffffff;
}

/* Newspaper Mockup Graphic in Hero */
.hero-mockup-wrapper {
  position: relative;
  text-align: center;
  z-index: 3;
}

.hero-newspaper-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(-15px 20px 30px rgba(0, 0, 0, 0.25));
  transition: transform 0.4s ease;
}

.hero-mockup-wrapper:hover .hero-newspaper-img {
  transform: scale(1.02) rotate(-0.5deg);
}

/* ──────────────────────────────────────────────────────────
   3. FLOATING SEARCH CARD
   ────────────────────────────────────────────────────────── */
.search-card-wrapper {
  position: relative;
  z-index: 20;
  margin-top: -4.2rem;
  margin-bottom: 3.5rem;
}

.search-card-floating {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
  border: 1px solid #f1f5f9;
}

.search-card-heading-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-card-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--sakala-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sakala-red);
  flex-shrink: 0;
}

.search-card-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin: 0;
  white-space: nowrap;
}

.search-field-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  display: block;
}

.input-with-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon-left {
  position: absolute;
  left: 12px;
  color: #64748b;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
}

.field-chevron-right {
  position: absolute;
  right: 12px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
}

.select-field-custom,
.date-field-custom {
  height: 44px !important;
  border-radius: 8px !important;
  border: 1.5px solid var(--sakala-border-light) !important;
  padding-left: 36px !important;
  padding-right: 32px !important;
  font-size: 0.92rem !important;
  font-weight: 500;
  color: #1e293b !important;
  background-color: #ffffff !important;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.select-field-custom:focus,
.date-field-custom:focus {
  border-color: var(--sakala-red) !important;
  box-shadow: 0 0 0 3px rgba(211, 22, 27, 0.1) !important;
  outline: none;
}

.date-field-custom {
  cursor: pointer;
}

.btn-search-red {
  height: 44px;
  background-color: var(--sakala-red) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(211, 22, 27, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-search-red:hover {
  background-color: var(--sakala-red-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ──────────────────────────────────────────────────────────
   4. SECTION HEADERS & BUTTONS
   ────────────────────────────────────────────────────────── */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-title-left {
  display: flex;
  align-items: center;
}

.section-vertical-accent {
  width: 4px;
  height: 28px;
  background-color: var(--sakala-red);
  border-radius: 3px;
  margin-right: 12px;
  flex-shrink: 0;
}

.section-heading-text {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.2;
}

.section-subtext {
  font-size: 0.92rem;
  color: var(--sakala-text-muted);
  margin-top: 3px;
  margin-bottom: 0;
}

.btn-view-all-pill {
  border: 1.5px solid var(--sakala-red);
  color: var(--sakala-red) !important;
  background: transparent;
  border-radius: 25px;
  padding: 6px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-all-pill:hover {
  background-color: var(--sakala-red);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(211, 22, 27, 0.2);
}

.link-view-all-text {
  color: var(--sakala-red) !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.link-view-all-text:hover {
  opacity: 0.8;
  text-decoration: underline !important;
}

/* ──────────────────────────────────────────────────────────
   5. POPULAR EDITIONS CARDS
   ────────────────────────────────────────────────────────── */
.popular-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.popular-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.popular-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #f8fafc;
  display: block;
  border-bottom: 1px solid #edf2f7;
}

.popular-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  background-color: #ffffff;
}

.popular-card:hover .popular-card-img-wrap img {
  transform: scale(1.04);
}

.popular-card-body {
  padding: 1.15rem 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.popular-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.popular-card-title-row svg {
  color: var(--sakala-red);
  flex-shrink: 0;
}

.popular-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  margin: 0;
}

.popular-card-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--sakala-text-muted);
  margin-bottom: 1.25rem;
}

.popular-card-date-row svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.btn-card-view-archives {
  background-color: var(--sakala-red-light);
  color: var(--sakala-red) !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none !important;
  display: block;
  border: 1px solid var(--sakala-red-border);
  transition: all 0.2s ease;
}

.btn-card-view-archives:hover {
  background-color: var(--sakala-red);
  border-color: var(--sakala-red);
  color: #ffffff !important;
}

/* ──────────────────────────────────────────────────────────
   6. RECENT ARCHIVES (MONTH CARDS & STATS)
   ────────────────────────────────────────────────────────── */
.recent-months-container {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.recent-month-card {
  flex: 1;
  min-width: 82px;
  max-width: 105px;
  padding: 1.1rem 0.6rem;
  border-radius: 12px;
  border: 1.5px solid var(--sakala-border-light);
  background: #ffffff;
  text-align: center;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.recent-month-card:hover {
  border-color: var(--sakala-red);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.recent-month-card svg {
  color: #94a3b8;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.recent-month-card .month-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.recent-month-card .year-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
}

/* Active solid red month card */
.recent-month-card.active-month {
  background: var(--sakala-red);
  border-color: var(--sakala-red);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(211, 22, 27, 0.3);
}

.recent-month-card.active-month svg {
  color: #ffffff;
}

.recent-month-card.active-month .month-text {
  color: #ffffff;
}

.recent-month-card.active-month .year-text {
  color: rgba(255, 255, 255, 0.9);
}

.month-arrow-btn {
  width: 44px;
  height: 64px;
  border: 1.5px solid var(--sakala-border-light);
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.month-arrow-btn:hover {
  border-color: var(--sakala-red);
  color: var(--sakala-red);
  background-color: var(--sakala-red-light);
}

/* Stats Panel Card */
.stats-panel-box {
  background: #fff5f5;
  border: 1px solid #fee2e2;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-item-row {
  display: flex;
  align-items: center;
  margin-bottom: 1.35rem;
  position: relative;
  z-index: 2;
}

.stat-item-row:last-child {
  margin-bottom: 0;
}

.stat-icon-square {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fed7d7;
  color: var(--sakala-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.15rem;
  flex-shrink: 0;
}

.stat-number-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.stat-label-text {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* Watermark newspaper folded SVG in stats card */
.stats-watermark-svg {
  position: absolute;
  right: -10px;
  bottom: -15px;
  width: 140px;
  height: 140px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 1;
  color: var(--sakala-red);
}

/* ──────────────────────────────────────────────────────────
   7. FOOTER
   ────────────────────────────────────────────────────────── */
.sakala-main-footer {
  background-color: var(--sakala-dark);
  color: #ffffff;
  border-top: 3px solid var(--sakala-red);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

/* Background temple silhouette along the bottom */
.footer-temple-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-repeat: repeat-x;
  background-position: bottom center;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

.footer-brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.footer-brand-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.footer-brand-title span {
  font-weight: 400;
  opacity: 0.95;
}

.footer-tagline {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

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

.footer-links-list li {
  margin-bottom: 0.65rem;
}

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none !important;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.footer-contact-list svg {
  color: var(--sakala-red);
  flex-shrink: 0;
}

/* Social Icon Buttons */
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.25rem;
}

.social-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.social-circle-btn:hover {
  background: var(--sakala-red);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.footer-sub-bar {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #94a3b8;
  position: relative;
  z-index: 2;
}

.footer-sub-bar a {
  color: #ffffff !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-sub-bar a:hover {
  color: #ff6b6b !important;
  text-decoration: underline !important;
}

/* ──────────────────────────────────────────────────────────
   9. INNER PAGES (CATEGORY & MONTH VIEWS)
   ────────────────────────────────────────────────────────── */
.category-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.category-title span {
  color: var(--sakala-red);
}

.category-subtitle {
  font-size: 0.98rem;
  color: var(--sakala-text-muted);
}

.category-stats-card {
  background: var(--sakala-red-light);
  border: 1px solid var(--sakala-red-border);
  border-radius: 14px;
  padding: 1.15rem 1.6rem;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(211, 22, 27, 0.04);
}

.category-stats-icon {
  width: 44px;
  height: 44px;
  background: #fee2e2;
  color: var(--sakala-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
  flex-shrink: 0;
}

.category-stats-label {
  font-size: 0.8rem;
  color: var(--sakala-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-stats-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--sakala-red);
  line-height: 1.1;
}

.month-grid-card {
  background: #ffffff;
  border: 1px solid var(--sakala-border-light);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.month-grid-card:hover {
  transform: translateY(-4px);
  border-color: #fca5a5;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.month-card-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--sakala-red-light);
  color: var(--sakala-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.month-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.month-card-count {
  font-size: 0.88rem;
  color: var(--sakala-text-muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.btn-month-view {
  background-color: var(--sakala-red-light);
  color: var(--sakala-red) !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none !important;
  display: block;
  border: 1px solid var(--sakala-red-border);
  transition: all 0.2s ease;
}

.btn-month-view:hover {
  background-color: var(--sakala-red);
  border-color: var(--sakala-red);
  color: #ffffff !important;
}

/* Zebra Pagination Sakala Overrides */
.Zebra_Pagination ul li.current a,
.Zebra_Pagination ul li.current span {
  background: var(--sakala-red) !important;
  border-color: var(--sakala-red) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(211, 22, 27, 0.25) !important;
}

.Zebra_Pagination ul li a:hover {
  border-color: var(--sakala-red) !important;
  color: var(--sakala-red) !important;
}

   ────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-main-title {
    font-size: 2.6rem;
  }
  .search-card-wrapper {
    margin-top: -2.5rem;
  }
  .search-card-heading {
    white-space: normal;
  }
  .stats-panel-box {
    margin-top: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .sakala-hero-section {
    padding: 3rem 0 6rem 0;
  }
  .hero-main-title {
    font-size: 2.2rem;
  }
  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .search-card-wrapper {
    margin-top: -2.5rem;
    padding: 0 10px;
  }
  .search-card-floating {
    padding: 1.25rem;
  }
  .recent-months-container {
    justify-content: flex-start;
  }
  .popular-card-img-wrap {
    height: 180px;
  }
}

/* ──────────────────────────────────────────────────────────
   Download PDF Button Styling - Always in One Line
   ────────────────────────────────────────────────────────── */
.btn-toolbar-pdf {
  background: var(--sakala-red, #d3161b) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  padding: 0 1.25rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  height: 38px !important;
  line-height: 38px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(211, 22, 27, 0.25) !important;
  flex-shrink: 0 !important;
}

.btn-toolbar-pdf:hover {
  background: var(--sakala-red-dark, #b30f14) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(211, 22, 27, 0.35) !important;
}

.btn-toolbar-pdf span {
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-block !important;
}

.btn-card-pdf-download {
  background-color: #ffffff !important;
  color: var(--sakala-red, #d3161b) !important;
  border: 1px solid var(--sakala-red, #d3161b) !important;
  border-radius: 8px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 0.45rem 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  height: 42px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.btn-card-pdf-download:hover {
  background-color: var(--sakala-red, #d3161b) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(211, 22, 27, 0.25) !important;
}

