:root {
    --primary: #800020;
    /* Maroon */
    --primary-dark: #5a0017;
    --primary-light: #a8324a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #e0e0e0;
    --dark-gray: #333333;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #fafafa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary);
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
    position: relative;
}

.nav-menu a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    color: var(--text);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a i {
    font-size: 0.85rem;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

.marquee-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
}

.marquee-content {
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    font-size: 0.95rem;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 360px;
    overflow: visible;
    margin-bottom: 50px;
    border-radius: 0;
}

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.content-primary {
    flex: 3;
}

.content-sidebar {
    flex: 1;
    position: relative;
}

.content-sidebar-sticky {
    position: sticky;
    top: 120px;
    width: 100%;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.content-sidebar-sticky::-webkit-scrollbar {
    display: none;
}

/* Content Card Styles */
.content-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.content-card p {
    text-align: justify;
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

.content-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.content-card h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

/* Bishop Gallery Styles */
.patriarch-section {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 60px;
    flex-wrap: wrap;
}

.patriarch-card {
    text-align: center;
    flex: 0 1 350px;
}

.patriarch-image {
    width: 320px;
    height: 380px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray);
    transition: var(--transition);
}

.patriarch-card:hover .patriarch-image {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.patriarch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patriarch-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.patriarch-position {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* Catholicos Card */
.catholicos-section {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 60px;
    flex-wrap: wrap;
}

.catholicos-card {
    text-align: center;
    flex: 0 1 280px;
}

.catholicos-image {
    width: 250px;
    height: 310px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gray);
    transition: var(--transition);
}

.catholicos-card:hover .catholicos-image {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.catholicos-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catholicos-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.catholicos-position {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Metropolitans Grid */
.metropolitans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.bishop-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.bishop-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.bishop-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gray);
    overflow: hidden;
}

.bishop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bishop-info {
    padding: 20px;
}

.bishop-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.bishop-role {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* Sidebar */
.sidebar-widget {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-hover);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
}

.sidebar-links li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray);
}

.sidebar-links li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
}

.sidebar-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.sidebar-links i {
    margin-right: 12px;
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.sidebar-news li {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gray);
}

.sidebar-news li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-news h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

.sidebar-news-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Submenu Styles */
.sidebar-links .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    padding: 0;
}

.sidebar-links .submenu-toggle i:last-child {
    font-size: 0.75rem;
    transition: var(--transition);
}

.sidebar-links .submenu-toggle.active i:last-child {
    transform: rotate(180deg);
}

.sidebar-links .submenu {
    display: none;
    list-style: none;
    margin-top: 10px;
    margin-left: 20px;
    margin-bottom: 0;
    border-left: 2px solid var(--primary);
    padding-left: 15px;
}

.sidebar-links .submenu.active {
    display: block;
}

.sidebar-links .submenu li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: none;
}

.sidebar-links .submenu li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-links .submenu li a {
    font-size: 0.9rem;
    color: var(--text-light);
}

.sidebar-links .submenu li a:hover {
    color: var(--primary);
    font-weight: 500;
}


/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4a0012 100%);
    color: var(--white);
    padding: 60px 0 25px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links i {
    margin-right: 10px;
    width: 14px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-info i {
    margin-right: 12px;
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

.contact-info span {
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    background-color: var(--primary-light);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
        gap: 30px;
    }

    .content-sidebar-sticky {
        position: relative;
        top: auto;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .patriarch-section {
        flex-direction: column;
        gap: 30px;
    }

    .catholicos-section {
        flex-direction: column;
        gap: 30px;
    }

    .metropolitans-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 90px);
        background-color: var(--white);
        flex-direction: column;
        padding: 25px;
        transition: var(--transition);
        box-shadow: var(--shadow-hover);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0 0 18px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: 280px;
        margin-bottom: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .patriarch-image {
        width: 280px;
        height: 340px;
    }

    .catholicos-image {
        width: 220px;
        height: 280px;
    }

    .metropolitans-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .nav-menu {
        width: 100%;
    }

    .hero {
        height: 250px;
        margin-bottom: 30px;
    }

    .content-card {
        padding: 15px;
    }

    .sidebar-widget {
        padding: 20px;
        margin-bottom: 20px;
    }

    .main-content {
        margin-bottom: 30px;
    }

    footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .patriarch-image {
        width: 240px;
        height: 300px;
    }

    .catholicos-image {
        width: 200px;
        height: 260px;
    }

    .metropolitans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .bishop-image {
        height: 180px;
        font-size: 1.5rem;
    }

    .bishop-info {
        padding: 15px;
    }

    .bishop-name {
        font-size: 0.9rem;
    }

    .bishop-role {
        font-size: 0.75rem;
    }
}