/* 
=====================================================
  Shri Renuga Grand Hall - Premium CSS Styles 
===================================================== 
*/

:root {
    /* Color Palette */
    --clr-primary: #7A1025;
    --clr-secondary: #D4AF37;
    --clr-bg: #F9F7F1;
    --clr-text: #222222;
    --clr-white: #ffffff;
    --clr-light: #f0ede1;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Box Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(122, 16, 37, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--clr-white);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--clr-secondary);
    margin: 0 auto 2rem;
    position: relative;
    text-align: center;
}



.title-underline::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--clr-primary);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Button Styles */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border: 2px solid var(--clr-primary);
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 0;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(122, 16, 37, 0.3);
}

.btn-secondary {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
    border: 2px solid var(--clr-secondary);
}

.btn-secondary:hover {
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

/* Glassmorphism utility */
.glassmorphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--clr-secondary);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 40px;
    left: 40px;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--clr-secondary);
    color: #fff;
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-fast);
    background: transparent;
}

.navbar.sticky {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 80px;
    width: auto;
    transition: var(--transition-fast);
}

.navbar.sticky .logo img {
    max-height: 60px;
}

/* Hall name beside logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name-top {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-white);
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.logo-name-bottom {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--clr-secondary);
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

/* When sticky, switch top-line to crimson */
.navbar.sticky .logo-name-top {
    color: var(--clr-primary);
}

.navbar.sticky .logo-name-bottom {
    color: var(--clr-secondary);
}

/* Hide name text on very small screens to avoid overflow */
@media (max-width: 400px) {
    .logo-name {
        display: none;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--clr-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-fast);
}

.navbar.sticky .nav-links a {
    color: var(--clr-text);
}

.nav-links a:not(.btn-outline)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-secondary);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn-outline):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:not(.btn-outline):hover {
    color: var(--clr-secondary);
}

.navbar.sticky .nav-links .btn-outline {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.navbar.sticky .nav-links .btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-white);
    cursor: pointer;
}

.navbar.sticky .hamburger {
    color: var(--clr-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('../assets/images/shri-renuga-grand-hall-tiruvannamalai-interior-5.webp') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--clr-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 50px;
}

.hero-content h1 {
    font-size: 50px;
    color: var(--clr-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-card {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 30px;
    border-radius: 15px;
    width: 320px;
    color: var(--clr-text);
}

.hero-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.hero-card ul li {
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-card ul li i {
    color: rgb(136, 4, 28);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 10px;
}

.about-text .title-underline {
    margin-left: 0;
}

.about-text .title-underline::after {
    left: 0;
    transform: none;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #555;
}

.about-image {
    position: relative;
}

.rounded-image {
    border-radius: 20px;
}

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

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Events Section */
/* Event Image Cards - Redesigned Grid */
.events-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 30px;
    margin-top: 50px;
}

.events p {
    text-align: center;
}

.event-image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
    grid-row: span 1;
}

/* Featured cards take up 2 rows (making the masonry style) */
.event-image-card.featured-card {
    grid-row: span 2;
}

.event-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark gradient overlay for text readability */
.event-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
    transition: background 0.4s ease;
    z-index: 1;
}

.event-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: var(--clr-white);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.event-card-content h3 {
    color: var(--clr-white);
    font-size: 1.6rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

.event-card-content p {
    color: #e0e0e0;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

.event-link {
    color: var(--clr-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.event-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.event-image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(122, 16, 37, 0.15);
}

.event-image-card:hover img {
    transform: scale(1.08);
}

.event-image-card:hover .event-card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(122, 16, 37, 0.4) 40%,
        rgba(122, 16, 37, 0.9) 100%
    );
}

.event-image-card:hover .event-card-content h3 {
    color: var(--clr-secondary);
}

.event-image-card:hover .event-link {
    color: var(--clr-white);
}

.event-image-card:hover .event-link i {
    transform: translateX(5px);
}

/* Responsive Rules for Events Section */
@media (max-width: 991px) {
    .events-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }
}

@media (max-width: 768px) {
    .events-masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px; /* fixed height for mobile */
    }
    
    .event-image-card.featured-card {
        grid-row: span 1; /* Make all cards same height on mobile */
    }
}

/* =====================================================
   Why Choose Us Section – Redesigned
   ===================================================== */

/* Section wrapper */
.why-us {
    position: relative;
    background-color: var(--clr-bg);
    overflow: hidden;
}

/* Decorative background pattern */
.why-us-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(122, 16, 37, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.why-us .container {
    position: relative;
    z-index: 1;
}

/* ---- Header ---- */
.why-us-header {
    text-align: center;
    margin-bottom: 60px;
}

.why-us-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--clr-secondary);
    margin-bottom: 12px;
}

.why-us-title {
    margin-bottom: 28px;
}

/* ---- Brand Banner ---- */
.why-us-brand-banner {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(249, 247, 241, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 22px 40px;
    margin-bottom: 30px;
    box-shadow:
        0 8px 32px rgba(122, 16, 37, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
}

/* subtle top-left corner gold accent */
.why-us-brand-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--clr-secondary), var(--clr-primary));
    border-radius: 20px 0 0 20px;
}

.wub-logo-wrap {
    flex-shrink: 0;
}

.wub-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(122, 16, 37, 0.12));
}

/* Vertical separator */
.wub-divider {
    width: 1px;
    height: 70px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(212, 175, 55, 0.5) 30%,
        rgba(212, 175, 55, 0.5) 70%,
        transparent 100%);
    flex-shrink: 0;
}

.wub-name-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.wub-name-line1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1.1;
}

.wub-name-line2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-secondary);
    line-height: 1.1;
    letter-spacing: 1px;
}

.wub-name-sub {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-top: 6px;
}

/* ---- Feature Cards Grid ---- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Individual Card */
.wuc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 28px 36px;
    background: var(--clr-white);
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease;
    cursor: default;
}

/* Diagonal shine pseudo element */
.wuc-shine {
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(212, 175, 55, 0.12) 50%,
        transparent 80%
    );
    transform: skewX(-15deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.wuc-card:hover .wuc-shine {
    left: 120%;
}

.wuc-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 50px rgba(122, 16, 37, 0.12),
        0 0 0 1.5px rgba(212, 175, 55, 0.4);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Gold Icon Ring */
.wuc-icon-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.15) 0%,
        rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--clr-secondary);
    margin-bottom: 22px;
    flex-shrink: 0;
    transition: background 0.4s ease,
                border-color 0.4s ease,
                transform 0.4s ease,
                color 0.4s ease;
    position: relative;
    z-index: 1;
}

.wuc-card:hover .wuc-icon-ring {
    background: linear-gradient(135deg,
        var(--clr-primary) 0%,
        rgba(122, 16, 37, 0.8) 100%);
    border-color: var(--clr-primary);
    color: var(--clr-white);
    transform: scale(1.08) rotate(-6deg);
}

/* Card text */
.wuc-content {
    position: relative;
    z-index: 1;
}

.wuc-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.wuc-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    transition: color 0.3s ease;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-brand-banner {
        padding: 18px 28px;
        gap: 20px;
    }

    .wub-logo {
        height: 64px;
    }

    .wub-name-line1 { font-size: 1.2rem; }
    .wub-name-line2 { font-size: 1.6rem; }
}

@media (max-width: 600px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-us-brand-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }

    .why-us-brand-banner::before {
        width: 100%;
        height: 5px;
        border-radius: 20px 20px 0 0;
        background: linear-gradient(90deg, var(--clr-secondary), var(--clr-primary));
    }

    .wub-divider {
        width: 80px;
        height: 1px;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.5) 30%,
            rgba(212, 175, 55, 0.5) 70%,
            transparent 100%);
    }

    .wub-name-wrap {
        align-items: center;
    }

    .wub-name-sub {
        text-align: center;
    }

    .wuc-card {
        padding: 32px 20px 28px;
    }
}

/* Gallery Section */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Grid layout for 9 items */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(4) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-item:nth-child(6) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item:nth-child(7) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(8) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(9) {
    grid-column: span 2;
    grid-row: span 1;
}

@media (max-width: 991px) {
    .grid-gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item:nth-child(2) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(4) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item:nth-child(5) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(6) {
        grid-column: span 1;
        grid-row: span 2;
    }

    .gallery-item:nth-child(7) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item:nth-child(8) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(9) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .grid-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item:nth-child(2) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(4) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item:nth-child(5) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(7) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(8) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(9) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .grid-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(122, 16, 37, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-overlay i {
    color: var(--clr-white);
    font-size: 30px;
    transform: scale(0);
    transition: transform 0.5s ease;
}

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

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

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-lightbox:hover {
    color: var(--clr-secondary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    z-index: 2001;
    transition: var(--transition-fast);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--clr-secondary);
}

/* Booking Process Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: rgba(122, 16, 37, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 10px;
    width: 32px;
    height: 32px;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid var(--clr-bg);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
    z-index: 1;
}

.timeline-content {
    padding: 25px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Testimonials */
.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    background: var(--clr-white);
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.quote-icon {
    font-size: 40px;
    color: rgba(212, 175, 55, 0.3);
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
}

.testimonial-card h4 {
    font-size: 1.1rem;
    color: var(--clr-primary);
    margin-bottom: 10px;
}

.stars {
    color: var(--clr-secondary);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.slider-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--clr-primary);
    background: transparent;
    color: var(--clr-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-controls button:hover {
    background: var(--clr-primary);
    color: var(--clr-white);
}

/* Location Section */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info {
    padding-right: 20px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.i-icon {
    width: 50px;
    height: 50px;
    background: rgba(122, 16, 37, 0.1);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 5px rgba(122, 16, 37, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-success {
    color: #27ae60;
    font-size: 1rem;
    padding: 15px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 5px;
    display: none;
    margin-top: 10px;
}

.submit-btn {
    width: 100%;
    cursor: pointer;
    border: none;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    color: #555;
}

.map-container {
    height: 400px;
    width: 100%;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    background: url('../assets/images/shri-renuga-grand-hall-tiruvannamalai-interior-2.webp') no-repeat center center/cover;
    position: relative;
    text-align: center;
    color: var(--clr-white);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.9);
    opacity: 0.7;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--clr-secondary);
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer */
.footer {
    background-color: var(--clr-text);
    color: var(--clr-white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    color: var(--clr-white);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand span {
    color: var(--clr-secondary);
}

.footer-brand p {
    color: #bbb;
    margin-bottom: 25px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--clr-secondary);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--clr-secondary);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #bbb;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-secondary);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #bbb;
}

.footer-contact i {
    color: var(--clr-secondary);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.scroll-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-element.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .about-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        margin-top: 20px;
    }

    .hero-card {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--clr-white);
        flex-direction: column;
        justify-content: center;
        padding: 50px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--clr-text) !important;
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active {
        color: var(--clr-primary);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-buttons,
    .hero-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-dot {
        left: -1px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .timeline-content {
        padding-left: 40px;
        padding-right: 15px;
    }
}

@media (max-width: 600px) {
    .section-padding {
        padding: 60px 0;
    }

    .location-grid {
        gap: 30px;
    }

    .contact-info {
        padding-right: 0;
    }

    .info-item {
        gap: 15px;
        margin-bottom: 25px;
    }

    .i-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .info-item h4 {
        font-size: 1rem;
    }

    .info-item p {
        font-size: 0.95rem;
    }

    .map-container {
        height: 300px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 50px 0;
    }

    .container {
        width: 95%;
    }

    .location-grid {
        gap: 25px;
    }

    .info-item {
        gap: 12px;
        margin-bottom: 20px;
    }

    .i-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .info-item h4 {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    .map-container {
        height: 250px;
        border-radius: 8px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .mb-4 {
        margin-bottom: 1rem;
    }

    .cta-buttons,
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-buttons a,
    .hero-buttons a {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}