/*
Theme Name: Kol HaTor
Theme URI: https://kolhator.com
Description: Sacred Photorealism standalone theme - White and gold Torah commentary theme for kolhator.com
Author: Kol HaTor Team
Author URI: https://kolhator.com
Version: 3.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kolhator
Tags: translation-ready, right-to-left, custom-menu, featured-images
*/

/* ===== RESET & CUSTOM PROPERTIES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #FFFFFF;
  --cream-warm: #FAFAFA;
  --gold: #B8860B;
  --gold-light: #C99A2E;
  --gold-pale: #F5ECD5;
  --gold-border: #D4BC82;
  --brown-dark: #1A1A1A;
  --brown: #2D2D2D;
  --brown-medium: #4A4A4A;
  --brown-light: #6B6B6B;
  --text-body: #1A1A1A;
  --text-secondary: #3D3D3D;
  --text-light: #5A5A5A;
  --bg-scripture: #FFFFFF;
  --bg-hebrew: #FAFAF5;
  --border-light: #E0E0E0;
  --shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --left-panel-width: 280px;
  --sidebar-width: 340px;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

/* V2: Smooth scroll (Lenis-style, CSS only) */
html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  font-family: 'Literata', 'Source Serif 4', Georgia, serif;
  background: var(--cream);
  color: var(--text-body);
  line-height: 1.9;
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}
html { overflow-x: hidden; }

/* V2: Hide custom cursor on touch devices */
@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

a {
  color: var(--gold);
  text-decoration: none;
  background-image: linear-gradient(var(--gold-light), var(--gold-light));
  background-size: 0% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease-premium), color 0.3s;
  cursor: none;
}

a:hover {
  color: var(--gold-light);
  background-size: 100% 1px;
}

img { max-width: 100%; height: auto; }
.article-body, .entry-content, .kht-card-body { overflow-x: hidden !important; }
.page-wrapper, .main-content { overflow-x: clip; }
.entry-content img, .article-body img, .kht-card-body img { max-width: 100% !important; height: auto !important; }
.kht-content-card, .kht-card-body { max-width: 100%; word-wrap: break-word; overflow-wrap: break-word; }

/* V2: Custom cursor */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.15s ease-out, opacity 0.15s;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: transform 0.25s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.cursor-dot.active, .cursor-ring.active { opacity: 1; }
.cursor-ring.active { opacity: 0.5; }
.cursor-ring.hovering {
  width: 50px;
  height: 50px;
  border-color: var(--gold-light);
  opacity: 0.8;
}

/* V2: Ken Burns animation for hero */
@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.12) translate(-2%, -1.5%); }
  100% { transform: scale(1.22) translate(2%, 0.5%); }
}

/* ===== LEFT PANEL ===== */
.left-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--left-panel-width);
  height: 100vh;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F0 100%);
  color: #1A1A1A;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #E0E0E0;
}

.left-panel::-webkit-scrollbar { width: 4px; }
.left-panel::-webkit-scrollbar-thumb { background: rgba(184,134,11,0.3); border-radius: 4px; }

.panel-header {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #E0E0E0;
}

.panel-logo-img {
  width: 80px;
  height: auto;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  opacity: 0.95;
}

.panel-logo-hebrew {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.panel-logo-name {
  font-family: 'Literata', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: 0.03em;
}

.panel-logo-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: #5A5A5A;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
}

.lang-toggle a {
  color: #5A5A5A;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.1);
  transition: all 0.2s;
  background-image: none;
}

.lang-toggle a.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(184,134,11,0.1);
  background-image: none;
}

.lang-toggle a:hover { color: var(--gold-light); background-image: none; }

.panel-nav {
  padding: 1rem 0;
  flex: 1;
  font-family: 'Inter', sans-serif;
}

.panel-nav ul { list-style: none; }

.panel-nav > ul > li > a {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  color: #1A1A1A;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  background-image: none;
}

.panel-nav > ul > li > a:hover {
  background: rgba(0,0,0,0.04);
  color: var(--gold);
  border-left-color: var(--gold);
  background-image: none;
}

.panel-nav > ul > li > a.active,
.panel-nav .current-menu-item > a,
.panel-nav .current_page_item > a {
  color: var(--gold);
  background: rgba(184,134,11,0.08);
  border-left-color: var(--gold);
  background-image: none;
}

.panel-subnav { display: none; padding-left: 1.5rem; }
.panel-subnav.open { display: block; }

/* WordPress submenu support */
.panel-nav .sub-menu { display: none; padding-left: 1.5rem; }
.panel-nav .menu-item-has-children:hover > .sub-menu,
.panel-nav .menu-item-has-children.toggled > .sub-menu { display: block; }

.panel-subnav a,
.panel-nav .sub-menu a {
  display: block;
  padding: 0.35rem 1.5rem;
  color: #5A5A5A;
  font-size: 0.82rem;
  transition: color 0.2s;
  background-image: none;
}

.panel-subnav a:hover,
.panel-nav .sub-menu a:hover { color: var(--gold-light); }

.has-submenu > a::after,
.menu-item-has-children > a::after {
  content: '\25BE';
  margin-left: auto;
  font-size: 1rem;
  color: var(--gold);
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: inline-block;
  line-height: 1;
  padding-left: 0.5rem;
}
.has-submenu:hover > a::after,
.menu-item-has-children:hover > a::after {
  opacity: 1;
  transform: rotate(180deg);
}
.has-submenu.toggled > a::after,
.menu-item-has-children.toggled > a::after {
  opacity: 1;
  transform: rotate(180deg);
}

.panel-search {
  padding: 1rem 1.5rem;
  border-top: 1px solid #E0E0E0;
}

.panel-search input,
.panel-search .search-field {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0,0,0,0.03);
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  color: #1A1A1A;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}

.panel-search input::placeholder,
.panel-search .search-field::placeholder { color: #999; }
.panel-search input:focus,
.panel-search .search-field:focus { border-color: var(--gold); }

/* Hide search submit in panel */
.panel-search .search-submit { display: none; }

.panel-social {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  border-top: 1px solid #E0E0E0;
  font-family: 'Inter', sans-serif;
}

.panel-social a {
  color: #4A4A4A;
  font-size: 0.85rem;
  transition: color 0.2s;
  background-image: none;
}

.panel-social a:hover { color: var(--gold); }

/* ===== READING PROGRESS ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: var(--left-panel-width);
  right: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), #E8C547);
  z-index: 101;
  transition: width 0.1s linear;
}

/* ===== FULL-BLEED HERO ===== */
.hero-fullbleed {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem 5.5rem;
  margin-left: var(--left-panel-width);
  overflow: hidden;
}

/* V2: Ken Burns hero background as a separate element */
.hero-bg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kenBurns 12s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-fullbleed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(90,70,50,0.02) 0%,
    rgba(90,70,50,0.05) 30%,
    rgba(90,70,50,0.1) 60%,
    rgba(90,70,50,0.3) 85%,
    rgba(70,50,35,0.45) 100%
  );
  z-index: 1;
}

/* ===== HERO CALLIGRAPHY DRAW ANIMATIONS ===== */

/* --- "Kol HaTor" title --- */
.hero-title-draw {
  position: relative;
  z-index: 2;
}
.english-draw {
  width: clamp(380px, 70vw, 700px);
  height: auto;
  overflow: visible;
}
.english-draw-text {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: strokeDraw 5s ease-in-out forwards;
}
.english-fill-text {
  opacity: 0.3;
  animation: fillIn 1s ease-in 2s forwards;
}

/* --- "The Voice of the Turtledove" subtitle --- */
.hero-subtitle-draw {
  position: relative;
  z-index: 2;
}
.subtitle-draw {
  width: clamp(300px, 70vw, 700px);
  height: auto;
  overflow: visible;
}
.subtitle-draw-text {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: strokeDraw 5s ease-in-out 0.5s forwards;
}
.subtitle-fill-text {
  opacity: 0.3;
  animation: fillIn 1s ease-in 2.5s forwards;
}

/* --- Shared keyframes --- */
@keyframes strokeDraw {
  0% { stroke-dashoffset: 800; }
  100% { stroke-dashoffset: 0; }
}
@keyframes fillIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  width: 100%;
}

.hero-category {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  padding: 8px 24px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  background: rgba(184,134,11,0.35);
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-content h1 {
  font-family: 'Literata', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  color: #FFFBF5;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: 'Literata', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: rgba(255,251,245,0.85);
  line-height: 1.6;
  max-width: 550px;
  margin: 0 auto 1.75rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(200,185,154,1);
  flex-wrap: wrap;
}

.hero-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0.5;
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.hero-ornament .line { width: 60px; height: 1px; background: rgba(212,168,67,0.3); }
.hero-ornament .diamond { width: 8px; height: 8px; border: 1.5px solid var(--gold-light); transform: rotate(45deg); opacity: 0.6; }

.audio-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  margin: 1.5rem auto 0;
  width: fit-content;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(200,185,154,0.9);
}

.audio-player .play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  border: none;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.3s var(--ease-premium);
}

.audio-player .play-btn:hover { background: var(--gold-light); transform: scale(1.08); }

.share-bar-hero {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem auto 0;
  justify-content: center;
  flex-wrap: wrap;
}

.share-bar-hero span {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #FFFFFF;
  margin-right: 0.25rem;
}
.share-bar-hero .share-btn {
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.4);
}
.share-bar-hero .share-btn:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
  background: rgba(255,255,255,0.15);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(200,185,154,0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  transition: all 0.3s var(--ease-premium);
  background: rgba(255,255,255,0.04);
  cursor: none;
  backdrop-filter: blur(4px);
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,134,11,0.12);
  transform: scale(1.1);
}

/* Scroll indicator */
.scroll-indicator {
  display: none !important;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(200,185,154,0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator .arrow {
  font-size: 1.2rem;
  line-height: 1;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ===== MAIN LAYOUT ===== */
.page-wrapper {
  margin-left: var(--left-panel-width);
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  min-height: 100vh;
}

/* ===== MAGAZINE GRID for main-content ===== */
.main-content {
  display: grid;
  grid-template-columns:
    [full-start] minmax(1rem, 1fr)
    [wide-start] minmax(0, 140px)
    [content-start] min(65ch, 100%)
    [content-end] minmax(0, 140px)
    [wide-end] minmax(1rem, 1fr)
    [full-end];
  padding-top: 0;
}

.main-content > * {
  grid-column: content;
}

.main-content > .full-bleed {
  grid-column: full;
}

.main-content > .wide {
  grid-column: wide;
}

/* Article body is a normal block inside the content column */
.article-body {
  display: block;
}

/* Scripture blocks and pull quotes — stay within content */
.article-body .scripture-block {
  margin-left: 0;
  margin-right: 0;
}
.article-body .pull-quote {
  margin-left: 0;
  margin-right: 0;
}

/* ===== FULL-BLEED IMAGE DIVIDERS ===== */
.image-divider {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 3rem 0;
  background-color: var(--brown-dark);
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
}

.image-divider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-divider-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-color: var(--brown-dark);
}

.image-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.image-divider-text {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 650px;
  padding: 2rem;
  color: #FFFBF5;
}

.image-divider-text blockquote,
.image-divider-text blockquote p,
.image-divider-text p,
.image-divider-text span,
.image-divider-text * {
  font-family: 'Literata', serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-style: italic;
  font-weight: 600;
  color: #FFFBF5 !important;
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.image-divider-text .divider-ref {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1rem;
  display: block;
}

/* ===== DROP CAP ===== */
.drop-cap::first-letter {
  float: left;
  font-family: 'Literata', serif;
  font-size: 4.5em;
  font-weight: 700;
  line-height: 0.75;
  color: var(--gold);
  margin-right: 0.08em;
  margin-top: 0.08em;
  padding-right: 0.05em;
}

/* ===== ARTICLE BODY ===== */
.article-body p {
  margin-bottom: 1.6rem;
  line-height: 1.9;
  color: var(--text-body);
}

.article-body strong {
  color: var(--brown-dark);
  font-weight: 600;
}

/* WordPress content styling */
.entry-content p,
.article-body p { margin-bottom: 1.6rem; line-height: 1.9; }
.entry-content h2,
.article-body h2 {
  font-family: 'Literata', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--brown-dark);
  margin: 3rem 0 1.5rem;
  line-height: 1.3;
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid var(--gold);
}
.entry-content h3,
.article-body h3 {
  font-family: 'Literata', serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--brown-dark);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.entry-content h4,
.article-body h4 {
  font-family: 'Literata', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin: 2rem 0 0.75rem;
}
.entry-content ul,
.entry-content ol,
.article-body ul,
.article-body ol {
  margin-bottom: 1.6rem;
  padding-left: 1.5rem;
}
.entry-content li,
.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}
.entry-content blockquote,
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--gold);
  background: rgba(184,134,11,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--brown-medium);
}
.entry-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.entry-content a {
  color: var(--gold);
  font-weight: 500;
}

/* ===== PREMIUM CONTENT AREA POLISH ===== */

/* Auto drop-cap on first paragraph of article content */
.kolhator-single .entry-content > .pf-content > p:first-of-type::first-letter,
.kolhator-single .entry-content > p:first-of-type::first-letter {
  float: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.2em;
  font-weight: 700;
  line-height: 0.78;
  color: var(--gold);
  margin-right: 0.08em;
  margin-top: 0.06em;
  padding-right: 0.05em;
}

/* First paragraph slightly larger */
.kolhator-single .entry-content > .pf-content > p:first-of-type,
.kolhator-single .entry-content > p:first-of-type {
  font-size: 1.15em;
  line-height: 1.85;
  color: var(--brown-dark);
}

/* Bold text as mini-headings when used as standalone paragraphs */
.entry-content p > strong:only-child,
.article-body p > strong:only-child {
  display: block;
  font-family: 'Literata', serif;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--brown-dark);
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* Premium list styling */
.entry-content ul,
.article-body ul {
  list-style: none;
  padding-left: 0;
}
.entry-content ul > li,
.article-body ul > li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
  line-height: 1.85;
}
.entry-content ul > li::before,
.article-body ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}
#toc_container ul.toc_list li::before {
  content: "\2014" !important;
  display: inline !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.35rem !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  border-radius: 0 !important;
  color: #c8a84e;
  font-size: 0.85rem;
}

/* Ordered lists with gold numbers — only on lists that don't already have inline numbered spans */
.entry-content ol,
.article-body ol {
  list-style: none;
  padding-left: 0;
  counter-reset: premium-counter;
}
.entry-content ol > li,
.article-body ol > li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.85;
  counter-increment: premium-counter;
}
.entry-content ol > li::before,
.article-body ol > li::before {
  content: counter(premium-counter);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Hide CSS counter when ol already has its own counter-reset or list items have inline flex */
ol[style*="counter-reset"] > li::before,
ol[style*="list-style:none"] > li::before,
.kht-homepage-grid ol > li::before {
  display: none !important;
}
ol[style*="counter-reset"] > li,
ol[style*="list-style:none"] > li,
.kht-homepage-grid ol > li {
  padding-left: 0 !important;
}

/* Content images — shadow + rounded */
.entry-content img:not(.author-avatar):not(.panel-logo-img) {
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  margin: 2rem 0;
  transition: box-shadow 0.3s ease;
}
.entry-content img:not(.author-avatar):not(.panel-logo-img):hover {
  box-shadow: var(--shadow-elevated);
}

/* Ornamental separator between major sections */
.entry-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
  margin: 3rem 0;
  position: relative;
}
.entry-content hr::after {
  content: '\2726';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--cream);
  padding: 0 1rem;
  color: var(--gold);
  font-size: 1rem;
}

/* PF-content wrapper cleanup */
.entry-content .pf-content {
  display: block;
}

/* Empty divs from MailPoet cleanup */
.entry-content div:empty {
  display: none;
}

/* Centered text blocks (common in video posts) */
.entry-content div[style*="text-align: center"] {
  font-family: 'Literata', serif;
  font-size: 1.05em;
  margin-bottom: 0.75rem;
}

/* Better link underline on hover */
.entry-content a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-light);
}

/* ===== HOMEPAGE CONTENT BOXES UPGRADE ===== */
/* Target the inline-styled quote boxes and list-item boxes on homepage */
/* ===== ANIMATED GOLD BORDER BOXES ===== */

/* ===== HOMEPAGE BOXES — CLEAN REBUILD ===== */

/* Quote box */
.entry-content div[style*="border-left:4px solid #B8860B"] {
  border: 3px solid var(--gold) !important;
  border-left-width: 5px !important;
  border-radius: 16px !important;
  padding: 2rem 2.25rem !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(184,134,11,0.12) !important;
  transition: transform 0.6s var(--ease-premium), box-shadow 0.6s ease;
  background-image: linear-gradient(90deg, transparent 25%, rgba(212,168,67,0.22) 42%, rgba(255,255,255,0.4) 50%, rgba(212,168,67,0.22) 58%, transparent 75%) !important;
  background-size: 300% 100% !important;
  background-color: #FDFAF3 !important;
  animation: shimmerSweep 6s ease-in-out infinite;
}
.entry-content div[style*="border-left:4px solid #B8860B"]::after {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}
.entry-content div[style*="border-left:4px solid #B8860B"]:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(184,134,11,0.2) !important;
}

/* Hebrew-letter list item boxes */
.entry-content div[style*="border:1px solid #e8dcc8"] {
  border: 3px solid var(--gold-border) !important;
  border-radius: 16px !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease-premium), box-shadow 0.6s ease, border-color 0.6s ease;
  background-image: linear-gradient(90deg, transparent 25%, rgba(212,168,67,0.22) 42%, rgba(255,255,255,0.4) 50%, rgba(212,168,67,0.22) 58%, transparent 75%) !important;
  background-size: 300% 100% !important;
  background-color: #fdfaf3 !important;
  animation: shimmerSweep 5s ease-in-out infinite;
}
/* Stagger second box */
.entry-content div[style*="border:1px solid #e8dcc8"] + div[style*="border:1px solid #e8dcc8"] {
  animation-delay: 2s;
}
.entry-content div[style*="border:1px solid #e8dcc8"]:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(184,134,11,0.18) !important;
  border-color: var(--gold) !important;
}

/* Hebrew letter — scale + glow on hover */
.entry-content div[style*="border:1px solid #e8dcc8"] > span[style*="color:#B8860B"] {
  transition: transform 0.6s var(--ease-premium), text-shadow 0.6s ease;
  display: inline-block;
}
.entry-content div[style*="border:1px solid #e8dcc8"]:hover > span[style*="color:#B8860B"] {
  transform: scale(1.3);
  text-shadow: 0 0 20px rgba(184,134,11,0.5);
}

/* Shimmer animation — shared */
@keyframes shimmerSweep {
  0% { background-position: 150% center; }
  45% { background-position: -50% center; }
  100% { background-position: -50% center; }
}

/* Gold shimmer on ALL content cards */
.kht-content-card {
  background-image: linear-gradient(90deg, transparent 25%, rgba(212,168,67,0.18) 42%, rgba(255,255,255,0.35) 50%, rgba(212,168,67,0.18) 58%, transparent 75%) !important;
  background-size: 300% 100% !important;
  background-color: rgba(255,255,255,0.85) !important;
  animation: shimmerSweepCard 6s ease-in-out infinite;
}
/* Stagger cards */
.kht-content-card:nth-child(2) { animation-delay: 1s; }
.kht-content-card:nth-child(3) { animation-delay: 2s; }
.kht-content-card:nth-child(4) { animation-delay: 3s; }
.kht-content-card:nth-child(5) { animation-delay: 1.5s; }
.kht-content-card:nth-child(6) { animation-delay: 2.5s; }
.kht-content-card:nth-child(7) { animation-delay: 0.5s; }
.kht-content-card:nth-child(8) { animation-delay: 3.5s; }
.kht-content-card:nth-child(9) { animation-delay: 1.8s; }
.kht-content-card:nth-child(10) { animation-delay: 2.8s; }

/* Warm/gold cards — stronger shimmer */
.kht-card-warm {
  background-image: linear-gradient(90deg, transparent 25%, rgba(212,168,67,0.22) 42%, rgba(255,255,255,0.4) 50%, rgba(212,168,67,0.22) 58%, transparent 75%) !important;
  background-size: 300% 100% !important;
  background-color: #FDFAF3 !important;
  animation: shimmerSweepCard 5s ease-in-out infinite;
}
/* Intro card */
.kht-card-intro {
  background-image: linear-gradient(90deg, transparent 25%, rgba(212,168,67,0.15) 42%, rgba(255,255,255,0.3) 50%, rgba(212,168,67,0.15) 58%, transparent 75%) !important;
  background-size: 300% 100% !important;
  background-color: rgba(255,255,255,0.9) !important;
  animation: shimmerSweepCard 7s ease-in-out infinite;
}
@keyframes shimmerSweepCard {
  0% { background-position: 150% center; }
  45% { background-position: -50% center; }
  100% { background-position: -50% center; }
}

/* ===== ANIMATED GOLD GLOW FOR CONTENT CARDS ===== */
.kht-content-card::before {
  background: conic-gradient(from var(--border-angle, 0deg), transparent 40%, var(--gold) 50%, transparent 60%) !important;
  opacity: 0 !important;
  transition: opacity 0.6s ease !important;
  inset: -1px;
  border-radius: 17px;
  z-index: -1;
}
.kht-content-card:hover::before {
  opacity: 0.4 !important;
  animation: rotateBorder 3s linear infinite;
}

/* ===== NOTICE BOXES (Disclaimer + Amplification) ===== */
.kht-notice-box {
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s ease;
}
.kht-notice-box:hover {
  transform: translateY(-2px);
}
.kht-notice-box strong {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78em;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-right: 0.15em;
}
.kht-disclaimer-box {
  background: rgba(184,134,11,0.05);
  border: 1px solid rgba(184,134,11,0.15);
}
.kht-disclaimer-box strong {
  color: var(--gold);
}
.kht-disclaimer-box:hover {
  box-shadow: 0 4px 20px rgba(184,134,11,0.08);
}
.kht-amplification-box {
  background: rgba(0,0,0,0.025);
  border: 1px solid var(--border-light);
}
.kht-amplification-box strong {
  color: var(--brown-medium);
}
.kht-amplification-box:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* ===== CONTACT FORM 7 STYLING ===== */
.wpcf7 {
  margin: 1rem 0;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: var(--cream-warm);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0.75rem;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}
.wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}
.wpcf7 input[type="submit"] {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #B8860B, #d4a017);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s var(--ease-premium);
  box-shadow: 0 2px 12px rgba(184,134,11,0.2);
  letter-spacing: 0.03em;
}
.wpcf7 input[type="submit"]:hover {
  background: linear-gradient(135deg, #d4a017, #B8860B);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,134,11,0.3);
}
.wpcf7 label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.25rem;
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
  font-family: 'Literata', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--brown-dark);
  margin: 3rem 0 1.5rem;
  line-height: 1.3;
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid var(--gold);
}

.section-heading-centered {
  font-family: 'Literata', serif;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 600;
  font-style: italic;
  color: var(--brown-dark);
  margin: 3rem 0 1.5rem;
  line-height: 1.4;
  text-align: center;
}

/* ===== HEBREW INLINE ===== */
.hebrew {
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-size: 1.25em;
  font-weight: 500;
  color: var(--brown-dark);
  direction: rtl;
  unicode-bidi: isolate;
}

.transliteration { font-style: italic; color: var(--brown-medium); }

/* ===== SCRIPTURE BLOCKS (wide column) ===== */
.scripture-block {
  grid-column: wide;
  margin: 2.5rem 0;
  background: #FFFFFF;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07), 0 0 0 1px var(--border-light);
  overflow: hidden;
}

.scripture-english {
  padding: 2rem 2.5rem 1.5rem 2.75rem;
  position: relative;
}

.scripture-english::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 12px;
  font-family: 'Literata', serif;
  font-size: 3rem;
  color: var(--gold-pale);
  line-height: 1;
}

.scripture-ref {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scripture-text {
  font-family: 'Literata', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--brown-medium);
  margin-bottom: 0.5rem;
}

.scripture-text:last-child { margin-bottom: 0; }

.scripture-text strong {
  color: var(--brown-dark);
  font-weight: 700;
  font-style: normal;
}

.scripture-hebrew {
  padding: 1.5rem 2.5rem 1.75rem;
  border-top: 1px solid var(--gold-border);
  background: #FDFCFA;
  direction: rtl;
  text-align: right;
  font-family: 'David Libre', 'Frank Ruhl Libre', serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 2.2;
  color: var(--brown-dark);
  letter-spacing: 0.01em;
}

.scripture-hebrew strong { color: var(--gold); font-weight: 700; }

/* ===== PULL QUOTES ===== */
.pull-quote {
  grid-column: wide;
  margin: 3rem 0;
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  position: relative;
}

.pull-quote::before {
  content: '\201C';
  font-family: 'Literata', serif;
  font-size: 5rem;
  color: var(--gold-light);
  line-height: 0.5;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.pull-quote p {
  font-family: 'Literata', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  color: var(--brown-dark);
  margin: 0;
}

/* ===== INSIGHT BOX ===== */
.insight-box {
  grid-column: wide;
  margin: 2.5rem 0;
  padding: 2.25rem;
  background: linear-gradient(135deg, #FDF8EE 0%, #FFF9F0 100%);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.insight-box .insight-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.insight-box p {
  font-family: 'Literata', serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.8;
  color: var(--brown-dark);
  margin: 0;
}

/* ===== ORNAMENT ===== */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

.ornament .line { width: 60px; height: 1px; background: var(--gold-border); }
.ornament .star { color: var(--gold-light); font-size: 0.8rem; }

/* ===== AUTHOR SIGNOFF ===== */
.author-signoff {
  margin: 3rem 0;
  padding: 2.25rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: box-shadow 0.4s var(--ease-premium);
}

.author-signoff:hover { box-shadow: var(--shadow-elevated); }

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-pale);
  flex-shrink: 0;
}

.author-info h4 {
  font-family: 'Literata', serif;
  font-size: 1.2rem;
  color: var(--brown-dark);
  margin-bottom: 0.2rem;
}

.author-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.author-info p { font-size: 0.92rem; line-height: 1.8; color: var(--text-secondary); margin: 0; }

/* ===== DISCLAIMER ===== */
.disclaimer {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-light);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.5);
  font-style: italic;
}

.disclaimer strong { color: var(--text-secondary); font-style: normal; }

/* ===== NOTICE BOXES ===== */
.notice-box {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85em;
  line-height: 1.7;
  color: var(--text-secondary);
}
.disclaimer-box {
  background: rgba(184,134,11,0.05);
  border: 1px solid rgba(184,134,11,0.15);
}
.amplification-box {
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border-light);
}

/* ===== PARASHAH ===== */
.parashah-inline {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.parashah-inline h3 {
  font-family: 'Literata', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.parashah-inline p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.parashah-inline p:last-child { margin-bottom: 0; }

/* ===== RESOURCES / JEWELS / EXPLORE ===== */
.resources-box {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.resources-box h3 {
  font-family: 'Literata', serif;
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin-bottom: 0.75rem;
}

.resources-box p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.resources-box ul { list-style: none; margin-top: 0.5rem; }
.resources-box ul li { padding: 0.3rem 0; }
.resources-box ul li a { font-size: 0.92rem; font-weight: 500; }

.jewels-box {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: linear-gradient(135deg, #FDF8EE 0%, #FFFBF5 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
}

.jewels-box h3 {
  font-family: 'Literata', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.jewels-box p { font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 0.5rem; }

.explore-box {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.explore-box h3 {
  font-family: 'Literata', serif;
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin-bottom: 0.75rem;
}

.explore-box ul { list-style: none; }

.explore-box ul li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.explore-box ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  margin: 3rem 0;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F0 100%);
  border-radius: 12px;
  text-align: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(184,134,11,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner h3 {
  font-family: 'Literata', serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--brown-dark);
  font-weight: 700;
  font-style: italic;
  position: relative;
}

.cta-banner p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.cta-button {
  display: inline-block;
  padding: 13px 32px;
  background: var(--gold);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: all 0.4s var(--ease-premium);
  position: relative;
  overflow: hidden;
  background-image: none;
  cursor: none;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s;
}

.cta-button:hover {
  background: var(--gold-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(184, 134, 11, 0.35);
  background-image: none;
}

.cta-button:hover::after { left: 125%; }

/* ===== RELATED POSTS ===== */
.related-section { margin: 3rem 0; }

.related-section h3 {
  font-family: 'Literata', serif;
  font-size: 1.25rem;
  color: var(--brown-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.related-card {
  padding: 1.1rem 1.25rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.4s var(--ease-premium);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-image: none;
}

.related-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
  color: var(--gold);
  background-image: none;
}

.related-card .arrow { color: var(--gold); flex-shrink: 0; transition: transform 0.4s var(--ease-premium); }
.related-card:hover .arrow { transform: translateX(4px); }

/* ===== PREMIUM RELATED POSTS GRID ===== */
.related-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.related-card-premium {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-body);
  transition: all 0.4s var(--ease-premium);
  background-image: none;
  display: flex;
  flex-direction: column;
}
.related-card-premium:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
  background-image: none;
  color: var(--text-body);
}
.related-card-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-pale), #F5F0E0);
}
.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-premium);
}
.related-card-premium:hover .related-card-thumb img {
  transform: scale(1.05);
}
.related-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Gradient backgrounds that rotate per card */
.related-card-premium:nth-child(6n+1) .related-card-placeholder { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.related-card-premium:nth-child(6n+2) .related-card-placeholder { background: linear-gradient(135deg, #2C1810, #4A2C1A); }
.related-card-premium:nth-child(6n+3) .related-card-placeholder { background: linear-gradient(135deg, #1a2e1a, #2e4a2e); }
.related-card-premium:nth-child(6n+4) .related-card-placeholder { background: linear-gradient(135deg, #2e1a2e, #4a2e4a); }
.related-card-premium:nth-child(6n+5) .related-card-placeholder { background: linear-gradient(135deg, #1a1a2e, #2e3a5e); }
.related-card-premium:nth-child(6n+6) .related-card-placeholder { background: linear-gradient(135deg, #2e2a1a, #5e4a2e); }
.related-card-placeholder::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(184,134,11,0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.related-card-placeholder::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(184,134,11,0.15);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.related-card-placeholder span {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.5;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.related-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.related-card-cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.related-card-premium h4 {
  font-family: 'Literata', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.4;
  margin: 0 0 auto;
}
.related-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}
@media (max-width: 900px) {
  .related-grid-premium { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .related-grid-premium { grid-template-columns: 1fr; }
}

/* ===== AUTO CONTENT CARDS ===== */
.kht-content-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  margin: 1.75rem 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: box-shadow 0.5s var(--ease-premium), transform 0.5s var(--ease-premium), border-color 0.5s ease;
  position: relative;
  overflow: hidden;
}
/* Gold accent bar at top */
.kht-content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity 0.5s ease;
}
.kht-content-card:hover {
  box-shadow: 0 8px 40px rgba(184,134,11,0.12), 0 2px 12px rgba(0,0,0,0.06);
  transform: translateY(-4px);
  border-color: var(--gold-border);
}
.kht-content-card:hover::before {
  opacity: 1;
}
/* Warm alternating card */
.kht-card-warm {
  background: linear-gradient(135deg, rgba(253,250,243,0.9) 0%, rgba(255,251,245,0.9) 100%);
  border-color: var(--gold-border);
}
/* Corner ornament on warm cards */
.kht-card-warm::after {
  content: '\2726';
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 1rem;
  color: var(--gold);
  opacity: 0.12;
  transition: opacity 0.5s ease;
}
.kht-card-warm:hover::after {
  opacity: 0.3;
}
/* Intro card — first section, slightly elevated */
.kht-card-intro {
  background: rgba(255,255,255,0.9);
  border-left: 5px solid var(--gold);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.kht-card-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.kht-card-warm .kht-card-header {
  border-bottom-color: var(--gold-border);
}
.kht-card-header h2,
.kht-card-header h3 {
  font-family: 'Literata', serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--brown-dark);
  margin: 0;
  padding: 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--gold);
  line-height: 1.4;
}
.kht-card-header strong {
  font-family: 'Literata', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown-dark);
  border-top: none;
  padding: 0 0 0 1.25rem;
  margin: 0;
  display: block;
  border-left: 4px solid var(--gold);
  line-height: 1.4;
}
.kht-card-body {
  padding-top: 0.25rem;
}
.kht-card-body p:last-child {
  margin-bottom: 0;
}
/* Reset the standalone-bold styles inside cards */
.kht-content-card p > strong:only-child {
  display: inline;
  font-size: inherit;
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  border-left: none;
  padding-left: 0;
}
.kht-content-card ul,
.kht-content-card ol {
  margin-bottom: 0.5rem;
}

/* ===== HEBREW LETTER BADGE ===== */
.kht-card-badge {
  position: absolute;
  top: 0.6rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #B8860B, #d4a017);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Frank Ruhl Libre', 'David Libre', serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(184,134,11,0.3);
  z-index: 2;
  transition: transform 0.5s var(--ease-premium), box-shadow 0.5s ease;
}
.kht-card-badge::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(184,134,11,0.25);
  animation: badgePulse 3s ease-in-out infinite;
}
.kht-content-card:hover .kht-card-badge {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(184,134,11,0.4);
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 0; }
}

/* ===== ORNAMENT DIVIDERS BETWEEN CARDS ===== */
.kht-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  opacity: 0.5;
}
.kht-orn-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border));
}
.kht-orn-line:last-child {
  background: linear-gradient(90deg, var(--gold-border), transparent);
}
.kht-orn-diamond {
  color: var(--gold);
  font-size: 0.9rem;
}

/* ===== IMAGE DIVIDERS BETWEEN SECTIONS ===== */
.kht-image-divider {
  position: relative;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-card);
  opacity: 1;
  transform: none;
}
.kht-image-divider.visible:hover, .kht-image-divider:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.kht-image-divider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.kht-image-divider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(44,24,16,0.08), rgba(44,24,16,0.15));
  z-index: 1;
}
@media (max-width: 768px) {
  .kht-image-divider { height: 160px; border-radius: 12px; }
}

/* ===== PULL QUOTES ===== */
.kht-pull-quote {
  margin: 1.75rem -0.5rem 0.5rem;
  padding: 1.5rem 2rem 1.5rem 2.5rem;
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, rgba(184,134,11,0.04), rgba(184,134,11,0.02));
  border-radius: 0 12px 12px 0;
  position: relative;
}
.kht-pull-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2em;
  font-weight: 600;
  font-style: italic;
  line-height: 1.7;
  color: var(--brown-dark);
  margin: 0;
}
.kht-pq-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.25;
  position: absolute;
  top: 0.25rem;
  left: 0.75rem;
  line-height: 1;
}

/* ===== SCROLL REVEAL ANIMATIONS (safe: always visible, animate as enhancement) ===== */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 1;
  transform: none;
  transition: transform 0.8s var(--ease-premium);
}

/* When JS adds .visible, play a subtle animation — content was already visible */
.reveal.visible { animation: revealUp 0.8s var(--ease-premium) both; }
.reveal-left.visible { animation: revealFromLeft 0.8s var(--ease-premium) both; }
.reveal-right.visible { animation: revealFromRight 0.8s var(--ease-premium) both; }
.reveal-scale.visible { animation: revealScale 0.6s var(--ease-premium) both; }

@keyframes revealUp {
  from { transform: translateY(20px); }
  to { transform: translateY(0); }
}
@keyframes revealFromLeft {
  from { transform: translateX(-25px); }
  to { transform: translateX(0); }
}
@keyframes revealFromRight {
  from { transform: translateX(25px); }
  to { transform: translateX(0); }
}
@keyframes revealScale {
  from { transform: scale(0.97); }
  to { transform: scale(1); }
}

/* ===== SCRIPTURE CARD ===== */
.kht-scripture-card {
  background: linear-gradient(135deg, #FDFAF3 0%, #FFF9EE 100%);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 0.75rem;
  margin: 2rem 0;
  position: relative;
  box-shadow: 0 2px 16px rgba(184,134,11,0.08);
}
.kht-scripture-card blockquote {
  border-left: 4px solid var(--gold);
  background: transparent;
  margin: 0;
  padding: 1.5rem 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15em;
  line-height: 1.8;
  color: var(--brown-medium);
  font-style: italic;
}
.kht-scripture-card blockquote::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 0.25rem;
  right: 1.5rem;
  line-height: 1;
}

/* Responsive cards */
@media (max-width: 768px) {
  .kht-content-card {
    padding: 1.5rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 12px;
  }
}

/* ===== COMMENTS ===== */
.comments-section {
  margin: 3rem 0;
  padding: 2.5rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.comments-section h3 {
  font-family: 'Literata', serif;
  font-size: 1.25rem;
  color: var(--brown-dark);
  margin-bottom: 1.25rem;
}

.comment-form label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--text-body);
  margin-bottom: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form textarea:focus,
.comment-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,0.08); }

.comment-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comment-form .checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.comment-form .checkbox-row input[type="checkbox"] { accent-color: var(--gold); }

.submit-btn,
.comment-form .form-submit input[type="submit"] {
  padding: 11px 28px;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: none;
  transition: all 0.3s var(--ease-premium);
}

.submit-btn:hover,
.comment-form .form-submit input[type="submit"]:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184,134,11,0.25);
}

/* WordPress comment list styling */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.comment-list .comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.comment-list .comment-author {
  font-family: 'Literata', serif;
  font-weight: 600;
  color: var(--brown-dark);
}
.comment-list .comment-author img {
  border-radius: 50%;
  margin-right: 0.5rem;
  border: 2px solid var(--gold-pale);
}
.comment-list .comment-metadata {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.comment-list .comment-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.comment-list .reply a {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
}

/* ===== PRINT / SHARE ===== */
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: white;
  cursor: none;
  transition: all 0.3s var(--ease-premium);
  margin-bottom: 2rem;
}

.print-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-bar span {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-right: 0.25rem;
}

.share-bar .share-btn {
  border-color: var(--border-light);
  color: var(--text-light);
  background: white;
  backdrop-filter: none;
}

.share-bar .share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,134,11,0.05);
}

/* Closing blessing */
.closing-blessing {
  text-align: center;
  font-family: 'Literata', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--brown-medium);
  margin: 3rem 0;
  padding: 2rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ===== RIGHT SIDEBAR ===== */
.right-sidebar {
  padding: 3rem 1.75rem 3rem 1rem;
  border-left: 1px solid var(--border-light);
}

.sidebar-widget,
.right-sidebar .widget {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.5s var(--ease-premium), transform 0.5s var(--ease-premium), border-color 0.5s ease;
  position: relative;
  overflow: hidden;
}
/* Gold accent line at top */
.sidebar-widget::before,
.right-sidebar .widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.sidebar-widget:hover,
.right-sidebar .widget:hover {
  box-shadow: 0 8px 32px rgba(184,134,11,0.1);
  transform: translateY(-3px);
  border-color: var(--gold-border);
}

.sidebar-widget h4,
.right-sidebar .widget h4,
.right-sidebar .widget .widgettitle {
  font-family: 'Literata', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold-pale);
  position: relative;
}
/* Small gold diamond after heading */
.sidebar-widget h4::after,
.right-sidebar .widget h4::after,
.right-sidebar .widget .widgettitle::after {
  content: '\2726';
  position: absolute;
  bottom: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0 0.5rem;
  color: var(--gold);
  font-size: 0.7rem;
}

.sidebar-widget p,
.right-sidebar .widget p {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.sidebar-widget p:last-child { margin-bottom: 0; }
.sidebar-widget a { font-size: 0.82rem; font-weight: 500; }

.sidebar-widget .widget-link,
.right-sidebar .widget ul li a {
  display: block;
  padding: 0.45rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: color 0.2s;
  background-image: none;
}

.sidebar-widget .widget-link:last-child { border-bottom: none; }
.sidebar-widget .widget-link:hover,
.right-sidebar .widget ul li a:hover { color: var(--gold); }

/* WordPress widget list styling */
.right-sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.right-sidebar .widget ul li {
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.right-sidebar .widget ul li:last-child { border-bottom: none; }

/* Sidebar Article Cards — thumbnail + title + category */
.sidebar-article-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s var(--ease-premium);
  text-decoration: none;
  align-items: center;
}

.sidebar-article-card:last-child { border-bottom: none; }
.sidebar-article-card:hover { transform: translateX(4px); }

.sidebar-article-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-premium);
}

.sidebar-article-card:hover .sidebar-article-thumb img {
  transform: scale(1.1);
}

.sidebar-article-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gold-pale), #F0E8D0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-article-placeholder span {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.6;
}

.sidebar-article-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sidebar-article-title {
  font-family: 'Literata', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-article-card:hover .sidebar-article-title {
  color: var(--gold);
}

.sidebar-article-cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* ===== SIDEBAR PREMIUM CARDS ===== */
.sidebar-premium-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sidebar-premium-card.related-card-premium {
  flex-direction: row !important;
  border-radius: 12px;
  align-items: center;
  padding: 0.5rem;
}
.sidebar-premium-card .related-card-thumb,
.sidebar-premium-card .sidebar-card-thumb {
  width: 70px !important;
  min-width: 70px !important;
  height: 70px !important;
  flex-shrink: 0;
  border-radius: 10px;
}
.sidebar-premium-card .related-card-body,
.sidebar-premium-card .sidebar-card-body {
  padding: 0.5rem 0.75rem;
}
.sidebar-premium-card .related-card-cat {
  font-size: 0.6rem;
  margin-bottom: 0.2rem;
}
.sidebar-premium-card h4 {
  font-size: 0.8rem !important;
  line-height: 1.4;
  display: block;
  overflow: visible;
}
.sidebar-premium-card .related-card-meta {
  display: none;
}

/* Legacy prominent cards */
.prominent-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s var(--ease-premium);
}

.prominent-card:last-child { border-bottom: none; }
.prominent-card:hover { transform: translateX(4px); }

.prominent-card .thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background: var(--gold-pale);
  flex-shrink: 0;
  overflow: hidden;
}

.prominent-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prominent-card .card-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.prominent-card .card-text a {
  display: block;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
  background-image: none;
}

.prominent-card .card-text a:hover { color: var(--gold); }
.prominent-card .card-cat { font-size: 0.72rem; color: var(--text-light); }

.sidebar-newsletter input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  outline: none;
  background: var(--cream-warm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-newsletter input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}

.sidebar-newsletter button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #B8860B, #d4a017);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s var(--ease-premium);
  box-shadow: 0 2px 12px rgba(184,134,11,0.2);
  letter-spacing: 0.03em;
}

.sidebar-newsletter button:hover {
  background: linear-gradient(135deg, #d4a017, #B8860B);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,134,11,0.3);
}

.sidebar-newsletter .note {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-left: var(--left-panel-width);
  background: linear-gradient(180deg, #F5F5F0 0%, #EEEEEA 100%);
  color: #1A1A1A;
  padding: 4rem 3rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  font-family: 'Literata', serif;
  font-size: 1rem;
  color: #B8860B;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  color: #1A1A1A;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
  background-image: none;
}

.footer-col a:hover { color: var(--gold); }
.footer-col .cat-count { font-size: 0.72rem; color: #5A5A5A; }

/* Footer widget areas */
.footer-col .widget { background: transparent; border: none; box-shadow: none; padding: 0; margin-bottom: 0; }
.footer-col .widget .widgettitle {
  font-family: 'Literata', serif;
  font-size: 1rem;
  color: #B8860B;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  border-bottom: none;
  padding-bottom: 0;
}
.footer-col .widget ul { list-style: none; padding: 0; margin: 0; }
.footer-col .widget ul li a {
  display: block;
  color: #1A1A1A;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
  background-image: none;
}
.footer-col .widget ul li a:hover { color: var(--gold); }

.footer-newsletter { margin-top: 0.5rem; }

.footer-newsletter input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.8);
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  color: #1A1A1A;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  outline: none;
  margin-bottom: 0.5rem;
  transition: border-color 0.3s;
}

.footer-newsletter input::placeholder { color: #999; }
.footer-newsletter input:focus { border-color: var(--gold); }

.footer-newsletter button {
  width: 100%;
  padding: 10px;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: none;
  transition: all 0.3s var(--ease-premium);
}

.footer-newsletter button:hover { background: var(--gold-light); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #E0E0E0;
  text-align: center;
}

.footer-blessing {
  font-family: 'Literata', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #3D3D3D;
  max-width: 650px;
  margin: 0 auto 1.25rem;
}

.footer-copyright {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #5A5A5A;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 251, 245, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 1rem;
  height: 56px;
  align-items: center;
  justify-content: space-between;
}

.mobile-header .logo-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-header .logo-heb {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.mobile-header .logo-en {
  font-family: 'Literata', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown-dark);
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-aa-btn {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.mobile-aa-btn:active {
  transform: scale(0.92);
  background: var(--gold-pale);
}
.mobile-aa-btn.active {
  background: var(--gold);
  border-color: var(--gold);
}
.mobile-aa-btn.active .mobile-aa-icon {
  color: #fff;
}
.mobile-aa-icon {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown-medium);
}

/* Mobile font size slider panel */
.mobile-aa-panel {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 199;
  background: rgba(255, 251, 245, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-premium), opacity 0.3s;
}
.mobile-aa-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-aa-panel .aa-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
}
.mobile-aa-panel .aa-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}
.mobile-aa-panel .aa-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--brown-dark);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.mobile-aa-panel .aa-btn:active {
  transform: scale(0.9);
  background: var(--gold-pale);
}
.mobile-aa-panel .aa-display {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 44px;
  text-align: center;
}
.mobile-aa-panel .aa-reset-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}

/* Persistent hint banner */
.aa-hint-banner {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0.75rem;
  background: linear-gradient(135deg, #B8860B, #C99A2E);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.aa-hint-banner.dismissed { display: none !important; }
.aa-hint-text {
  font-size: 0.75rem;
  color: #fff;
  white-space: nowrap;
  margin-right: 2px;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aa-banner-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.aa-banner-btn:active { transform: scale(0.9); background: rgba(255,255,255,0.2); }
.aa-banner-btn-plus { background: var(--gold); border-color: var(--gold); }
.aa-banner-btn-plus:active { background: var(--gold-light); }
.aa-banner-display {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  min-width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.aa-hint-close {
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  margin-left: 4px;
  transition: all 0.15s;
  white-space: nowrap;
}
.aa-hint-close:hover { color: #fff; background: rgba(255,255,255,0.18); }

/* Desktop: position as floating card bottom-right */
@media (min-width: 901px) {
  .aa-hint-banner {
    top: 1rem;
    left: auto;
    right: 2rem;
    border-radius: 12px;
    max-width: 340px;
  }
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  backdrop-filter: blur(2px);
}

.nav-overlay.active { display: block; }

/* ===== V2: HORIZONTAL SCROLL SECTION ===== */
.hscroll-wrapper {
  grid-column: full;
  position: relative;
  height: auto !important;
}
.hscroll-track {
  position: relative;
  height: auto;
  width: 100%;
  overflow: visible;
}
.hscroll-slides {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  transform: none !important;
  will-change: auto;
  gap: 1rem;
  padding: 1rem;
}
.hscroll-slide {
  flex: 0 0 auto;
  width: 100%;
  min-height: 50vh;
  display: flex;
  opacity: 1 !important;
  transform: none !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.hscroll-slide-bg {
  position: absolute;
  top: -40%;
  left: 0;
  right: 0;
  bottom: -40%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hscroll-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hscroll-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
  padding: 2rem 0.5rem;
  margin: 0 auto;
}
.hscroll-slide-content h3 {
  font-family: 'Literata', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #FFFBF5;
  line-height: 1.1;
  overflow-wrap: break-word;
  word-wrap: break-word;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
}
.hscroll-slide-content p {
  font-family: 'Literata', serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,251,245,0.95);
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
}
.hscroll-slide-content .hscroll-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  display: block;
}
.hscroll-progress, .hscroll-dot {
  display: none !important;
}
.hscroll-progress-legacy {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}
.hscroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  will-change: width;
}

/* ===== SCROLL ANIMATIONS (removed - was causing content to be invisible on some devices) ===== */

  /* V2: Ken Burns only when motion allowed */
  .hero-bg {
    animation: kenBurns 12s ease-in-out infinite alternate;
  }
}

/* V2: Disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none !important; }
  .grain-overlay { display: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .right-sidebar { display: none; }
  .page-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .left-panel { transform: translateX(-100%); transition: transform 0.4s var(--ease-premium); }
  .left-panel.open { transform: translateX(0); }
  .mobile-header { display: flex; }
  .page-wrapper { margin-left: 0; }
  .hero-fullbleed { margin-left: 0; }
  .site-footer { margin-left: 0; }
  .progress-bar { left: 0; top: 56px; }
  .cursor-dot, .cursor-ring { display: none !important; }
  body { cursor: auto; }
  a, button, .cta-button, .submit-btn, .print-btn { cursor: pointer; }

  .main-content {
    grid-template-columns:
      [full-start] 0px
      [wide-start] 0px
      [content-start] 100%
      [content-end] 0px
      [wide-end] 0px
      [full-end];
  }

  .hero-fullbleed { min-height: 80vh; padding-top: 0; padding-bottom: 0; }
  body.home .hero-content { padding-top: 80px !important; padding-bottom: 48px !important; }
  body.home .hero-cta-btn { font-size: 17px !important; padding: 6px 16px !important; }
  body.home .hero-ornament { margin: 4px 0 !important; }
  body.home .hero-title-draw { margin: 2px 0 4px !important; }
  body.home .hero-subtitle-draw { margin: 0 !important; padding: 0 !important; }
  .hero-bg { background-position: 33% center; }
  .scroll-indicator { bottom: 1rem; }
  .main-content { overflow-x: hidden; }
  .article-body { overflow-x: hidden; max-width: 100%; padding: 0 1.25rem; }

  /* Mobile: stack panels vertically instead of horizontal scroll */
  .hscroll-wrapper { height: auto !important; }
  .hscroll-track { position: relative; height: auto; overflow: visible; }
  .hscroll-slides { display: flex; flex-direction: column; width: 100%; height: auto; transform: none !important; will-change: auto; gap: 1rem; padding: 1rem; }
  .hscroll-slide {
    flex: 0 0 auto;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    opacity: 1;
    transform: none;
  }
  .hscroll-progress { display: none; }
  .main-content > .parashah-inline,
  .main-content > .resources-box,
  .main-content > .jewels-box,
  .main-content > .explore-box,
  .main-content > .closing-blessing,
  .main-content > .author-signoff,
  .main-content > .disclaimer,
  .main-content > .cta-banner,
  .main-content > .print-btn,
  .main-content > .share-bar,
  .main-content > .related-section,
  .main-content > .comments-section,
  .main-content > .ornament { padding-left: 1.25rem; padding-right: 1.25rem; }

  .hero-content h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  .related-grid { grid-template-columns: 1fr; }
  .comment-form .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .scripture-hebrew {
    font-size: 1.3rem;
    line-height: 2.3;
    padding: 1rem 1.25rem 1.25rem;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .scripture-english { padding: 1.5rem 1.25rem 1rem 1.5rem; }
  .hebrew { font-size: 1.2em; }

  /* Reset breakout margins on mobile */
  .article-body .scripture-block {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  .article-body .pull-quote {
    margin-left: 0;
    margin-right: 0;
  }
  .scripture-hebrew {
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }
  .scripture-text { font-size: 1rem; line-height: 1.85; }
  .pull-quote p { font-size: clamp(1.3rem, 4vw, 1.8rem); }
  .pull-quote { padding: 2rem 1.25rem; margin-left: 0; margin-right: 0; }

  .image-divider { min-height: 40vh; background-attachment: scroll !important; }
  .image-divider-parallax { background-attachment: scroll !important; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.8rem; }
}

/* ===== MOBILE COMPREHENSIVE FIXES ===== */
@media (max-width: 900px) {
  /* Kill any left margin from desktop left panel */
  .page-wrapper,
  .hero-fullbleed,
  .site-footer,
  .hscroll-wrapper,
  main,
  article {
    margin-left: 0 !important;
  }

  /* Homepage grid — single column */
  .kht-homepage-grid {
    grid-template-columns: 1fr !important;
    padding: 0 0.75rem !important;
  }

  /* Content cards — tighter padding on mobile, room for badge */
  .kht-content-card {
    padding: 1.5rem 1.25rem !important;
    padding-top: 2.5rem !important;
    margin: 1rem 0 !important;
  }
  .kht-card-badge {
    top: 0.5rem !important;
    right: 0.75rem !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 0.9rem !important;
  }

  /* Entry content — prevent overflow */
  .entry-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* SVG titles — full width on mobile so text doesn't clip */
  .hero-title-draw {
    width: 100%;
    overflow: visible;
  }
  .english-draw,
  .subtitle-draw {
    width: 100% !important;
    max-width: none !important;
    overflow: visible;
  }

  /* Hide sticky social share bars from plugins */
  .a2a_floating_style,
  .a2a_overlay,
  div[class*="social-share-fixed"],
  div[class*="floating-social"],
  .addtoany_floating_style {
    display: none !important;
  }

  /* Notice boxes — compact on mobile with side margins */
  .kht-notice-box {
    padding: 0.65rem 1rem;
    font-size: 0.72rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  /* Related grid — 1 column on small phones */
  .related-grid-premium {
    grid-template-columns: 1fr !important;
    padding: 0 0.5rem;
  }

  /* Archive grid — 1 column */
  main .related-grid-premium {
    grid-template-columns: 1fr !important;
  }

  /* Sidebar premium cards */
  .sidebar-premium-card.related-card-premium {
    flex-direction: row !important;
  }

  /* Image dividers — visible on mobile */
  .kht-image-divider {
    height: 180px !important;
  }

  /* Homepage boxes — full width, proper padding */
  .entry-content div[style*="border-left:4px solid #B8860B"],
  .entry-content div[style*="border:1px solid #e8dcc8"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1.25rem 1rem !important;
  }

  /* Numbered list items on homepage — smaller circles on mobile */
  .entry-content div[style*="border:1px solid #e8dcc8"] span[style*="min-width:28px"],
  .entry-content li span[style*="min-width:28px"] {
    min-width: 24px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.7rem !important;
    margin-right: 0.6rem !important;
  }

  /* Homepage card grid boxes — tighter on mobile */
  .kht-homepage-grid > div {
    padding: 1.25rem !important;
  }

  /* Ensure no horizontal overflow */
  html, body {
    overflow-x: hidden !important;
  }

  /* Fix top content being hidden behind mobile header */
  .entry-content {
    padding-top: 0.5rem;
  }
}

/* ===== PRINT ===== */
@media print {
  .left-panel, .right-sidebar, .mobile-header, .progress-bar,
  .hero-fullbleed, .image-divider, .share-bar, .share-bar-hero,
  .audio-player, .scroll-indicator, .cta-banner, .print-btn,
  .grain-overlay, .cursor-dot, .cursor-ring, .hscroll-wrapper,
  .a11y-widget, .aa-hint-banner, .mobile-aa-panel,
  .tutorial-overlay, .help-trigger { display: none !important; }
  .page-wrapper { margin-left: 0 !important; }
  .main-content > * { grid-column: content !important; }
  body { font-size: 12pt; cursor: auto; }
  .site-footer { margin-left: 0 !important; }
}

/* ===== HOMEPAGE SECTIONS ===== */
.hero-cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all 0.4s var(--ease-premium);
  background-image: none;
}
.hero-cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184,134,11,0.3);
  color: white;
  background-image: none;
}

.home-section { position: relative; }

/* Categories Grid */
.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.home-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: white;
  transition: all 0.4s var(--ease-premium);
  text-decoration: none;
  background-image: none;
}

.home-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--gold-pale);
  background-image: none;
}

.home-cat-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.home-cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-cat-card h3 {
  font-family: 'Literata', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

.home-cat-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.home-cat-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Recent Articles Grid */
.home-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.home-recent-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: white;
  transition: all 0.4s var(--ease-premium);
  text-decoration: none;
  background-image: none;
}

.home-recent-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  background-image: none;
}

.home-recent-thumb {
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
}

.home-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-premium);
}

.home-recent-card:hover .home-recent-thumb img {
  transform: scale(1.08);
}

.home-recent-info {
  padding: 1.25rem;
}

.home-recent-cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.home-recent-card h3 {
  font-family: 'Literata', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.4;
  margin: 0.5rem 0;
}

.home-recent-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Homepage responsive */
@media (max-width: 1200px) {
  .home-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .home-recent-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .home-section { margin-left: 0 !important; padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .home-categories-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; padding: 0 1rem; }
  .home-recent-grid { grid-template-columns: 1fr; }
  .hscroll-wrapper { margin-left: 0 !important; }
  .home-section [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ===== HOMEPAGE CARD GRID (injected content) ===== */
.kht-homepage-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem !important;
}
.kht-homepage-grid > * {
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.5s var(--ease-premium), box-shadow 0.5s var(--ease-premium), border-color 0.5s ease;
  position: relative;
}
.kht-homepage-grid > *::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}
.kht-homepage-grid > *:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(184,134,11,0.12), 0 2px 12px rgba(0,0,0,0.06);
}
.kht-homepage-grid > *:hover::before {
  opacity: 1;
}
.kht-homepage-grid img {
  max-width: 100%;
  height: auto;
  display: block;
}
.kht-homepage-grid h3 a {
  color: inherit !important;
  font-weight: 700 !important;
  text-decoration: none;
  background-image: none;
}
.kht-homepage-grid h3 {
  font-weight: 700 !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  hyphens: auto !important;
  min-width: 0 !important;
}
.kht-homepage-grid > div > div[style*="display:flex"] {
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .kht-homepage-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== FLOATING A+/A- WIDGET ===== */
.a11y-widget{position:fixed;bottom:2rem;right:2rem;z-index:9999;display:flex;flex-direction:column;align-items:flex-end;gap:.5rem;font-family:'Inter',sans-serif}
.a11y-panel{background:rgba(0,0,0,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:16px;padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:1rem;opacity:0;transform:translateY(10px) scale(.95);pointer-events:none;transition:opacity .3s var(--ease-premium),transform .3s var(--ease-premium);min-width:200px;box-shadow:0 8px 40px rgba(0,0,0,.2)}
.a11y-widget.open .a11y-panel{opacity:1;transform:translateY(0) scale(1);pointer-events:all}
.a11y-panel-label{font-size:.65rem;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,255,255,.4)}
.a11y-size-controls{display:flex;align-items:center;gap:.75rem}
.a11y-btn-size{width:40px;height:40px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;font-size:1.1rem;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;font-family:'Inter',sans-serif}
.a11y-btn-size:hover{background:rgba(255,255,255,.12);border-color:var(--gold)}
.a11y-btn-size:active{transform:scale(.92)}
.a11y-size-display{font-size:.9rem;font-weight:600;color:#D4A843;min-width:42px;text-align:center}
.a11y-reset{background:none;border:none;color:rgba(255,255,255,.35);font-size:.7rem;cursor:pointer;text-align:center;padding:4px 0;font-family:'Inter',sans-serif;transition:color .2s}
.a11y-reset:hover{color:rgba(255,255,255,.7)}
.a11y-trigger{width:48px;height:48px;border-radius:50%;background:rgba(0,0,0,.88);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.08);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s var(--ease-premium);box-shadow:0 4px 20px rgba(0,0,0,.15)}
.a11y-trigger:hover{background:rgba(0,0,0,.95);transform:scale(1.08);border-color:var(--gold)}
.a11y-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.a11y-widget.open .a11y-trigger{background:var(--gold);border-color:var(--gold)}
@media(max-width:900px){.a11y-widget{display:none!important}}
@media(pointer:coarse){.a11y-trigger,.a11y-btn-size{cursor:pointer!important}}

/* ===== FLOATING HELP BUTTON (reopens tutorial) ===== */
.help-trigger{position:fixed;bottom:2rem;left:2rem;z-index:9998;width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#D4A843 0%,#B8860B 100%);border:none;color:#fff;font-family:'Inter',sans-serif;font-size:1.6rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(184,134,11,0.35);transition:transform .3s var(--ease-premium),box-shadow .3s var(--ease-premium);padding:0;line-height:1}
.help-trigger:hover{transform:scale(1.1);box-shadow:0 6px 24px rgba(184,134,11,0.5)}
.help-trigger:active{transform:scale(.95)}
.help-trigger span{display:block;margin-top:-2px;pointer-events:none}
@media(max-width:900px){.help-trigger{bottom:1rem;left:1rem;width:46px;height:46px;font-size:1.4rem}}

/* ===== TUTORIAL SEARCH FORM (inside tutorial popup) ===== */
.tut-search-form{display:flex;flex-direction:column;gap:0.6rem;margin-bottom:0.85rem;width:100%;max-width:100%}
.tut-search-input{width:100%;max-width:100%;min-width:0;padding:0.75rem 1rem;border:2px solid #D4A843;border-radius:10px;font-family:'Inter',sans-serif;font-size:1rem;background:#fff;color:#2C1810;outline:none;transition:border-color .2s,box-shadow .2s;-webkit-appearance:none;appearance:none;box-sizing:border-box}
.tut-search-input:focus{border-color:#B8860B;box-shadow:0 0 0 3px rgba(184,134,11,0.15)}
.tut-search-input::placeholder{color:#8B7355;font-style:italic}
.tut-search-btn{width:100%;padding:0.75rem 1.5rem;border:none;border-radius:10px;background:linear-gradient(135deg,#D4A843 0%,#B8860B 100%);color:#fff;font-family:'Inter',sans-serif;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;box-sizing:border-box}
.tut-search-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(184,134,11,0.35)}
.tut-search-btn:active{transform:translateY(0)}

/* ===== TUTORIAL OVERLAY ===== */
.tutorial-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.75);z-index:99999;display:flex;align-items:center;justify-content:center;padding:1rem;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:tutFadeIn 0.4s ease;overflow-y:auto}
@keyframes tutFadeIn{from{opacity:0}to{opacity:1}}
.tutorial-box{background:#FFFBF5;border-radius:20px;max-width:440px;width:100%;padding:2rem 1.5rem 1.5rem;box-shadow:0 20px 60px rgba(0,0,0,0.3);position:relative;animation:tutSlideUp 0.5s cubic-bezier(0.16,1,0.3,1);margin:auto}
@keyframes tutSlideUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
.tutorial-title{font-family:'Literata',serif;font-size:2.2rem;font-weight:700;color:#2C1810;text-align:center;margin-bottom:0.75rem;line-height:1.1}
.tutorial-subtitle{font-size:1.3rem;color:#8B7355;text-align:center;margin-bottom:1.5rem;line-height:1.5;font-weight:500}
.tut-step{background:#fff;border:2px solid #E8DDD0;border-radius:14px;padding:1.25rem;margin-bottom:1rem;position:relative}
.tut-step-number{position:absolute;top:-10px;left:16px;background:#B8860B;color:#fff;font-family:'Inter',sans-serif;font-size:0.7rem;font-weight:700;padding:2px 10px;border-radius:20px;letter-spacing:0.05em}
.tut-step-title{font-family:'Literata',serif;font-size:1.5rem;font-weight:700;color:#2C1810;margin-bottom:0.5rem;margin-top:0.25rem}
.tut-mockup{background:#F5F0E8;border-radius:10px;padding:0.75rem;margin-bottom:0.75rem;display:flex;align-items:center;gap:0.75rem;position:relative}
.tut-mockup-aa{justify-content:center}
.tut-mockup-play{justify-content:center}
.tut-fake-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;font-family:'Inter',sans-serif;font-weight:700}
.tut-fake-aminus{background:#fff;border:2px solid #ccc;color:#666;width:42px;height:42px;font-size:1.1rem}
.tut-fake-percent{background:#B8860B;color:#fff;padding:6px 12px;border-radius:8px;font-size:1rem;min-width:60px;text-align:center}
.tut-fake-aplus{background:#1a5276;color:#fff;width:42px;height:42px;font-size:1.1rem}
.tut-fake-done{background:#555;color:#fff;padding:6px 14px;border-radius:8px;font-size:0.85rem}
.tut-fake-play{background:#B8860B;color:#fff;width:48px;height:48px;border-radius:50%;font-size:1.2rem;display:inline-flex;align-items:center;justify-content:center}
.tut-fake-label{font-size:0.95rem;color:#5C4033;font-weight:500}
.tut-arrow{color:#C0392B;font-size:1.8rem;font-weight:700;line-height:1;animation:tutBounce 1s ease infinite}
@keyframes tutBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.tut-arrow-down{animation:tutBounceDown 1s ease infinite}
@keyframes tutBounceDown{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}
.tut-annotation{font-size:1.35rem;color:#C0392B;font-weight:700;font-style:italic;line-height:1.4}
.tut-explain{font-size:1.4rem;color:#5C4033;line-height:1.7;font-weight:600;font-family:'Literata',serif}
.tut-explain strong{color:#2C1810}
.tutorial-dismiss{display:block;width:100%;padding:1.2rem;background:#B8860B;color:#fff;border:none;border-radius:12px;font-family:'Literata',serif;font-size:1.35rem;font-weight:700;cursor:pointer;margin-top:0.75rem;transition:background 0.2s;letter-spacing:0.02em}
.tutorial-dismiss:hover{background:#D4A843}
.tutorial-dismiss:active{transform:scale(0.98)}

/* ===== BLOG/ARCHIVE LISTING ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.post-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s var(--ease-premium);
}

.post-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.post-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.post-card-image-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--gold-pale) 0%, #F5F0E8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 2.5rem;
}

.post-card-body {
  padding: 1.5rem;
}

.post-card-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.post-card-title {
  font-family: 'Literata', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.post-card-title a {
  color: inherit;
  background-image: none;
}
.post-card-title a:hover { color: var(--gold); }

.post-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.post-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.post-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-light);
}

/* Archive header */
.archive-header {
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.archive-header h1 {
  font-family: 'Literata', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

.archive-header .archive-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 2rem 1rem;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
/* Hide "Posts navigation" heading */
.pagination .screen-reader-text,
.pagination h2 {
  display: none !important;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: white;
  background-image: none;
  transition: all 0.3s var(--ease-premium);
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, #B8860B, #d4a017);
  color: white;
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(184,134,11,0.3);
}
.pagination .page-numbers:hover:not(.current) {
  border-color: var(--gold-border);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== OVERRIDE THEMIFY ULTRA DEFAULTS ===== */
#pagewrap, #body, .pagewidth, #headerwrap, #footerwrap,
#content, .loops-wrapper, .post, .type-post {
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Hide Themify Ultra default elements that conflict */
#headerwrap, #header, .sidemenu, #footerwrap,
.post-nav, .post-pagination,
#themify_builder_content-holder { display: none !important; }

/* Let our theme take over */
body.kolhator-theme #pagewrap { background: var(--cream); }

/* ===== FIXES: 2026-03-25 ===== */

/* Fix 1: Image divider text MUST be white */
.image-divider .image-divider-text blockquote,
.image-divider-text blockquote,
div.image-divider-text blockquote {
  color: #FFFBF5 !important;
  background: none !important;
  border: none !important;
  border-left: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-style: italic !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5) !important;
}
.image-divider-text blockquote::before,
.image-divider-text blockquote::after {
  display: none !important;
}

/* Fix 2: Remove giant quotation mark icons from ALL blockquotes in article content */
.entry-content blockquote::before,
.entry-content blockquote::after,
.article-body blockquote::before,
.article-body blockquote::after,
.main-content blockquote::before,
.main-content blockquote::after {
  display: none !important;
}

/* Fix 3: Right sidebar — use min-width so it doesn't get squished */
.right-sidebar {
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
  word-wrap: break-word;
}

/* Grid overflow prevention */
.main-content {
  min-width: 0;
}
.right-sidebar {
  min-width: 0;
  overflow-wrap: break-word;
}

/* Reduce sidebar width on smaller desktop screens */
@media (max-width: 1400px) {
  :root {
    --sidebar-width: 280px;
  }
}

@media (max-width: 1280px) {
  :root {
    --sidebar-width: 240px;
  }
  .right-sidebar {
    padding: 2rem 1rem;
  }
  .sidebar-widget h4,
  .right-sidebar .widget h4,
  .right-sidebar .widget .widgettitle {
    font-size: 0.9rem;
  }
}

/* When viewport is too narrow for sidebar, stack it below content */
@media (max-width: 1200px) {
  .page-wrapper {
    grid-template-columns: 1fr !important;
  }
  .right-sidebar {
    max-width: 100%;
    padding: 2rem;
    border-left: none;
    border-top: 1px solid var(--border-light);
  }
}

/* Sidebar stays visible at all zoom levels */

/* Clean blockquote defaults */
blockquote {
  border-left: none;
  padding-left: 0;
  font-style: normal;
  margin: 0;
}

/* Fix: Ensure full-bleed elements span full width in article */
/* Full-bleed constrained to content width — no breakout anywhere */
.full-bleed,
.image-divider,
.main-content > .full-bleed,
.main-content > .image-divider,
.kht-content-card .full-bleed,
.kht-content-card .image-divider,
.kht-card-body .full-bleed,
.kht-card-body .image-divider {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ── Table of Contents (TOC plugin) ── */
#toc_container {
  background-color: rgba(255, 248, 230, 0.5);
  border: 1px solid #c8a84e;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}
#toc_container .toc_title {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #8B6914;
  text-align: center;
  margin-bottom: 0.8rem;
}
#toc_container ul.toc_list,
#toc_container ul.toc_list li,
#toc_container .no_bullets ul,
#toc_container .no_bullets li,
.no_bullets ul.toc_list,
.no_bullets ul.toc_list li {
  list-style: none !important;
  list-style-type: none !important;
  background-image: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
#toc_container ul.toc_list {
  margin: 0;
}
#toc_container ul.toc_list li {
  padding: 0.35rem 0 0.35rem 1.5rem !important;
  position: relative !important;
  line-height: 1.5;
}
#toc_container ul.toc_list li a {
  color: #8B6914;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
#toc_container ul.toc_list li a:hover {
  color: #c8a84e;
  text-decoration: underline;
}

/* ── Scripture parallel tables (Hebrew/English) ── */
table.kht-scripture-table {
  border-collapse: collapse;
  margin: 1rem 0;
  background: rgba(255, 248, 230, 0.4);
  border: 1px solid rgba(200, 168, 78, 0.3);
  border-radius: 8px;
  overflow: hidden;
}
table.kht-scripture-table td {
  padding: 0.8rem 1rem;
  vertical-align: top;
  line-height: 1.7;
  border-bottom: 1px solid rgba(200, 168, 78, 0.15);
}
table.kht-scripture-table td:first-child {
  font-family: 'David Libre', serif;
  direction: rtl;
  text-align: right;
  color: #8B6914;
  border-right: 2px solid rgba(200, 168, 78, 0.3);
  width: 48%;
}
table.kht-scripture-table tr:last-child td {
  border-bottom: none;
}

/* Article hero title — delayed black border (fades in after draw animation completes) */
@keyframes titleBorderIn {
  from { stroke: transparent; stroke-width: 0; }
  to   { stroke: #000;        stroke-width: 2px; }
}
body.single .hero-title-draw .english-fill-text {
  paint-order: stroke;
  animation:
    fillIn 1s ease-in 2s forwards,
    titleBorderIn 0.8s ease-out 5s forwards;
}
