/* Import modern Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@300;400;500;600;700&family=Lora:ital,wght@1,400;1,500;1,600&family=Prata&display=swap');

/* Basic Resets & Vintage/Ecclesiastical Variables */
:root {
    --bg-color: #FAF5EC;       /* Rich warm book paper ivory */
    --text-color: #2E2A25;     /* Soft vintage charcoal/brown */
    --primary-color: #7B1A27;  /* Monumental Anglican burgundy */
    --secondary-color: #C19A4E;/* Liturgical warm gold */
    --bg-card: #F2EAD9;        /* Warm card parchment */
    --bg-input: #EBE1CC;
    --text-muted: #665E52;
    --border-color: #DFD5C0;
    
    --font-heading: 'Prata', 'Playfair Display', Georgia, serif;
    --font-body: 'Bricolage Grotesque', sans-serif;
    --font-italic: 'Lora', Georgia, serif;
    --font-ui: 'Inter', system-ui, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.18rem;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* Base Headings - Serbian Orthography Applied (Sentence Case Defaults) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1.2rem;
    letter-spacing: 0.2px;
}

h1 {
    font-size: 2.8rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* Elegant diamond decoration under h1 on inner pages */
.content-area h1::after {
    content: "❖";
    font-size: 0.8rem;
    color: var(--secondary-color);
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-color);
    padding: 0 0.8rem;
    z-index: 2;
}

h2 {
    font-size: 2rem;
    border-bottom: 4px double var(--secondary-color);
    padding-bottom: 0.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1.4rem;
}

h3 {
    font-size: 1.55rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    text-decoration: none;
}

p {
    margin-bottom: 1.8rem;
    text-align: justify;
}

strong {
    font-weight: 700;
    color: #111;
}

em {
    font-family: var(--font-italic);
    font-style: italic;
    color: var(--primary-color);
}

/* Header & Navigation Styling */
header {
    background-color: #FAF5EC;
    border-bottom: 4px double var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 2rem;
}

.logo-container a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-bottom: none;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-subtitle {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 600;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu li a {
    font-family: var(--font-body);
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 0.3rem 0.2rem;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: var(--transition);
}

.nav-menu li.active a {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    font-weight: 600;
}

.nav-menu li a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--border-color);
}

.lang-switch-item {
    display: flex;
    align-items: center;
}

/* Elegant Text-based Language selector */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 1.5rem;
    border-left: 1px solid var(--border-color);
    padding-left: 1.5rem;
}

.lang-btn {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.lang-btn::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 4px;
    right: 4px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.lang-btn.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Main Container */
main {
    max-width: 1200px;
    margin: 3.5rem auto;
    padding: 0 2rem;
}

/* Hero Section - Ornate double-lined frame */
.hero-section {
    background-color: #FFFDF9;
    border: 1px solid var(--border-color);
    outline: 4px double var(--secondary-color);
    outline-offset: -8px;
    border-radius: 4px;
    padding: 4.5rem 3.5rem;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(46, 42, 37, 0.03);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.hero-subtitle {
    font-family: var(--font-italic);
    font-size: 1.45rem;
    font-style: italic;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
    text-align: center;
}

.hero-meta {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1.8rem;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-meta i {
    color: var(--secondary-color);
}

/* Grid layout for features and cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
    margin-bottom: 3.5rem;
}

.info-card {
    background-color: #FFFDF9;
    border: 1px solid var(--border-color);
    outline: 3px double var(--border-color);
    outline-offset: -6px;
    border-radius: 4px;
    padding: 2.5rem 2.2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(46, 42, 37, 0.05);
    border-color: var(--secondary-color);
    outline-color: var(--secondary-color);
}

.info-card-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.4rem;
}

.info-card h3 {
    margin-top: 0;
    font-size: 1.45rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.info-card p {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    flex-grow: 1;
    text-align: left;
    line-height: 1.6;
}

.card-btn {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
}

.card-btn:hover {
    color: var(--secondary-color);
}

/* Two-column Layout for Articles (Content & Sidebar) */
.page-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 3rem;
}

.content-area {
    background-color: #FFFDF9;
    border: 1px solid var(--border-color);
    outline: 4px double var(--secondary-color);
    outline-offset: -8px;
    border-radius: 4px;
    padding: 3.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-box {
    background-color: #FCF9F3;
    border: 1px solid var(--border-color);
    outline: 3px double var(--border-color);
    outline-offset: -6px;
    border-radius: 4px;
    padding: 2rem 1.8rem;
}

.sidebar-box h3,
.sidebar-box h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem;
    margin-bottom: 1.4rem;
    margin-top: 0;
}

.sidebar-box ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-box ul li {
    font-size: 0.98rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.8rem;
}

.sidebar-box ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.sidebar-box ul li strong {
    color: var(--primary-color);
    display: inline;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.4rem;
}

/* Beautiful Drop-cap - Framed medieval print style */
.drop-cap::first-letter {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    float: left;
    margin-top: 0.1rem;
    margin-right: 0.8rem;
    line-height: 0.85;
    color: var(--primary-color);
    font-weight: 700;
    border: 1px solid var(--secondary-color);
    padding: 6px 12px;
    background-color: #FCF9F3;
    box-shadow: 3px 3px 0 var(--border-color);
}

/* Bookish centered blockquote */
blockquote {
    font-family: var(--font-italic);
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    border-left: none;
    background-color: #FCF9F3;
    padding: 2.2rem 3rem;
    margin: 2.8rem 0;
    font-style: italic;
    font-size: 1.3rem;
    text-align: center;
    position: relative;
}


blockquote p {
    margin-bottom: 0;
    text-align: center;
    color: var(--text-color);
}

blockquote cite {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    margin-top: 1rem;
    font-style: normal;
}

/* Lists styling */
ul, ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.6rem;
}

/* History Timeline styling */
.history-timeline {
    position: relative;
    margin: 3.5rem 0;
    padding-left: 2.2rem;
    border-left: 2px solid var(--border-color);
}

.timeline-event {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-event::before {
    content: "❖";
    font-size: 0.7rem;
    position: absolute;
    left: -2.85rem;
    top: 0.2rem;
    color: var(--primary-color);
    background-color: var(--bg-color);
    padding: 2px;
}

.timeline-year {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.timeline-event h3 {
    margin-top: 0;
    font-size: 1.45rem;
    margin-bottom: 0.8rem;
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-event p {
    font-size: 1.08rem;
    color: var(--text-muted);
}

/* Details and Accordions for Ecumenical dialogue */
.eco-bonds {
    margin-top: 2rem;
}

.eco-card {
    background-color: #FCF9F3;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.2rem;
}

.eco-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: none;
    padding-bottom: 0;
}

.eco-card p {
    font-size: 1.08rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Footer & Support Links Layout - Dark Ecclesiastical Burgundy/Chocolate */
footer {
    background-color: #241113; /* Very rich dark burgundy-black */
    color: #E6DFD3;
    border-top: 4px double var(--secondary-color);
    padding: 4.5rem 0 2rem 0;
    margin-top: 6rem;
    font-family: var(--font-ui);
    font-size: 0.92rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-section h4 {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.6rem;
    border-bottom: none;
}

.footer-section h4::after {
    content: "❖";
    color: var(--secondary-color);
    font-size: 0.7rem;
    position: absolute;
    bottom: -0.4rem;
    left: 0;
}

.footer-section p {
    color: #C0B7A8;
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: left;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section ul li a {
    color: #C0B7A8;
    text-decoration: none;
    border-bottom: none;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 6px;
}

/* Support footer bar (Distributed SEO Links) */
.support-footer-bar {
    border-top: 1px solid #3E2427;
    margin-top: 3.5rem;
    padding-top: 2.2rem;
    background-color: #1A0B0C;
    padding-bottom: 2.2rem;
}

.support-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.support-title {
    font-weight: 700;
    color: #FFFFFF;
    display: block;
    margin-bottom: 1.2rem;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid #3E2427;
    padding-bottom: 0.6rem;
}

.support-links-inline {
    line-height: 2.2;
    color: #8C7D6B;
    font-size: 0.85rem;
}

.support-links-inline a {
    color: #C0B7A8;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border-bottom: none;
}

.support-links-inline a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2.5rem auto 0 auto;
    padding: 1.8rem 2rem 0 2rem;
    border-top: 1px solid #3E2427;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
    color: #8A7E72;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.8rem;
}

.footer-bottom-links a {
    color: #8A7E72;
    border-bottom: none;
}

.footer-bottom-links a:hover {
    color: #FFFFFF;
}

/* Responsive Rules */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #FAF5EC;
        border-bottom: 4px double var(--secondary-color);
        padding: 2rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
        gap: 1.2rem;
        align-items: stretch;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .lang-switch {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
        border-top: 1px dashed var(--border-color);
        padding-top: 1.2rem;
        justify-content: center;
    }
    
    .hero-section {
        padding: 3rem 1.8rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .content-area {
        padding: 2.2rem 1.8rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
