/* === Modular CSS Imports === */

/* Base Styles */

/* === Imported from ./base/variables.css === */
/* === CSS Variables === */
:root {
    /* Colors */
    --text: #1a1a1a;
    --text-muted: #676767;
    --bg: #ffffff;
    --widget-bg: #fafafa;
    --accent: #A04000;
    --accent-hover: #903A00;
    --accent-light: #F6E9E0;
    --border: #e0e0e0;

    --gold-1: #EED79F;
    --gold-2: #C9A245;
    --gold-3: #B38F3D;
    --gold-4: #E0C585;
    --aliceblue-1: #F4F8FB;
    --aliceblue-2: #E2E8F0;


    /* Layout */
    --max-width: 800px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;

    /* Typography Scale - All scale with --font-scale */
    --font-scale: 1;
    --font-xs: calc(0.8rem * var(--font-scale));
    --font-sm: calc(0.85rem * var(--font-scale));
    --font-base: calc(0.9rem * var(--font-scale));
    --font-md: calc(0.95rem * var(--font-scale));
    --font-lg: calc(1rem * var(--font-scale));
    --font-xl: calc(1.05rem * var(--font-scale));
    --font-2xl: calc(1.1rem * var(--font-scale));
    --font-3xl: calc(1.15rem * var(--font-scale));
    --font-4xl: calc(1.25rem * var(--font-scale));
    --font-5xl: calc(1.5rem * var(--font-scale));
    --font-6xl: calc(1.75rem * var(--font-scale));
    --font-7xl: calc(2rem * var(--font-scale));
    --font-8xl: calc(2.5rem * var(--font-scale));

    /* Neutral Colors (for hardcoded values) */
    --surface: #ffffff;
    --surface-alt: #fafafa;
    --code-bg: #f0f0f0;
    --code-bg-hover: #e8e8e8;
    --border-light: #ccc;
}


/* === Imported from ./base/reset.css === */
/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: color-mix(in srgb, var(--accent) 30%, transparent 70%);
    color: var(--text);
}

::-moz-selection {
    background: color-mix(in srgb, var(--accent) 30%, transparent 70%);
    color: var(--text);
}

html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    padding: 0;
    animation: fadeIn 0.5s ease-in;
    font-size: calc(16px * var(--font-scale));
}

/* High Contrast Mode overrides */
body.high-contrast {
  --bg: #000000;
  --text: #ffff00; /* Yellow on Black is standard for high contrast */
  --text-muted: #ffff99;
  --surface: #1a1a1a;
  --surface-alt: #2a2a2a;
  --widget-bg: #1a1a1a;
  --border: #ffff00;
  --border-light: #ffff99;
  --accent: #ffff00;
  --accent-hover: #ffff99;
  --accent-light: #333300;
  --code-bg: #1a1a1a;
  --code-bg-hover: #2a2a2a;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

body[dir="rtl"],
html[dir="rtl"] body {
    direction: rtl;
}

body[dir="rtl"] pre,
html[dir="rtl"] body pre {
    direction: ltr;
}

img {
    max-width: 100%;
}



/* === Imported from ./base/typography.css === */
/* === Typography === */
h1,
h2,
h3 {
    line-height: 1.3;
}

h1 {
    font-size: var(--font-6xl);
    font-weight: 600;
    color: var(--text);
}

h2 {
    font-size: var(--font-2xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-muted);
    position: relative;
    padding-left: 0.75rem;
}

/* h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent);
    border-radius: 2px;
} */

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
}



/* Layout */

/* === Imported from ./layout/main.css === */
/* === Main Content Layout === */
main {
    min-height: 58vh;
    overflow-x: hidden;
}

/* Container for content that should respect max-width */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Article and blog pages need container constraints */
main>article {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

/* Full-width sections */
.hero,
.recent-posts,
.blog-hero,
.blog-posts {
    width: 100%;
}

.recent-posts {
    padding-top: var(--space-lg);
    background: var(--bg);
}

@media (max-width: 768px) {
    .recent-posts {
        padding-top: var(--space-md);
    }
}

.recent-posts h2 {
    text-align: center;
    font-size: var(--font-7xl);
    margin-bottom: 0;
    color: var(--text);
}


/* === Imported from ./layout/intro.css === */
/* === Intro Section === */
.intro {
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: var(--widget-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.intro h1 {
    animation: slideIn 0.6s ease-out 0.1s both;
}

.intro p {
    color: var(--text-muted);
    margin: 0.75rem 0 var(--space-md);
    font-size: 1.1rem;
    animation: slideIn 0.6s ease-out 0.2s both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.highlight:hover::after {
    opacity: 0.4;
}

.links {
    display: flex;
    gap: var(--space-sm);
    animation: slideIn 0.6s ease-out 0.3s both;
}

.links a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--widget-bg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--accent-light) 0%,
        color-mix(in srgb, var(--accent-light) 10%, transparent 90%) 100%
    );
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.links a:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent);
}

.links a:hover::before {
    transform: translateY(0);
}



/* Components */

/* === Imported from ./components/a11y.css === */
/* === Accessibility Menu === */
.a11y-menu {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  font-family: inherit;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 12px;
  direction: ltr;
}

/* Toggle Button */
#a11y-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: white;
  color: var(--surface);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

#a11y-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

#a11y-toggle:active {
  transform: scale(0.95);
}

#a11y-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px #2262dd;
}

/* When panel is open, add border to toggle */
#a11y-toggle:not(:focus) {
  box-shadow: var(--shadow-lg);
}

#a11y-panel:not(.hidden)~#a11y-toggle {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px #2262dd;
}

#a11y-panel:not(.hidden)~#a11y-toggle:hover {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px #2262dd;
}

/* Panel */
#a11y-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#a11y-panel.hidden {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* Panel Buttons */
#a11y-panel button {
  padding: 12px 16px;
  background: var(--widget-bg);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: var(--font-lg);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

#a11y-panel button span {
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

#a11y-panel button:hover span {
  transform: scale(1.2);
}

#a11y-panel button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: color-mix(in srgb, #2262dd 10%, transparent 90%);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

#a11y-panel button:hover {
  background: var(--surface);
  border-color: #2262dd;
  color: #2262dd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#a11y-panel button:hover::before {
  width: 200%;
  height: 200%;
}

#a11y-panel button:active {
  transform: translateY(0);
  box-shadow: none;
}

#a11y-panel button:focus {
  outline: none;
  border-color: #2262dd;
  box-shadow: 0 0 0 3px color-mix(in srgb, #2262dd 20%, transparent 80%);
}

/* Reset button styling */
#a11y-panel button.reset-btn {
  margin-top: 4px;
  background: var(--surface);
  border-color: #dc2626;
  color: #dc2626;
}

#a11y-panel button.reset-btn::before {
  background: color-mix(in srgb, #dc2626 10%, transparent 90%);
}

#a11y-panel button.reset-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

#a11y-panel button.reset-btn:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px color-mix(in srgb, #dc2626 20%, transparent 80%);
}

/* Scroll-based transparency (all screen sizes) */
#a11y-toggle.scrolling-down {
  opacity: 0.3;
}

#a11y-toggle.scrolling-up,
#a11y-toggle.menu-open {
  opacity: 1 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .a11y-menu {
    bottom: 16px;
    left: 16px;
  }

  #a11y-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  #a11y-toggle>img {
    width: 48px;
    height: 48px;
  }

  #a11y-panel {
    min-width: 180px;
    padding: 12px;
  }

  #a11y-panel button {
    padding: 10px 14px;
    font-size: var(--font-md);
  }
}

body.high-contrast #a11y-panel button {
  border-width: 3px;
}


/* === Imported from ./components/navigation.css === */
/* === Navigation === */
nav {
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-inner {
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    gap: 1.5rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
    transition: padding 0.2s ease;
}

/* Sticky nav when scrolling */
nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin: 0;
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.hiding {
    animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        transform: translate3d(0, -100%, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

    to {
        transform: translate3d(0, -100%, 0);
        opacity: 0;
    }
}

.logo {
    color: var(--accent);
    font-size: var(--font-lg);
    font-weight: bold;
    position: relative;
    transition: .3s color ease-out;
}

.logo-svg circle {
    fill: var(--accent);
    transition: .3s fill ease-out;
}

.logo:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

.logo:hover .logo-svg circle {
    fill: var(--accent-hover)
}

/* .logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}



.logo:hover::after {
    width: 100%;
} */

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links>a {
    color: var(--text-muted);
    position: relative;
}

.nav-links>a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links>a:hover {
    color: var(--text);
    text-decoration: none;
}

.nav-links>a:hover::after {
    width: 100%;
}

.nav-links>*:not(.nav-bible-link) {
    margin: 0 0.8rem;
}

.nav-bible-link {
    background: transparent;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        margin-bottom: 0;
    }

    nav.sticky {
        margin-bottom: 0;
    }

    article nav {
        margin-bottom: var(--space-lg);
    }

    .nav-links>*:not(.nav-bible-link) {
        margin: 0;
    }

    .nav-bible-link {
        padding: 0.4rem;
    }
}

.nav-bible-link:hover {
    background: var(--gold-1);
    color: var(--text);
    /* color: white !important; */
}

.nav-bible-link::after {
    display: none !important;
}


/* === Imported from ./components/hero.css === */
/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, 
        var(--accent-light) 0%, 
        color-mix(in srgb, var(--accent-light) 50%, white 50%) 100%);
    padding: var(--space-lg) var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.08);
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.hero-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--surface);
    box-shadow: var(--shadow-md);
    background: var(--surface);
    animation: fadeInScale 0.6s ease-out;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-light), color-mix(in srgb, var(--accent) 20%, white 80%));
    color: var(--accent);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero h1 {
    font-size: var(--font-8xl);
    margin: 0;
    color: var(--text);
    animation: slideUp 0.6s ease-out 0.1s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: var(--font-3xl);
    line-height: 1.7;
    color: var(--text-muted);
    margin: var(--space-md) auto;
    max-width: 700px;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    animation: slideUp 0.6s ease-out 0.3s both;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border: 2px solid color-mix(in srgb, var(--accent) 20%, transparent 80%);
    border-radius: 12px;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.hero-link svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    text-decoration: none;
    background: color-mix(in srgb, var(--accent) 5%, var(--surface) 95%);
}

.hero-link:hover svg {
    transform: scale(1.1);
}

.hero-link.youtube:hover {
    border-color: #ff0000;
    color: #ff0000;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-lg) var(--space-md);
        margin-top: 0;
        margin-bottom: var(--space-md);
        border-radius: 0 0 16px 16px;
    }

    .hero h1 {
        font-size: var(--font-7xl);
    }

    .hero-description {
        font-size: var(--font-xl);
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .hero-links {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-link {
        justify-content: center;
    }
}



/* === Imported from ./components/blog.css === */
/* === Blog Page Styles === */
.blog-hero {
    background: linear-gradient(135deg, 
        var(--accent-light) 0%, 
        color-mix(in srgb, var(--accent-light) 50%, white 50%) 100%);
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-md);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.08);
}

.blog-hero h1 {
    text-align: center;
    font-size: var(--font-8xl);
    margin-bottom: var(--space-sm);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-description {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-2xl);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    animation: slideUp 0.6s ease-out 0.1s both;
}

.blog-posts {
    padding-bottom: var(--space-xl);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        margin-top: 0;
        margin-bottom: var(--space-md);
        border-radius: 0 0 16px 16px;
    }
    
    .blog-hero h1 {
        font-size: var(--font-7xl);
    }

    .blog-description {
        font-size: var(--font-xl);
    }
}



/* === Imported from ./components/post-list.css === */
/* === Post List (Blog Page - Simple List) === */
.post-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.post-list li {
    background: var(--widget-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.post-list li:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.post-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
}

.post-list a:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.post-list a:hover {
    text-decoration: none;
}

.post-list a:hover .post-title {
    color: var(--accent);
}

.post-title {
    transition: color 0.2s ease;
}

.post-date {
    color: var(--text-muted);
    font-size: var(--font-sm);
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease;
}

.post-list a:hover .post-date {
    color: var(--accent);
    opacity: 0.7;
}

/* === Post Grid (Homepage - Card Layout) === */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-sm);
    list-style: none;
    padding: 0;
}

.post-grid li {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.post-grid li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent 60%);
}

.post-grid a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--text);
}

.post-grid a:hover {
    text-decoration: none;
}

.post-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, 
        var(--accent-light), 
        color-mix(in srgb, var(--accent) 15%, white 85%));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-grid li:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-image-placeholder {
    color: var(--accent);
    opacity: 0.3;
}

.post-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-size: var(--font-4xl);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.post-grid a:hover .post-card-title {
    color: var(--accent);
}

.post-card-date {
    color: var(--text-muted);
    font-size: var(--font-base);
    margin-top: auto;
    padding-top: var(--space-sm);
}

.post-card-excerpt {
    color: var(--text-muted);
    font-size: var(--font-md);
    line-height: 1.6;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.see-all-container {
    text-align: center;
    margin-top: var(--space-lg);
}

.see-all {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-lg);
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: var(--surface);
    border: 2px solid var(--accent);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.see-all::after {
    content: '←';
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.see-all:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
}

.see-all:hover::after {
    transform: translateX(-4px);
}

/* Responsive */
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .post-list a {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .post-card-image {
        height: 180px;
    }
}



/* === Imported from ./components/related-posts.css === */
/* === Related Posts Section === */
.related-posts {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--border);
}

.related-posts-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.related-posts-header h2 {
    font-size: var(--font-6xl);
    margin-bottom: var(--space-xs);
    color: var(--text);
}

.related-posts-header p {
    color: var(--text-muted);
    font-size: var(--font-lg);
}

.related-posts-grid {
    margin-bottom: var(--space-md);
}

/* Related posts in article context - smaller cards */
.related-posts .post-card-image {
    height: 160px;
}

.related-posts .post-card-title {
    font-size: var(--font-2xl);
}

/* Responsive */
@media (max-width: 768px) {
    .related-posts-header h2 {
        font-size: var(--font-5xl);
    }
    
    .related-posts .post-card-image {
        height: 140px;
    }
}



/* === Imported from ./components/go-deeper.css === */
/* === Go Deeper CTA Section === */

.go-deeper-cta {
    background: var(--aliceblue-1);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--gold-4);
}

.go-deeper-cta h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text);
}

.go-deeper-cta .cta-grid {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.go-deeper-cta .cta-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.go-deeper-cta .cta-item p {
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.go-deeper-cta .cta-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.go-deeper-cta .cta-btn.primary {
    background: var(--gold-1);
    color: var(--text);
    border: 1px solid var(--gold-2);
    border-color: var(--gold-3);
    /* הברונזה הכהה */
}

.go-deeper-cta .cta-btn.primary:hover {
    background-color: var(--gold-4);
    /* זהב מעט כהה יותר בהובר */
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.go-deeper-cta .partner-links {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    align-items: center;
}

.go-deeper-cta .partner-links a {
    font-weight: 600;
    color: var(--gold-3);
    text-decoration: none;
    transition: all 0.2s ease;
}

.go-deeper-cta .partner-links a:hover {
    color: var(--gold-4);
}

.go-deeper-cta .partner-links span {
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .go-deeper-cta .cta-grid {
        flex-direction: column;
        align-items: center;
    }
}


/* === Imported from ./components/article.css === */
/* === Article & Blog Post === */
article {
    max-width: 100%;
}

@media (max-width: 768px) {
    article {
        margin-top: var(--space-lg);
    }
}

article header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border);
    position: relative;
}

article header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

article h1 {
    margin-bottom: var(--space-xs);
}

article .meta {
    color: var(--text-muted);
    font-size: var(--font-base);
}

article>img {
    margin-bottom: var(--space-md);
}

article p>img {
    margin-top: var(--space-sm);
    margin-bottom: calc(0 - var(--space-sm));
}

/* Prose styling */
.prose {
    line-height: 1.7;
}

.prose p {
    margin-bottom: var(--space-md);
}

.prose h2 {
    color: var(--text);
    font-size: var(--font-4xl);
    margin: var(--space-lg) 0 var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--border);
    position: relative;
}

.prose h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.prose h3 {
    color: var(--text);
    font-size: var(--font-2xl);
    margin: var(--space-md) 0 var(--space-sm);
    font-weight: 600;
}

.prose code {
    background: var(--code-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.prose code:hover {
    background: var(--code-bg-hover);
}

.prose pre {
    background: var(--code-bg);
    padding: var(--space-sm);
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: var(--space-md);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.prose pre:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.prose pre code {
    background: none;
    padding: 0;
}

.prose a {
    text-decoration: underline;
}

.prose ul,
.prose ol {
    margin-bottom: var(--space-md);
    padding-left: 1.5rem;
}

.prose blockquote {
    border-left: 3px solid var(--accent);
    padding-left: var(--space-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

html[dir="rtl"] .prose blockquote,
body[dir="rtl"] .prose blockquote {
    border-right: 3px solid var(--accent);
    padding-right: var(--space-sm);
    border-left: unset !important;
    padding-left: unset !important;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding: 0.75rem 1.5rem;
    color: var(--text);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.back-link::before {
    content: '→';
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

.back-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    text-decoration: none;
    background: color-mix(in srgb, var(--accent) 5%, var(--surface) 95%);
}

.back-link:hover::before {
    transform: translateX(4px);
}


/* === Imported from ./components/search.css === */
/* === Search === */
.search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.search-toggle:hover {
    color: var(--text);
}

.search-container {
    position: relative;
    max-width: 600px;
}

#search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--font-lg);
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent 90%);
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    max-height: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.search-results a {
    text-decoration: none;
}

.search-results.hidden {
    display: none;
}

.search-result-item {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: color-mix(in srgb, var(--accent) 5%, transparent 95%);
    /* border-right: 3px solid var(--accent); */
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.search-result-item:hover .search-result-title {
    color: var(--accent);
}

.search-result-excerpt {
    font-size: var(--font-base);
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.search-result-date {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

mark {
    background: color-mix(in srgb, var(--accent) 20%, transparent 80%);
    color: var(--accent);
    font-weight: 600;
    /* padding: 0.1rem 0.3rem; */
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .search-toggle {
        display: flex;
    }
    
    .search-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        background: var(--bg);
        box-shadow: var(--shadow-md);
        z-index: 1000;
        max-width: 100%;
        transform: translateY(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .search-container.active {
        transform: translateY(0);
    }
}



/* === Imported from ./components/footer.css === */
/* === Footer === */
footer {
    margin-top: var(--space-xl);
    padding: var(--space-xl) var(--space-md);
    border-top: 1px solid var(--border);
    background: var(--widget-bg);
    color: var(--text-muted);
    font-size: var(--font-sm);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.footer-section h3 {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-about p {
    color: var(--text-muted);
    font-size: var(--font-base);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-social a {
    color: var(--text-muted);
    font-size: var(--font-base);
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}



/* Utilities */

/* === Imported from ./utilities/spacing.css === */
/* === Spacing Utilities === */

/* Margin Bottom */
.mb-xs {
    margin-bottom: var(--space-xs);
}
.mb-sm {
    margin-bottom: var(--space-sm);
}
.mb-md {
    margin-bottom: var(--space-md);
}
.mb-lg {
    margin-bottom: var(--space-lg);
}
.mb-xl {
    margin-bottom: var(--space-xl);
}

/* Padding Bottom */
.pb-xs {
    padding-bottom: var(--space-xs);
}
.pb-sm {
    padding-bottom: var(--space-sm);
}
.pb-md {
    padding-bottom: var(--space-md);
}
.pb-lg {
    padding-bottom: var(--space-lg);
}
.pb-xl {
    padding-bottom: var(--space-xl);
}



/* === Imported from ./utilities/responsive.css === */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hidden-sm {
        display: none !important;
    }
}
