/* ===== ROOT VARIABLES ===== */
:root {
    --primary-burgundy: #8B1538;
    --secondary-gold: #D4AF37;
    --accent-gold: #FFD700;
    --dark-red: #5C0B1F;
    --white: #FFFFFF;
    --cream: #FFF8DC;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --transition: all 0.4s ease;
}

/* ===== RESET & GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 60vh;
    min-height: 450px;
    background-color: rgb(106, 71, 96); /* TEST - should show red if no image */
    background-image: url('../assets/churchmain.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(188, 113, 135, 0.75) 0%, rgba(92, 11, 31, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 40px;
    animation: fadeInUp 1s ease;
    max-width: 900px;
}

.church-logo {
    margin-bottom: 25px;
}

.logo-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
}

.church-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-gold);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
    line-height: 1.3;
}

.church-location {
    font-size: 1.4rem;
    color: var(--cream);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.church-tagline {
    font-size: 1.1rem;
    color: var(--cream);
    font-style: italic;
    opacity: 0.9;
    margin-top: 10px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(139, 21, 56, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(92, 11, 31, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

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

.nav-link {
    color: var(--cream);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(92, 11, 31, 0.98);
    list-style: none;
    padding: 15px 0;
    border-radius: 8px;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

/* Custom scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--secondary-gold);
    border-radius: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--cream);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    padding-left: 35px;
}
/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-burgundy);
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    display: block;
    width: 100%;
}
.section-title::after {
    content: '✟';
    display: block;
    text-align: center;
    color: var(--secondary-gold);
    font-size: 2rem;
    margin-top: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 60px;
    font-style: italic;
}

/* ===== HOME SECTION ===== */
.home-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
}

.welcome-content {
    text-align: center;
}

.welcome-content h2 {
    font-size: 2.8rem;
    color: var(--primary-burgundy);
    margin-bottom: 20px;
}

.lead {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 60px;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.info-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(139, 21, 56, 0.1);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-gold);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(139, 21, 56, 0.2);
}

.info-card i {
    font-size: 3.5rem;
    color: var(--primary-burgundy);
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.6rem;
    color: var(--primary-burgundy);
    margin-bottom: 15px;
}

.info-card p {
    font-size: 1.1rem;
    color: #666;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 25px;
    color: #555;
    text-align:center;
}

.about-highlights {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.highlight-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--cream);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-gold);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-burgundy);
    margin-top: 5px;
}

.highlight-item h4 {
    font-size: 1.3rem;
    color: var(--primary-burgundy);
    margin-bottom: 8px;
}

.highlight-item p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* ===== CHURCH HISTORY SECTION ===== */
.history-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.history-image img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.history-text p {
    font-size: 1.10rem;
    line-height: 1.9;
    margin-bottom: 25px;
    color: #555;
    text-align: justify;
}


    /* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .church-name {
        font-size: 2rem;
    }
    
    .church-location {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(92, 11, 31, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 30px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 15px 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: translateY(0);
        box-shadow: none;
        background: rgba(139, 21, 56, 0.95);
        margin-top: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
        padding: 0;
    }
    
    .dropdown-menu.mobile-active {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
        padding: 15px 0;
    }
    
    .dropdown-menu a {
        padding: 14px 35px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .dropdown-menu a:hover {
        padding-left: 45px;
    }
    
    .dropdown-menu li:last-child a {
        border-bottom: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    /* FIX 1: About Us Section - Stack vertically */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image img {
        height: 350px;
        width: 100%;
    }
    
    /* FIX 2: Church History - Stack vertically */
    .history-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .history-image {
        order: 1;
    }
    
    .history-text {
        order: 2;
    }
    
    .history-image img {
        height: 350px;
        width: 100%;
    }
    
    /* FIX 3: Vicar Section - Stack vertically */
    .vicar-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vicar-image-container {
        order: 1;
    }
    
    .vicar-info {
        order: 2;
        padding: 30px 20px;
    }
    
    .vicar-image {
        height: 400px;
        width: 100%;
    }
    
    .vicar-details {
        grid-template-columns: 1fr;
    }
    
    /* FIX 4: Office Bearers */
    .bearers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .bearer-image {
        height: 300px;
    }
    
    /* FIX 5: Spiritual Organizations - Stack and fix image size */
    .org-card {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 25px;
    }
    
    .org-card .org-image {
        order: 1;
        width: 100%;
    }
    
    .org-card .org-content {
        order: 2;
    }
    
    .org-image img {
        height: 250px;
        width: 100%;
        object-fit: cover;
    }
    
    /* FIX 6: Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-map {
        order: 2;
    }
    
    .contact-info {
        order: 1;
    }
    
    /* FIX 7: Gallery Categories */
    .gallery-categories {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .category-image {
        height: 250px;
    }
    
    /* FIX 8: Subgallery Grid */
    .subgallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .subgallery-item img {
        height: 250px;
        width: 100%;
        object-fit: cover;
    }
    
    .subgallery-container {
        margin: 20px auto;
        padding: 20px 15px;
    }
    
    .subgallery-close {
        width: 45px;
        height: 45px;
        font-size: 2rem;
        top: -10px;
        right: 5px;
    }
    
    .subgallery-title {
        font-size: 2rem;
        padding-right: 50px;
    }
    
    .section-title {
        font-size: 2.2rem;
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .church-name {
        font-size: 1.8rem;
    }
    
    .church-location {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 80px;
        height: 80px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    
    .home-cards {
        grid-template-columns: 1fr;
    }
    
    /* About section */
    .about-image img {
        height: 280px;
    }
    
    .about-text p {
        font-size: 1.05rem;
    }
    
    /* History section */
    .history-image img {
        height: 280px;
    }
    
    .history-text p {
        font-size: 1.05rem;
    }
    
    /* Vicar section */
    .vicar-image {
        height: 320px;
    }
    
    .vicar-name {
        font-size: 1.8rem;
    }
    
    /* Office Bearers */
    .bearers-grid {
        grid-template-columns: 1fr;
    }
    
    .bearer-image {
        height: 280px;
    }
    
    /* Organizations */
    .org-card {
        padding: 25px 15px;
    }
    
    .org-image img {
        height: 220px;
    }
    
    .org-content h3 {
        font-size: 1.6rem;
    }
    
    /* Gallery */
    .gallery-categories {
        grid-template-columns: 1fr;
    }
    
    .category-image {
        height: 220px;
    }
    
    .subgallery-grid {
        grid-template-columns: 1fr;
    }
    
    .subgallery-item img {
        height: 220px;
    }
    
    .subgallery-title {
        font-size: 1.6rem;
    }
}


@media (max-width: 600px) {
    .history-image img {
        height: 300px;
    }
    
    .history-text p {
        font-size: 1.05rem;
    }
}
/* ===== SPIRITUAL ORGANIZATIONS ===== */
.spiritual-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-gray) 100%);
}

.org-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--white);
    padding: 50px;
    margin-bottom: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 5px solid var(--secondary-gold);
}

.org-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.org-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.org-icon i {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.org-content h3 {
    font-size: 2rem;
    color: var(--primary-burgundy);
    margin-bottom: 20px;
}

.org-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.org-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.org-details span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #666;
    background: var(--cream);
    padding: 10px 20px;
    border-radius: 25px;
}

.org-details i {
    color: var(--primary-burgundy);
}

.org-image img {
   
    width: 100%;
    height: 350px;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: var(--cream);
    padding: 10px;

}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    background: var(--white);
}

.gallery-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.category-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    border: 3px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(139, 21, 56, 0.2);
    border-color: var(--secondary-gold);
}

.category-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.85), rgba(92, 11, 31, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay i {
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    transform: scale(0);
    transition: var(--transition);
}

.category-card:hover .category-overlay i {
    transform: scale(1);
}

.category-overlay h3 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-weight: 700;
}

.category-overlay p {
    font-size: 1rem;
    color: var(--cream);
}

/* Subgallery Modal */
.subgallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.subgallery-modal.active {
    display: block;
    opacity: 1;
}

.subgallery-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px 20px;
}

.subgallery-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.subgallery-close {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--accent-gold);
    cursor: pointer;
    background: rgba(139, 21, 56, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.subgallery-close:hover {
    background: var(--primary-burgundy);
    transform: rotate(90deg);
}

.subgallery-title {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.subgallery-subtitle {
    font-size: 1.2rem;
    color: var(--cream);
}

.subgallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.subgallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    background: var(--white);
}

.subgallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.subgallery-item:hover img {
    transform: scale(1.1);
}

.subgallery-caption {
    padding: 15px;
    background: var(--white);
    text-align: center;
}

.subgallery-caption h4 {
    font-size: 1.1rem;
    color: var(--primary-burgundy);
    margin-bottom: 5px;
}

.subgallery-caption p {
    font-size: 0.9rem;
    color: #666;
}

.subgallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    background: rgba(139, 21, 56, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.subgallery-item:hover .subgallery-item-overlay {
    opacity: 1;
}

.subgallery-item-overlay i {
    font-size: 2.5rem;
    color: var(--accent-gold);
}


/* Enhanced Mobile Responsive for Gallery */
@media (max-width: 968px) {
    .gallery-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .category-image {
        height: 220px;
    }
    
    .category-overlay h3 {
        font-size: 1.5rem;
    }
    
    .category-overlay i {
        font-size: 2.8rem;
    }
    
    .subgallery-container {
        margin: 20px auto;
        padding: 20px 15px;
    }
    
    .subgallery-header {
        margin-bottom: 30px;
    }
    
    .subgallery-close {
        width: 45px;
        height: 45px;
        font-size: 2rem;
        top: -10px;
        right: 5px;
    }
    
    .subgallery-title {
        font-size: 2rem;
        padding-right: 50px;
    }
    
    .subgallery-subtitle {
        font-size: 1rem;
    }
    
    .subgallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .gallery-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-image {
        height: 200px;
    }
    
    .category-overlay {
        opacity: 0.15;
    }
    
    .category-card:active .category-overlay {
        opacity: 1;
    }
    
    .category-overlay h3 {
        font-size: 1.3rem;
    }
    
    .category-overlay p {
        font-size: 0.9rem;
    }
    
    .subgallery-container {
        margin: 10px auto;
        padding: 15px 10px;
    }
    
    .subgallery-title {
        font-size: 1.6rem;
    }
    
    .subgallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .subgallery-item img {
        height: 220px;
    }
    
    .subgallery-caption h4 {
        font-size: 1rem;
    }
    
    .subgallery-caption p {
        font-size: 0.85rem;
    }
    
    /* Make images always show overlay hint on mobile */
    .subgallery-item-overlay {
        opacity: 0.2;
    }
    
    .subgallery-item:active .subgallery-item-overlay {
        opacity: 1;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .category-card,
    .subgallery-item {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
    }
    
    /* Show overlay slightly on mobile so users know it's clickable */
    .category-overlay {
        opacity: 0.2;
        background: linear-gradient(135deg, rgba(139, 21, 56, 0.7), rgba(92, 11, 31, 0.8));
    }
    
    .category-card:active .category-overlay {
        opacity: 1;
    }
    
    /* Larger touch targets */
    .subgallery-close {
        width: 50px;
        height: 50px;
        font-size: 2.2rem;
    }
}

/* Landscape mobile */
@media (max-width: 968px) and (orientation: landscape) {
    .subgallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .subgallery-item img {
        height: 180px;
    }
}

/* Very small phones */
@media (max-width: 375px) {
    .category-overlay h3 {
        font-size: 1.2rem;
    }
    
    .category-overlay i {
        font-size: 2.5rem;
    }
    
    .subgallery-title {
        font-size: 1.4rem;
    }
    
    .subgallery-close {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-gray) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 25px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-gold);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.contact-details h4 {
    font-size: 1.4rem;
    color: var(--primary-burgundy);
    margin-bottom: 10px;
}

.contact-details p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.contact-map iframe {
    border-radius: 15px;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-burgundy) 100%);
    color: var(--cream);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-gold);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: var(--accent-gold);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 10px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--cream);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--dark-red);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--cream);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in:not(.visible) {
    opacity: 0;
    transform: translateY(40px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left:not(.visible) {
    opacity: 0;
    transform: translateX(-60px);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right:not(.visible) {
    opacity: 0;
    transform: translateX(60px);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-up:not(.visible) {
    opacity: 0;
    transform: translateY(60px);
}

.slide-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===== VICAR SECTION ===== */
.vicar-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
}

.vicar-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 50px;
}

.vicar-image-container {
    position: relative;
}

.vicar-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(139, 21, 56, 0.3);
    border: 5px solid var(--secondary-gold);
}

.vicar-image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.1), transparent);
    z-index: 1;
}

.vicar-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.vicar-info {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--secondary-gold);
}

.vicar-name {
    font-size: 2.2rem;
    color: var(--primary-burgundy);
    margin-bottom: 10px;
    font-weight: 700;
}

.vicar-title {
    font-size: 1.3rem;
    color: var(--secondary-gold);
    margin-bottom: 30px;
    font-weight: 600;
    font-style: italic;
}

.vicar-bio {
    margin-bottom: 35px;
}

.vicar-bio p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.vicar-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
    padding: 25px;
    background: var(--cream);
    border-radius: 15px;
}

.vicar-detail-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.vicar-detail-item i {
    font-size: 2rem;
    color: var(--primary-burgundy);
    flex-shrink: 0;
}

.vicar-detail-item strong {
    display: block;
    color: var(--primary-burgundy);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.vicar-detail-item p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.vicar-quote {
    background: linear-gradient(135deg, var(--primary-burgundy), var(--dark-red));
    color: var(--cream);
    padding: 30px;
    border-radius: 15px;
    position: relative;
    font-style: italic;
    text-align: center;
}

.vicar-quote i {
    color: var(--secondary-gold);
    font-size: 1.5rem;
}

.vicar-quote p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 20px 0;
    color: var(--cream);
}

.vicar-quote .fa-quote-left {
    position: absolute;
    top: 20px;
    left: 20px;
}

.vicar-quote .fa-quote-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Responsive for Vicar Section */
@media (max-width: 968px) {
    .vicar-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .vicar-image {
        height: 400px;
    }
    
    .vicar-info {
        padding: 30px 20px;
    }
    
    .vicar-details {
        grid-template-columns: 1fr;
    }
}

/* ===== OFFICE BEARERS SECTION ===== */
.bearers-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.bearers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.bearer-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-gold);
}

.bearer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 21, 56, 0.2);
}

.bearer-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-burgundy), var(--dark-red));
}

.bearer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.bearer-card:hover .bearer-image img {
    transform: scale(1.1);
}

.bearer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.7), rgba(92, 11, 31, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.bearer-card:hover .bearer-overlay {
    opacity: 1;
}

.bearer-overlay i {
    font-size: 3rem;
    color: var(--accent-gold);
    transform: scale(0);
    transition: var(--transition);
}

.bearer-card:hover .bearer-overlay i {
    transform: scale(1);
}

.bearer-info {
    padding: 25px;
    text-align: center;
}

.bearer-name {
    font-size: 1.4rem;
    color: var(--primary-burgundy);
    margin-bottom: 8px;
    font-weight: 700;
}

.bearer-position {
    font-size: 1.1rem;
    color: var(--secondary-gold);
    font-weight: 600;
    margin-bottom: 15px;
    font-style: italic;
}

.bearer-contact {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bearer-contact i {
    color: var(--primary-burgundy);
}

/* Responsive for Office Bearers */
@media (max-width: 968px) {
    .bearers-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .bearer-image {
        height: 250px;
    }
}

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


/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 55px !important;
    height: 55px !important;
    background: linear-gradient(135deg, #8B1538, #5C0B1F) !important;
    color: #FFD700 !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 9999 !important;
    box-shadow: 0 5px 20px rgba(139, 21, 56, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.scroll-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-to-top:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.7) !important;
    background: linear-gradient(135deg, #A01545, #6E0C25) !important;
}

.scroll-to-top i {
    color: #FFD700 !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .church-name {
        font-size: 2rem;
    }
    
    .church-location {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(92, 11, 31, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 30px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 15px 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: none;
        background: rgba(139, 21, 56, 0.5);
        margin-top: 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .about-content,
    .contact-content,
    .org-card {
        grid-template-columns: 1fr;
    }
    
    .org-card:nth-child(even) .org-content {
        order: 1;
    }
    
    .org-card:nth-child(even) .org-image {
        order: 2;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}





@media (max-width: 968px) {
    /* ... existing mobile styles ... */
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: translateY(0);
        box-shadow: none;
        background: rgba(139, 21, 56, 0.95);
        margin-top: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
        padding: 0;
    }
    
    .dropdown-menu.mobile-active {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
        padding: 15px 0;
    }
    
    .dropdown-menu a {
        padding: 14px 35px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .dropdown-menu a:hover {
        padding-left: 45px;
    }
    
    .dropdown-menu li:last-child a {
        border-bottom: none;

        @media (max-width: 600px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}
    }
}



@media (max-width: 600px) {
    .church-name {
        font-size: 1.8rem;
    }
    
    .church-location {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 80px;
        height: 80px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .home-cards {
        grid-template-columns: 1fr;
    }
    
    .org-card {
        padding: 30px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
   

}