/**
 * PATHEY KAN – OFFICIAL WEBSITE & MANAK JI DIGITAL MEMORIAL
 * Master Editorial Stylesheet
 * Inspired by Indian Culture, Hindi Journalism and Sacred Heritage
 */

:root {
  --pk-cream: #FDFBF7;
  --pk-cream-alt: #F4EFE6;
  --pk-cream-dark: #ECE4D4;
  --pk-maroon: #80182A;
  --pk-maroon-dark: #580E1C;
  --pk-maroon-light: #9B2238;
  --pk-saffron: #D95D1E;
  --pk-saffron-dark: #BA4811;
  --pk-saffron-light: #F37A40;
  --pk-gold: #C59B27;
  --pk-gold-light: #E4BC4B;
  --pk-charcoal: #222222;
  --pk-slate: #555555;
  --pk-muted: #777777;
  --pk-white: #FFFFFF;
  --pk-border: rgba(128, 24, 42, 0.12);
  --pk-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --pk-shadow-hover: 0 10px 25px rgba(128, 24, 42, 0.12);
  --font-serif: 'Tiro Devanagari Hindi', 'Rozha One', Georgia, serif;
  --font-sans: 'Noto Sans Devanagari', 'Mukta', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ui: 'Inter', 'Poppins', sans-serif;
}

/* Base & Typography */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--pk-cream);
  color: var(--pk-charcoal);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--pk-maroon);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--pk-maroon);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--pk-saffron);
}

/* Top Notification / Live Bar */
.top-header-bar {
  background: var(--pk-maroon-dark);
  color: #F8EFE4;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 2px solid var(--pk-gold);
}

.top-header-bar a {
  color: #F8EFE4;
  opacity: 0.85;
}

.top-header-bar a:hover {
  opacity: 1;
  color: var(--pk-gold-light);
}

.topbar-badge {
  background: rgba(197, 155, 39, 0.25);
  border: 1px solid var(--pk-gold);
  color: #FFE699;
  font-size: 11.5px;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* Main Navbar */
.main-navbar {
  background: var(--pk-white);
  border-bottom: 1px solid var(--pk-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 10px 0;
  transition: all 0.3s ease;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.navbar-brand-logo {
  height: 54px;
  width: 54px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.navbar-brand:hover .navbar-brand-logo {
  transform: scale(1.05);
}

.main-navbar .nav-link {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--pk-charcoal);
  padding: 8px 12px !important;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--pk-maroon);
  background: rgba(128, 24, 42, 0.05);
}

.main-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background: var(--pk-saffron);
  border-radius: 2px;
}

/* Manak Ji Special Nav Pill */
.nav-link-manakji {
  background: linear-gradient(135deg, rgba(217, 93, 30, 0.12), rgba(197, 155, 39, 0.2)) !important;
  color: var(--pk-maroon) !important;
  border: 1px solid rgba(197, 155, 39, 0.4);
  border-radius: 20px !important;
  padding: 6px 14px !important;
  font-weight: 700 !important;
}

.nav-link-manakji:hover {
  background: var(--pk-maroon) !important;
  color: var(--pk-white) !important;
  border-color: var(--pk-maroon) !important;
}

.btn-membership-nav {
  background: linear-gradient(135deg, var(--pk-saffron), var(--pk-maroon));
  color: var(--pk-white) !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 7px 18px;
  border-radius: 25px;
  border: none;
  box-shadow: 0 4px 10px rgba(217, 93, 30, 0.3);
  transition: all 0.25s ease;
}

.btn-membership-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(128, 24, 42, 0.4);
  color: var(--pk-white);
}

/* Breaking / Ticker Strip */
.news-ticker-strip {
  background: var(--pk-cream-alt);
  border-bottom: 1px solid var(--pk-border);
  padding: 8px 0;
  font-size: 14px;
}

.news-ticker-label {
  background: var(--pk-maroon);
  color: var(--pk-white);
  padding: 3px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}

/* Hero Section */
.hero-section {
  padding: 35px 0 25px 0;
  background: radial-gradient(circle at top left, #FFFDF9, #F5EFE6);
  border-bottom: 1px solid var(--pk-border);
}

.hero-featured-card {
  background: var(--pk-white);
  border-radius: 8px;
  border: 1px solid var(--pk-border);
  overflow: hidden;
  box-shadow: var(--pk-shadow);
  transition: all 0.3s ease;
  height: 100%;
}

.hero-featured-card:hover {
  box-shadow: var(--pk-shadow-hover);
}

.hero-img-wrap {
  position: relative;
  overflow: hidden;
  height: 380px;
  background: #222;
}

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

.hero-featured-card:hover .hero-img-wrap img {
  transform: scale(1.03);
}

.hero-badge-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--pk-saffron);
  color: var(--pk-white);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.hero-content {
  padding: 24px;
}

.hero-headline {
  font-size: 28px;
  font-weight: 700;
  color: var(--pk-maroon);
  margin-bottom: 12px;
}

.hero-summary {
  color: var(--pk-slate);
  font-size: 16px;
  margin-bottom: 20px;
}

/* Side Rail / Recent Cards */
.side-card-item {
  background: var(--pk-white);
  border: 1px solid var(--pk-border);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
}

.side-card-item:hover {
  border-color: var(--pk-saffron);
  transform: translateX(4px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.side-card-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--pk-saffron);
}

.side-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--pk-charcoal);
  margin: 4px 0 6px 0;
  line-height: 1.4;
}

.side-card-title a {
  color: var(--pk-charcoal);
}

.side-card-title a:hover {
  color: var(--pk-maroon);
}

/* Section Title Decorative */
.section-header-wrap {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.section-header-title {
  font-size: 32px;
  color: var(--pk-maroon);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-header-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--pk-saffron), var(--pk-gold));
  border-radius: 2px;
}

.section-header-sub {
  color: var(--pk-slate);
  font-size: 16px;
  margin-top: 6px;
}

/* About Pathey Kan Strip */
.about-patheykan-strip {
  padding: 60px 0;
  background: var(--pk-white);
  border-top: 1px solid var(--pk-border);
  border-bottom: 1px solid var(--pk-border);
}

.about-quote-box {
  background: var(--pk-cream-alt);
  border-left: 4px solid var(--pk-maroon);
  padding: 24px;
  border-radius: 0 8px 8px 0;
}

/* Standard Article Cards */
.article-card {
  background: var(--pk-white);
  border: 1px solid var(--pk-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--pk-shadow);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--pk-shadow-hover);
}

.article-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #eee;
}

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

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

.article-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card-meta {
  font-size: 12.5px;
  color: var(--pk-muted);
  margin-bottom: 12px;
}

.article-card-summary {
  font-size: 14.5px;
  color: var(--pk-slate);
  margin-bottom: 16px;
  flex: 1;
}

/* ==========================================================================
   ⭐ SPECIAL FEATURE SECTION – MANAK JI BHAISAHAB (HOMEPAGE)
   ========================================================================== */
.manakji-special-section {
  position: relative;
  background: linear-gradient(135deg, #FFF8EC 0%, #F5E8D0 50%, #EBDBC1 100%);
  padding: 75px 0;
  border-top: 3px solid var(--pk-gold);
  border-bottom: 3px solid var(--pk-gold);
  overflow: hidden;
}

.manakji-special-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--pk-saffron) 0, var(--pk-saffron) 15px, var(--pk-gold) 15px, var(--pk-gold) 30px);
}

.manakji-portrait-frame {
  position: relative;
  padding: 12px;
  background: var(--pk-white);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(128, 24, 42, 0.16);
  border: 2px solid var(--pk-gold);
}

.manakji-portrait-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.manakji-portrait-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(88, 14, 28, 0.92);
  color: var(--pk-white);
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--pk-gold-light);
  backdrop-filter: blur(4px);
}

.manakji-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pk-maroon);
  color: var(--pk-white);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(128, 24, 42, 0.25);
}

.manakji-section-title {
  font-size: 38px;
  color: var(--pk-maroon-dark);
  font-weight: 800;
  margin-bottom: 6px;
}

.manakji-section-subtitle {
  font-size: 18px;
  color: var(--pk-saffron-dark);
  font-weight: 600;
  margin-bottom: 18px;
}

.manakji-section-intro {
  font-size: 16.5px;
  color: #3A3226;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Three Highlight Pillars */
.manakji-highlight-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(197, 155, 39, 0.4);
  border-radius: 8px;
  padding: 14px 16px;
  transition: all 0.25s ease;
  height: 100%;
}

.manakji-highlight-box:hover {
  background: var(--pk-white);
  transform: translateY(-3px);
  border-color: var(--pk-saffron);
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.manakji-highlight-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--pk-maroon);
  margin-bottom: 4px;
}

.manakji-highlight-desc {
  font-size: 13.5px;
  color: var(--pk-slate);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Action Buttons */
.btn-manakji-primary {
  background: linear-gradient(135deg, var(--pk-maroon), var(--pk-maroon-dark));
  color: var(--pk-white) !important;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 30px;
  border: 1px solid var(--pk-gold);
  box-shadow: 0 4px 15px rgba(128, 24, 42, 0.3);
  transition: all 0.25s ease;
}

.btn-manakji-primary:hover {
  background: var(--pk-saffron);
  border-color: var(--pk-saffron);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 93, 30, 0.4);
}

.btn-manakji-secondary {
  background: var(--pk-white);
  color: var(--pk-maroon) !important;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 30px;
  border: 2px solid var(--pk-maroon);
  transition: all 0.25s ease;
}

.btn-manakji-secondary:hover {
  background: var(--pk-maroon);
  color: var(--pk-white) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   E-MAGAZINE CAROUSEL & CARDS
   ========================================================================== */
.magazine-card {
  background: var(--pk-white);
  border: 1px solid var(--pk-border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--pk-shadow);
  transition: all 0.3s ease;
  height: 100%;
}

.magazine-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pk-shadow-hover);
}

.magazine-cover-img {
  width: 100%;
  max-width: 220px;
  height: 290px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 5px 6px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto 16px auto;
  display: block;
}

.magazine-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--pk-maroon);
  margin-bottom: 6px;
}

.magazine-date {
  font-size: 13px;
  color: var(--pk-saffron);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ==========================================================================
   MEMBERSHIP PLANS SECTION
   ========================================================================== */
.membership-plan-card {
  background: var(--pk-white);
  border: 1px solid var(--pk-border);
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: var(--pk-shadow);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.membership-plan-card.featured {
  border: 2px solid var(--pk-saffron);
  background: #FFFDFB;
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(217, 93, 30, 0.15);
}

.membership-ribbon {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--pk-saffron);
  color: var(--pk-white);
  padding: 4px 35px;
  font-size: 11.5px;
  font-weight: 700;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.plan-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--pk-maroon);
  margin-bottom: 10px;
}

.plan-price-wrap {
  margin: 20px 0;
}

.plan-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--pk-charcoal);
  font-family: var(--font-ui);
}

.plan-period {
  font-size: 14.5px;
  color: var(--pk-slate);
}

.plan-feature-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  text-align: left;
}

.plan-feature-list li {
  padding: 8px 0;
  font-size: 14.5px;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-feature-list li i {
  color: #2E7D32;
  font-size: 16px;
}

/* ==========================================================================
   DEDICATED MANAK JI PAGE STYLING (/manak-ji/)
   ========================================================================== */
.manakji-memorial-hero {
  background: linear-gradient(135deg, #3A0710 0%, #6E1224 50%, #8A1A2F 100%);
  color: var(--pk-white);
  padding: 80px 0 60px 0;
  border-bottom: 4px solid var(--pk-gold);
  position: relative;
}

.manakji-memorial-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--pk-gold) 0, var(--pk-gold) 20px, var(--pk-saffron) 20px, var(--pk-saffron) 40px);
}

.memorial-hero-portrait {
  width: 100%;
  max-width: 340px;
  border-radius: 12px;
  border: 4px solid var(--pk-gold);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.memorial-title {
  color: #FFF2D6;
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 8px;
}

.memorial-subtitle {
  color: #FFCC80;
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Dedicated Sub-Nav Sticky */
.memorial-subnav {
  background: var(--pk-cream-alt);
  border-bottom: 1px solid var(--pk-border);
  position: sticky;
  top: 72px;
  z-index: 1010;
  padding: 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.memorial-subnav .nav-pills .nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--pk-charcoal);
  padding: 6px 14px;
  border-radius: 20px;
  margin: 2px;
}

.memorial-subnav .nav-pills .nav-link:hover,
.memorial-subnav .nav-pills .nav-link.active {
  background: var(--pk-maroon);
  color: var(--pk-white);
}

/* Biography Accordion / Sections */
.bio-section-box {
  background: var(--pk-white);
  border: 1px solid var(--pk-border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.bio-section-num {
  width: 36px;
  height: 36px;
  background: var(--pk-maroon);
  color: var(--pk-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

/* Interactive Timeline */
.timeline-wrap {
  position: relative;
  padding: 30px 0;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(180deg, var(--pk-saffron), var(--pk-gold), var(--pk-maroon));
}

@media (max-width: 768px) {
  .timeline-wrap::before {
    left: 20px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
}

.timeline-dot {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--pk-gold);
  border: 3px solid var(--pk-maroon);
  border-radius: 50%;
  z-index: 2;
}

@media (max-width: 768px) {
  .timeline-dot {
    left: 20px;
  }
}

.timeline-card {
  background: var(--pk-white);
  border: 1px solid var(--pk-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--pk-shadow);
  width: 45%;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-card {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-card {
  margin-right: auto;
}

@media (max-width: 768px) {
  .timeline-card {
    width: calc(100% - 50px);
    margin-left: 50px !important;
  }
}

.timeline-year {
  display: inline-block;
  background: var(--pk-maroon);
  color: var(--pk-white);
  font-weight: 700;
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 14px;
  margin-bottom: 8px;
}

/* Thoughts & Philosophy Card */
.thought-card {
  background: var(--pk-white);
  border: 1px solid var(--pk-border);
  border-radius: 10px;
  padding: 24px;
  position: relative;
  height: 100%;
  box-shadow: var(--pk-shadow);
  transition: all 0.25s ease;
}

.thought-card:hover {
  transform: translateY(-4px);
  border-color: var(--pk-gold);
  box-shadow: var(--pk-shadow-hover);
}

.thought-quote-icon {
  font-size: 32px;
  color: var(--pk-gold);
  line-height: 1;
  margin-bottom: 10px;
}

.thought-text {
  font-size: 17px;
  font-style: italic;
  color: #2D2D2D;
  margin-bottom: 15px;
  line-height: 1.6;
}

.thought-category-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--pk-saffron);
  text-transform: uppercase;
}

/* Digital Book Reader */
.digital-book-container {
  background: var(--pk-white);
  border: 1px solid var(--pk-border);
  border-radius: 12px;
  box-shadow: var(--pk-shadow);
  overflow: hidden;
}

.digital-book-header {
  background: var(--pk-cream-alt);
  border-bottom: 1px solid var(--pk-border);
  padding: 16px 24px;
}

.digital-book-body {
  padding: 35px 40px;
  font-size: 17.5px;
  line-height: 1.9;
  max-width: 860px;
  margin: 0 auto;
}

.digital-book-sidebar {
  background: #FAF7F2;
  border-right: 1px solid var(--pk-border);
  padding: 20px;
  max-height: 600px;
  overflow-y: auto;
}

.chapter-nav-item {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--pk-charcoal);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.chapter-nav-item:hover,
.chapter-nav-item.active {
  background: var(--pk-maroon);
  color: var(--pk-white);
}

/* Lightbox Modal */
.lightbox-modal .modal-content {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-modal .btn-close {
  filter: invert(1);
}

/* Footer */
.main-footer {
  background: #1C0509;
  color: #D6CBC4;
  padding: 60px 0 25px 0;
  border-top: 4px solid var(--pk-gold);
  font-size: 15px;
}

.main-footer h5 {
  color: #FFE699;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.main-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--pk-saffron);
}

.main-footer a {
  color: #D6CBC4;
}

.main-footer a:hover {
  color: var(--pk-gold-light);
  padding-left: 4px;
}

.footer-bottom-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 45px;
  padding-top: 20px;
  font-size: 13.5px;
  color: #A0948D;
}

/* Print Styles */
@media print {
  .top-header-bar,
  .main-navbar,
  .main-footer,
  .btn,
  .memorial-subnav {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .digital-book-body,
  .receipt-container {
    max-width: 100%;
    padding: 0;
  }
}

/* ==============================================================================
   GOOGLE PAGESPEED & CORE WEB VITALS OPTIMIZATIONS (https://pagespeed.web.dev/)
   ============================================================================== */

/* 1. Prevent Cumulative Layout Shifts (CLS = 0) with explicit aspect ratios */
.hero-img-wrap {
  aspect-ratio: 16 / 9;
}
.article-card-img {
  aspect-ratio: 16 / 9;
}
.magazine-cover-img {
  aspect-ratio: 3 / 4;
}
.manakji-portrait-frame img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* 2. Defer Offscreen Section Rendering (Drastically improves Mobile TBT & FCP) */
#articles-section,
#magazines-section,
.about-patheykan-strip,
.manakji-special-section,
#manakji-gallery,
#biography-section {
  content-visibility: auto;
  contain-intrinsic-size: 550px;
}

/* 3. Smooth scrolling without blocking main thread */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* 4. Optimize image rendering */
img {
  image-rendering: auto;
}

/* ==============================================================================
   FULL-WIDTH RESPONSIVE ARTICLE DETAIL STYLING (article-detail.php)
   ============================================================================== */
.article-detail-headline {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--pk-maroon);
  letter-spacing: -0.2px;
}

@media (max-width: 991.98px) {
  .article-detail-headline {
    font-size: 1.85rem;
  }
}

@media (max-width: 575.98px) {
  .article-detail-headline {
    font-size: 1.45rem;
    line-height: 1.4;
  }
}

.article-featured-banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 520px;
  background-color: #222;
  position: relative;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .article-featured-banner {
    aspect-ratio: 16 / 9;
    max-height: 320px;
  }
}

.article-featured-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pk-maroon), var(--pk-saffron));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 6px rgba(128, 24, 42, 0.2);
}

.article-lead-summary {
  background: linear-gradient(135deg, #FBF6EE 0%, #FFFDF9 100%);
  border-left: 5px solid var(--pk-maroon);
  border-radius: 12px;
}

.article-body-content {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  line-height: 2.1;
  color: #2B2625;
}

.article-body-content p {
  margin-bottom: 1.6rem;
  text-align: justify;
}

.article-body-content h2,
.article-body-content h3,
.article-body-content h4 {
  font-family: var(--font-serif);
  color: var(--pk-maroon);
  font-weight: 700;
  margin-top: 2.4rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(197, 155, 39, 0.25);
}

.article-body-content blockquote {
  border-left: 4px solid var(--pk-gold);
  background: #FAF6ED;
  padding: 18px 24px;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 10px 10px 0;
  font-size: 1.2rem;
  color: #4A3A35;
}

.article-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
  display: block;
}

@media (max-width: 767.98px) {
  .article-body-content {
    font-size: 1.05rem;
    line-height: 1.9;
  }
  .article-body-content p {
    text-align: left;
  }
}

.article-nav-card {
  transition: all 0.2s ease;
  border: 1px solid rgba(128, 24, 42, 0.12);
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
}

.article-nav-card:hover {
  border-color: var(--pk-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}



