* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', 'Gayathri', 'Noto Sans Syriac Western', serif;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc8 100%);
    color: #2c2416;
    line-height: 1.7;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, rgba(139, 69, 19, 0.02) 0px, transparent 1px, transparent 2px, rgba(139, 69, 19, 0.02) 3px),
        repeating-linear-gradient(90deg, rgba(139, 69, 19, 0.02) 0px, transparent 1px, transparent 2px, rgba(139, 69, 19, 0.02) 3px);
    pointer-events: none;
    z-index: 0;
}

header {
    background: linear-gradient(135deg, #5c1a1a 0%, #7d2222 100%);
    color: #f5e6d3;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #d4af37;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cross-symbol {
    font-size: 2.5rem;
    color: #d4af37;
    font-weight: bold;
}

.site-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #f5e6d3;
}

.syriac-title {
    font-family: 'EB Garamond', 'Gayathri', 'Noto Sans Syriac Western', serif;
    font-size: 1.1rem;
    color: #d4af37;
    direction: rtl;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #f5e6d3;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

nav a:hover {
    color: #d4af37;
    transform: translateY(-2px);
}

.breadcrumb {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
    font-size: 1rem;
    color: #7d2222;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: #5c1a1a;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: #d4af37;
}

.page-header {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.saint-header-banner {
    position: relative;
    /* Replaced gradient with leather texture and added an overlay for text readability */
    background: linear-gradient(rgba(92, 26, 26, 0.6), rgba(92, 26, 26, 0.6)),
        url('images/bright_maroon_leather.png') center/cover no-repeat;
    border: 4px solid #d4af37;
    border-radius: 8px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.saint-portrait {
    width: 250px;
    height: 300px;
    background: linear-gradient(135deg, #5c1a1a 0%, #7d2222 100%);
    border: 5px solid #d4af37;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #d4af37;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.saint-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.saint-image-section {
    text-align: center;
    margin: 2rem 0;
}

.saint-image-container img {
    max-width: 100%;
    height: auto;
    border: 4px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.saint-header-info h1 {
    font-size: 2.8rem;
    color: #f5e6d3;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.saint-subtitle {
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.saint-syriac-name {
    font-family: 'EB Garamond', 'Gayathri', 'Noto Sans Syriac Western', serif;
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 1rem;
    direction: rtl;
}

.saint-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.meta-item {
    background: rgba(212, 175, 55, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #d4af37;
}

.meta-label {
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 1.3rem;
    color: #f5e6d3;
    font-weight: 600;
}

.main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    position: relative;
    z-index: 1;
    align-items: start;
}

.content-area {
    background: rgba(255, 255, 255, 0.85);
    padding: 2.5rem;
    border-radius: 8px;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2rem;
    color: #5c1a1a;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title:first-child {
    margin-top: 0;
}

.section-icon {
    font-size: 1.8rem;
    color: #d4af37;
}

.story-content {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #2c2416;
    text-align: justify;
}

.story-content p {
    margin-bottom: 1.5rem;
}

.story-content p:first-of-type:first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin: 0.1rem 0.5rem 0 0;
    color: #5c1a1a;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(92, 26, 26, 0.05) 100%);
    border-left: 5px solid #d4af37;
    border-right: 5px solid #d4af37;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.highlight-box p {
    font-size: 1.3rem;
    font-style: italic;
    color: #5c1a1a;
    margin-bottom: 0;
    line-height: 1.8;
}

.antioch-box {
    background: linear-gradient(135deg, rgba(92, 26, 26, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 4px solid #d4af37;
    border-radius: 8px;
    padding: 2.5rem;
    margin: 2rem 0;
    position: relative;
}

.antioch-box::before {
    content: '⛪';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    opacity: 0.3;
}

.antioch-box h3 {
    font-size: 1.8rem;
    color: #5c1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quote-box {
    background: linear-gradient(135deg, rgba(92, 26, 26, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 3px solid #d4af37;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.quote-box h3 {
    font-size: 1.6rem;
    color: #5c1a1a;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.3rem;
    line-height: 1.9;
    color: #2c2416;
    font-style: italic;
}

.india-box {
    background: linear-gradient(135deg, rgba(92, 26, 26, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 4px solid #d4af37;
    border-radius: 8px;
    padding: 2.5rem;
    margin: 2rem 0;
    position: relative;
}

.india-box::before {
    content: '✠';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    opacity: 0.3;
}

.india-box h3 {
    font-size: 1.8rem;
    color: #5c1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.timeline-list {
    list-style: none;
    margin-top: 1rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #d4af37, #5c1a1a);
}

.timeline-list li {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2c2416;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-list li:before {
    content: '●';
    position: absolute;
    left: -2.2rem;
    color: #d4af37;
    font-size: 1.5rem;
    top: -0.1rem;
}

.timeline-year {
    font-weight: 700;
    color: #5c1a1a;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.3rem;
}

.quote-box {
    background: linear-gradient(135deg, rgba(92, 26, 26, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 3px solid #d4af37;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.seven-churches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.church-item {
    background: rgba(212, 175, 55, 0.1);
    padding: 1rem;
    border-radius: 6px;
    border: 2px solid #d4af37;
    text-align: center;
}

.church-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #5c1a1a;
    margin-bottom: 0.5rem;
}

.church-detail {
    font-size: 1rem;
    color: #2c2416;
}

.quote-box h3 {
    font-size: 1.6rem;
    color: #5c1a1a;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.3rem;
    line-height: 1.9;
    color: #2c2416;
    font-style: italic;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.widget-title {
    font-size: 1.5rem;
    color: #5c1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 0.5rem;
}

.widget-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c2416;
}

.quick-facts {
    list-style: none;
}

.quick-facts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.quick-facts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fact-label {
    font-weight: 700;
    color: #5c1a1a;
    margin-bottom: 0.3rem;
    display: block;
}

.related-saints {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-saint-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.related-saint-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.related-saint-icon {
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #5c1a1a 0%, #7d2222 100%);
    border: 2px solid #d4af37;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.related-saint-name {
    font-size: 1.1rem;
    color: #5c1a1a;
    font-weight: 600;
}

.photo-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.photo-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #5c1a1a 0%, #7d2222 100%);
    border: 2px solid #d4af37;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 2rem;
}

.ad-space {
    background: rgba(212, 175, 55, 0.05);
    padding: 1rem;
    text-align: center;
    border: 2px dashed #d4af37;
    border-radius: 4px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7d2222;
    font-size: 0.9rem;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid #d4af37;
    color: #ffffff;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
    font-family: 'Gayathri', sans-serif;
}

.language-switcher:hover {
    background: #d4af37;
    color: #5c1a1a;
    transform: scale(1.1);
}

.language-switcher.ml-size {
    font-size: 2.2rem;
    padding-bottom: 5px;
}

footer {
    background: linear-gradient(135deg, #5c1a1a 0%, #7d2222 100%);
    color: #f5e6d3;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid #d4af37;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #d4af37;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.7rem;
}

.footer-menu a {
    color: #f5e6d3;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #d4af37;
}

.contact-info p {
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-info a {
    color: #d4af37;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-credit {
    font-size: 1rem;
    color: #d4af37;
    font-style: italic;
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .saint-header-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .saint-portrait {
        margin: 0 auto;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        justify-content: center;
    }

    .story-content {
        text-align: justify;
    }

    .seven-churches {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {
    .main-content {
        display: block !important;
        padding: 1rem !important;
    }

    .content-area {
        padding: 1.5rem !important;
    }

    .sidebar {
        margin-top: 2rem;
    }
}