/* Entire CSS copied exactly from the old file (no changes made) */
: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;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
    scroll-behavior: smooth;
}

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: flex-start;
    padding: 15px 0;
    gap: 20px;
}

.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: 20px;
    /* Reduced from 30px to save space */
    position: relative;
}

.nav-menu a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    color: var(--white);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    /* ADD THIS LINE BELOW */
    white-space: nowrap;
}

.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: visible;
}

.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;
}

/* About Section */
.about-section {
    display: flex;
    margin-bottom: 50px;
    gap: 40px;
}

.about-image {
    flex: 1.2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    flex: 1;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-content p {
    margin-bottom: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 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;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.content-sidebar-sticky::-webkit-scrollbar {
    display: none;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.section-title h2 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.view-all {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.view-all:hover {
    gap: 12px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 0, 32, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 1.8rem;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.video-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: var(--white);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail iframe {
    width: 100% !important;
    height: 100% !important;
}

.video-content {
    padding: 20px;
}

.video-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Dioceses Section */
.dioceses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.diocese-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: 30px 20px;
    border-top: 4px solid var(--primary);
    position: relative;
}

.diocese-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.diocese-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.05), rgba(128, 0, 32, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    pointer-events: none;
}

.diocese-card:hover::before {
    opacity: 1;
}

.diocese-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

.diocese-icon i {
    color: var(--white);
    font-size: 1.8rem;
}

.diocese-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.diocese-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Circulars Section */
.circulars-list {
    margin-bottom: 50px;
}

.circular-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.circular-item:hover {
    background-color: var(--light-gray);
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.circular-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.circular-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.circular-download {
    color: var(--primary);
    font-size: 1.3rem;
    transition: var(--transition);
}

.circular-download:hover {
    color: var(--primary-dark);
    transform: scale(1.2);
}

/* 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(3, 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) {
    .about-section {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        order: -1;
    }

    .main-content {
        flex-direction: column;
        gap: 30px;
    }

    .content-sidebar-sticky {
        position: relative;
        top: auto;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        background: #ffffff;
        position: absolute;
        top: 60px;
        /* Adjust based on your header height */
        left: 0;
        width: 100%;
        z-index: 999;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex !important;
        /* Show when clicked */
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
    }

    .nav-menu li a {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid #eee;
        color: #333 !important;
        /* Dark text for mobile white background */
    }

    /* Ensure the toggle button is actually visible and clickable */
    .mobile-menu-btn {
        display: block !important;
        cursor: pointer;
        padding: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

.hero {
    height: 280px;
    margin-bottom: 30px;
}

.section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.gallery-grid,
.video-grid,
.dioceses-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}



@media (max-width: 576px) {
    .logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo img {
        margin-right: 0;
        margin-bottom: 8px;
        height: 60px;
        /* Restored original height or match about.css */
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .nav-menu {
        width: 100%;
    }

    .hero {
        height: 250px;
        margin-bottom: 30px;
    }

    .about-content {
        padding: 15px;
    }

    .about-content h2 {
        font-size: 1.6rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .gallery-grid,
    .video-grid,
    .dioceses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .circular-item {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .circular-download {
        margin-top: 12px;
    }

    .sidebar-widget {
        padding: 20px;
        margin-bottom: 20px;
    }

    .main-content {
        margin-bottom: 30px;
    }

    footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
}


/* Hero Section - Mobile Responsive */
.hero {
    width: 100%;
    overflow: hidden;
    display: block;
}

.hero-wrapper {
    width: 100%;
    display: block;
    overflow: hidden;
}

.hero-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

/* Mobile devices */
@media (max-width: 768px) {
    .hero-wrapper img {
        max-height: 250px;
        height: auto;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-wrapper img {
        max-height: 200px;
        height: auto;
    }
}

/* Tablets and larger */
@media (min-width: 1024px) {
    .hero-wrapper img {
        max-height: 500px;
    }
}