/* =====================================================
   SABARIMALA YATRA - SPIRITUAL THEME CUSTOM STYLES
   Premium Design for Sree Ayyappa Swami Website
   ===================================================== */

/* =====================================================
   CSS VARIABLES & ROOT CONFIGURATION
   ===================================================== */
:root {
    /* Primary Colors - Temple Inspired */
    --gold: #D4A847;
    --gold-light: #E8C76A;
    --gold-dark: #B8922F;
    --gold-gradient: linear-gradient(135deg, #D4A847 0%, #B8922F 100%);

    /* Dark Theme Colors */
    --maroon-dark: #4A0000;
    --maroon: #8B0000;
    --maroon-light: #A52A2A;
    --deep-orange: #CC4400;

    /* Neutral Colors */
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --black-overlay: rgba(10, 10, 10, 0.85);
    --gray-dark: #2D2D2D;
    --gray: #6B6B6B;
    --gray-light: #B0B0B0;
    --white: #FFFFFF;
    --white-off: #F8F6F3;
    --cream: #FFF8E7;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-elegant: 'Cormorant Garamond', serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-section: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 4px 20px rgba(212, 168, 71, 0.3);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-tooltip: 1050;
}

/* AOS Animation Fallback - Ensure content is visible without scroll */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}
[data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* =====================================================
   BASE RESET & TYPOGRAPHY
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-width: 320px;
}

/* Ensure all containers prevent horizontal overflow */
.container, .container-fluid, .row {
    overflow-x: visible;
    min-width: 0;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

a:hover {
    color: var(--gold);
}

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

.title-color {
    color: var(--black) !important;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.section-padding {
    padding: var(--space-section) 0;
}

.bg-gradient-dark {
    background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 100%);
    position: relative;
}

.bg-gradient-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 168, 71, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.text-center { text-align: center; }
.text-start { text-align: left; }

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
    margin-bottom: var(--space-lg);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-elegant);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    position: relative;
    padding: 0 var(--space-md);
}

.section-tag::before,
.section-tag::after {
    content: '•';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 0.5rem;
}

.section-tag::before { left: 0; }
.section-tag::after { right: 0; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-sm);
    letter-spacing: 1px;
}

.section-title.light {
    color: var(--gold);
}

.section-title.dark {
    color: var(--black);
}

/* Light background sections need darker text */
.bg-light,
.bg-white-off {
    background: var(--white-off);
}

.bg-light .section-title,
.bg-white-off .section-title {
    color: var(--black);
}

.bg-light .section-tag,
.bg-white-off .section-tag {
    color: var(--gold-dark);
}

.bg-light .section-subtitle,
.bg-white-off .section-subtitle {
    color: var(--gray);
}

.bg-light .section-divider::before,
.bg-light .section-divider::after,
.bg-white-off .section-divider::before,
.bg-white-off .section-divider::after {
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.bg-light .divider-icon,
.bg-white-off .divider-icon {
    color: var(--gold-dark);
}

.section-subtitle {
    font-family: var(--font-elegant);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle.light {
    color: rgba(212, 168, 71, 0.7);
}

.section-divider {
    margin-top: var(--space-md);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-icon {
    color: var(--gold);
    font-size: 1.25rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* =====================================================
   HEADER & NAVBAR
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    transition: var(--transition-base);
}

.brand-logo{
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-right: 10px;
}

.navbar {
    padding: 0.75rem 0;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold) !important;
    text-decoration: none;
}

.brand-icon {
    font-size: 1.75rem;
    color: var(--gold);
    animation: sun-glow 3s ease-in-out infinite;
}

@keyframes sun-glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(212, 168, 71, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(212, 168, 71, 0.8));
    }
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-base);
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--gold) !important;
}

/* Dropdown Styling */
.dropdown-menu {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 168, 71, 0.2);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    animation: dropdown-fade 0.2s ease-out;
}

@keyframes dropdown-fade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(212, 168, 71, 0.1);
    color: var(--gold);
}

.dropdown-item i {
    font-size: 0.75rem;
    margin-right: 0.5rem;
    color: var(--gold);
    opacity: 0.7;
}

.dropdown-divider {
    border-color: rgba(212, 168, 71, 0.2);
    margin: 0.5rem 0;
}

/* Nav CTA Button */
.btn-nav-cta {
    background: var(--gold-gradient);
    color: var(--black) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-lg);
    font-weight: 600;
    margin-left: 0.5rem;
    transition: var(--transition-base);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-nav-cta::after {
    display: none;
}

/* Mobile Menu */
.navbar-toggler {
    border: 1px solid var(--gold);
    padding: 0.5rem;
    background: rgba(10, 10, 10, 0.9);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28212, 168, 71, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   MOBILE NAVIGATION STYLES
   ===================================================== */
@media (max-width: 1199.98px) {
    /* Navbar Container */
    .navbar {
        padding: 0.625rem 0;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(212, 168, 71, 0.2);
        padding: 0.5rem 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    /* Navigation Links Container */
    .navbar-nav {
        padding: 0.5rem 0;
    }

    /* Nav Items */
    .nav-item {
        margin: 0;
    }

    /* Main Nav Links */
    .nav-link {
        padding: 0.875rem 1.25rem !important;
        font-size: 1rem !important;
        font-weight: 500;
        color: var(--white) !important;
        border-bottom: 1px solid rgba(212, 168, 71, 0.08);
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: var(--transition-base);
    }

    .nav-link:hover {
        background: rgba(212, 168, 71, 0.08);
        color: var(--gold) !important;
    }

    .nav-link::after {
        display: none;
    }

    /* Dropdown Toggle Arrow */
    .nav-link.dropdown-toggle::after {
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 0.5em;
        vertical-align: 0.15em;
        content: "";
        border-top: 0.4em solid var(--gold);
        border-right: 0.4em solid transparent;
        border-bottom: 0;
        border-left: 0.4em solid transparent;
        transition: transform 0.2s ease;
    }

    .nav-link.dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

    /* Dropdown Menu - Let Bootstrap handle show/hide */
    .dropdown-menu {
        background: rgba(20, 20, 20, 0.95);
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }

    .dropdown-menu.show {
        display: block !important;
        padding: 0.5rem 0 0.5rem 1.5rem;
    }

    /* Dropdown Items */
    .dropdown-item {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        color: var(--gray-light);
        border-left: 2px solid transparent;
        transition: var(--transition-base);
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: rgba(212, 168, 71, 0.1);
        color: var(--gold);
        border-left-color: var(--gold);
    }

    .dropdown-item i {
        margin-right: 0.75rem;
        font-size: 0.65rem;
    }

    .dropdown-divider {
        margin: 0.5rem 1.25rem;
        border-color: rgba(212, 168, 71, 0.15);
    }

    /* CTA Button in Mobile */
    .btn-nav-cta {
        display: block;
        margin: 1rem 1.25rem;
        padding: 0.875rem 1.5rem !important;
        text-align: center;
        border-radius: var(--radius-lg);
    }
}

/* Extra Small Devices (Phones) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand .brand-text {
        font-size: 1.1rem;
    }

    .brand-icon {
        font-size: 1.5rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }

    .dropdown-item {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    .btn-nav-cta {
        margin: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

/* =====================================================
   MOBILE HERO SECTION (4:5 RATIO SLIDER)
   No circular/graphic background elements for cleaner look
   ===================================================== */
.mobile-hero-section {
    position: relative;
    width: 100%;
    /* 4:5 Aspect Ratio - Portrait orientation */
    aspect-ratio: 4 / 5;
    min-height: 500px;
    max-height: 90vh;
    overflow: hidden;
    background: var(--black);
}

/* Remove any circular graphic backgrounds */
.mobile-slide-1,
.mobile-slide-2,
.mobile-slide-3 {
    background: var(--black) !important;
}

.mobile-hero-slider {
    width: 100%;
    height: 100%;
}

.mobile-hero-slider .owl-stage-outer,
.mobile-hero-slider .owl-stage,
.mobile-hero-slider .owl-item {
    height: 100%;
}

.mobile-hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Clean solid background without circular graphics */
    background: var(--black);
}

/* Mobile Banner Image Styling - 4:5 Aspect Ratio */
.mobile-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.mobile-slide-1,
.mobile-slide-2,
.mobile-slide-3 {
    /* Clean solid background when using banner images */
    background: transparent !important;
}

.mobile-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.mobile-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 5%;
    max-width: 90%;
}

.mobile-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 10vw, 2.5rem);
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
    animation: title-glow 3s ease-in-out infinite;
}

.mobile-hero-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-style: italic;
    opacity: 0.9;
}

.mobile-hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.mobile-hero-buttons .btn-hero-primary {
    width: 100%;
    max-width: 280px;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Mobile Slider Dots */
.mobile-hero-slider .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.mobile-hero-slider .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 168, 71, 0.3);
    border: 2px solid var(--gold);
    transition: var(--transition-base);
}

.mobile-hero-slider .owl-dots .owl-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* =====================================================
   NOTIFICATION BAR
   ===================================================== */
.notification-bar {
    background: linear-gradient(90deg, var(--maroon-dark), var(--maroon), var(--maroon-dark));
    padding: 0.75rem 0;
    overflow: hidden;
    border-bottom: 2px solid var(--gold);
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.notification-icon {
    color: var(--gold);
    margin: 0 1rem;
    font-size: 1rem;
    animation: bell-shake 1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes bell-shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.notification-text {
    color: var(--gold-light);
    font-family: var(--font-elegant);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 0 2rem;
    white-space: nowrap;
}

/* =====================================================
   MOBILE CARD SECTIONS
   ===================================================== */
@media (max-width: 767.98px) {
    .section-padding {
        padding: var(--space-section) 0;
    }

    .section-header {
        margin-bottom: var(--space-md);
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Guide Cards */
    .guide-card {
        padding: 1.5rem;
    }

    .guide-card-icon {
        width: 50px;
        height: 50px;
    }

    .guide-card-icon i {
        font-size: 1.5rem;
    }

    .guide-card-title {
        font-size: 1rem;
    }

    /* Registration Cards */
    .registration-card {
        padding: 1.5rem;
    }

    .reg-card-icon {
        width: 60px;
        height: 60px;
    }

    .reg-card-icon i {
        font-size: 1.5rem;
    }

    .reg-card-title {
        font-size: 1rem;
    }

    /* Logistics Cards */
    .logistics-card {
        padding: 2rem 1.5rem;
    }

    .logistics-icon {
        width: 70px;
        height: 70px;
    }

    .logistics-icon i {
        font-size: 1.75rem;
    }
}

/* =====================================================
   MOBILE TYPOGRAPHY
   ===================================================== */
@media (max-width: 575.98px) {
    .section-padding {
        padding: 3rem 0;
    }

    .guide-card {
        padding: 1.25rem;
    }

    .registration-card {
        padding: 1.25rem;
    }

    .logistics-card {
        padding: 1.5rem;
    }
}

/* Desktop Hero Styles with Banner Images */
@media (min-width: 768px) {
    .hero-slide {
        height: 100vh;
        min-height: 600px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Banner Image Styling - 16:9 Aspect Ratio */
    .hero-banner-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    /* Remove old background gradients when using banner images */
    .hero-slide-1,
    .hero-slide-2,
    .hero-slide-3 {
        background: transparent;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.8) 100%);
        z-index: 1;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
        padding: 2rem 5%;
        max-width: 90%;
    }

    .hero-title {
        font-family: var(--font-heading);
        font-size: clamp(2.5rem, 7vw, 5rem);
        font-weight: 700;
        color: var(--gold);
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
        margin-bottom: 1rem;
        letter-spacing: 3px;
        animation: title-glow 3s ease-in-out infinite;
    }

    @keyframes title-glow {
        0%, 100% { text-shadow: 0 0 20px rgba(212, 168, 71, 0.5), 0 4px 20px rgba(0, 0, 0, 0.8); }
        50% { text-shadow: 0 0 40px rgba(212, 168, 71, 0.7), 0 4px 20px rgba(0, 0, 0, 0.8); }
    }

    .hero-subtitle {
        font-family: var(--font-elegant);
        font-size: clamp(1.125rem, 3vw, 1.75rem);
        color: var(--white);
        margin-bottom: 2rem;
        font-style: italic;
        opacity: 0.95;
    }

    .hero-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .btn-hero-primary {
        background: var(--gold-gradient);
        color: var(--black);
        padding: 1rem 2rem;
        border-radius: var(--radius-lg);
        font-weight: 600;
        font-size: 1rem;
        border: none;
        transition: var(--transition-base);
    }

    .btn-hero-primary:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-gold);
        color: var(--black);
    }

    .btn-hero-secondary {
        background: transparent;
        color: var(--white);
        padding: 1rem 2rem;
        border-radius: var(--radius-lg);
        font-weight: 600;
        font-size: 1rem;
        border: 2px solid var(--gold);
        transition: var(--transition-base);
    }

    .btn-hero-secondary:hover {
        background: rgba(212, 168, 71, 0.1);
        color: var(--gold);
        border-color: var(--gold);
    }
}

/* Hero Carousel Customization */
.hero-carousel .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-carousel .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 168, 71, 0.3);
    border: 2px solid var(--gold);
    transition: var(--transition-base);
}

.hero-carousel .owl-dots .owl-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

.hero-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.hero-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 168, 71, 0.1) !important;
    border: 2px solid var(--gold) !important;
    color: var(--gold) !important;
    font-size: 1.5rem !important;
    transition: var(--transition-base);
}

.hero-carousel .owl-nav button:hover {
    background: var(--gold) !important;
    color: var(--black) !important;
}

/* =====================================================
   NOTIFICATION BAR
   ===================================================== */
.notification-bar {
    background: linear-gradient(90deg, var(--maroon-dark), var(--maroon), var(--maroon-dark));
    padding: 0.75rem 0;
    overflow: hidden;
    border-bottom: 2px solid var(--gold);
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.notification-icon {
    color: var(--gold);
    margin: 0 1rem;
    font-size: 1rem;
    animation: bell-shake 1s ease-in-out infinite;
}

@keyframes bell-shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.notification-text {
    color: var(--gold-light);
    font-family: var(--font-elegant);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 0 2rem;
}

/* =====================================================
   DARSAN GUIDE SECTION
   ===================================================== */
.darsan-guide-section {
    background: var(--white-off);
    position: relative;
}

.darsan-guide-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 0% 0%, rgba(212, 168, 71, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.guide-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid rgba(212, 168, 71, 0.1);
    box-shadow: var(--shadow-sm);
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.guide-card:hover::before {
    transform: scaleX(1);
}

.guide-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.1), rgba(212, 168, 71, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.guide-card-icon i {
    font-size: 1.75rem;
    color: var(--gold-dark);
    transition: var(--transition-base);
}

.guide-card:hover .guide-card-icon {
    background: var(--gold-gradient);
}

.guide-card:hover .guide-card-icon i {
    color: var(--white);
}

.guide-card-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--black);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.guide-card-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-guide {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0;
    transition: var(--transition-base);
}

.btn-guide i {
    transition: var(--transition-base);
}

.btn-guide:hover {
    color: var(--maroon);
}

.btn-guide:hover i {
    transform: translateX(5px);
}

/* =====================================================
   REGISTRATION SECTIONS
   ===================================================== */
.registration-section {
    position: relative;
}

.registration-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(212, 168, 71, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.registration-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 168, 71, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
}

.registration-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 168, 71, 0.15);
}

.registration-card:hover::before {
    opacity: 1;
}

.reg-card-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.15), rgba(212, 168, 71, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(212, 168, 71, 0.2);
    transition: var(--transition-base);
}

.reg-card-icon i {
    font-size: 1.75rem;
    color: var(--gold);
}

.registration-card:hover .reg-card-icon {
    background: var(--gold-gradient);
    border-color: var(--gold);
}

.registration-card:hover .reg-card-icon i {
    color: var(--black);
}

.reg-card-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.reg-card-subtitle {
    font-family: var(--font-elegant);
    font-size: 0.875rem;
    color: var(--gold);
    font-style: italic;
    margin-bottom: 1rem;
}

.reg-card-desc {
    font-size: 0.85rem;
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.btn-reg {
    background: transparent;
    color: var(--gold);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid var(--gold);
    transition: var(--transition-base);
}

.btn-reg:hover {
    background: var(--gold);
    color: var(--black);
}

/* Logistics Section */
.logistics-section {
    background: var(--white-off);
}

.logistics-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid rgba(212, 168, 71, 0.1);
    box-shadow: var(--shadow-sm);
}

.logistics-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.logistics-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-base);
}

.logistics-icon i {
    font-size: 2rem;
    color: var(--black);
}

.logistics-card:hover .logistics-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-gold);
}

.logistics-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.logistics-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.btn-logistics {
    background: var(--gold-gradient);
    color: var(--black);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: var(--transition-base);
}

.btn-logistics:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--black);
}

/* =====================================================
   MISSION STATEMENT SECTION
   ===================================================== */
.mission-section {
    background: linear-gradient(135deg, #1a0a00 0%, #3d0000 50%, #1a0500 100%);
    position: relative;
    overflow: hidden;
}

.mission-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 168, 71, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(212, 168, 71, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.mission-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mission-ornament {
    font-size: 1.5rem;
    color: var(--gold);
    animation: spin-slow 10s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mission-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--gold);
    margin: 0;
    letter-spacing: 3px;
}

.mission-poem {
    font-family: var(--font-elegant);
    font-size: 1.125rem;
    line-height: 2;
    color: var(--cream);
}

.mission-poem p {
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.mission-signature {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: 2rem !important;
    font-weight: 600;
    letter-spacing: 2px;
}

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

.why-about-frame{
    border: 3px solid #d4a437;
    border-radius: 28px;
    padding: 16px;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.why-about-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.about-image-wrapper {
    position: relative;
    padding: 2rem;
}

.about-image-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold);
    border-radius: var(--radius-xl);
    transform: translate(15px, 15px);
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
}

.about-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.about-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.about-placeholder span {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-align: center;
    opacity: 0.8;
}

.about-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    background: var(--gold-gradient);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-icon {
    font-size: 1.5rem;
    color: var(--black);
}

.badge-text {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--black);
    font-weight: 600;
}

.about-content {
    padding-left: 2rem;
}

.about-text {
    margin-top: 1.5rem;
}

.lead-text {
    font-family: var(--font-elegant);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gold-dark);
}

.about-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray);
    text-align: justify;
}

.about-text strong {
    color: var(--gold-dark);
}

.about-signature {
    font-family: var(--font-elegant);
    font-size: 1rem;
    color: var(--gray);
    font-style: italic;
}

.about-saranam {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold);
    margin-top: 1.5rem;
}

@media (max-width: 991.98px) {
    .about-content {
        padding-left: 0;
        margin-top: 3rem;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* =====================================================
   BOARD OF TRUSTEES SECTION
   ===================================================== */
.trustees-section {
    position: relative;
}

.trustee-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(212, 168, 71, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}

.trustee-category {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 168, 71, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trustee-category i {
    font-size: 1rem;
}

.trustee-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trustee-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(212, 168, 71, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--white);
}

.trustee-list li:last-child {
    border-bottom: none;
}

.trustee-role {
    font-family: var(--font-elegant);
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 500;
    min-width: 140px;
}

.trustee-name {
    font-size: 0.9rem;
    color: var(--white);
}

/* =====================================================
   MESSAGE BOARD SECTION
   ===================================================== */
.message-section {
    background: linear-gradient(180deg, #0a0505 0%, #1a0808 100%);
    position: relative;
    overflow: hidden;
}

.message-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(212, 168, 71, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.message-content {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.message-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.message-intro p {
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.8;
}

.message-highlight {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold) !important;
    font-weight: 600;
    margin: 1rem 0 !important;
}

.dimension-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(212, 168, 71, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: var(--transition-base);
}

.dimension-card.accent {
    border-color: var(--gold);
    background: linear-gradient(145deg, rgba(139, 0, 0, 0.3), rgba(10, 10, 10, 0.95));
}

.dimension-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.dimension-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.dimension-icon i {
    font-size: 1.5rem;
    color: var(--black);
}

.dimension-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.dimension-subtitle {
    font-family: var(--font-elegant);
    font-size: 0.9rem;
    color: var(--gray-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.dimension-desc {
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-bottom: 1rem;
}

.dimension-goals {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.dimension-note {
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
}

.dimension-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.dimension-list li {
    font-size: 0.9rem;
    color: var(--cream);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 168, 71, 0.1);
}

.dimension-list li:last-child {
    border-bottom: none;
}

.message-quote {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(139, 0, 0, 0.2), rgba(26, 26, 26, 0.5));
    border: 1px solid rgba(212, 168, 71, 0.2);
    border-radius: var(--radius-lg);
    position: relative;
}

.message-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 6rem;
    color: var(--gold);
    opacity: 0.2;
    font-family: var(--font-display);
    line-height: 1;
}

.message-quote .blockquote p {
    font-family: var(--font-elegant);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--cream);
    line-height: 1.8;
}

.message-quote .blockquote-footer {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1rem;
    margin-top: 1rem;
}

/* =====================================================
   WHY VAPURA SWAMY SECTION
   ===================================================== */
.why-vapura-section {
    background: var(--white-off);
}

.why-vapura-image {
    position: relative;
}

.why-vapura-frame{
    border: 3px solid #d4a437;
    border-radius: 28px;
    padding: 16px;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.why-vapura-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}




.why-vapura-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.why-vapura-placeholder i {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.why-vapura-placeholder span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.why-vapura-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.deco-1, .deco-2 {
    position: absolute;
    border-radius: 50%;
}

.deco-1 {
    width: 60px;
    height: 60px;
    border: 2px solid var(--gold);
    opacity: 0.3;
    animation: pulse-slow 3s ease-in-out infinite;
}

.deco-2 {
    width: 100px;
    height: 100px;
    border: 1px solid var(--gold);
    opacity: 0.2;
    animation: pulse-slow 3s ease-in-out infinite 0.5s;
    top: 20px;
    right: -40px;
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

.why-vapura-content {
    padding-right: 2rem;
}

.why-vapura-text {
    margin-top: 1.5rem;
}

.why-vapura-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1rem;
    text-align: justify;
}

.why-vapura-text strong {
    color: var(--gold-dark);
}

/* Accordion Styles */
.why-vapura-accordion {
    max-width: 100%;
}

.accordion-item {
    background: var(--white);
    border: 1px solid rgba(212, 168, 71, 0.15);
    border-radius: var(--radius-md) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--black) !important;
    padding: 1.25rem 1.5rem;
    background: var(--white);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.1), rgba(212, 168, 71, 0.05));
    color: var(--gold-dark) !important;
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D4A847'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    background: var(--white);
}

.accordion-body p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.command-quote {
    font-family: var(--font-elegant);
    font-size: 1rem;
    font-style: italic;
    color: var(--gold-dark) !important;
    padding: 1rem 1.5rem;
    background: rgba(212, 168, 71, 0.05);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1rem 0 !important;
}

.protection-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.protection-list li {
    font-size: 0.95rem;
    color: var(--gray);
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.protection-list li i {
    color: var(--gold);
}

.blessing-text {
    color: var(--gold-dark) !important;
    font-weight: 500;
    margin-top: 1rem !important;
}

@media (max-width: 991.98px) {
    .why-vapura-content {
        padding-right: 0;
        margin-top: 3rem;
    }
}

/* =====================================================
   SACRED CHRONICLE SECTION
   Maximum width for content boxes in Spiritual Legacy
   ===================================================== */
.chronicle-section {
    position: relative;
}

.chronicle-intro {
    max-width: 95%;
    margin: 0 auto 2rem;
}

.chronicle-intro p {
    font-family: var(--font-elegant);
    font-size: 1.125rem;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.chronicle-timeline {
    position: relative;
    /* Maximum width for content - use 95% for responsive display */
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
}

.chronicle-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), rgba(212, 168, 71, 0.2));
}

@media (min-width: 768px) {
    .chronicle-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .chronicle-timeline {
        width: 92%;
    }
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 60px;
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 60px;
        padding-right: 0;
    }
}

.timeline-marker {
    position: absolute;
    left: 10px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--black);
    z-index: 1;
}

@media (min-width: 768px) {
    .timeline-marker {
        left: auto;
        right: -20px;
    }

    .timeline-item:nth-child(even) .timeline-marker {
        right: auto;
        left: -20px;
    }
}

.marker-number {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--black);
}

.timeline-content {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(212, 168, 71, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-base);
    /* Maximum width - expand to fill available space */
    max-width: 100%;
    width: 100%;
    /* Ensure content boxes have maximum width */
    box-sizing: border-box;
}

/* Ensure timeline items also have proper max-width */
.timeline-item {
    max-width: 100%;
}

@media (min-width: 768px) {
    .timeline-item {
        width: 55%;
        padding-left: 0;
        padding-right: 60px;
        max-width: 100%;
    }

    .timeline-item:nth-child(even) {
        margin-left: 45%;
        padding-left: 60px;
        padding-right: 0;
        width: 55%;
    }
}

@media (min-width: 1200px) {
    .timeline-item {
        width: 50%;
    }

    .timeline-item:nth-child(even) {
        width: 50%;
    }
}

.timeline-item:hover .timeline-content {
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(212, 168, 71, 0.1);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.timeline-body p {
    font-size: 0.9rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.sub-section {
    background: rgba(212, 168, 71, 0.05);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

.sub-section h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.curse-text,
.manifestation {
    font-style: italic;
    color: var(--gold) !important;
}

.shiva-quote,
.ganga-quote {
    font-family: var(--font-elegant);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--cream);
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--gold);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1rem 0;
}

.shiva-quote p,
.ganga-quote p {
    color: var(--cream);
    margin-bottom: 0;
}

/* =====================================================
   LINEAGE FLOWCHART SECTION
   ===================================================== */
.lineage-section {
    background: var(--white-off);
}

.lineage-flowchart {
    max-width: 800px;
    margin: 0 auto;
}

.flowchart-wrapper {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.05), rgba(10, 10, 10, 0.08));
    border: 1px solid rgba(212, 168, 71, 0.1);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
}

.flowchart-root {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.flowchart-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.flowchart-row.bottom-row {
    margin-top: 2rem;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    min-width: 100px;
    position: relative;
    transition: var(--transition-base);
}

.flow-node i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.flow-node span {
    font-family: var(--font-heading);
    font-size: 18px;
    text-align: center;
}

/* Danu - Root Node */
.flow-node.danu {
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.2), rgba(212, 168, 71, 0.1));
    border: 2px solid var(--gold);
}

.flow-node.danu i,
.flow-node.danu span {
    color: var(--gold-dark);
}

/* Rambha & Karamba */
.flow-node.rambha,
.flow-node.karamba {
    background: rgba(212, 168, 71, 0.1);
    border: 2px solid rgba(212, 168, 71, 0.4);
}

.flow-node.rambha i,
.flow-node.rambha span,
.flow-node.karamba i,
.flow-node.karamba span {
    color: var(--gold);
}

/* Mahishasura */
.flow-node.mahishasura {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(204, 68, 0, 0.1));
    border: 2px solid var(--maroon);
}

.flow-node.mahishasura i,
.flow-node.mahishasura span {
    color: var(--maroon);
}

/* Mahishi */
.flow-node.mahishi {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(139, 0, 0, 0.15));
    border: 2px solid var(--maroon);
    transform: scale(1.1);
}

.flow-node.mahishi i,
.flow-node.mahishi span {
    color: var(--maroon-light);
}

/* Chandika & Dharma Sastha */
.flow-node.chandika,
.flow-node.dharma-sastha {
    background: var(--gold-gradient);
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-gold);
}

.flow-node.chandika i,
.flow-node.chandika span,
.flow-node.dharma-sastha i,
.flow-node.dharma-sastha span {
    color: var(--black);
}

/* Flow Arrows */
.flow-arrows {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.flow-arrows::before {
    content: '↓';
    font-size: 1.25rem;
    color: var(--gold);
    opacity: 0.5;
}

.arrow-line {
    display: none;
}

/* Flowchart Legend */
.flowchart-legend {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(212, 168, 71, 0.05);
    border-radius: var(--radius-md);
    text-align: center;
}

.legend-note {
    font-family: var(--font-elegant);
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
    margin: 0;
}

.legend-note i {
    color: var(--gold);
    margin-right: 0.5rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: linear-gradient(180deg, var(--black) 0%, #050505 100%);
    border-top: 2px solid var(--gold);
}

.footer-main {
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-about {
    margin-bottom: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-brand .brand-icon {
    font-size: 2rem;
}

.footer-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 168, 71, 0.1);
    border: 1px solid rgba(212, 168, 71, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-links {
    margin-bottom: var(--space-md);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-list a {
    font-size: 0.9rem;
    color: var(--gray-light);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-list a::before {
    content: '›';
    color: var(--gold);
    font-weight: bold;
}

.footer-list a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact {
    margin-bottom: var(--space-md);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-light);
}

.contact-list li i {
    color: var(--gold);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.newsletter-form {
    margin-top: 1.5rem;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.newsletter {
    display: flex;
    gap: 0.5rem;
}

.newsletter input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(212, 168, 71, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 0.875rem;
    transition: var(--transition-base);
}

.newsletter input:focus {
    outline: none;
    border-color: var(--gold);
}

.newsletter input::placeholder {
    color: var(--gray);
}

.newsletter button {
    padding: 0.75rem 1rem;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: var(--black);
    cursor: pointer;
    transition: var(--transition-base);
}

.newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(212, 168, 71, 0.1);
}

.copyright {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

.saranam {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    text-align: end;
    margin: 0;
}

@media (max-width: 767.98px) {
    .saranam {
        text-align: center;
        margin-top: 1rem;
    }
}

/* =====================================================
   FLOATING ACTION BUTTONS
   ===================================================== */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: var(--z-fixed);
}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.fab-donation,
.fab-crowdfunding,
.fab-whatsapp {
    animation: fab-pulse 2s ease-in-out infinite;
}

.fab-donation {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
}

.fab-crowdfunding {
    background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
    animation-delay: 0.3s;
}

.fab-whatsapp {
    background: #25D366;
    animation-delay: 0.6s;
}

.fab-scroll-top {
    background: var(--gray-dark);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.fab-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 71, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(212, 168, 71, 0); }
}

.fab-whatsapp {
    animation-name: fab-pulse-whatsapp;
}

@keyframes fab-pulse-whatsapp {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}

@media (max-width: 575.98px) {
    .floating-buttons {
        right: 15px;
        bottom: 15px;
    }

    .fab-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* =====================================================
   SCROLL TO TOP BUTTON
   ===================================================== */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 1199.98px) {
    :root {
        --space-section: 5rem;
    }
}

@media (max-width: 991.98px) {
    :root {
        --space-section: 4rem;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

@media (max-width: 767.98px) {
    :root {
        --space-section: 3.5rem;
    }

    .section-header {
        margin-bottom: var(--space-md);
    }

    .hero-slide {
        min-height: 500px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .guide-card {
        padding: 1.5rem;
    }

    .registration-card {
        padding: 1.5rem;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 5px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --space-section: 3rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .guide-card {
        padding: 1.25rem;
    }

    .logistics-card {
        padding: 1.5rem;
    }

    .footer-brand .brand-text {
        font-size: 1.25rem;
    }
}

/* =====================================================
   LINEAGE FLOWCHART SECTION
   ===================================================== */
.lineage-section {
    background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 100%);
    position: relative;
}

/* Light background variant */
.lineage-section.bg-white-off {
    background: var(--white-off);
}

.lineage-section.bg-white-off .flow-node {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lineage-section.bg-white-off .root-node {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.15), rgba(74, 0, 0, 0.1));
    border-color: var(--maroon);
    color: var(--black);
}

.lineage-section.bg-white-off .root-node i {
    color: var(--maroon);
}

.lineage-section.bg-white-off .rambha,
.lineage-section.bg-white-off .karamba {
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.2), rgba(212, 168, 71, 0.1));
    border-color: rgba(212, 168, 71, 0.6);
    color: var(--black);
}

.lineage-section.bg-white-off .rambha i,
.lineage-section.bg-white-off .karamba i {
    color: var(--gold-dark);
}

.lineage-section.bg-white-off .shared-event {
    background: linear-gradient(135deg, rgba(204, 68, 0, 0.15), rgba(165, 42, 42, 0.08));
    border-color: rgba(204, 68, 0, 0.6);
    color: var(--black);
}

.lineage-section.bg-white-off .shared-event i {
    color: var(--deep-orange);
}

.lineage-section.bg-white-off .event-node {
    background: var(--white);
    border-color: rgba(212, 168, 71, 0.5);
    color: var(--black);
}

.lineage-section.bg-white-off .event-node i {
    color: var(--gold-dark);
}

.lineage-section.bg-white-off .mahishasura-node {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.15), rgba(74, 0, 0, 0.1));
    border-color: var(--maroon);
    color: var(--black);
}

.lineage-section.bg-white-off .mahishasura-node i {
    color: var(--maroon);
}

.lineage-section.bg-white-off .mahishasura-node span strong {
    color: var(--maroon);
}

.lineage-section.bg-white-off .chandika-node {
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.25), rgba(184, 146, 47, 0.15));
    border-color: var(--gold);
    color: var(--black);
}

.lineage-section.bg-white-off .chandika-node i {
    color: var(--gold-dark);
}

.lineage-section.bg-white-off .chandika-node span strong {
    color: var(--maroon);
}

.lineage-section.bg-white-off .mahishi-node {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.12), rgba(74, 0, 0, 0.08));
    border-color: rgba(139, 0, 0, 0.5);
    color: var(--black);
}

.lineage-section.bg-white-off .mahishi-node i {
    color: var(--maroon);
}

.lineage-section.bg-white-off .mahishi-node span strong {
    color: var(--maroon);
}

.lineage-section.bg-white-off .dharma-sastha-node {
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.25), rgba(184, 146, 47, 0.15));
    border-color: var(--gold);
    color: var(--black);
}

.lineage-section.bg-white-off .dharma-sastha-node i {
    color: var(--gold-dark);
}

.lineage-section.bg-white-off .dharma-sastha-node span strong {
    color: var(--maroon);
}

.lineage-section.bg-white-off .result-node {
    background: rgba(0, 80, 0, 0.12);
    border-color: rgba(0, 128, 0, 0.5);
    color: var(--black);
}

.lineage-section.bg-white-off .result-node i {
    color: #2e8b57;
}

.lineage-section.bg-white-off .result-node span strong {
    color: #2e8b57;
}

.lineage-section.bg-white-off .arrow-line {
    background: linear-gradient(to bottom, var(--gold-dark), var(--gold));
}

.lineage-section.bg-white-off .branch-line {
    background: var(--gold-dark);
}

.lineage-section.bg-white-off .flowchart-legend {
    background: rgba(212, 168, 71, 0.15);
    border-color: rgba(212, 168, 71, 0.3);
}

.lineage-section.bg-white-off .legend-note {
    color: var(--black);
}

.lineage-section.bg-white-off .section-title.dark,
.lineage-section.bg-white-off .section-tag {
    color: inherit;
}

.lineage-section.bg-white-off .section-subtitle {
    color: var(--gray);
}

.lineage-flowchart {
    max-width: 1200px;
    margin: 0 auto;
}

.flowchart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Root node */
.flowchart-root {
    display: flex;
    justify-content: center;
}

.flow-node {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    text-align: center;
    border: 2px solid;
    transition: var(--transition-base);
}

.flow-node i {
    font-size: 1.5rem;
}

.flow-node span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Root node - Danu */
.root-node {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(74, 0, 0, 0.2));
    border-color: var(--maroon);
    color: var(--cream);
}

.root-node i {
    color: var(--maroon-light);
}

/* Sons of Danu */
.rambha, .karamba {
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.15), rgba(212, 168, 71, 0.05));
    border-color: rgba(212, 168, 71, 0.4);
    color: var(--cream);
}

.rambha i, .karamba i {
    color: var(--gold);
}

/* Shared event */
.shared-event {
    background: linear-gradient(135deg, rgba(204, 68, 0, 0.2), rgba(165, 42, 42, 0.1));
    border-color: rgba(204, 68, 0, 0.5);
    color: var(--cream);
    min-width: 280px;
}

.shared-event i {
    color: var(--deep-orange);
}

/* Event nodes */
.event-node {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(212, 168, 71, 0.3);
    color: var(--gray-light);
    min-width: 260px;
}

.event-node i {
    color: var(--gold);
    font-size: 1.25rem;
}

.event-node span {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Mahishasura node */
.mahishasura-node {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.4), rgba(74, 0, 0, 0.3));
    border-color: var(--maroon);
    color: var(--cream);
    border-width: 3px;
}

.mahishasura-node i {
    color: var(--maroon-light);
}

.mahishasura-node span {
    color: var(--cream);
}

.mahishasura-node span strong {
    color: var(--gold-light);
}

/* Chandika node */
.chandika-node {
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.3), rgba(184, 146, 47, 0.2));
    border-color: var(--gold);
    color: var(--cream);
    border-width: 3px;
}

.chandika-node i {
    color: var(--gold-light);
}

.chandika-node span {
    color: var(--cream);
}

.chandika-node span strong {
    color: var(--gold-light);
}

/* Mahishi node */
.mahishi-node {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.35), rgba(74, 0, 0, 0.25));
    border-color: rgba(139, 0, 0, 0.7);
    color: var(--cream);
}

.mahishi-node i {
    color: var(--maroon-light);
}

.mahishi-node span strong {
    color: var(--gold-light);
}

/* Dharma Sastha node */
.dharma-sastha-node {
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.35), rgba(184, 146, 47, 0.25));
    border-color: var(--gold);
    color: var(--cream);
    border-width: 3px;
}

.dharma-sastha-node i {
    color: var(--gold-light);
}

.dharma-sastha-node span strong {
    color: var(--gold-light);
}

/* Result nodes */
.result-node {
    background: rgba(0, 80, 0, 0.2);
    border-color: rgba(0, 128, 0, 0.5);
    color: var(--cream);
}

.result-node i {
    color: #50C878;
}

.result-node span strong {
    color: #50C878;
}

/* Flow arrows */
.flow-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.arrow-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
}

.arrow-line.single {
    height: 30px;
}

/* Branching container */
.flowchart-branches {
    display: flex;
    gap: 4rem;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
}

.branch-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}

/* Branch lines - V-shape split arrow */
.flow-branches {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 30px;
}

/* Center vertical line from top */
.flow-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: var(--gold);
}

/* Left branch - diagonal down-left then straight down */
.branch-line.left-branch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-100%);
    width: 2px;
    height: 30px;
    background: transparent;
}

/* Add the V-split arms using pseudo-elements */
.flow-branches::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: 2px;
    background: var(--gold);
    top: 28px;
    /* Left arm */
    box-shadow: -49% 0 0 0 var(--gold),
                49% 0 0 0 var(--gold);
}

.branch-line {
    position: absolute;
    top: 28px;
    height: 2px;
    background: var(--gold);
}

/* Left arm from center to left column */
.branch-line.left-branch {
    left: 5%;
    right: auto;
    width: 44%;
}

/* Right arm from center to right column */
.branch-line.right-branch {
    right: 5%;
    left: auto;
    width: 44%;
}

/* Add downward arrows from the split point */
.flow-branches .arrow-down {
    position: absolute;
    top: 28px;
    width: 2px;
    height: 12px;
    background: var(--gold);
}

.flow-branches .arrow-down.left-arrow {
    left: calc(5% + 44%);
    transform: translateX(-1px);
}

.flow-branches .arrow-down.right-arrow {
    right: calc(5% + 44%);
    transform: translateX(1px);
}

/* Light background variant for branch lines */
.lineage-section.bg-white-off .flow-branches::before,
.lineage-section.bg-white-off .flow-branches .arrow-down {
    background: var(--gold-dark);
}

.lineage-section.bg-white-off .branch-line {
    background: var(--gold-dark);
}

.lineage-section.bg-white-off .flow-branches::after {
    box-shadow: -49% 0 0 0 var(--gold-dark),
                49% 0 0 0 var(--gold-dark);
}

/* Flowchart legend */
.flowchart-legend {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(212, 168, 71, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 168, 71, 0.2);
}

.legend-note {
    font-family: var(--font-elegant);
    font-style: italic;
    color: var(--gray-light);
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
}

.legend-note i {
    color: var(--gold);
    margin-right: 0.5rem;
}

/* Mobile flowchart styles */
@media (max-width: 991.98px) {
    .flowchart-branches {
        flex-direction: column;
        gap: 2rem;
    }

    .branch-column {
        max-width: 100%;
        width: 100%;
    }

    .flow-node {
        min-width: 160px;
        padding: 0.75rem 1rem;
    }

    .event-node,
    .shared-event {
        min-width: 200px;
    }

    .flow-branches {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .flow-node {
        min-width: 140px;
        padding: 0.5rem 0.75rem;
    }

    .flow-node i {
        font-size: 1.25rem;
    }

    .flow-node span {
        font-size: 0.8rem;
    }

    .event-node span {
        font-size: 0.75rem;
    }

    .flowchart-wrapper {
        gap: 0.25rem;
    }

    .arrow-line {
        height: 15px;
    }
}

/* =====================================================
   AOS ANIMATION OVERRIDES
   ===================================================== */
[data-aos] {
    pointer-events: auto !important;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .floating-buttons,
    .notification-bar,
    .navbar,
    .hero-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section-padding {
        padding: 2rem 0;
    }
}