/* ==========================================================================
   Bible Reading App - Stylesheet
   ==========================================================================
   Table of Contents:
   1. Design Tokens
   2. Base Styles
   3. Typography
   4. Navigation
   5. Cards
   6. Buttons
   7. Form Elements
   8. Utilities
   9. Animations
   10. Responsive (Mobile)
   11. Dark Mode
   12. Print & Accessibility
   ========================================================================== */

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
  /* Colors - Primary */
  --color-primary: #C53030;
  --color-primary-light: #E53E3E;
  --color-primary-dark: #9B2C2C;

  /* Colors - Neutral */
  --color-surface: rgba(255, 255, 255, 0.92);
  --color-text: #1A202C;
  --color-text-secondary: #4A5568;
  --color-text-muted: #718096;

  /* Colors - Accent */
  --color-gold: #D69E2E;

  /* OT Reading Colors */
  --color-ot-accent: #D69E2E;
  --color-ot-bg: rgba(214, 158, 46, 0.05);
  --color-ot-border: rgba(214, 158, 46, 0.3);

  /* NT Reading Colors */
  --color-nt-accent: #3182CE;
  --color-nt-bg: rgba(49, 130, 206, 0.05);
  --color-nt-border: rgba(49, 130, 206, 0.3);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;

  /* Transitions */
  --transition: 200ms ease;

  /* Typography */
  --font-display: 'Raleway', sans-serif;
  --font-body: 'Merriweather', serif;
}

/* ==========================================================================
   2. Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-display);
  color: var(--color-text);
  text-align: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;

  /* Background */
  background: url('../img/header.jpg') center/cover no-repeat fixed;
}

/* Background overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  background: linear-gradient(135deg, var(--color-text), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--color-text-secondary);
}

/* Reading text styles */
.book-text {
  font-weight: 700;
}

.chapter-text {
  font-size: 1.15em;
  font-weight: 600;
  color: var(--color-primary);
}

.verse-text {
  font-size: 0.8em;
  color: var(--color-text-muted);
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */
#mainNav {
  background: linear-gradient(135deg, rgba(52, 58, 64, 0.95), rgba(33, 37, 41, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-md) var(--space-lg);
}

.nav-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

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

.nav-section-center {
  justify-content: center;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Date Display */
.date-display {
  text-align: center;
}

.date-main {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.date-progress {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Date Controls */
.date-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
  height: 44px;
  line-height: 0;
}

.btn-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  padding: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #fff;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  vertical-align: middle;
}

.btn-today:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-today i {
  font-size: 0.875rem;
  pointer-events: none;
}

.date-picker-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  flex-shrink: 0;
  line-height: 1;
  vertical-align: middle;
}

.date-picker-label:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.date-picker-label i {
  color: #fff;
  font-size: 0.875rem;
  margin-right: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-picker-label input[type="date"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  left: 0;
  top: 0;
}

/* Navigation Arrow Buttons */
.nav-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.nav-arrow-btn:hover:not(.nav-arrow-disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-arrow-btn i {
  font-size: 1rem;
}

.nav-arrow-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Site Footer */
.site-footer {
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-xl);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.footer-podcast-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-podcast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition);
}

.footer-podcast-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-podcast-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.footer-podcast-btn i {
  font-size: 1rem;
}

/* Footer button hover brand colors */
.footer-podcast-btn[title="Spotify"]:hover {
  background: rgba(29, 185, 84, 0.2);
  border-color: rgba(29, 185, 84, 0.4);
  color: #1DB954;
}

.footer-podcast-btn[title="Apple Podcasts"]:hover {
  background: rgba(153, 51, 255, 0.2);
  border-color: rgba(153, 51, 255, 0.4);
  color: #9933FF;
}

.footer-podcast-btn[title="YouTube"]:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.4);
  color: #FF0000;
}

.footer-podcast-btn[title="RSS"]:hover {
  background: rgba(255, 102, 0, 0.2);
  border-color: rgba(255, 102, 0, 0.4);
  color: #FF6600;
}

/* ==========================================================================
   5. Cards (Jumbotron)
   ========================================================================== */
.jumbotron {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: visible;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: var(--space-lg);
  min-height: 200px;
}

/* Animated gradient accent bar */
.jumbotron::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      var(--color-primary),
      var(--color-gold),
      var(--color-primary-light),
      var(--color-gold),
      var(--color-primary));
  background-size: 200% 100%;
  animation: gradientShift 8s ease-in-out infinite;
}

/* OT Reading Styles */
.jumbotron.reading-ot::before {
  background: linear-gradient(90deg,
      var(--color-ot-accent),
      #F6AD55,
      var(--color-ot-accent),
      #F6AD55,
      var(--color-ot-accent));
}

.jumbotron.reading-ot {
  border-left: 4px solid var(--color-ot-accent);
}

.jumbotron.reading-ot .lead {
  background: linear-gradient(135deg, var(--color-ot-bg), rgba(214, 158, 46, 0.08));
  border-left-color: var(--color-ot-accent);
}

.jumbotron.reading-ot .chapter-text {
  color: var(--color-ot-accent);
}

.jumbotron.reading-ot:hover {
  border-left-color: #F6AD55;
}

/* NT Reading Styles */
.jumbotron.reading-nt::before {
  background: linear-gradient(90deg,
      var(--color-nt-accent),
      #63B3ED,
      var(--color-nt-accent),
      #63B3ED,
      var(--color-nt-accent));
}

.jumbotron.reading-nt {
  border-left: 4px solid var(--color-nt-accent);
}

.jumbotron.reading-nt .lead {
  background: linear-gradient(135deg, var(--color-nt-bg), rgba(49, 130, 206, 0.08));
  border-left-color: var(--color-nt-accent);
}

.jumbotron.reading-nt .chapter-text {
  color: var(--color-nt-accent);
}

.jumbotron.reading-nt:hover {
  border-left-color: #63B3ED;
}

/* Reading Type Badge */
.reading-type-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-md);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.05);
  transition: all var(--transition);
}

.reading-ot .reading-type-badge {
  color: var(--color-ot-accent);
  background: var(--color-ot-bg);
  border: 1px solid var(--color-ot-border);
}

.reading-nt .reading-type-badge {
  color: var(--color-nt-accent);
  background: var(--color-nt-bg);
  border: 1px solid var(--color-nt-border);
}

.reading-type-icon {
  font-size: 0.875rem;
  opacity: 0.9;
}

.reading-type-label {
  font-family: var(--font-display);
}

.jumbotron:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Lead paragraph */
.jumbotron .lead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: normal;
  line-height: 1.8;
  color: var(--color-text);
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(197, 48, 48, 0.05), rgba(214, 158, 46, 0.05));
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: 400;
}

/* List group (questions) */
.list-group {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.list-group-item {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: var(--space-md) var(--space-lg);
  border: none;
  transition: background var(--transition);
}

.list-group-item-dark {
  color: var(--color-text);
  background: linear-gradient(135deg, rgba(241, 242, 243, 0.95), rgba(233, 234, 236, 0.95));
}

.list-group-item-dark:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.list-group-item:hover {
  background: rgba(197, 48, 48, 0.08);
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.btn-outline-primary {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(197, 48, 48, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   7. Form Elements
   ========================================================================== */
#newDate {
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
}

#newDate:hover,
#newDate:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

/* ==========================================================================
   8. Utilities
   ========================================================================== */
.header-content {
  padding: var(--space-lg) var(--space-md);
}

.header-content-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Tablet: Slightly wider container */
@media (min-width: 768px) {
  .header-content-inner {
    max-width: 1000px;
    padding: 0 var(--space-lg);
  }
}

/* Desktop: Wider container and better width utilization */
@media (min-width: 992px) {
  .header-content-inner {
    max-width: 1400px;
    padding: 0 var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    justify-content: center;
  }
  
  /* Day fact should span full width */
  .header-content-inner > h2.text-white {
    flex: 0 0 100%;
    width: 100%;
    margin-bottom: 0;
  }
  
  /* Arrange reading cards side-by-side on desktop */
  .header-content-inner > .row {
    flex: 0 0 calc(50% - var(--space-xl) / 2);
    max-width: calc(50% - var(--space-xl) / 2);
    margin-bottom: 0;
    display: flex;
  }
  
  /* Cards should fill their flex item */
  .header-content-inner > .row > .col-11,
  .header-content-inner > .row > .col-sm-11,
  .header-content-inner > .row > .col-md-8,
  .header-content-inner > .row > .col-lg-6 {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  
  /* Better spacing for desktop */
  .jumbotron {
    padding: var(--space-xl) calc(var(--space-xl) * 1.25);
  }
}

/* Large Desktop: Even wider for very large screens */
@media (min-width: 1400px) {
  .header-content-inner {
    max-width: 1600px;
  }
}

/* Better spacing between reading cards */
.header-content-inner > .row {
  margin-bottom: var(--space-xl);
}

.header-content-inner > .row:last-child {
  margin-bottom: 0;
}

/* Day fact badge */
.header-content h2.text-white {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xl);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  display: inline-block;
}

/* ==========================================================================
   9. Animations
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.jumbotron {
  animation: fadeIn 0.5s ease-out;
}

.row:nth-child(2) .jumbotron {
  animation-delay: 0.15s;
}

.header-content-inner {
  animation: fadeIn 0.4s ease-out;
}

/* ==========================================================================
   10. Responsive (Mobile-First)
   ========================================================================== */
@media (min-width: 576px) {
  .jumbotron {
    padding: var(--space-xl) calc(var(--space-xl) * 1.5);
  }
}

@media (max-width: 575.98px) {
  #mainNav {
    padding: var(--space-sm) var(--space-md);
  }

  .jumbotron {
    padding: var(--space-lg);
    margin: 0 var(--space-xs) var(--space-lg);
    border-radius: var(--radius-md);
  }

  h1 {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .lead {
    font-size: 0.95rem !important;
    line-height: 1.6;
  }

  .list-group-item {
    padding: var(--space-md);
    font-size: 0.9rem;
    line-height: 1.7;
  }

  /* Create horizontal button group - make button containers inline */
  .jumbotron .list-group ~ .my-2 {
    display: inline-block;
    margin-top: var(--space-md) !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: var(--space-xs) !important;
    vertical-align: middle;
  }

  /* Last button in group should not have right margin */
  .jumbotron .list-group ~ .my-2:last-of-type {
    margin-right: 0 !important;
  }

  /* First button after list-group gets proper top spacing */
  .jumbotron .list-group ~ .my-2:first-of-type {
    margin-top: var(--space-md) !important;
  }

  /* Button styles for mobile - icon only, square */
  .jumbotron .list-group ~ .my-2 .btn,
  .jumbotron .list-group ~ .my-2 button.btn {
    min-height: 44px;
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
  }

  /* Show icons at proper size */
  .jumbotron .list-group ~ .my-2 .btn i,
  .jumbotron .list-group ~ .my-2 button.btn i {
    font-size: 1.125rem !important;
    line-height: 1;
    margin: 0 !important;
    display: inline-block;
  }

  /* Ensure links inside .my-2 don't add extra spacing */
  .jumbotron .list-group ~ .my-2 > a {
    display: inline-block;
    line-height: 0;
  }

  .row {
    margin-bottom: var(--space-lg);
  }

  .header-content {
    padding: var(--space-md) var(--space-sm);
  }

  /* Better spacing between reading cards */
  .header-content-inner > .row + .row {
    margin-top: var(--space-lg);
  }

  /* Footer adjustments for mobile */
  .site-footer {
    padding: var(--space-md);
    margin-top: var(--space-lg);
  }

  .footer-label {
    font-size: 0.75rem;
  }

  .footer-podcast-btn {
    width: 32px;
    height: 32px;
  }

  .footer-podcast-btn i {
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   11. Dark Mode
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-surface: rgba(30, 32, 36, 0.95);
    --color-text: #F7FAFC;
    --color-text-secondary: #CBD5E0;
    --color-text-muted: #A0AEC0;
    --color-primary: #FC8181;
    --color-primary-light: #FEB2B2;
    --color-primary-dark: #E53E3E;
    --color-gold: #F6E05E;
  }

  body::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  }

  #mainNav {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.98), rgba(17, 24, 39, 0.99));
    border-bottom-color: rgba(255, 255, 255, 0.05);
  }

  .jumbotron {
    border-color: rgba(255, 255, 255, 0.1);
  }

  .jumbotron .lead {
    background: linear-gradient(135deg, rgba(252, 129, 129, 0.1), rgba(246, 224, 94, 0.05));
  }

  .list-group-item-dark {
    color: var(--color-text);
    background: linear-gradient(135deg, rgba(45, 50, 58, 0.95), rgba(35, 40, 48, 0.95));
  }

  .list-group-item-dark:not(:last-child) {
    border-bottom-color: rgba(255, 255, 255, 0.05);
  }

  .list-group-item:hover {
    background: rgba(252, 129, 129, 0.1);
  }

  .btn-outline-primary:hover,
  .btn-outline-primary:focus {
    color: #1A202C;
  }

  #newDate {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
  }

  #newDate::-webkit-calendar-picker-indicator {
    filter: invert(1);
  }

  .nav-arrow-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .nav-arrow-btn:hover:not(.nav-arrow-disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .btn-today {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .btn-today:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .date-picker-label {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .date-picker-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .footer-label {
    color: rgba(255, 255, 255, 0.6);
  }

  .footer-podcast-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
  }

  .footer-podcast-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  /* Page corner in dark mode */
  .youtube-flip-btn::before {
    background: radial-gradient(
      ellipse at 100% 100%,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.35) 30%,
      rgba(0, 0, 0, 0.15) 60%,
      transparent 80%
    );
    clip-path: ellipse(100% 100% at 100% 100%);
    border-radius: 0 0 var(--radius-lg) 0;

  }

  .jumbotron .page-corner::before {
    background: linear-gradient(
      135deg,
      #374151 0%,
      #3d4753 25%,
      #2d3748 50%,
      #1f2937 75%,
      #111827 100%
    ) !important;
    clip-path: ellipse(100% 100% at 100% 100%);
    border-radius: 0 0 var(--radius-lg) 0;
    box-shadow: 
      -3px -3px 6px rgba(0, 0, 0, 0.5),
      inset 2px 2px 4px rgba(255, 255, 255, 0.1),
      inset -1px -1px 3px rgba(0, 0, 0, 0.4);
  }

  .page-corner::after {
    background: linear-gradient(
      135deg,
      transparent 0%,
      transparent 40%,
      rgba(255, 255, 255, 0.06) 45%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.06) 55%,
      transparent 60%,
      transparent 100%
    );
    clip-path: ellipse(100% 100% at 100% 100%);
    border-radius: 0 0 var(--radius-lg) 0;
  }

  .youtube-flip-btn:hover::before {
    background: radial-gradient(
      ellipse at 100% 100%,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.45) 30%,
      rgba(0, 0, 0, 0.2) 60%,
      transparent 80%
    );
    clip-path: ellipse(100% 100% at 100% 100%);
    border-radius: 0 0 var(--radius-lg) 0;
  }

  .youtube-flip-btn:hover .page-corner::before {
    clip-path: ellipse(100% 100% at 100% 100%);
    border-radius: 0 0 var(--radius-lg) 0;
    box-shadow: 
      -4px -4px 10px rgba(0, 0, 0, 0.5),
      inset 2px 2px 4px rgba(255, 255, 255, 0.08),
      inset -1px -1px 3px rgba(0, 0, 0, 0.3);
  }

  .youtube-flip-btn:active .page-corner::before {
    clip-path: ellipse(100% 100% at 100% 100%);
    border-radius: 0 0 var(--radius-lg) 0;
    box-shadow: 
      -2px -2px 6px rgba(0, 0, 0, 0.4),
      inset 1px 1px 3px rgba(255, 255, 255, 0.05),
      inset -1px -1px 2px rgba(0, 0, 0, 0.25);
  }

  .youtube-flip-btn:hover svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  }
}

/* ==========================================================================
   12. Flip Card & Video Styles
   ========================================================================== */

/* Flip Card Container */
.flip-card {
  background-color: transparent;
  width: 100%;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  text-align: center;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front {
  position: relative;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: 2;
}

.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  z-index: 1;
}

/* YouTube Page Corner Button */
.youtube-flip-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  background: none;
  border: none;
  overflow: visible;
  transform-origin: bottom right;
  outline: none;
}

.youtube-flip-btn:focus,
.youtube-flip-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Shadow underneath the curl */
.youtube-flip-btn::before {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 85px;
  height: 85px;
  background: radial-gradient(
    ellipse at 100% 100%,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 30%,
    rgba(0, 0, 0, 0.05) 60%,
    transparent 80%
  );
  clip-path: ellipse(100% 100% at 100% 100%);
  border-radius: 0 0 var(--radius-lg) 0;
  filter: blur(4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* The actual page corner */
.page-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  z-index: 2;
  pointer-events: none;
}

/* Front face of the curl (visible paper) */
.page-corner::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #f8f6f3 0%,
    #fffefa 25%,
    #fdfbf7 50%,
    #f5f2ed 75%,
    #ebe8e3 100%
  );
  /* Use elliptical clip-path for smoother curved corner */
  clip-path: ellipse(100% 100% at 100% 100%);
  border-radius: 0 0 var(--radius-lg) 0;
  box-shadow: 
    -3px -3px 6px rgba(0, 0, 0, 0.08),
    inset 2px 2px 4px rgba(255, 255, 255, 0.9),
    inset -1px -1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Back face of the curl (shadow underneath) */
.page-corner::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 40%,
    rgba(139, 119, 101, 0.15) 45%,
    rgba(139, 119, 101, 0.25) 50%,
    rgba(139, 119, 101, 0.15) 55%,
    transparent 60%,
    transparent 100%
  );
  clip-path: ellipse(100% 100% at 100% 100%);
  border-radius: 0 0 var(--radius-lg) 0;
  z-index: 3;
}

/* YouTube logo container */
.youtube-flip-btn svg {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  z-index: 4;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Hover: lift the corner */
.youtube-flip-btn:hover::before {
  bottom: 12px;
  right: 12px;
  width: 90px;
  height: 90px;
  filter: blur(6px);
  background: radial-gradient(
    ellipse at 100% 100%,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.08) 60%,
    transparent 80%
  );
}

.youtube-flip-btn:hover .page-corner::before {
  transform: translate(-4px, -4px) rotate(-3deg);
  clip-path: ellipse(100% 100% at 100% 100%);
  border-radius: 0 0 var(--radius-lg) 0;
  box-shadow: 
    -4px -4px 10px rgba(0, 0, 0, 0.12),
    inset 2px 2px 4px rgba(255, 255, 255, 0.9),
    inset -1px -1px 3px rgba(0, 0, 0, 0.05);
}

.youtube-flip-btn:hover svg {
  transform: translate(-2px, -2px) scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Active state */
.youtube-flip-btn:active .page-corner::before {
  transform: translate(-2px, -2px) rotate(-1deg);
  clip-path: ellipse(100% 100% at 100% 100%);
  border-radius: 0 0 var(--radius-lg) 0;
}

.youtube-flip-btn:active svg {
  transform: translate(-1px, -1px) scale(1.05);
}


/* Video Back Side */
.video-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-xl);
  min-height: 400px;
}

/* Video Close Button */
.video-close-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all var(--transition);
  font-size: 1.25rem;
  outline: none;
}

.video-close-btn:focus,
.video-close-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.video-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.video-close-btn:active {
  transform: scale(0.95);
}

/* Video Container */
.video-container {
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-iframe-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Video Loading State */
.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.video-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FF0000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-sm);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.video-loading p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Video Error State */
.video-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  padding: var(--space-lg);
}

.video-error p {
  margin: 0 0 var(--space-md);
  font-size: 1rem;
}

/* Video Retry Button */
.video-retry-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #1A202C;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: var(--space-sm);
}

.video-retry-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.video-retry-btn:active {
  transform: translateY(0);
}

/* Video Private Guidance */
.video-private-guidance {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: rgba(255, 193, 7, 0.15);
  border-left: 3px solid #FFC107;
  border-radius: var(--radius-sm);
}

.video-private-message {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

/* Watch on YouTube Button */
.video-youtube-link {
  margin-top: var(--space-lg);
  text-align: center;
  width: 100%;
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: #FF0000;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
  background: #CC0000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
  text-decoration: none;
}

.btn-youtube:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 0, 0, 0.3);
}

.btn-youtube i {
  font-size: 1.25rem;
}

/* Desktop Enhancements */
@media (min-width: 768px) {
  /* Standardize button styling on desktop */
  .jumbotron .my-2 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    margin-left: 0;
    margin-right: 0;
  }

  /* Consistent button padding and sizing */
  .jumbotron .my-2 .btn,
  .jumbotron .my-2 button.btn {
    padding: var(--space-sm) var(--space-lg);
    min-height: auto;
    min-width: auto;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* Consistent icon sizing in buttons */
  .jumbotron .my-2 .btn i,
  .jumbotron .my-2 button.btn i {
    font-size: 1rem;
    line-height: 1;
    margin: 0;
    display: inline-block;
    width: 1em;
    text-align: center;
  }

  /* Ensure links and buttons don't add extra spacing */
  .jumbotron .my-2 > a,
  .jumbotron .my-2 > button {
    display: inline-block;
    line-height: 0;
    margin: 0;
  }

  /* Override share button margin on desktop for consistency */
  .jumbotron .my-2 > .share-reading-btn {
    margin-top: 0;
  }

  .youtube-flip-btn {
    width: 120px;
    height: 120px;
  }

  .youtube-flip-btn::before {
    width: 100px;
    height: 100px;
  }

  .page-corner {
    width: 120px;
    height: 120px;
  }

  .youtube-flip-btn svg {
    bottom: 22px;
    right: 22px;
    width: 42px;
    height: 42px;
  }

  .video-close-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    top: var(--space-lg);
    right: var(--space-lg);
  }

  .video-container {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* Mobile Optimizations */
@media (max-width: 575.98px) {
  .flip-card {
    min-height: 250px;
  }

  /* Ensure all buttons in jumbotron are aligned on mobile */
  .jumbotron .my-2 {
    display: inline-block;
    margin-top: var(--space-md) !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: var(--space-xs) !important;
    vertical-align: top;
  }

  .jumbotron .my-2:last-of-type {
    margin-right: 0 !important;
  }

  /* Consistent button sizing and alignment on mobile */
  .jumbotron .my-2 .btn,
  .jumbotron .my-2 button.btn {
    min-height: 44px;
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    vertical-align: top;
  }

  /* Show icons at proper size */
  .jumbotron .my-2 .btn i,
  .jumbotron .my-2 button.btn i {
    font-size: 1.125rem !important;
    line-height: 1;
    margin: 0 !important;
    display: inline-block;
  }

  /* Ensure links inside .my-2 don't add extra spacing */
  .jumbotron .my-2 > a {
    display: inline-block;
    line-height: 0;
    vertical-align: top;
  }

  /* Override share button margin on mobile for alignment */
  .jumbotron .my-2 > .share-reading-btn {
    margin-top: 0 !important;
  }

  .youtube-flip-btn {
    width: 70px;
    height: 70px;
  }

  .youtube-flip-btn::before {
    width: 55px;
    height: 55px;
    bottom: 5px;
    right: 5px;
  }

  .page-corner {
    width: 70px;
    height: 70px;
  }

  .youtube-flip-btn svg {
    bottom: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
  }

  .video-close-btn {
    top: var(--space-sm);
    right: var(--space-sm);
  }

  .video-container {
    border-radius: var(--radius-sm);
  }
}

/* ==========================================================================
   13. Share Modal & Sharing Features
   ========================================================================== */

/* Share Button */
.share-reading-btn {
  margin-top: var(--space-xs);
}

.share-reading-btn i {
  margin-right: 0.25rem;
}

/* Share Modal */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.share-modal.active {
  opacity: 1;
  visibility: visible;
}

.share-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.share-modal-content {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10000;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.share-modal.active .share-modal-content {
  transform: scale(1);
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.share-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-text);
}

.share-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: var(--space-xs);
  line-height: 1;
  transition: color var(--transition);
}

.share-modal-close:hover {
  color: var(--color-primary);
}

.share-modal-body {
  padding: var(--space-lg);
}

.share-reading-info {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: rgba(197, 48, 48, 0.05);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.share-reading-type {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.share-reading-text {
  font-size: 1.125rem;
  color: var(--color-text);
  font-weight: 500;
}

.share-link-section {
  margin-bottom: var(--space-lg);
}

.share-link-section label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.875rem;
}

.share-link-input-group {
  display: flex;
  gap: var(--space-sm);
}

.share-link-input-group input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: rgba(0, 0, 0, 0.02);
  color: var(--color-text);
}

.share-link-input-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

.copy-link-btn {
  white-space: nowrap;
  min-width: 80px;
}

.copy-link-btn.copied {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.share-thoughts-section {
  margin-bottom: var(--space-lg);
}

.share-thoughts-section label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.875rem;
}

.share-thoughts-section textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: inherit;
  resize: vertical;
  background: rgba(0, 0, 0, 0.02);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.share-thoughts-section textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

.share-thoughts-section textarea::placeholder {
  color: var(--color-text-muted);
}

.share-modal-footer {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  padding: var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.whatsapp-share-btn {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  font-weight: 600;
}

.whatsapp-share-btn:hover {
  background: #20BA5A;
  border-color: #20BA5A;
  color: #fff;
}

.whatsapp-share-btn i {
  margin-right: 0.5rem;
}

.share-modal-close-btn {
  min-width: 100px;
}

/* Mobile optimizations for share modal */
@media (max-width: 575.98px) {
  .share-modal-content {
    width: 95%;
    max-height: 95vh;
    border-radius: var(--radius-md);
  }

  .share-modal-header {
    padding: var(--space-md);
  }

  .share-modal-header h3 {
    font-size: 1.25rem;
  }

  .share-modal-body {
    padding: var(--space-md);
  }

  .share-link-input-group {
    flex-direction: column;
  }

  .copy-link-btn {
    width: 100%;
  }

  .share-modal-footer {
    flex-direction: column;
    padding: var(--space-md);
  }

  .share-modal-footer .btn {
    width: 100%;
  }
}

/* Dark mode support for share modal */
@media (prefers-color-scheme: dark) {
  .share-modal-content {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .share-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .share-reading-info {
    background: rgba(252, 129, 129, 0.1);
    border-left-color: var(--color-primary);
  }

  .share-link-input-group input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text);
  }

  .share-thoughts-section textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text);
  }

  .share-modal-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

/* ==========================================================================
   14. Print & Accessibility
   ========================================================================== */

/* Skip to content - hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-md);
  color: #fff;
}

/* Focus states */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(197, 48, 48, 0.3);
}

/* Print styles */
@media print {

  body::before,
  #mainNav,
  .site-footer,
  .skip-link {
    display: none;
  }

  .jumbotron {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}