@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

.baloo {
    font-family: 'Baloo Thambi 2', cursive
}

p {
    font-size: 16px;
    line-height: 1.7;
    font-family: 'Poppins', sans-serif;
    color: #444;
}

/* =========================================
   Standardized Typography System
   ========================================= */

h1,
.h1 {
    font-size: 2.5rem;
}

h2,
.h2 {
    font-size: 2rem;
}

h3,
.h3 {
    font-size: 1.75rem;
}

h4,
.h4 {
    font-size: 1.5rem;
}

h5,
.h5 {
    font-size: 1.25rem;
}

h6,
.h6 {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    h1,
    .h1 {
        font-size: 2rem;
    }

    h2,
    .h2 {
        font-size: 1.75rem;
    }

    h3,
    .h3 {
        font-size: 1.5rem;
    }
}

/* Specific Utility Classes */
.page-title {
    font-family: 'Baloo Thambi 2', cursive;
    font-weight: 700;
    color: #ffffff;
    /* White for header backgrounds */
    font-size: 2.5rem;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.section-title {
    font-family: 'Baloo Thambi 2', cursive;
    font-weight: 700;
    color: #800000;
    /* Maroon for content headers */
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0e6d2;
    padding-bottom: 10px;
    display: inline-block;
}

.jumbotron p {
    font-size: 17px;
    font-weight: 500;
    color: #555;
    font-family: 'Poppins', sans-serif;
}

.triangle-bg {
    background: url("../images/bg.png");
    background-size: contain
}

.content-section p {
    text-align: justify
}

.page-header {
    padding: 30px 0;
    /* Add top margin/padding to account for fixed header */
    margin-top: 100px;
    background-color: #fdfbf7;
    /* Light cream background for headers */
    border-bottom: 3px solid #d4af37;
    /* Gold border */
    margin-bottom: 30px;
}

.nav-item {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Gradients - Refined */
.orange-gradient {
    background-image: linear-gradient(135deg, #d35400 10%, #f39c12 100%);
}

.darkblue-gradient {
    background-image: linear-gradient(135deg, #800000 10%, #a00000 100%);
    /* Changed to Maroon for consistency */
}

.maroon-gradient {
    background-image: linear-gradient(135deg, #800000 10%, #c0392b 100%);
}

.green-gradient {
    background-image: linear-gradient(135deg, #1e8449 10%, #2ecc71 100%);
}

footer {
    position: relative;
    background: linear-gradient(135deg, #4a0e0e 0%, #2c0404 100%);
    color: #fdfbf7;
    padding: 70px 0 30px;
    border-top: 5px solid #d4af37;
    overflow: hidden;
}

/* Temple Pattern Overlay */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H22v20h-2V22h-2v20h-2V22h-2v20h-2V22h-2v20H8v-2h20v-2H8v-2h20v-2H8v-2h20v-2H8v-2h20v-2H8v-2h20v-2H8v-2h20v-2H8v-2h20v-1.5V20.5z' fill='%23d4af37' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

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

.footer-title {
    font-family: 'Baloo Thambi 2', cursive;
    font-weight: 700;
    color: #FFC107;
    font-size: 1.5rem;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #d35400;
    border-radius: 2px;
}



.footer-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 500;
}

.footer-link i {
    margin-right: 10px;
    font-size: 1rem;
    color: #FFC107;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: #FFC107;
    padding-left: 10px;
}

.footer-link:hover i {
    transform: translateX(5px);
}

.social-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFC107;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    margin-right: 10px;
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    background: #FFC107;
    color: #4a0e0e;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.copyright-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
}

footer a {
    color: #ffffff !important;
    /* White links */
    text-decoration: none;
    font-weight: 500;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #f39c12 !important;
    /* Gold hover */
    text-decoration: none;
    opacity: 1;
    padding-left: 5px;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #fffcf5;
    /* Warm Cream Background */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    /* Subtle pattern */
    min-height: 100vh;
    color: #333;
}

strong,
b {
    font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Baloo Thambi 2', cursive;
    color: #800000;
    /* Maroon Headings */
}

a {
    font-family: 'Poppins', sans-serif;
    color: #800000;
    transition: color 0.3s ease;
}

a:hover {
    color: #d35400;
    text-decoration: none;
}

/* Navbar Styles */
.nav-link {
    color: #4a0e0e !important;
    /* Maroon Text */
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: #d35400 !important;
    /* Burnt Orange Hover */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #d35400;
    transition: width 0.3s ease;
}

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

/* Buttons */
.btn-primary {
    background-color: #d35400;
    /* Burnt Orange */
    border-color: #d35400;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 30px;
}

.btn-primary:hover {
    background-color: #a04000;
    border-color: #a04000;
}

.btn-secondary {
    background-color: #800000;
    /* Maroon */
    border-color: #800000;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 30px;
}

.btn-secondary:hover {
    background-color: #600000;
    border-color: #600000;
}

/* Content Container Styles */
.container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-top: 0;
    margin-bottom: 20px;
    border-top: 4px solid #d4af37;
    /* Gold top border for containers */
}

/* Reset for Header/Footer Containers */
header .container,
.container header,
footer .container {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
    border: none;
}

footer .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Navbar Container Override */
nav .container-fluid {
    background-color: #fff;
    border-bottom: 3px solid #d4af37;
    /* Gold border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Gallery Styles */
.gallery-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Utility Backgrounds */
/* Divine V2 - Welcome Section */
.royal-welcome-v2 {
    background-color: #fffbf0;
    background-image: linear-gradient(to bottom, #fffbf0 0%, #fff8e1 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.royal-welcome-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 0;
}

.ornate-text-box {
    position: relative;
    z-index: 1;
    border: 2px solid rgba(212, 175, 55, 0.3);
    /* Gold border */
    padding: 40px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.6);
}

.ornate-text-box::after {
    /* Corner decoration bottom right */
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid #d4af37;
    border-right: 3px solid #d4af37;
}

.ornate-text-box::before {
    /* Corner decoration top left */
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-top: 3px solid #d4af37;
    border-left: 3px solid #d4af37;
}

/* Divine V2 - Special Days */
.special-days-v2 {
    background-color: #fdf5e6;
    /* Old Lace */
    padding: 70px 0;
    position: relative;
}

.special-days-v2 .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.special-days-v2 .section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: #FFC107;
    margin-top: 10px;
}

.floating-img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(74, 14, 14, 0.15);
    transition: transform 0.4s ease;
    border: 4px solid #fff;
}

.floating-img:hover {
    transform: translateY(-10px);
}

.btn-divine-gold {
    background: linear-gradient(135deg, #FFC107 0%, #ff8f00 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-divine-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
    color: #fff;
}



/* Divine Footer - Option H: Saffron Sunset (Refined) */
.divine-footer-saffron {
    background: linear-gradient(135deg, #d84315 0%, #870000 100%);
    /* Darker Saffron to Deep Red */
    position: relative;
    border-top: 5px solid #FFD700;
    /* Bright Gold Top Border */
    font-family: 'Poppins', sans-serif;
    padding-top: 15px;
    padding-bottom: 10px;
    color: #ffffff;
    /* Pure White Text for Contrast */
}

/* Holy Fire Texture Overlay */
.divine-footer-saffron::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* OM Symbol Pattern (Simplified) */
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50%25' y='50%25' font-size='20' fill='%23ffcc80' fill-opacity='0.1' font-family='Arial' text-anchor='middle' dominant-baseline='middle'%3E%E0%AF%90%3C/text%3E%3C/svg%3E");
    opacity: 0.2;
    z-index: 0;
}

.divine-footer-saffron .container {
    position: relative;
    z-index: 1;
}

.divine-footer-saffron .footer-title {
    font-family: 'Baloo Thambi 2', cursive;
    font-weight: 700;
    color: #FFD700;
    /* Bright Gold Title */
    font-size: 1.6rem;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.divine-footer-saffron .footer-title::after {
    content: none;
}

.divine-footer-saffron .text-white-50 {
    color: #FFF8E1 !important;
    /* Very Light Cream Text */
    opacity: 0.95;
    font-size: 1.05rem;
}

.divine-footer-saffron .text-white {
    color: #fff !important;
}

.divine-footer-saffron .footer-link {
    color: #FFF8E1;
    text-decoration: none;
    padding: 6px 0;
    display: block;
    transition: all 0.3s;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.3);
}

.divine-footer-saffron .footer-link:hover {
    color: #fff;
    padding-left: 8px;
    border-bottom-color: #FFD700;
}

.divine-footer-saffron .footer-link i {
    color: #FFD700;
    margin-right: 10px;
}

.divine-footer-saffron .social-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s;
}

.divine-footer-saffron .social-btn:hover {
    background: #FFD700;
    color: #870000;
    transform: translateY(-3px) rotate(15deg);
    box-shadow: 0 5px 15px rgba(135, 0, 0, 0.4);
}



/* Layout Type A: Centered Links */
.footer-link-center {
    color: #FFF8E1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.footer-link-center::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #FFD700;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-link-center:hover {
    color: #FFD700;
}

.footer-link-center:hover::after {
    width: 100%;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 1.5rem;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #FFD700 0%, #ff8f00 100%);
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
    background: linear-gradient(135deg, #ff8f00 0%, #FFD700 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* =========================================
   Golden Temple Sticky Header
   ========================================= */
/* Golden Temple Sticky Header - NOW SOLID */
.divine-navbar {
    background: linear-gradient(135deg, #800000 0%, #4a0e0e 100%) !important;
    /* Solid Maroon */
    padding: 10px 0;
    /* Standard padding */
    transition: all 0.4s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Add shadow */
}

.divine-navbar.scrolled {
    background: linear-gradient(135deg, #800000 0%, #4a0e0e 100%) !important;
    /* Solid Maroon on scroll */
    padding: 10px 0;
    /* Shrink slightly */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Inner Page Header - Always Solid */
.divine-navbar.inner-page-header {
    background: linear-gradient(135deg, #800000 0%, #4a0e0e 100%) !important;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.divine-navbar.inner-page-header .nav-link-custom {
    color: #FFD700 !important;
}

/* Navbar Links */
.nav-link-custom {
    font-family: 'Baloo Thambi 2', cursive;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff !important;
    /* White text for Maroon background */
    margin: 0 12px;
    position: relative;
    transition: color 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Restore shadow for depth */
}

.divine-navbar.scrolled .nav-link-custom {
    color: #fff !important;
    /* White text when background is dark maroon */
    text-shadow: none;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: #d35400 !important;
    /* Burnt Orange on hover (light bg) */
}

.divine-navbar.scrolled .nav-link-custom:hover,
.divine-navbar.scrolled .nav-link-custom.active {
    color: #FFD700 !important;
    /* Gold on hover (dark bg) */
}

/* Underline Animation */
.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: #d35400;
    /* Burnt orange underline default */
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

.divine-navbar.scrolled .nav-link-custom::after {
    background-color: #FFD700;
    /* Gold underline on scrolled */
}

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

/* Donate Button in Header */
.btn-donate-header {
    background: linear-gradient(45deg, #FFC107, #FF9800);
    color: #fff;
    font-family: 'Baloo Thambi 2', cursive;
    font-weight: 700;
    border: none;
    padding: 8px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-donate-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
    color: #fff;
}



/* Ensure inner pages start below the fixed header */
/* Ensure inner pages start below the fixed header */
.page-header {
    margin-top: 110px !important;
}

/* Force Toggler to be White */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    outline: none;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* =========================================
   Footer Utilities (Replaces Inline Styles)
   ========================================= */
.footer-heading-gold {
    font-family: 'Baloo Thambi 2', cursive;
    color: #FFD700;
    font-size: 1.3rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-address-text {
    color: #FFF8E1;
    font-size: 1.1rem;
    line-height: 1.6;
}

.footer-email-link {
    color: #FFF8E1;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.footer-email-link:hover {
    color: #FFD700;
}

.footer-divider-vertical {
    height: 50px;
    width: 1px;
    background-color: rgba(255, 215, 0, 0.3);
}

.footer-copyright-content p {
    margin-bottom: 0 !important;
}

/* CMS Content Protection - Force Theme Font & Clean Style */
.royal-text *,
.history-content *,
.about-text *,
.info-content * {
    font-family: 'Poppins', sans-serif !important;
    background-color: transparent !important;
    /* Prevent copied background colors */
    color: inherit;
    /* Respect parent color unless specifically overridden by theme */
}


/* Mobile Responsiveness */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(135deg, #800000 0%, #4a0e0e 100%);
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-link-custom {
        color: #fff !important;
        margin: 5px 0;
        display: inline-block;
        font-size: 1.2rem;
    }

    .nav-link-custom:hover,
    .nav-link-custom.active {
        color: #FFD700 !important;
        padding-left: 10px;
    }

    .btn-donate-header {
        margin-top: 15px;
        display: inline-block;
        width: 100%;
    }

    /* Ensure toggler is visible */
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
    }

    .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(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        filter: none !important;
        /* Override invert if set */
    }
}