/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #800000;       /* Deep Maroon - Main Brand Color */
    --primary-dark: #5a0000;  /* Darker Maroon for hovers */
    --gold: #d4af37;          /* Classical Gold - Accent Color */
    --cream: #fffaf0;         /* Warm White - Background */
    --text: #333333;          /* Dark Grey - Main Text */
    --white: #ffffff;
    
    /* Fonts */
    --font-head: 'Cinzel', serif;    /* For Headings */
    --font-body: 'Lato', sans-serif; /* For Body Text */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. TOP CONTACT BAR (NEW)
   ========================================= */
.top-bar {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tb-contact-group {
    display: flex;
    gap: 20px;
}

.tb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tb-item i {
    color: var(--gold);
    font-size: 0.9rem;
}

.tb-item a {
    color: #eee;
    font-weight: 500;
}

.tb-item a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 4px solid var(--gold); /* Changed to gold for contrast */
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    position: relative;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-family: var(--font-head);
    color: var(--primary);
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 700;
}

.logo span {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li {
    display: block;
}

.nav-links a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #444;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--gold);
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* =========================================
   4. LAYOUT UTILITIES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-pad {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: var(--font-head);
    color: var(--primary);
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--gold);
}

.section-title p {
    margin-top: 15px;
    color: #666;
    font-size: 1.1rem;
}

/* =========================================
   5. PAGE HEADERS (Banners)
   ========================================= */
.page-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    text-align: center; 
    color: var(--white);
    position: relative;
    background-attachment: fixed;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}

.page-header h1, 
.page-header p {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* =========================================
   6. SPLIT SLIDER (HOME PAGE)
   ========================================= */
.hero-wrapper {
    background-color: #4a0000; 
    background-image: url("https://www.transparenttextures.com/patterns/damask.png");
    padding: 0; position: relative; overflow: hidden;
    min-height: 700px; display: flex; align-items: center; justify-content: center;
}

.slider-box-container {
    width: 100%;
    max-width: 1300px; 
    height: 600px; 
    position: relative;
    background: #000;
    border: 8px solid #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.split-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    background: #000;
}

.split-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-text-side {
    width: 35%;
    background-color: #f7f1e3;
    background-image: url("https://www.transparenttextures.com/patterns/cream-paper.png");
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-right: 1px solid #ddd;
}

.slide-text-side::before {
    content: '\201C'; position: absolute; top: 10px; left: 20px;
    font-size: 5rem; color: rgba(128,0,0,0.1); font-family: serif; line-height: 1;
}
.slide-text-side::after {
    content: '\201D'; position: absolute; bottom: -20px; right: 20px;
    font-size: 5rem; color: rgba(128,0,0,0.1); font-family: serif; line-height: 1;
}

.slide-text-side h2 {
    font-family: var(--font-head);
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.slide-text-side p {
    font-family: var(--font-head);
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.slide-image-side {
    width: 65%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide-image-side img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)); 
    animation: slowZoom 8s infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.slider-dots {
    position: absolute;
    bottom: 30px; 
    left: 17.5%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px; height: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--primary);
}
.dot.active { background: var(--primary); }

/* =========================================
   7. CARDS & BATCHES
   ========================================= */
.batch-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 30px; border-radius: 10px; position: relative; transition: 0.3s;
}
.batch-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-5px); }
.batch-badge {
    position: absolute; top: -15px; right: 20px;
    background: var(--gold); color: var(--primary);
    font-weight: bold; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem;
}
.batch-card h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold); margin-bottom: 5px; }
.batch-btn {
    display: block; text-align: center; background: var(--white); color: var(--primary);
    padding: 10px; margin-top: 20px; border-radius: 5px; font-weight: bold; transition: 0.3s;
}
.batch-btn:hover { background: var(--gold); color: var(--primary); }

/* Feature Box */
.feature-box {
    background: #fff; padding: 40px 20px; border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s;
}
.feature-box:hover { transform: translateY(-5px); }
.icon-circle {
    width: 70px; height: 70px; margin: 0 auto 20px; background: var(--cream);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 2rem; border: 2px solid var(--gold);
}
.feature-box h3 { font-family: var(--font-head); color: var(--primary); margin-bottom: 15px; }

/* Branch Card */
.branch-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.branch-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gold);
}
.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.card-icon { font-size: 2rem; color: rgba(128, 0, 0, 0.1); position: absolute; top: 20px; right: 20px; }
.branch-card h3 { color: var(--primary); font-family: var(--font-head); margin-bottom: 10px; font-size: 1.3rem; }
.address { font-size: 0.95rem; color: #555; margin-bottom: 15px; min-height: 50px; }
.timings { background: #f9f9f9; padding: 10px; border-radius: 5px; font-size: 0.9rem; border-left: 2px solid var(--primary); }

.btn-link {
    display: inline-block; margin-top: 20px; 
    color: var(--primary); font-weight: bold; 
    text-decoration: none; border-bottom: 2px solid var(--gold);
    transition: 0.3s;
}
.btn-link:hover { color: var(--gold); border-color: var(--primary); }

/* Checklist Style */
.check-list { list-style: none; padding: 0; margin-top: 20px; }
.check-list li { margin-bottom: 15px; font-size: 1.05rem; display: flex; align-items: center; }
.check-list li i { color: var(--primary); margin-right: 15px; background: var(--gold); padding: 5px; border-radius: 50%; font-size: 0.8rem; width: 25px; height: 25px; text-align: center; display: flex; align-items: center; justify-content: center; }

/* =========================================
   8. UNIVERSAL FORM STYLING
   ========================================= */
.styled-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border-top: 5px solid var(--primary);
    border: 1px solid #eee;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    text-align: left;
}

.form-group label {
    font-family: var(--font-head);
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eee;
    background-color: #fdfdfd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #444;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-group input[type="radio"] {
    accent-color: var(--primary);
    transform: scale(1.2);
    margin-right: 8px;
    cursor: pointer;
}

.btn-submit {
    background-color: var(--primary) !important;
    color: #fff !important;
    font-family: var(--font-head);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 50px !important;
    border: none;
    border-radius: 30px !important;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--gold) !important;
    color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.3);
}

/* Contact Page Layout */
.contact-grid-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.info-card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 30px; border: 1px solid #eee; }
.highlight-card { border-top: 4px solid var(--primary); background: #fff9f9; }
.info-card h3 { font-family: var(--font-head); color: var(--primary); margin-bottom: 20px; font-size: 1.4rem; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.map-btn { display: inline-block; padding: 10px 25px; background: var(--white); border: 2px solid var(--primary); color: var(--primary); font-weight: bold; border-radius: 30px; transition: 0.3s; margin-top: 15px; }
.map-btn:hover { background: var(--primary); color: var(--white); }

/* =========================================
   9. GALLERY & ANIMATIONS
   ========================================= */
.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.gallery-item img {
    width: 100%; height: auto; display: block; transition: transform 0.5s ease;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up { transform: translateY(30px); }
.slide-in-left { transform: translateX(-30px); }
.slide-in-right { transform: translateX(30px); }
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* =========================================
   10. EVENTS PAGE STYLES (NEW)
   ========================================= */
.event-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 50px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.15);
}

/* Flex Layout for Desktop */
.event-row {
    display: flex;
    align-items: stretch;
}

.event-image-col {
    width: 40%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.event-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    transition: transform 0.5s ease;
    opacity: 0.95;
}

.event-card:hover .event-image-col img {
    transform: scale(1.05);
    opacity: 1;
}

/* Date Badge */
.event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold);
    color: var(--primary);
    padding: 10px 15px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2;
}

.event-date-badge span {
    display: block;
    font-weight: bold;
    line-height: 1;
}

.ed-day { font-size: 1.8rem; font-family: var(--font-head); }
.ed-month { font-size: 0.9rem; text-transform: uppercase; }
.ed-year { font-size: 0.8rem; opacity: 0.8; }

/* Content Side */
.event-content-col {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-content-col h3 {
    font-family: var(--font-head);
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 15px;
}

.event-meta span {
    display: flex;
    align-items: center;
}

.event-meta i { color: var(--gold); margin-right: 8px; }

.event-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

/* Credits Box */
.event-credits {
    background: #fffaf0; /* Cream */
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    margin-top: 15px;
}

.credits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.9rem;
}

.credits-grid strong { color: var(--primary); }

/* =========================================
   11. FOOTER
   ========================================= */
.footer-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a { width: 45px; height: 45px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: 0.3s; }
.social-icons a:hover { background: var(--gold); color: var(--primary); }
footer { background: #1a1a1a; color: #acacac; padding: 70px 0 20px; margin-top: auto; }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 25px; margin-top: 50px; font-size: 0.85rem; }

/* =========================================
   12. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    /* Top Bar Mobile */
    .top-bar-flex { flex-direction: column; gap: 5px; text-align: center; }
    .tb-contact-group { gap: 15px; font-size: 0.8rem; }
    
    /* Navigation Mobile */
    .nav-bar { height: 70px; }
    
    .nav-toggle-label {
        display: block; cursor: pointer; position: absolute; right: 0; top: 25px;
    }
    .nav-toggle-label span, 
    .nav-toggle-label span::before, 
    .nav-toggle-label span::after {
        display: block; background: var(--primary); height: 3px; width: 25px;
        position: relative; border-radius: 2px; transition: 0.3s;
    }
    .nav-toggle-label span::before { content: ''; position: absolute; top: -8px; }
    .nav-toggle-label span::after { content: ''; position: absolute; top: 8px; }

    /* Hide Menu by Default */
    .nav-links {
        display: none; width: 100%; position: absolute; top: 70px; left: 0;
        background: #fff; flex-direction: column; padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 1000;
        text-align: center;
    }
    
    /* Show Menu when Checked */
    .nav-toggle:checked ~ nav .nav-links { display: flex; }
    
    /* Hamburger Animation */
    .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked ~ .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
    .nav-toggle:checked ~ .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }

    /* Other Mobile Layouts */
    .grid-2, .grid-3, .contact-grid-wrapper, .footer-grid-container { grid-template-columns: 1fr; }
    
    /* Slider & Events */
    .slider-box-container { height: auto; flex-direction: column; }
    .split-slide { position: relative; opacity: 1; visibility: visible; display: block; height: auto; }
    .slide-text-side, .slide-image-side { width: 100%; height: auto; }
    .slide-image-side { height: 300px; }
    .slider-dots { display: none; }
    
    /* Events Mobile */
    .event-row { flex-direction: column; }
    .event-image-col, .event-content-col { width: 100%; }
    .event-image-col { height: 300px; } 
    .event-content-col { padding: 30px 20px; }
    .credits-grid { grid-template-columns: 1fr; }
    
    /* Ensure header text stays centered */
    .page-header { text-align: center; }
}