:root {
        --royal-burgundy: #8b0000;
        --deep-gold: #c5a059;
        --parchment: #f4f1ea;
    }

    * { box-sizing: border-box; }

    .custom-history-page {
        background-color: var(--parchment);
        min-height: 80vh;
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }

    .hero-section {
        position: relative;
        width: 100%;
        height: min(78vh, 700px);
        min-height: 460px;
        background: url('https://gorgasliani.com/wp-content/uploads/2026/02/თამარ-მეფის-მიერ-ტრაპიზონის-იმპერიის-დაარსება.jpg') center 35% / cover no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(80,0,0,0.75) 60%, rgba(139,0,0,0.92) 100%);
    }

    .hero-content {
        position: relative;
        z-index: 2;
        color: white;
        padding: 0 20px;
        max-width: 800px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3.8rem);
        font-weight: 900;
        line-height: 1.15;
        margin-bottom: 20px;
        text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    }

    .hero-content p {
        font-size: clamp(1rem, 2vw, 1.2rem);
        color: rgba(255,255,255,0.9);
        line-height: 1.6;
        margin-bottom: 35px;
        white-space: pre-line;
    }

    .hero-scroll {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        color: var(--deep-gold);
        font-size: 0.85rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        cursor: pointer;
        animation: bounce 2s infinite;
    }

    .hero-scroll::after { content: '↓'; font-size: 1.4rem; }

    @keyframes bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(8px); }
    }

    .article-container {
        max-width: 900px;
        margin: 60px auto;
        background: #fff;
        padding: 60px;
        border-top: 5px solid var(--royal-burgundy);
        box-shadow: 0 10px 40px rgba(0,0,0,0.07);
    }

    @media (max-width: 768px) {
        .article-container { padding: 25px; margin: 30px 15px; }
        .hero-section { height: 70vh; }
    }

    .article-container::before {
        content: "";
        display: block;
        width: 80px;
        height: 2px;
        background: var(--deep-gold);
        margin: 0 auto 30px;
    }

    .article-header {
        text-align: center;
        margin-bottom: 40px;
        border-bottom: 1px solid #eee;
        padding-bottom: 25px;
    }

    .article-header::after {
        content: "✦";
        display: block;
        margin: 15px auto 0;
        color: var(--deep-gold);
        font-size: 18px;
    }

    .article-header h2 {
        color: var(--royal-burgundy);
        font-size: clamp(1.6rem, 3vw, 2.4rem);
        margin-bottom: 8px;
        line-height: 1.2;
        border: none !important;
        padding: 0 !important;
    }

    .article-header h2::after { display: none !important; }

    .article-author {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
        font-size: 0.9rem;
        color: #777;
    }

    .article-author::before,
    .article-author::after {
        content: '';
        width: 40px;
        height: 1px;
        background: var(--deep-gold);
    }

    .article-author span {
        color: var(--royal-burgundy);
        font-weight: bold;
        font-style: italic;
    }

    .content-body {
        font-size: 1.12rem;
        line-height: 1.95;
        color: #333;
        text-align: justify;
    }

    .content-body p { margin-bottom: 1.3em; }

    .content-body p:first-of-type::first-letter {
        float: left;
        font-size: 3.5rem;
        line-height: 1;
        padding-right: 10px;
        color: var(--royal-burgundy);
        font-weight: bold;
    }

    .content-body h2 {
        color: var(--royal-burgundy);
        border-left: 4px solid var(--deep-gold);
        padding-left: 15px;
        margin-top: 45px;
        font-size: 1.35rem;
    }

    .content-body h2::after {
        content: "";
        display: block;
        width: 40px;
        height: 2px;
        background: var(--deep-gold);
        margin-top: 8px;
    }

    .highlight-box {
        background: #fff9f0;
        border: 1px solid var(--deep-gold);
        padding: 25px 30px;
        margin: 35px 0;
        border-radius: 6px;
        position: relative;
    }

    .highlight-box::before {
        content: "✥";
        position: absolute;
        top: -10px;
        left: 15px;
        background: #fff;
        padding: 0 5px;
        color: var(--deep-gold);
    }

    .bible-quote {
        background: #fff;
        border-left: 5px solid var(--deep-gold);
        padding: 20px 25px 20px 45px;
        margin: 25px 0;
        border-radius: 0 8px 8px 0;
        font-style: italic;
        color: #444;
        font-size: 1.05rem;
        line-height: 1.8;
        position: relative;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .bible-quote::before {
        content: '"';
        font-size: 4rem;
        color: var(--deep-gold);
        opacity: 0.25;
        position: absolute;
        top: -5px;
        left: 8px;
        font-family: Georgia, serif;
        line-height: 1;
    }

    .bible-quote cite {
        display: block;
        margin-top: 8px;
        font-size: 0.82rem;
        color: var(--royal-burgundy);
        font-style: normal;
        font-weight: bold;
        letter-spacing: 1px;
    }

    .closing-prayer {
        background: linear-gradient(135deg, #2a0000, #5a0000);
        color: white;
        padding: 35px 40px;
        border-radius: 8px;
        margin-top: 40px;
        text-align: center;
    }

    .closing-prayer .cross {
        font-size: 2rem;
        color: var(--deep-gold);
        margin-bottom: 15px;
        display: block;
    }

    .closing-prayer p {
        color: rgba(255,255,255,0.9);
        font-size: 1.05rem;
        line-height: 1.8;
        font-style: italic;
        margin-bottom: 15px !important;
    }

    .closing-prayer .resurrection {
        font-size: 1.6rem;
        font-weight: 900;
        color: white;
        letter-spacing: 2px;
        margin-bottom: 8px !important;
        font-style: normal;
    }

    .closing-prayer .meta {
        font-size: 0.82rem;
        color: var(--deep-gold);
        letter-spacing: 2px;
        font-style: normal;
    }

    /* ========== TIMELINE ========== */
    .timeline-section {
        max-width: 900px;
        margin: 0 auto 60px;
        padding: 50px 60px;
        background: white;
        box-shadow: 0 10px 40px rgba(0,0,0,0.07);
    }

    @media (max-width: 768px) {
        .timeline-section { padding: 30px 20px; margin: 0 15px 40px; }
    }

    .timeline-section h3 {
        text-align: center;
        color: var(--royal-burgundy);
        font-size: 1.6rem;
        margin-bottom: 50px;
        position: relative;
    }

    .timeline-section h3::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: var(--deep-gold);
        margin: 12px auto 0;
    }

    .timeline { position: relative; padding: 10px 0; }

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0; bottom: 0;
        width: 3px;
        background: linear-gradient(to bottom, var(--deep-gold), var(--royal-burgundy));
        transform: translateX(-50%);
    }

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

    .timeline-item {
        display: flex;
        gap: 40px;
        margin-bottom: 50px;
        position: relative;
        align-items: flex-start;
    }

    .timeline-item:nth-child(even) { flex-direction: row-reverse; }

    @media (max-width: 640px) {
        .timeline-item,
        .timeline-item:nth-child(even) {
            flex-direction: column;
            padding-left: 55px;
        }
    }

    .timeline-dot {
        position: absolute;
        left: 50%;
        top: 10px;
        transform: translateX(-50%);
        width: 20px; height: 20px;
        border-radius: 50%;
        background: var(--deep-gold);
        border: 3px solid white;
        box-shadow: 0 0 0 3px var(--royal-burgundy);
        z-index: 2;
        flex-shrink: 0;
    }

    @media (max-width: 640px) { .timeline-dot { left: 20px; transform: translateX(-50%); } }

    .timeline-content {
        width: calc(50% - 40px);
        background: var(--parchment);
        padding: 20px 25px;
        border-radius: 10px;
        border-left: 4px solid var(--deep-gold);
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .timeline-content:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    @media (max-width: 640px) { .timeline-content { width: 100%; } }

    .timeline-item:nth-child(even) .timeline-content {
        border-left: none;
        border-right: 4px solid var(--deep-gold);
    }

    @media (max-width: 640px) {
        .timeline-item:nth-child(even) .timeline-content {
            border-right: none;
            border-left: 4px solid var(--deep-gold);
        }
    }

    .timeline-year { font-size: 1.4rem; font-weight: 900; color: var(--royal-burgundy); margin-bottom: 6px; }
    .timeline-title { font-size: 1rem; font-weight: bold; color: #222; margin-bottom: 8px; }
    .timeline-desc { font-size: 0.92rem; color: #555; line-height: 1.7; margin: 0; }
    .timeline-spacer { width: calc(50% - 40px); }
    @media (max-width: 640px) { .timeline-spacer { display: none; } }

    /* ========== INFOGRAPHIC ========== */
    .infographic-section {
        max-width: 900px;
        margin: 0 auto 60px;
        padding: 50px 60px;
        background: white;
        box-shadow: 0 10px 40px rgba(0,0,0,0.07);
    }

    @media (max-width: 768px) {
        .infographic-section { padding: 30px 20px; margin: 0 15px 40px; }
    }

    .infographic-section h3 {
        text-align: center;
        color: var(--royal-burgundy);
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .infographic-section h3::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: var(--deep-gold);
        margin: 12px auto 0;
    }

    .infographic-subtitle { text-align: center; color: #777; font-size: 0.95rem; margin-bottom: 50px; }
    .infographic-flow { display: flex; flex-direction: column; gap: 0; position: relative; }
    .flow-step { display: flex; gap: 25px; align-items: flex-start; position: relative; }

    .flow-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 28px; top: 58px;
        width: 3px;
        height: calc(100% - 20px);
        background: linear-gradient(to bottom, var(--deep-gold), rgba(197,160,89,0.2));
    }

    .flow-icon {
        width: 58px; height: 58px;
        border-radius: 50%;
        background: var(--royal-burgundy);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        flex-shrink: 0;
        border: 3px solid var(--deep-gold);
        position: relative;
        z-index: 2;
    }

    .flow-body { flex: 1; padding-bottom: 35px; }
    .flow-label { font-size: 0.75rem; font-weight: bold; color: var(--deep-gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
    .flow-title { font-size: 1.15rem; font-weight: bold; color: var(--royal-burgundy); margin-bottom: 10px; }

    .flow-text {
        font-size: 0.95rem; color: #444; line-height: 1.75;
        background: var(--parchment);
        padding: 15px 20px;
        border-radius: 8px;
        border-left: 3px solid var(--deep-gold);
    }

    .flow-text strong { color: var(--royal-burgundy); }

    .flow-badge {
        display: inline-block;
        background: var(--royal-burgundy);
        color: white;
        font-size: 0.8rem;
        font-weight: bold;
        padding: 3px 12px;
        border-radius: 20px;
        margin-top: 10px;
    }

    .requirements-box {
        background: #fff0f0;
        border: 1px solid var(--royal-burgundy);
        border-radius: 10px;
        padding: 25px 30px;
        margin-top: 40px;
    }

    .requirements-box h4 { color: var(--royal-burgundy); margin: 0 0 15px; font-size: 1.05rem; }

    .requirements-box ul {
        list-style: none; padding: 0; margin: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    @media (max-width: 600px) { .requirements-box ul { grid-template-columns: 1fr; } }

    .requirements-box ul li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 0.95rem;
        color: #333;
        line-height: 1.5;
    }

    .requirements-box ul li::before { content: "▪"; color: var(--royal-burgundy); flex-shrink: 0; }

    .final-note {
        background: var(--royal-burgundy);
        color: white;
        padding: 22px 28px;
        border-radius: 10px;
        margin-top: 40px;
        font-size: 1rem;
        line-height: 1.75;
    }

    .final-note strong { color: var(--deep-gold); }

    /* ========== DIVIDER ========== */
    .article-divider {
        max-width: 900px;
        margin: 0 auto 60px;
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 0 60px;
    }

    .article-divider::before,
    .article-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--deep-gold);
    }

    .article-divider span { color: var(--deep-gold); font-size: 1.5rem; }

    @media (max-width: 768px) { .article-divider { padding: 0 15px; } }

    /* ========== ეკუმენიზმის სტატია ========== */
    .ecumenism-container {
        max-width: 900px;
        margin: 0 auto 60px;
        background: #fff;
        border-top: 5px solid #2a2a2a;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .ecumenism-hero {
        position: relative;
        height: 420px;
        overflow: hidden;
    }

    @media (max-width: 768px) { .ecumenism-hero { height: 260px; } }

    .ecumenism-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
        filter: grayscale(20%) contrast(1.05);
    }

    .ecumenism-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 40%, rgba(10,10,10,0.88) 100%);
        z-index: 1;
    }

    .ecumenism-hero-text {
        position: absolute;
        bottom: 0; left: 0; right: 0;
        z-index: 2;
        padding: 30px 50px;
    }

    @media (max-width: 768px) { .ecumenism-hero-text { padding: 20px; } }

    .ecumenism-tag {
        display: inline-block;
        background: #1a1a1a;
        color: var(--deep-gold);
        font-size: 0.68rem;
        font-weight: bold;
        padding: 4px 14px;
        border-radius: 3px;
        letter-spacing: 3px;
        text-transform: uppercase;
        margin-bottom: 12px;
        border: 1px solid var(--deep-gold);
    }

    .ecumenism-hero-text h2 {
        font-size: clamp(1.4rem, 3vw, 2.2rem);
        font-weight: 900;
        color: #fff;
        line-height: 1.2;
        margin: 0 0 10px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    }

    .ecumenism-hero-sub {
        font-size: 0.88rem;
        color: rgba(255,255,255,0.7);
        font-style: italic;
        letter-spacing: 0.5px;
    }

    .ecumenism-body { padding: 50px 60px 60px; }

    @media (max-width: 768px) { .ecumenism-body { padding: 30px 20px 40px; } }

    .ecumenism-body::before {
        content: "";
        display: block;
        width: 60px;
        height: 2px;
        background: #1a1a1a;
        margin: 0 0 35px;
    }

    .ecumenism-body .content-body p:first-of-type::first-letter { color: #1a1a1a; }
    .ecumenism-body .content-body h2 { color: #1a1a1a; border-left: 4px solid #1a1a1a; }
    .ecumenism-body .content-body h2::after { background: #888; }

    .dark-quote {
        background: #1a1a1a;
        color: rgba(255,255,255,0.9);
        padding: 25px 30px 25px 50px;
        margin: 30px 0;
        border-left: 5px solid var(--deep-gold);
        font-style: italic;
        font-size: 1.02rem;
        line-height: 1.85;
        position: relative;
        border-radius: 0 6px 6px 0;
    }

    .dark-quote::before {
        content: '"';
        font-size: 4rem;
        color: var(--deep-gold);
        opacity: 0.4;
        position: absolute;
        top: -5px; left: 8px;
        font-family: Georgia, serif;
        line-height: 1;
    }

    .dark-quote cite {
        display: block;
        margin-top: 10px;
        font-size: 0.8rem;
        color: var(--deep-gold);
        font-style: normal;
        font-weight: bold;
        letter-spacing: 1px;
    }

    .ecumenism-bible {
        background: #f5f5f0;
        border-left: 5px solid #888;
        padding: 18px 22px 18px 44px;
        margin: 22px 0;
        font-style: italic;
        color: #333;
        font-size: 0.98rem;
        line-height: 1.8;
        position: relative;
        border-radius: 0 6px 6px 0;
    }

    .ecumenism-bible::before {
        content: '"';
        font-size: 3.5rem;
        color: #888;
        opacity: 0.3;
        position: absolute;
        top: -5px; left: 8px;
        font-family: Georgia, serif;
        line-height: 1;
    }

    .ecumenism-bible cite {
        display: block;
        margin-top: 6px;
        font-size: 0.78rem;
        color: #666;
        font-style: normal;
        font-weight: bold;
        letter-spacing: 1px;
    }

    .footnotes {
        margin-top: 50px;
        padding-top: 25px;
        border-top: 1px solid #ddd;
    }

    .footnotes-title {
        font-size: 0.75rem;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: #888;
        margin-bottom: 15px;
        font-weight: bold;
    }

    .footnotes ol { padding-left: 20px; margin: 0; }

    .footnotes ol li {
        font-size: 0.85rem;
        color: #666;
        line-height: 1.7;
        margin-bottom: 8px;
    }

    .warning-box {
        background: #1a1a1a;
        border-left: 5px solid var(--deep-gold);
        padding: 22px 28px;
        margin: 35px 0;
        border-radius: 0 8px 8px 0;
        color: rgba(255,255,255,0.9);
        font-size: 1rem;
        line-height: 1.8;
        font-style: italic;
    }

    .warning-box strong { color: var(--deep-gold); font-style: normal; }

    /* ========== სტატიის ფოტო ========== */
    .article-photo {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
        margin-bottom: 35px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }

    /* ადგილი და თარიღი */
    .article-location {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--parchment);
        border: 1px solid var(--deep-gold);
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 0.82rem;
        color: var(--royal-burgundy);
        font-weight: bold;
        margin-bottom: 30px;
        letter-spacing: 0.5px;
    }


/* ქრისტიანობის გვერდზე გმირის სურათი პირდაპირ ჰედერის ქვეშ იწყება */
body #primary,
body .site-main,
body .site-content,
body main,
.custom-history-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
