/* ===== Variables — site color palette ===== */
:root {
    --primary: #D99A4E;          /* warm gold */
    --primary-dark: #C4883E;
    --accent: #D99A4E;           /* gold accent (same as primary) */
    --accent-dark: #C4883E;
    --warm-tan: #D9C0A3;         /* beige/tan */
    --war-red: #BD1C20;          /* deep red */
    --text-dark: #0D0D0D;        /* near-black */
    --text-secondary: #0D0D0D;   /* near-black for headings */
    --text-body: #333333;        /* dark gray for body text */
    --text-light: #777777;
    --link-hover: #D99A4E;
    --bg-white: #FFFFFF;
    --bg-light: #F2F2F2;         /* light gray background */
    --border: #D9C0A3;           /* tan border */
    --card-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    --card-radius: 20px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-slab: 'Roboto Slab', serif;
    --font-title: 'Montserrat', sans-serif;
    --max-width: 1140px;
    --col-gap: 30px;

    /* Category colors */
    --cat-war-update: #BD1C20;   /* deep red */
    --cat-blog: #2A7AB5;         /* steel blue */
    --cat-fundraiser: #D99A4E;   /* warm gold */
    --cat-news: #3A8F5C;         /* forest green */
}

/* ===== ADA: Skip to content ===== */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ===== Screen-reader only ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== ADA: Focus styles ===== */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    position: relative;
    background: var(--bg-white);
    background-image: url('/assets/images/hero-bg.webp');
    background-size: cover;
    background-position: center calc(50% + 150px);
    background-repeat: no-repeat;
    min-height: 220px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
}

.hero-bruria-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    padding: 40px 260px 40px 260px;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 70px;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: 1px;
}

.hero-tagline {
    font-family: var(--font-slab);
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.hero-war-status {
    color: var(--text-secondary);
    font-weight: 600;
}

.hero-day-inline {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--war-red);
}

/* Hero Nav - hidden (nav lives in left sidebar instead) */
.hero-nav {
    display: none;
}

/* Hebrew BH - fixed top-right corner, white, every page */
.hero-hebrew {
    position: absolute;
    top: 8px;
    right: 12px;
    font-family: 'Roboto Slab', serif;
    font-size: 10px;
    font-weight: 600;
    color: #FFFFFF;
    z-index: 10;
    line-height: 1;
    text-shadow: 0 0 3px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.mobile-menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text-dark); border-radius: 2px; transition: 0.3s;
}

/* ============================================
   3-COLUMN GRID LAYOUT  —  25% / 50% / 25%
   ============================================ */
.site-main {
    padding: 30px 0;
}

.three-col-grid {
    display: grid;
    grid-template-columns: 25% 50% 25%;
    gap: 0;
    align-items: start;
}

/* Add internal padding to simulate gap (like Elementor padding) */
.left-sidebar  { padding-right: 15px; }
.center-column { padding: 0 15px; }
.right-sidebar { padding-left: 15px; }

/* ============================================
   LEFT SIDEBAR  —  matching WP Elementor
   ============================================ */
.left-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

/* Card container wrapping left sidebar content */
.left-sidebar-card {
    background: var(--bg-white);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Hebrew & English date in left sidebar */
.left-dates {
    text-align: center;
}

.left-date-hebrew {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.left-date-english {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-body);
}

.left-nav-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.left-nav-btn {
    display: block;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    padding: 14px 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    background: transparent;
}

.left-nav-btn:hover {
    background: var(--text-secondary);
    color: white;
    border-color: var(--text-secondary);
}

.left-nav-btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.left-nav-btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: white;
}

.left-social {
    text-align: center;
}

.social-label {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
    display: block;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.social-icons a {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    transition: color 0.2s;
}

.social-icons a:hover { color: var(--primary); }

/* ============================================
   CENTER COLUMN
   ============================================ */
.center-column {
    min-width: 0;
}

/* Filter Bar — tabs + search in one row */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 22px;
    border: none;
    border-radius: 20px;
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--card-shadow);
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

.filter-btn:hover { color: var(--primary); }
.filter-btn.active { background: var(--primary); color: white; }

/* Color-coded active filter buttons */
.filter-btn[data-filter="all"].active { background: var(--text-secondary); }
.filter-btn[data-filter="war-update"].active { background: var(--cat-war-update); }
.filter-btn[data-filter="blog"].active { background: var(--cat-blog); }
.filter-btn[data-filter="fundraiser"].active { background: var(--cat-fundraiser); }
.filter-btn[data-filter="news"].active { background: var(--cat-news); }

/* Search input inside the filter bar */
.filter-search {
    position: relative;
    margin-left: auto;
}

.filter-search input {
    font-family: var(--font-heading);
    font-size: 14px;
    padding: 12px 40px 12px 18px;
    border: none;
    border-radius: 20px;
    background: var(--bg-white);
    color: var(--text-body);
    box-shadow: var(--card-shadow);
    outline: none;
    width: 180px;
    transition: width 0.3s, box-shadow 0.2s;
}

.filter-search input:focus {
    width: 220px;
    box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.15);
}

.filter-search input::placeholder {
    color: var(--text-light);
}

.filter-search .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

/* Post Cards — VERTICAL: title, meta, featured image, excerpt */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    background: var(--bg-white);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
}

.post-card-image {
    width: 100%;
    overflow: hidden;
    margin: 12px 0 16px;
    border-radius: 12px;
}

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

.post-card-content {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.post-card-body {
    flex: 1;
}

.post-category-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cat-war-update);
    display: inline;
    margin-right: 8px;
}

/* Color-coded category labels on cards */
.post-category-label[data-cat="war-update"] { color: var(--cat-war-update); }
.post-category-label[data-cat="blog"] { color: var(--cat-blog); }
.post-category-label[data-cat="fundraiser"] { color: var(--cat-fundraiser); }
.post-category-label[data-cat="news"] { color: var(--cat-news); }

.post-title {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.post-card-meta {
    margin-bottom: 10px;
}

.post-date {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.post-date-hebrew {
    color: var(--text-light);
    font-style: italic;
}

.post-excerpt {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.post-excerpt p { margin-bottom: 6px; }
.post-excerpt strong { color: var(--text-secondary); }

/* Expanded content: section headings */
.post-section-heading {
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 16px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

/* Expanded content: stats block */
.post-stats-block {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 8px 0;
}

.post-stat-line {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Expanded content: bullet lists */
.post-bullet-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.post-bullet-list li {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.6;
    padding: 3px 0 3px 16px;
    position: relative;
}

.post-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

/* Expanded content: dividers (from ** or -- markers) */
.post-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* Expanded content: sponsorship / support blocks */
.post-sponsor-block {
    background: #FAFAFA;
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin: 16px 0;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

.post-sponsor-block a {
    color: var(--primary);
    text-decoration: underline;
}

.post-sponsor-block a:hover {
    color: var(--primary-dark);
}

/* Expanded content: Hebrew dedication / memorial text */
.post-dedication {
    text-align: right;
    direction: rtl;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    background: #F9F9FB;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    line-height: 1.7;
    border-right: 3px solid var(--text-secondary);
}

/* Expanded content: general paragraph styling */
.post-excerpt.expanded p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 8px;
}

.post-excerpt.expanded p:last-child {
    margin-bottom: 0;
}

.post-excerpt.expanded a {
    color: var(--primary);
    text-decoration: underline;
}

.post-excerpt.expanded a:hover {
    color: var(--primary-dark);
}

.post-card-footer {
    margin-top: 8px;
    text-align: right;
}

.read-more-btn {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    display: inline-block;
    text-decoration: none;
}

.read-more-btn:hover {
    color: var(--accent-dark);
}

.read-more-btn::after {
    content: ' \2192';
}

/* ============================================
   POST DETAIL PAGE — matching bruriaefune.com
   ============================================ */

/* Day name in left sidebar */
.left-date-day {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 2px;
}

/* Sponsor / dedication card in left sidebar */
.left-sponsor-card {
    background: var(--bg-light);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    text-align: center;
    font-style: italic;
}

/* Share card in left sidebar */
.left-share {
    display: flex;
    align-items: center;
    gap: 14px;
}

.share-label {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.share-icons {
    display: flex;
    gap: 12px;
}

.share-icons a {
    color: var(--text-secondary);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.share-icons a:hover { color: var(--primary); }

/* Post detail article container */
.post-detail {
    background: var(--bg-white);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
    overflow: hidden;
}

/* Breadcrumb navigation */
.post-breadcrumb {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}
.post-breadcrumb a {
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.2s;
}
.post-breadcrumb a:hover { color: var(--primary); }
.post-breadcrumb span[aria-hidden] {
    margin: 0 6px;
    color: var(--text-light);
}
.post-breadcrumb span[aria-current] {
    color: var(--text-light);
}

/* Big title — matching WP ~45px Poppins bold */
.post-detail-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 16px;
}

/* Meta line: "WAR UPDATES  י"ג בכסלו — DECEMBER 3, 2025" */
.post-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-detail-cat {
    color: var(--cat-war-update);
    font-weight: 700;
}

.post-detail-cat[data-cat="war-update"] { color: var(--cat-war-update); }
.post-detail-cat[data-cat="blog"] { color: var(--cat-blog); }
.post-detail-cat[data-cat="fundraiser"] { color: var(--cat-fundraiser); }
.post-detail-cat[data-cat="news"] { color: var(--cat-news); }

.post-detail-date {
    color: var(--text-light);
    font-weight: 400;
}

.post-detail-cat + .post-detail-date::before {
    content: '\00a0\00a0\00a0';
}

/* Featured image — inside the card, with rounded corners */
.post-detail-featured {
    margin: 0 0 28px 0;
    border-radius: 10px;
    overflow: hidden;
}

.post-detail-featured img {
    width: 100%;
    display: block;
}

/* Article content */
.post-detail-content {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.8;
}

.post-detail-content p {
    margin-bottom: 14px;
}

.post-detail-content p:last-child {
    margin-bottom: 0;
}

.post-detail-content a {
    color: var(--primary);
    text-decoration: underline;
}

.post-detail-content a:hover {
    color: var(--primary-dark);
}

/* "In Numbers" and other section headings — bold, larger */
.post-detail-content .post-section-heading {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 28px 0 14px;
    padding-bottom: 0;
    border-bottom: none;
}

.post-detail-content .post-stats-block {
    margin: 14px 0;
    padding: 16px 20px;
}

.post-detail-content .post-stat-line {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.post-detail-content .post-bullet-list li {
    font-size: 15px;
    line-height: 1.7;
    padding: 4px 0 4px 20px;
}

.post-detail-content .post-bullet-list li::before {
    top: 12px;
    width: 6px;
    height: 6px;
}

/* Media gallery — below the article */
.post-detail-media {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.media-item {
    margin-bottom: 16px;
}

.media-item img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.media-item video {
    width: 100%;
    border-radius: 10px;
    display: block;
    background: #000;
}

/* Previous / Next post navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.post-nav a {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--primary);
    max-width: 45%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s;
}

.post-nav a:hover { color: var(--primary-dark); }
.post-nav-next { text-align: right; margin-left: auto; }

/* ============================================
   RIGHT SIDEBAR
   ============================================ */
.right-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.search-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.sidebar-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Search */
.search-box { position: relative; }

.search-box input {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 40px 12px 22px;
    border: none;
    border-radius: 20px;
    width: 100%;
    background: var(--bg-white);
    outline: none;
    color: var(--text-secondary);
    transition: all 0.2s;
    box-shadow: var(--card-shadow);
}

.search-box input:focus { border-color: var(--primary); }

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

/* Search autofill suggestions */
.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
}

.search-suggestion-item {
    display: block;
    padding: 8px 14px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 1px solid var(--bg-light);
    transition: background 0.15s;
    text-decoration: none;
}

.search-suggestion-item:last-child { border-bottom: none; }
.search-suggestion-item:hover { background: var(--bg-light); }
.search-suggestion-item span {
    display: block;
    font-size: 10px;
    color: var(--text-light);
    margin-top: 1px;
}

/* More Posts in right sidebar — compact row layout */
.more-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.more-post-item {
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.more-post-item img {
    width: 55px;
    height: 55px;
    min-width: 55px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.more-post-item .no-thumb {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: var(--bg-light);
    border-radius: 8px;
}

.more-post-item-text {
    flex: 1;
    min-width: 0;
}

.more-post-item h4 {
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.more-post-item span {
    font-size: 10px;
    color: var(--text-light);
    display: block;
    margin-top: 3px;
}

/* ============================================
   "IN THIS UPDATE" — Table of Contents card
   ============================================ */
.toc-card {
    /* inherits .sidebar-card styles */
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.toc-link {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-body);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-link:hover {
    color: var(--primary);
    background: rgba(217, 154, 78, 0.08);
}

.toc-link.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(217, 154, 78, 0.12);
}

/* ============================================
   SUPPORT MODAL
   ============================================ */
.support-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.support-overlay.open { display: flex; }

.support-modal {
    background: white;
    border-radius: 30px;
    padding: 40px 50px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 2px 8px 23px 3px rgba(0,0,0,0.2);
    text-align: center;
}

.support-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.support-modal h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.support-modal > p {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 20px;
}

.support-btn-primary {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    padding: 12px 30px;
    border-radius: 6px;
    transition: background 0.2s;
}

.support-btn-primary:hover { background: var(--primary-dark); color: white; }

.support-divider {
    margin: 16px 0;
    font-size: 13px;
    color: var(--text-light);
}

.support-payment p {
    font-size: 13px;
    color: var(--text-body);
    margin-bottom: 6px;
}

.support-payment code {
    display: block;
    background: var(--bg-light);
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-white);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 10px;
}

.footer-nav a {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--primary); }

.footer-copyright {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   LOADING / INFINITE SCROLL
   ============================================ */
.loading-spinner { text-align: center; padding: 40px 0; }
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-spinner p { color: var(--text-light); font-size: 14px; }

/* Infinite scroll loading indicator */
.infinite-scroll-loader {
    text-align: center;
    padding: 30px 0;
    display: none;
}
.infinite-scroll-loader .spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 8px;
}
.infinite-scroll-loader p {
    color: var(--text-light);
    font-size: 13px;
}
.infinite-scroll-loader.visible { display: block; }

.no-results { text-align: center; padding: 60px 20px; }
.no-results h3 { font-family: var(--font-heading); color: var(--text-secondary); margin-bottom: 8px; }
.no-results p { color: var(--text-light); margin-bottom: 16px; }
.back-to-posts {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.back-to-posts:hover { color: var(--primary-dark); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page {
    background: var(--bg-white);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
}

.about-title {
    font-family: var(--font-title);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-hero-image {
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
}

.about-hero-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 450px;
}

.about-body p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 20px;
}

.about-image-row {
    display: flex;
    gap: 16px;
    margin: 28px 0;
}

.about-image-row img {
    flex: 1;
    width: 50%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 300px;
    aspect-ratio: 4 / 3;
}

.left-nav-btn-active {
    background: var(--primary);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet landscape — tighten but keep 3-col */
@media (max-width: 1024px) {
    .three-col-grid {
        grid-template-columns: 22% 1fr 22%;
    }
    .hero-main-title { font-size: 55px; }
    .hero-content-wrap { padding: 30px 15%; }
    .left-nav-btn { font-size: 16px; padding: 12px 14px; }
}

/* ============================================
   SCROLL-TO-TOP BUTTON
   ============================================ */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 900;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 20px;
    line-height: 1;
}
.scroll-to-top.visible { display: flex; }
.scroll-to-top:active { transform: scale(0.9); }

/* Tablet portrait — collapse to single column */
@media (max-width: 768px) {
    .three-col-grid {
        grid-template-columns: 1fr;
    }

    /* Left sidebar: horizontal row of cards */
    .left-sidebar {
        position: static;
        padding-right: 0;
        display: flex;
        flex-direction: row;
        gap: 12px;
        row-gap: 16px;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .left-sidebar-card {
        padding: 16px;
        flex: 1 1 auto;
    }

    .left-nav-card {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 0;
    }

    .left-nav-btn { font-size: 14px; padding: 12px 16px; }
    .left-social { margin-top: 0; }

    .center-column { padding: 0; margin-top: 24px; }
    .right-sidebar { position: static; padding-left: 0; margin-top: 24px; }

    /* Hero */
    .hero-banner { min-height: 140px; background-position: center center; }
    .hero-bg { width: 140px; }
    .hero-content-wrap { padding: 24px 20px 24px 160px; }
    .hero-main-title { font-size: 32px; }
    .hero-tagline { font-size: 12px; }

    /* Filter bar: horizontal scroll (swipeable) */
    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;    /* Firefox */
        padding-bottom: 4px;
        margin-bottom: 24px;
    }
    .filter-bar::-webkit-scrollbar { display: none; }  /* Chrome/Safari */
    .filter-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    /* Search: move it visually above posts (handled via CSS order) */
    .search-card { order: -1; }

    /* Post cards */
    .post-card-content { padding: 18px; }
    .post-title { font-size: 22px; }
    .post-card-image img { max-height: 250px; }

    /* Search full width */
    .filter-search { width: 100%; margin-left: 0; }
    .filter-search input { width: 100%; }
    .filter-search input:focus { width: 100%; }
    .search-suggestions { max-width: calc(100vw - 40px); }

    /* Post detail */
    .post-detail { padding: 20px; }
    .post-detail-title { font-size: 28px; }
    .post-detail-meta { font-size: 12px; gap: 4px; }
    .post-detail-content { font-size: 15px; }
    .post-detail-content .post-section-heading { font-size: 18px; }

    /* Post detail left sidebar: horizontal share bar */
    .left-share {
        justify-content: center;
    }

    /* Post nav: prev/next */
    .post-nav a { max-width: 100%; font-size: 12px; }

    /* About */
    .about-page { padding: 24px; }
    .about-title { font-size: 28px; }
    .about-body p { font-size: 15px; }
    .about-image-row { flex-direction: column; }
    .about-image-row img { width: 100%; max-height: 250px; }

    /* More Posts: simpler on mobile */
    .more-posts-card { padding: 16px; }
    .more-post-item img,
    .more-post-item .no-thumb { width: 48px; height: 48px; min-width: 48px; }

    /* TOC card on post detail */
    .toc-card { padding: 16px; }
    .toc-link { font-size: 12px; padding: 6px 12px; }

    /* Support modal: full-width on mobile */
    .support-modal {
        border-radius: 20px;
        padding: 30px 24px;
        max-width: 95%;
    }
    .support-modal h2 { font-size: 20px; }
    .support-modal > p { font-size: 13px; }

    /* Footer */
    .footer-nav { gap: 6px 16px; }
    .footer-nav a { font-size: 12px; }
    .footer-copyright { font-size: 12px; }
}

/* Mobile — compact layout */
@media (max-width: 480px) {
    .hero-main-title { font-size: 24px; line-height: 1.2; }
    .hero-content-wrap { padding: 16px 16px 16px 110px; }
    .hero-bg { width: 100px; }

    /* Sidebar cards: full width stacked on small phones */
    .left-sidebar {
        flex-direction: column;
        gap: 12px;
    }
    .left-sidebar-card { padding: 14px; }
    .left-nav-card { flex-wrap: wrap; justify-content: center; }
    .left-nav-btn { font-size: 13px; padding: 10px 14px; border-radius: 8px; flex: 1 1 auto; text-align: center; }

    /* Filter tabs smaller */
    .filter-btn { font-size: 13px; padding: 10px 16px; }

    .post-card-content { padding: 16px; }
    .post-title { font-size: 18px; }
    .post-excerpt { font-size: 13px; }
    .post-card-image img { max-height: 200px; }

    .post-detail { padding: 16px; }
    .post-detail-title { font-size: 22px; }
    .post-detail-content { font-size: 14px; line-height: 1.7; }
    .post-detail-content .post-section-heading { font-size: 16px; margin: 20px 0 10px; }
    .post-detail-content .post-stat-line { font-size: 13px; }
    .post-detail-content .post-bullet-list li { font-size: 13px; padding: 3px 0 3px 16px; }
    .post-nav { flex-direction: column; }

    .about-page { padding: 16px; }
    .about-title { font-size: 22px; }
    .about-body p { font-size: 14px; }
    .about-hero-image img { max-height: 280px; }

    /* Scroll to top - smaller offset */
    .scroll-to-top { bottom: 16px; right: 16px; }
}

/* Ultra-small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-bg { width: 80px; }
    .hero-content-wrap { padding: 16px 12px 16px 90px; }
    .hero-main-title { font-size: 20px; }
    .left-nav-btn { font-size: 12px; padding: 10px 10px; }
}

/* ============================================
   DONATE PAGE
   ============================================ */
.donate-page {
    background: var(--bg-white);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 32px;
}

.donate-title {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.donate-subtitle {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Tax-Deductible Badge */
.donate-tax-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #3A8F5C;
    background: rgba(58, 143, 92, 0.08);
    border: 1px solid rgba(58, 143, 92, 0.2);
    border-radius: 20px;
    margin-bottom: 24px;
}

.donate-tax-badge svg {
    flex-shrink: 0;
    color: #3A8F5C;
}

/* Payment Type Toggle */
.donate-type-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--text-dark);
}

.donate-type-btn {
    flex: 1;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.donate-type-btn.active {
    background: var(--text-dark);
    color: #fff;
}

.donate-type-btn:hover:not(.active) {
    background: var(--bg-light);
}

/* Recurring Interval */
.donate-interval {
    margin-bottom: 20px;
}

.donate-interval-btns {
    display: flex;
    gap: 8px;
}

.interval-btn {
    flex: 1;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s;
}

.interval-btn.active {
    border-color: var(--text-dark);
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
    font-weight: 600;
}

.interval-btn:hover:not(.active) {
    border-color: var(--text-body);
}

/* Amount Buttons */
.donate-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.amount-btn {
    padding: 14px 8px;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.amount-btn:hover:not(.active) {
    border-color: var(--text-body);
    background: var(--bg-light);
}

.amount-btn.active {
    border-color: var(--text-dark);
    background: var(--text-dark);
    color: #fff;
}

/* Custom Amount */
.donate-custom-amount {
    margin-bottom: 24px;
}

.custom-amount-wrap {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-body);
    pointer-events: none;
}

.custom-amount-wrap input {
    width: 100%;
    padding: 12px 14px 12px 30px;
    font-size: 16px;
    font-family: var(--font-body);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.custom-amount-wrap input:focus {
    border-color: var(--text-body);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* Form Labels */
.donate-label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 6px;
}

.donate-label .required {
    color: var(--war-red);
}

/* Form Grid */
.donate-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.donate-form-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    margin-bottom: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: var(--font-body);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--text-body);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: var(--font-body);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.2s;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}

.form-group textarea:focus {
    border-color: var(--text-body);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* iField Wrappers */
.donate-card-section {
    margin-bottom: 8px;
}

.ifield-wrap {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0;
    margin-bottom: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-white);
    overflow: hidden;
}

.ifield-wrap iframe {
    width: 100%;
    height: 44px;
    border: none;
    display: block;
}

.ifield-wrap:focus-within {
    border-color: var(--text-body);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.ifield-wrap.ifield-valid {
    border-color: #3A8F5C;
}

.ifield-wrap.ifield-invalid {
    border-color: var(--war-red);
}

.ifield-error {
    display: block;
    font-size: 13px;
    color: var(--war-red);
    margin-bottom: 8px;
    min-height: 0;
}

.ifield-cvv {
    margin-bottom: 0;
}

/* Card Type Indicator */
.card-type-indicator {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Error Display */
.donate-error {
    background: #FFF0F0;
    border: 1px solid #FFCDD2;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--war-red);
    line-height: 1.5;
}

/* Submit Button */
.donate-submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.donate-submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 154, 78, 0.3);
}

.donate-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Secure Note */
.donate-secure-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.4;
}

.donate-secure-note svg {
    flex-shrink: 0;
    color: #3A8F5C;
}

/* Alternative Payment Methods */
.donate-alternatives {
    margin-top: 24px;
}

.donate-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.donate-divider::before,
.donate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.donate-divider span {
    padding: 0 16px;
}

.donate-alt-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.donate-alt-btn {
    display: inline-block;
    padding: 10px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
}

.donate-alt-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.donate-alt-info {
    font-size: 14px;
    color: var(--text-body);
}

.donate-alt-info code {
    font-size: 13px;
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
}

.donate-alt-note {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: center;
}

.donate-alt-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Support Modal: Donate Link */
.support-donate-link {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--bg-light);
}

.support-donate-link p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
    text-align: center;
}

.support-donate-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.support-donate-link a:hover {
    color: var(--primary-dark);
}

/* Sidebar Info Text */
.sidebar-info-text {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

.sidebar-info-link {
    color: var(--primary);
    font-weight: 600;
}

.sidebar-info-link:hover {
    color: var(--primary-dark);
}

/* Impact Card */
.donate-impact-card .impact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.donate-impact-card .impact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-light);
}

.donate-impact-card .impact-list li:last-child {
    border-bottom: none;
}

.impact-amount {
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    min-width: 52px;
}

.impact-desc {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.4;
}

/* ============================================
   THANK YOU PAGE
   ============================================ */
.thank-you-page {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.thank-you-card {
    background: var(--bg-white);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 48px 36px;
}

.thank-you-checkmark {
    margin-bottom: 20px;
}

.thank-you-title {
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.thank-you-message {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 24px;
}

.thank-you-details {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    text-align: left;
}

.thank-you-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.thank-you-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: var(--text-light);
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-word;
}

.thank-you-note {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 28px;
}

.thank-you-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.thank-you-btn {
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.thank-you-btn-primary {
    background: var(--primary);
    color: #fff;
}

.thank-you-btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.thank-you-btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1.5px solid var(--border);
}

.thank-you-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.thank-you-share p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.thank-you-share-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.thank-you-share-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-body);
    transition: all 0.2s;
}

.thank-you-share-links a:hover {
    background: var(--primary);
    color: #fff;
}

.thank-you-redirect {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 20px;
}

/* ===== Donate & Thank-You Responsive ===== */
@media (max-width: 768px) {
    .donate-page { padding: 24px 20px; }
    .donate-title { font-size: 24px; }
    .donate-subtitle { font-size: 14px; }
    .donate-amounts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .amount-btn { padding: 12px 6px; font-size: 14px; }
    .donate-form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .donate-secure-note { font-size: 11px; }
    .donate-submit-btn { font-size: 16px; padding: 14px 20px; }

    /* Impact card & sidebar text in right sidebar */
    .donate-impact-card .impact-list li { gap: 8px; padding: 8px 0; }
    .impact-amount { font-size: 13px; min-width: 45px; }
    .impact-desc { font-size: 12px; }
    .sidebar-info-text { font-size: 13px; }

    /* Thank You */
    .thank-you-page { margin: 24px auto; padding: 0 16px; }
    .thank-you-card { padding: 32px 24px; }
    .thank-you-title { font-size: 26px; }
    .thank-you-actions { flex-direction: column; }
    .thank-you-share-links a { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
    .donate-page { padding: 20px 16px; }
    .donate-title { font-size: 22px; }
    .donate-subtitle { font-size: 13px; }
    .donate-amounts { grid-template-columns: repeat(2, 1fr); }
    .donate-form-grid { grid-template-columns: 1fr; }
    .donate-form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .donate-type-btn { font-size: 13px; padding: 10px 12px; }
    .interval-btn { font-size: 12px; padding: 8px 10px; }
    .donate-tax-badge { font-size: 12px; padding: 5px 12px; }
    .donate-alt-btn { padding: 10px 20px; font-size: 13px; }

    /* Thank You */
    .thank-you-card { padding: 28px 16px; }
    .thank-you-title { font-size: 22px; }
    .thank-you-details { padding: 12px 16px; }
    .thank-you-btn { padding: 12px 20px; font-size: 13px; width: 100%; text-align: center; }
}

@media (max-width: 375px) {
    .donate-amounts { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .amount-btn { padding: 10px 4px; font-size: 13px; }
    .donate-form-grid-3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .form-group input, .form-group select, .form-group textarea { padding: 10px 12px; font-size: 14px; }
    .donate-type-toggle { border-radius: 8px; }
    .donate-type-btn { font-size: 12px; padding: 10px 8px; }
}

/* ============================================
   404 ERROR PAGE
   ============================================ */
.error-page {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.error-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.error-message {
    font-size: 16px;
    color: var(--text-body);
    margin-bottom: 30px;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.error-btn-primary {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.error-btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.error-btn-secondary {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}

.error-btn-secondary:hover {
    color: var(--primary-dark);
}

@media (max-width: 480px) {
    .error-page { padding: 40px 16px; }
    .error-code { font-size: 40px; }
    .error-heading { font-size: 18px; }
    .error-message { font-size: 14px; }
    .error-btn-primary { padding: 12px 28px; font-size: 14px; }
}
