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

:root {
    --primary-gold: #D4AF37;
    --dark-gold: #B8941E;
    --burgundy: #800020;
    --dark-blue: #1a2332;
    --light-cream: #FFF8E7;
    --white: #FFFFFF;
    --text-dark: #2c3e50;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: 0.3s ease;
    --gold-gradient: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(128, 0, 32, 0.05) 100%);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #FDFAF4;
    min-height: 100vh;
}

/* ==================== Header ==================== */
.header-top {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--dark-blue) 100%);
    color: var(--white);
    text-align: right;
    padding: 1.5rem 1rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.header-top h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0 0 0.4rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.header-top .gold-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 0.4rem 0;
}

.header-top .gold-rule::before,
.header-top .gold-rule::after {
    content: '';
    flex: 1;
    max-width: 80px;
    height: 1px;
}

.header-top .gold-rule::before {
    background: linear-gradient(to right, transparent, var(--primary-gold));
}

.header-top .gold-rule::after {
    background: linear-gradient(to left, transparent, var(--primary-gold));
}

.header-top .gold-rule span {
    color: var(--primary-gold);
    font-size: 1rem;
}

.header-top .subtitle {
    font-family: 'IM Fell English', serif;
    font-size: 1rem;
    font-style: italic;
    opacity: 0.92;
    letter-spacing: 0.06em;
}

.header-top .address {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* ==================== Navigation ==================== */
nav {
    background: var(--burgundy);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

nav.scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: left;
    align-items: left;
    padding: 0 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-links a:hover {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: all var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ==================== Layout ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ==================== Hero ==================== */
.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform var(--transition);
}

.hero img:hover { transform: scale(1.02); }

/* ==================== Sections ==================== */
section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px var(--shadow);
    border-top: 4px solid var(--primary-gold);
    transition: box-shadow var(--transition);
}

section:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

h2 {
    color: var(--burgundy);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-gold);
}

h3 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

/* ==================== Announcement ==================== */
.announcement {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-gold);
    box-shadow: 0 4px 15px var(--shadow);
}

.announcement h2 { margin-bottom: 1rem; }

.announcement img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem auto;
    box-shadow: 0 4px 15px var(--shadow);
}

/* ==================== Services Table ==================== */
.services-table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px var(--shadow);
}

.services-table thead {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--dark-blue) 100%);
    color: var(--white);
}

.services-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.services-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.services-table tbody tr { transition: background-color var(--transition); }
.services-table tbody tr:hover { background-color: rgba(212, 175, 55, 0.1); }

.service-date {
    font-weight: 600;
    color: var(--burgundy);
    white-space: nowrap;
}

.service-event {
    color: var(--dark-blue);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.service-time {
    font-weight: 500;
    white-space: nowrap;
}

/* ==================== Contact & Directions ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-card {
    background: var(--gold-gradient);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-gold);
}

.contact-card h3 {
    color: var(--burgundy);
    margin-top: 0;
    font-size: 1.1rem;
}

.contact-card p { margin: 0.5rem 0; }

.contact-card a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-card a:hover { color: var(--primary-gold); }

.directions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.direction-item {
    background: rgba(212, 175, 55, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-top: 3px solid var(--primary-gold);
}

.direction-item h3 {
    color: var(--burgundy);
    font-size: 1.2rem;
    margin-top: 0;
}

/* ==================== Hall Images ==================== */
.hall-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.hall-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform var(--transition);
}

.hall-images img:hover { transform: scale(1.05); }

/* ==================== CTA Buttons ==================== */
.cta-button {
    display: inline-block;
    background: var(--burgundy);
    color: var(--white) !important;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 10px var(--shadow);
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    color: var(--primary-gold) !important;
}

.cta-button-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--burgundy) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    box-shadow: 0 2px 6px var(--shadow);
    margin: 0.5rem;
    border: 2px solid var(--burgundy);
}

.cta-section { text-align: center; margin: 2rem 0; }

.cta-disclaimer {
    font-size: 0.9rem;
    color: var(--dark-blue);
    font-style: italic;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 5px;
    border-left: 3px solid var(--primary-gold);
}

/* ==================== Footer ==================== */
footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--burgundy) 100%);
    color: var(--white);
    padding: 3rem 1rem 2rem;
    margin-top: 3rem;
    box-shadow: 0 -4px 15px var(--shadow);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 0.5rem;
}

.footer-section p,
.footer-section a {
    margin: 0.5rem 0;
    line-height: 1.8;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
    display: block;
}

.footer-section a:hover { color: var(--primary-gold); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-gold);
    text-decoration: none;
}

/* ==================== Info/Highlight Boxes ==================== */
.highlight-box {
    background: linear-gradient(135deg, var(--light-cream) 0%, #FFF8E7 100%);
    border-left: 4px solid var(--primary-gold);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px var(--shadow);
}

.highlight-box strong {
    color: var(--burgundy);
    font-size: 1.1rem;
}

.info-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(128, 0, 32, 0.1) 100%);
    border-left: 5px solid var(--primary-gold);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.gift-aid-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    border-left: 5px solid var(--primary-gold);
    box-shadow: 0 4px 15px var(--shadow);
}

.gift-aid-highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--burgundy);
    text-align: center;
    margin: 1rem 0;
}

/* ==================== Benefits & Cards ==================== */
.benefits-grid,
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-card,
.payment-method {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px var(--shadow);
}

.benefit-card {
    background: var(--gold-gradient);
    border-left: 4px solid var(--primary-gold);
    box-shadow: none;
}

.payment-method h3,
.benefit-card h3 {
    color: var(--burgundy);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* ==================== Bank Details ==================== */
.bank-details {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px var(--shadow);
    margin: 2rem 0;
}

.bank-details h3 {
    color: var(--burgundy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.bank-details-table {
    width: 100%;
    border-collapse: collapse;
}

.bank-details-table tr { border-bottom: 1px solid #eee; }
.bank-details-table tr:last-child { border-bottom: none; }

.bank-details-table td {
    padding: 0.8rem;
    vertical-align: top;
    color: var(--text-dark);
}

.bank-details-table td:first-child {
    font-weight: 600;
    width: 40%;
}

/* ==================== Tables (Shared) ==================== */
.services-table-container,
.pricing-table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 8px var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.pricing-table thead {
    background: var(--burgundy);
    color: var(--white);
}

.pricing-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.pricing-table tbody tr:hover { background: var(--light-cream); }
.pricing-table tbody tr:last-child td { border-bottom: none; }

/* ==================== Hall Page ==================== */
.gallery-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 4px 10px var(--shadow);
    transition: transform var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1rem;
    background: var(--white);
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

.feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
}

.feature-card h3 {
    color: var(--burgundy);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* ==================== Blog Page ==================== */
.blog-post {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.blog-post-date {
    color: var(--burgundy);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-post h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.blog-post h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.blog-post p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.blog-post a {
    color: var(--burgundy);
    text-decoration: none;
    font-weight: 600;
}

.blog-post a:hover {
    text-decoration: underline;
    color: var(--dark-gold);
}

.blog-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.blog-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    position: relative;
    aspect-ratio: 4 / 3;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.blog-image:hover img { transform: scale(1.05); }

.blog-video {
    margin: 1.5rem auto;
    max-width: 800px;
    text-align: center;
}

.blog-video iframe,
.blog-video video {
    border-radius: var(--radius);
    box-shadow: 0 2px 8px var(--shadow);
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* ==================== Documents Page ==================== */
.document-list { margin: 1.5rem 0; }

.document-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.document-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.document-item .pdf-icon {
    height: 24px;
    width: auto;
    margin-right: 1rem;
    flex-shrink: 0;
}

.document-item a {
    color: var(--burgundy);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
}

.document-item a:hover {
    color: var(--dark-gold);
    text-decoration: underline;
}

/* ==================== Lightbox ==================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    cursor: default;
    pointer-events: none;
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.2rem;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.3rem 0.6rem;
    z-index: 10000;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* Clickable image cursor hint (desktop) */
.blog-image img,
.gallery-item img,
.hall-images img,
.hero img {
    cursor: zoom-in;
}

/* ==================== Media Queries ==================== */
@media (max-width: 900px) {
    .gallery-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top h1 { font-size: 1.4rem; }

    .header-top img { display: none; }

    .header-top .subtitle,
    .header-top .address { font-size: 0.85rem; }

    /* Disable image expand on mobile */
    .lightbox-overlay,
    .lightbox-overlay.active { display: none !important; }

    .blog-image img,
    .gallery-item img,
    .hall-images img,
    .hero img {
        cursor: default;
        pointer-events: none;
    }

    .menu-toggle { display: flex; }

    .nav-container {
        justify-content: flex-end;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: auto;
        right: 0;
        width: max-content;
        min-width: 200px;
        flex-direction: column;
        background: var(--burgundy);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
        box-shadow: 0 4px 10px var(--shadow);
        gap: 0;
        border-radius: 0 0 0 var(--radius);
    }

    .nav-links.active { max-height: 500px; }

    .nav-links a {
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        border-left: none;
    }

    .nav-links a:hover {
        border-bottom-color: rgba(255, 255, 255, 0.2);
        border-left: 4px solid var(--primary-gold);
    }

    h2 { font-size: 1.6rem; }
    section { padding: 1.5rem; }

    .hero { grid-template-columns: 1fr; }
    .hero img { height: 250px; }

    .announcement img {
        max-width: 100%;
        margin: 1rem 0;
        border-radius: 6px;
    }

    .services-table { font-size: 0.85rem; }
    .services-table thead { display: none; }

    .services-table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #e0e0e0;
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: 0 2px 8px var(--shadow);
    }

    .services-table td {
        display: block;
        text-align: left;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .services-table td:last-child { border-bottom: none; }

    .services-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--burgundy);
        display: block;
        margin-bottom: 0.3rem;
    }

    .service-date,
    .service-time { white-space: normal; }

    .contact-grid,
    .directions,
    .hall-images { grid-template-columns: 1fr; }

    .blog-video {
        margin: 1rem 0;
        max-width: 100%;
        padding: 0;
    }

    .blog-video iframe,
    .blog-video video { min-height: 200px; }
}

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

/* ==================== Small Mobile (≤455px) ==================== */
@media (max-width: 455px) {
    /* Header: stack icon/text/logo vertically */
    .header-top > div {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.6rem;
        padding: 0 0.75rem !important;
    }

    .header-top > div img {
        display: none !important;
    }

    .header-top h1 {
        font-size: 1.05rem;
        letter-spacing: 0.08em;
    }

    .header-top .subtitle { font-size: 0.78rem; }
    .header-top .address  { font-size: 0.75rem; }

    /* Nav */
    .nav-links a { font-size: 1rem; padding: 0.8rem 1rem; }

    /* Layout */
    .container { padding: 0.75rem 0.5rem; }
    section    { padding: 0.9rem 0.75rem; }
    h2         { font-size: 1.25rem; }
    h3         { font-size: 1.05rem; }

    /* Blog */
    .blog-post         { padding: 1rem; }
    .blog-post h2      { font-size: 1.2rem; }
    .blog-images       { grid-template-columns: 1fr; gap: 0.6rem; }

    /* Benefits / payment grid */
    .benefits-grid,
    .payment-methods   { grid-template-columns: 1fr; }

    /* Footer */
    .footer-content    { grid-template-columns: 1fr; gap: 1.5rem; }

    /* Tables */
    .bank-details-table td:first-child { width: auto; font-size: 0.85rem; }
    .bank-details-table td             { font-size: 0.85rem; padding: 0.6rem; }

    /* Gift aid highlight */
    .gift-aid-highlight { font-size: 1.05rem; }

    /* CTA buttons */
    .cta-button,
    .cta-button-secondary {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
}

@media (max-width: 360px) {
    .header-top h1 { font-size: 0.95rem; }
    .nav-links a   { font-size: 0.9rem; }
}
