:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --light-color: #f9f9f9;
    --dark-color: #2d3436;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Poppins', sans-serif;
    --font-hindi: 'AMS Manthan', 'Laila', 'Yatra One', serif;
}

body {
    font-family: var(--font-body), var(--font-hindi);
    color: var(--dark-color);
    background-color: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading), var(--font-hindi);
    font-weight: 700;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-2.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 150px 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

.card {
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

/* Custom classes for spiritual theme */
.meditation-quote {
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

/* Navbar Styles */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* Main Site Navbar (if it needs to be dark) */
.navbar-dark {
    background-color: #1a1a1a !important;
}

/* Admin Navbar - Force light background and dark text */
.navbar.admin-navbar {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

.admin-navbar {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e9ecef !important;
    z-index: 1030;
}

.admin-navbar h4, 
.admin-navbar .text-dark,
.admin-navbar p,
.admin-navbar span,
.admin-navbar div,
.admin-navbar .fw-bold {
    color: #212529 !important;
}

.admin-navbar .text-muted {
    color: #6c757d !important;
}

.navbar-brand {
    color: #ffffff !important;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
    opacity: 0.85;
    padding: 10px 15px !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    opacity: 1;
    color: var(--secondary-color) !important;
}

/* Footer Styles */
footer {
    background-color: #121212 !important; /* Darker background for footer */
    color: #ffffff !important;
}

footer h5 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
}

footer .footer-text {
    color: #cccccc !important;
    line-height: 1.8;
}

footer .footer-link {
    color: #cccccc !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

footer .footer-link:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px;
}

footer .contact-info {
    color: #cccccc !important;
    font-size: 0.95rem;
}

footer .contact-info i {
    width: 25px;
    color: var(--primary-color);
}

footer hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .copyright {
    color: #888888 !important;
    font-size: 0.85rem;
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(15deg);
}

.filter-white {
    filter: brightness(0) invert(1);
}

/* Social Icons Styling */
.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

/* Offcanvas Mobile Menu Styling */
.offcanvas {
    width: 280px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-header {
    padding: 20px;
}

.offcanvas-body {
    padding: 20px;
}

.offcanvas-body .nav-link {
    font-size: 1.1rem;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.offcanvas-body .nav-link:hover {
    color: var(--secondary-color) !important;
    padding-left: 10px !important;
}

.navbar-dark .navbar-nav .nav-link.active {
    opacity: 1;
    color: var(--primary-color) !important;
    font-weight: 600;
    position: relative;
}

/* Desktop indicator line */
@media (min-width: 992px) {
    .navbar-dark .navbar-nav .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 15px;
        right: 15px;
        height: 2px;
        background-color: var(--primary-color);
        border-radius: 2px;
    }
}

/* Mobile active link styling */
.offcanvas-body .nav-link.active {
    background-color: rgba(108, 92, 231, 0.1);
    padding-left: 15px !important;
    border-left: 3px solid var(--primary-color);
    border-bottom: none;
}

/* Admin Sidebar Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.admin-sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2000; /* Extremely high to stay above everything */
    background-color: #212529 !important; /* Force solid dark background */
    transition: transform 0.3s ease-in-out;
    box-shadow: 4px 0 15px rgba(0,0,0,0.2);
}

.admin-sidebar.show {
    transform: translateX(0) !important;
    display: block !important;
}

.admin-sidebar .nav-link {
    padding: 12px 20px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
}

.admin-sidebar .nav-link i {
    width: 20px;
    margin-right: 15px;
}

.admin-sidebar .nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.admin-sidebar .nav-link.active {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-left-color: #fff;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background-color: #f8f9fa;
    min-width: 0;
    width: 100%;
    min-height: 100vh;
}

/* Responsive Admin Panel */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%); /* Use transform for smoother mobile animation */
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0 !important;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.7);
        z-index: 1500;
        display: none;
        backdrop-filter: blur(3px);
    }
    
    .sidebar-overlay.show {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .admin-main .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .table-responsive {
        border-radius: 8px;
        overflow-x: auto;
    }
    
    /* Stats Cards stacking better */
    .admin-main .row.g-3.mb-4 .col-6 {
        width: 100%;
    }
}

/* Live Class Status & Pulse */
.animate-pulse {
    width: 10px;
    height: 10px;
    display: inline-block;
    background-color: #dc3545;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Floating Animation for Images */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating-image {
    animation: float 6s ease-in-out infinite;
    transition: all 0.5s ease;
}

.floating-image:hover {
    animation-play-state: paused;
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2) !important;
}

.hindi-stylish {
    font-family: var(--font-hindi) !important;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* 
   To use AMS Manthan specifically:
   1. Place your 'ams-manthan.ttf' in assets/fonts/
   2. Uncomment the @font-face below and change 'Yatra One' to 'AMS Manthan' in .hero-title
*/
/*
@font-face {
    font-family: 'AMS Manthan';
    src: url('../fonts/ams-manthan.ttf') format('truetype');
}
*/

/* Stylish Hero Text */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-title, .hero-title .text-gradient {
    font-family: 'AMS Manthan', 'Yatra One', cursive !important;
    font-size: 5rem !important;
    font-weight: 400 !important; /* Calligraphy fonts are usually not 'bold' */
    text-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 10px rgba(108, 92, 231, 0.3);
    letter-spacing: 1px !important;
    margin-bottom: 0.5rem !important;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-family: 'AMS Manthan', 'Laila', serif !important;
    font-size: 1.6rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px;
    opacity: 0.95;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    animation: fadeInUp 1.2s ease-out;
    line-height: 1.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stylish-divider {
    height: 4px;
    width: 120px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 2rem auto;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-color);
}