html{scrollbar-gutter:stable}
body{overflow-y:scroll;overflow-x:hidden;max-width:100vw}

/* ========================================
   ENHANCED VISUAL EFFECTS (Performance-Optimized)
   ======================================== */

/* Subtle gradient overlay for darshan section */
#darshan::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0) 30%,
        rgba(0,0,0,0) 70%,
        rgba(109,0,0,0.4) 100%
    );
    pointer-events: none;
    z-index: 5;
}

/* Elegant text glow effect */
.slide-text h2 {
    text-shadow: 
        0 0 40px rgba(249,168,37,0.4),
        0 2px 10px rgba(0,0,0,0.8),
        0 0 80px rgba(249,168,37,0.2);
    animation: subtleGlow 4s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    0% { text-shadow: 0 0 40px rgba(249,168,37,0.3), 0 2px 10px rgba(0,0,0,0.8); }
    100% { text-shadow: 0 0 60px rgba(249,168,37,0.5), 0 2px 10px rgba(0,0,0,0.8), 0 0 100px rgba(249,168,37,0.3); }
}

/* Decorative corner accents - REMOVED to avoid line artifacts */
/* Corner accents were causing visual issues on some pages */

#leela-path, #amrit-vani {
    position: relative;
    overflow: hidden;
}

/* Animated gradient border for timeline */
.timeline::after {
    background: linear-gradient(180deg, 
        var(--color-saffron) 0%, 
        var(--color-maroon) 50%, 
        var(--color-saffron) 100%) !important;
    background-size: 100% 200%;
    animation: gradientFlow 8s ease infinite;
    opacity: 0.6 !important;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

/* Enhanced timeline items with hover effect */
.timeline-item .timeline-content {
    border-left: 4px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #fff 0%, #fdfcfa 100%);
}

.timeline-item:hover .timeline-content {
    border-left-color: var(--color-saffron);
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(109,0,0,0.12);
}

/* Glowing dots on timeline */
.timeline-item::after {
    box-shadow: 0 0 0 4px rgba(109,0,0,0.1), 0 0 20px rgba(249,168,37,0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    box-shadow: 0 0 0 6px rgba(249,168,37,0.3), 0 0 30px rgba(249,168,37,0.5);
    transform: scale(1.2);
}

/* Enhanced video cards with shine effect */
.video-card {
    position: relative;
    overflow: hidden;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

.video-card:hover::before {
    left: 100%;
}

.video-card:hover {
    box-shadow: 0 12px 40px rgba(109,0,0,0.15);
    border-color: var(--color-saffron);
}

/* Floating animation for insight cards */
.insight-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.insight-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 
        0 20px 50px rgba(109,0,0,0.2),
        0 0 0 1px rgba(249,168,37,0.2) !important;
}

/* Gradient text for section headers */
#leela-path h2,
#amrit-vani h2,
#latest-insights h2 {
    background: linear-gradient(135deg, var(--color-maroon) 0%, #8B0000 50%, var(--color-maroon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA buttons with animated gradient */
.cta-button-primary,
.cta-button-accent,
a[style*="background: var(--color-maroon)"] {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button-primary::before,
.cta-button-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-button-primary:hover::before,
.cta-button-accent:hover::before {
    left: 100%;
}

/* Disable decorative elements on hero/banner sections */
.page-hero::before,
.page-hero::after,
.blog-hero::before,
.blog-hero::after,
.teachings-hero::before,
.teachings-hero::after,
.about-hero::before,
.about-hero::after,
.faq-hero::before,
.faq-hero::after,
.donate-hero::before,
.donate-hero::after,
[class*="-hero"]::before,
[class*="-hero"]::after {
    display: none !important;
}

/* Subtle pattern overlay for leela-path section */
#leela-path {
    background: 
        radial-gradient(circle at 20% 80%, rgba(249,168,37,0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(109,0,0,0.03) 0%, transparent 40%),
        var(--color-light-bg);
}

/* Enhanced filter buttons */
.filter-btn {
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.filter-btn:hover {
    border-color: var(--color-saffron);
    background: linear-gradient(135deg, #f5f5f5, #fff) !important;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--color-maroon), #8B0000) !important;
    box-shadow: 0 4px 15px rgba(109,0,0,0.3);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus states with beautiful outlines */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-saffron);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Navigation link underline animation enhancement */
.main-nav a::after {
    background: linear-gradient(90deg, var(--color-saffron), var(--color-maroon), var(--color-saffron)) !important;
    height: 3px !important;
    border-radius: 2px;
}
.slide-text{top:10%;bottom:10%;transform:translate(-50%,0);width:min(720px,90%);padding:0;background:transparent;backdrop-filter:none;border-radius:0;display:flex;flex-direction:column;justify-content:space-between;align-items:center;text-align:center}
.slide-text h1{font-size:2.4em;margin:0 0 8px 0}
.slide-text h2{font-size:2.9em;margin:0}
.slide-text p{font-size:1em;margin:0}
.hero-top,.hero-middle,.hero-bottom{width:100%}
.hero-middle{margin-top:50px}
.hero-top p{max-width:620px;margin:0 auto}
.hero-bottom p{max-width:520px;margin:0 auto}
@media (max-width:768px){.slide-text{top:8%;bottom:8%}.slide-text h1{font-size:1.9em}.slide-text h2{font-size:2.8em}.slide-text p{font-size:.9em}}
@media (max-width:480px){.slide-text{top:6%;bottom:6%}.slide-text h1{font-size:1.6em}.slide-text h2{font-size:2.5em}.slide-text p{font-size:.82em}}
.teachings-hero .hero-content h1,
.teachings-hero .hero-content h1,
.faq-hero .hero-content h1,
.blog-hero .hero-content h1,
.about-hero .hero-content h1,
.donate-hero .hero-content h1,
.page-hero .hero-content h1{font-family:var(--font-heading)!important;font-size:3.5em!important;font-weight:700!important;line-height:1.1;color:white!important}
.teachings-hero .hero-content p,
.faq-hero .hero-content p,
.blog-hero .hero-content p,
.about-hero .hero-content p,
.donate-hero .hero-content p,
.page-hero .hero-content p{font-family:var(--font-body)!important;font-size:1.2em!important;line-height:1.6;color:rgba(255,255,255,.95)!important}

/* Specific color adjustment for page-hero to match other sections */
.page-hero .hero-content h1 {
    color: #FFFCF0 !important;
}

.page-hero .hero-content p {
    color: rgba(255, 252, 240, 0.95) !important;
}

@media (max-width:1024px){
	.teachings-hero .hero-content h1,
	.faq-hero .hero-content h1,
	.blog-hero .hero-content h1,
	.about-hero .hero-content h1,
	.donate-hero .hero-content h1,
	.page-hero .hero-content h1{font-size:3em!important}
}
@media (max-width:768px){
	.teachings-hero .hero-content h1,
	.faq-hero .hero-content h1,
	.blog-hero .hero-content h1,
	.about-hero .hero-content h1,
	.donate-hero .hero-content h1,
	.page-hero .hero-content h1{font-size:2em!important}
	.teachings-hero .hero-content p,
	.faq-hero .hero-content p,
	.blog-hero .hero-content p,
	.about-hero .hero-content p,
	.donate-hero .hero-content p,
	.page-hero .hero-content p{font-size:0.95em!important;line-height:1.5!important}
}

@media (max-width:480px){
	.teachings-hero .hero-content h1,
	.faq-hero .hero-content h1,
	.blog-hero .hero-content h1,
	.about-hero .hero-content h1,
	.donate-hero .hero-content h1,
	.page-hero .hero-content h1{font-size:1.6em!important;line-height:1.2!important}
	.teachings-hero .hero-content p,
	.faq-hero .hero-content p,
	.blog-hero .hero-content p,
	.about-hero .hero-content p,
	.donate-hero .hero-content p,
	.page-hero .hero-content p{font-size:0.9em!important;line-height:1.4!important;padding:0 10px!important}
}

/* Latest Insights Section Enhancements */
.insight-card {
    cursor: pointer;
}

.insight-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(109, 0, 0, 0.2) !important;
}

.insight-card a:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive grid for insights */
@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    #latest-insights {
        padding: 60px 20px !important;
    }
    
    #latest-insights h2 {
        font-size: 1.8em !important;
    }
    
    .insight-card h3 {
        font-size: 1.1em !important;
    }
    
    .insight-content p {
        font-size: 0.9em !important;
    }
    
    .insight-content {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    #latest-insights {
        padding: 40px 15px !important;
    }
    
    #latest-insights h2 {
        font-size: 1.5em !important;
        margin-bottom: 15px !important;
    }
    
    .section-intro {
        font-size: 0.95em !important;
        margin-bottom: 30px !important;
    }
    
    .insight-icon {
        padding: 25px 15px !important;
    }
    
    .insight-icon span:first-child {
        font-size: 2.5em !important;
    }
    
    .insight-content {
        padding: 20px !important;
    }
}

/* CTA Button Styles */
.cta-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    background: #f5f5f5 !important;
}

.cta-button-secondary:hover {
    background: white !important;
    color: var(--color-maroon) !important;
    transform: translateY(-3px);
}

.cta-button-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 168, 37, 0.6) !important;
    background: #e08e1f !important;
}

/* General CTA hover effects for inline styled buttons */
a[style*="background: var(--color-maroon)"]:hover,
a[style*="background: var(--color-saffron)"]:hover,
a[style*="background: linear-gradient"]:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Responsive CTA buttons */
@media (max-width: 768px) {
    .cta-button-primary,
    .cta-button-secondary,
    .cta-button-accent {
        padding: 12px 25px !important;
        font-size: 0.95em !important;
        width: 100%;
        max-width: 280px;
    }
    
    /* Hero CTA section */
    section[style*="background: linear-gradient(135deg, var(--color-maroon)"] {
        padding: 40px 20px !important;
    }
    
    section[style*="background: linear-gradient(135deg, var(--color-maroon)"] h2 {
        font-size: 1.5em !important;
        margin-bottom: 15px !important;
    }
    
    section[style*="background: linear-gradient(135deg, var(--color-maroon)"] p {
        font-size: 0.95em !important;
        margin-bottom: 25px !important;
    }
    
    section[style*="background: linear-gradient(135deg, var(--color-maroon)"] div[style*="display: flex"] {
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .cta-button-primary,
    .cta-button-secondary,
    .cta-button-accent {
        padding: 12px 20px !important;
        font-size: 0.9em !important;
        max-width: 100% !important;
    }
    
    /* Hero CTA section mobile */
    section[style*="background: linear-gradient(135deg, var(--color-maroon)"] {
        padding: 30px 15px !important;
    }
    
    section[style*="background: linear-gradient(135deg, var(--color-maroon)"] h2 {
        font-size: 1.3em !important;
        line-height: 1.2 !important;
    }
    
    section[style*="background: linear-gradient(135deg, var(--color-maroon)"] p {
        font-size: 0.9em !important;
        line-height: 1.5 !important;
    }
    
    /* Make CTAs stack vertically on mobile */
    div[style*="display: flex"][style*="flex-wrap: wrap"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    
    div[style*="display: flex"][style*="flex-wrap: wrap"] a {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Sticky Navigation */
.main-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
}

/* Enhanced sticky header on scroll */
.main-header.scrolled {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 4px 0 !important;
}

.main-header.scrolled .main-nav {
    padding: 4px;
}

/* Optional: Hide header when scrolling down (currently disabled in JS) */
.main-header.hidden {
    transform: translateY(-100%);
}

/* Ensure body has proper top padding to prevent content being hidden behind fixed header */
body {
    padding-top: 0 !important;
}

/* Reset all margins on main content */
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Homepage darshan section - add margin for sticky nav */
section#darshan {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    section#darshan {
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    section#darshan {
        margin-top: 0 !important;
    }
}

/* Ensure all hero sections have consistent structure and centering */
section.about-hero,
section.donate-hero,
section.teachings-hero,
section.faq-hero,
section.page-hero,
div.blog-hero,
div.blog-post-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 400px !important;
    height: 400px !important;
    position: relative !important;
}

@media (max-width: 768px) {
    section.about-hero,
    section.donate-hero,
    section.teachings-hero,
    section.faq-hero,
    section.page-hero,
    div.blog-hero,
    div.blog-post-hero {
        margin-top: 0 !important;
        min-height: 300px !important;
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    section.about-hero,
    section.donate-hero,
    section.teachings-hero,
    section.faq-hero,
    section.page-hero,
    div.blog-hero,
    div.blog-post-hero {
        margin-top: 0 !important;
        min-height: 250px !important;
        height: 250px !important;
    }
}

/* Desktop-only offset for donate hero to avoid header overlap */
@media (min-width: 769px) {
    section.donate-hero {
        padding-top: 70px !important;
        padding-bottom: 20px !important;
    }
}

/* Restore internal padding for hero content and center it */
section.about-hero .hero-content,
section.donate-hero .hero-content,
section.teachings-hero .hero-content,
section.faq-hero .hero-content,
section.page-hero .hero-content,
div.blog-hero .hero-content,
div.blog-post-hero .hero-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Add text-shadow to all hero content for consistency */
section.about-hero .hero-content h1,
section.about-hero .hero-content p,
section.donate-hero .hero-content h1,
section.donate-hero .hero-content p,
section.teachings-hero .hero-content h1,
section.teachings-hero .hero-content p,
section.faq-hero .hero-content h1,
section.faq-hero .hero-content p,
section.page-hero .hero-content h1,
section.page-hero .hero-content p,
div.blog-hero .hero-content h1,
div.blog-hero .hero-content p,
div.blog-post-hero .hero-content h1,
div.blog-post-hero .hero-content p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
}

section.page-hero .hero-content h1,
section.page-hero .hero-content p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure hero pattern stays in background */
.hero-pattern,
.hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
}

/* Smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Offset for fixed header */
}

/* Make sure the header stays visible over content */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
}

/* Navigation link hover effects enhanced for sticky nav */
.main-nav a {
    position: relative;
    transition: all 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-saffron);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after {
    width: 80%;
}

/* Responsive adjustments for sticky nav */
@media (max-width: 768px) {
    section#darshan {
        margin-top: 0 !important;
    }
    
    section.about-hero,
    section.donate-hero,
    section.teachings-hero,
    section.faq-hero,
    section.page-hero,
    div.blog-hero,
    div.blog-post-hero {
        margin-top: 0 !important;
        min-height: 300px !important;
        height: 300px !important;
    }
    
    .main-header.scrolled {
        padding: 3px 0 !important;
    }
    
    html {
        scroll-padding-top: 55px;
    }
    
    .main-nav a::after {
        height: 1px;
    }
}

@media (max-width: 480px) {
    section#darshan {
        margin-top: 0 !important;
    }
    
    section.about-hero,
    section.donate-hero,
    section.teachings-hero,
    section.faq-hero,
    section.page-hero,
    div.blog-hero,
    div.blog-post-hero {
        margin-top: 0 !important;
        min-height: 250px !important;
        height: 250px !important;
    }
    
    .main-header.scrolled {
        padding: 2px 0 !important;
    }
    
    html {
        scroll-padding-top: 52px;
    }
}

/* Mobile optimizations for timeline section */
@media (max-width: 768px) {
    .timeline {
        padding: 40px 15px !important;
    }
    
    .timeline-item h3 {
        font-size: 1.3em !important;
    }
    
    .timeline-item p {
        font-size: 0.95em !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 480px) {
    .timeline {
        padding: 30px 10px !important;
    }
    
    .timeline-item {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .timeline-item h3 {
        font-size: 1.1em !important;
        margin-bottom: 10px !important;
    }
    
    .timeline-item p {
        font-size: 0.9em !important;
    }
}

/* Mobile optimizations for video section CTA */
@media (max-width: 768px) {
    section[id="videos"] > div > div[style*="background: linear-gradient"] {
        padding: 40px 20px !important;
        margin-top: 40px !important;
    }
    
    section[id="videos"] > div > div[style*="background: linear-gradient"] h3 {
        font-size: 1.5em !important;
    }
    
    section[id="videos"] > div > div[style*="background: linear-gradient"] p {
        font-size: 1em !important;
    }
}

@media (max-width: 480px) {
    section[id="videos"] > div > div[style*="background: linear-gradient"] {
        padding: 30px 15px !important;
        margin-top: 30px !important;
    }
    
    section[id="videos"] > div > div[style*="background: linear-gradient"] h3 {
        font-size: 1.3em !important;
        line-height: 1.3 !important;
    }
    
    section[id="videos"] > div > div[style*="background: linear-gradient"] p {
        font-size: 0.95em !important;
        line-height: 1.5 !important;
        margin-bottom: 25px !important;
    }
    
    section[id="videos"] > div > div[style*="background: linear-gradient"] div[style*="display: flex"] {
        gap: 12px !important;
    }
    
    section[id="videos"] > div > div[style*="background: linear-gradient"] a {
        padding: 12px 20px !important;
        font-size: 0.9em !important;
        width: 100% !important;
    }
}

/* Mobile navigation improvements */
.main-nav a {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

.main-nav a:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Hamburger Menu Icon - Hidden on desktop */
.hamburger-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 3px;
    z-index: 1001;
    gap: 0;
}

.hamburger-menu::before {
    content: "MENU";
    font-size: 0.95em;
    font-weight: bold;
    color: var(--color-maroon);
    margin-bottom: 1px;
    letter-spacing: 0.8px;
}

.hamburger-menu span {
    width: 22px;
    height: 2px;
    background-color: var(--color-maroon);
    margin: 1px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Side Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 248, 225, 0.98));
    backdrop-filter: blur(10px);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(109, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    font-size: 30px;
    color: var(--color-maroon);
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-items {
    padding: 20px 0;
}

.mobile-menu-items a {
    display: block;
    padding: 15px 25px;
    color: var(--color-dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-menu-items a:hover,
.mobile-menu-items a:active {
    background: rgba(109, 0, 0, 0.05);
    border-left-color: var(--color-maroon);
    color: var(--color-maroon);
}

/* Show hamburger and hide nav on mobile */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .main-nav .nav-row {
        display: none !important;
    }
    
    .main-header {
        justify-content: space-between;
        padding: 6px 15px !important;
        min-height: 50px !important;
    }
    
    .main-nav {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    
    body {
        padding-top: 50px !important;
    }
}

/* Reduce section padding globally to minimize gaps */
section {
    padding: 18px 0 !important;
}

@media (max-width: 1024px) {
    section {
        padding: 15px 0 !important;
    }
}

@media (max-width: 768px) {
    section {
        padding: 13px 0 !important;
    }
}

@media (max-width: 480px) {
    section {
        padding: 10px 0 !important;
    }
}

/* Reduce h2 bottom margin */
h2 {
    margin-bottom: 10px !important;
}

@media (max-width: 768px) {
    h2 {
        margin-bottom: 8px !important;
    }
}

/* Reduce container top padding */
.container {
    padding-top: 0 !important;
}

/* Keep full nav labels inside header after adding Ask Your Questions */
@media (min-width: 769px) {
    .main-nav .nav-row {
        flex-wrap: nowrap !important;
        gap: 14px !important;
        padding: 6px 10px !important;
    }

    .main-nav a {
        font-size: clamp(0.74em, 1.15vw, 0.9em) !important;
        letter-spacing: 0.15px !important;
    }
}

/* Reduce specific teaching content padding */
.teachings-content {
    padding: 10px 0 !important;
}

/* Reduce philosophy section padding */
.philosophy-section {
    padding: 13px 15px !important;
    margin: 10px 0 !important;
}

/* Reduce principles section margin */
.principles-section {
    margin-top: 10px !important;
}

/* Landscape mode adjustments for hero sections */
@media (max-height: 600px) and (orientation: landscape) {
    section.about-hero,
    section.donate-hero,
    section.teachings-hero,
    section.faq-hero,
    section.page-hero,
    div.blog-hero,
    div.blog-post-hero {
        margin-top: 0 !important;
        min-height: 250px !important;
        height: 250px !important;
    }
}
/* ========================================
   ADDITIONAL HERO & POLISH EFFECTS
   ======================================== */

/* Hero explore button hover */
.slide-text a[href="#leela-path"]:hover {
    background: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Subtle entrance animation for hero text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 0) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) translateY(0);
    }
}

.slide-text {
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Pulsing effect for dots navigation */
.dot.active {
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

/* Video card hover lift animation */
.video-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease !important;
}

/* Responsive adjustments for new effects */
@media (max-width: 768px) {
    .slide-text a[href="#leela-path"] {
        padding: 10px 22px !important;
        font-size: 0.9em !important;
    }
    
    .timeline-item:hover .timeline-content {
        transform: translateX(4px);
    }
    
    section + section::before {
        width: 60px;
        top: -25px;
    }
    
    #leela-path::before,
    #amrit-vani::before,
    #leela-path::after,
    #amrit-vani::after {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .slide-text a[href="#leela-path"] {
        padding: 10px 20px !important;
        font-size: 0.85em !important;
    }
    
    section + section::before {
        width: 50px;
        height: 2px;
        top: -20px;
    }
    
    @keyframes subtleGlow {
        0% { text-shadow: 0 0 20px rgba(249,168,37,0.2), 0 2px 8px rgba(0,0,0,0.8); }
        100% { text-shadow: 0 0 30px rgba(249,168,37,0.3), 0 2px 8px rgba(0,0,0,0.8); }
    }
}

/* Reduced motion preferences for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Fix touch device link padding - be more selective */
@media (hover: none) and (pointer: coarse) {
    /* Reset padding for inline text links */
    p a,
    .section-intro a,
    .blog-excerpt a,
    .blog-card-content h3 a,
    .timeline-content a,
    .insight-content a,
    .read-more,
    .video-info a,
    footer a,
    .main-footer a {
        padding: 0 !important;
        min-height: auto !important;
        min-width: auto !important;
    }
    
    /* Keep touch targets only for navigation and buttons */
    .main-nav a,
    .mobile-menu-items a,
    .cta-button-primary,
    .cta-button-secondary,
    .cta-button-accent,
    .filter-btn {
        min-height: 44px;
        min-width: 44px;
    }
}
/* ========================================
   Unified Blog Theme (All Blog Post Pages)
   ======================================== */
.blog-post-hero {
    min-height: 380px !important;
    height: 380px !important;
    background: linear-gradient(135deg, var(--color-maroon) 0%, rgba(109, 0, 0, 0.85) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.blog-post-hero .hero-content {
    max-width: 960px !important;
    padding: 0 24px !important;
}

.blog-post-hero .hero-content h1 {
    font-family: var(--font-heading) !important;
    font-size: clamp(1.9rem, 4.4vw, 3.1rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    line-height: 1.2 !important;
    margin: 0 !important;
    color: #ffffff !important;
}

.blog-post-hero .post-meta {
    display: block !important;
    margin-top: 14px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

.post-container {
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: 64px 24px !important;
}

.post-content {
    font-size: 1.08rem !important;
    line-height: 1.9 !important;
    color: #4a4a4a !important;
}

.post-content h2 {
    font-size: clamp(1.45rem, 2.4vw, 2rem) !important;
    margin-top: 44px !important;
    margin-bottom: 18px !important;
    color: var(--color-maroon) !important;
}

.post-content h3 {
    font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
    margin-top: 30px !important;
    margin-bottom: 12px !important;
    color: #7d1111 !important;
}

.post-content p,
.post-content li {
    color: #4f4f4f !important;
}

.post-content ul,
.post-content ol {
    margin: 18px 0 26px !important;
    padding-left: 26px !important;
}

.post-content blockquote,
.highlight-box,
.note-box,
.callout-box {
    background: linear-gradient(135deg, rgba(109, 0, 0, 0.05) 0%, rgba(249, 168, 37, 0.08) 100%) !important;
    border-left: 4px solid var(--color-maroon) !important;
    border-radius: 8px !important;
    padding: 18px 20px !important;
    margin: 28px 0 !important;
}

.table-of-contents,
.toc-container {
    background: #fff8ef !important;
    border: 1px solid rgba(109, 0, 0, 0.15) !important;
    border-radius: 10px !important;
    padding: 18px 20px !important;
    margin: 26px 0 !important;
}

.back-to-blog {
    margin-top: 48px !important;
    padding-top: 26px !important;
    border-top: 1px solid rgba(109, 0, 0, 0.16) !important;
}

@media (max-width: 768px) {
    .blog-post-hero {
        min-height: 300px !important;
        height: auto !important;
        padding: 42px 0 !important;
    }

    .post-container {
        padding: 44px 16px !important;
    }

    .post-content {
        font-size: 1rem !important;
        line-height: 1.78 !important;
    }
}

/* Desktop darshan offset fix: prevent fixed header overlap on homepage hero */
@media (min-width: 769px) {
    section#darshan {
        margin-top: 118px !important;
        height: calc(100vh - 118px) !important;
    }
}
