body {
    font-family: 'Work Sans', sans-serif;
    background-color: #edf0f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Enhanced shadow with softer look */
.custom-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.search-shadow {
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}

.service-icon-shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

/* Mobile Search Overlay and Sticky Search */
#mobile-search-overlay input,
#mobile-sticky-search input {
    border: none !important;
    border-radius: 50px !important;
    padding-left: 2.5rem !important;
    box-shadow: none !important;
    outline: none !important;
}

#mobile-sticky-search form {
    border-radius: 100px !important;
    padding: 2px !important;
    border: none !important;
    box-shadow: none !important;
}

/* Enhanced widget shadow with softer, more modern look */
.widget-shadow {
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.widget-shadow:hover {
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08), 0 6px 12px -4px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.98);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Enhanced search input with smoother focus transition */
.search-input {
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 50px;
    padding-left: 4rem; /* Ensure space for the logo */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.98);
    outline: none;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 8px 12px -4px rgba(0, 0, 0, 0.08) !important;
}

/* Update main search form styling */
#main-search-form .relative input {
    border: none;
    border-radius: 50px;
    padding-left: 4rem; /* Ensure space for the logo */
    box-shadow: 0 6px 15px -5px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
}

/* Ensure the Niriv logo in search form is visible */
#radial-menu-trigger {
    z-index: 20;
    position: relative;
}

/* Update submit button styling */
#main-search-form button[type="submit"] {
    background-color: #1847ea;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#main-search-form button[type="submit"]:hover {
    background-color: #0f3ac0; /* Darker shade for hover */
    transform: scale(1.05);
}

/* Mobile sticky search container - remove border */
#mobile-sticky-search {
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 0 0 24px 24px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: none; /* Remove border from container */
    border-top: none;
    box-shadow: none !important;
}

/* Mobile sticky search form - add border and make round */
#mobile-sticky-search form {
    border: 1px solid #1847ea;
    border-radius: 9999px; /* Full border radius */
    padding: 2px;
}

/* Mobile search overlay form - add border and make round */
#mobile-search-overlay form {
    border: 1px solid #1847ea;
    border-radius: 9999px;
    padding: 2px;
}

#mobile-search-overlay input,
#mobile-sticky-search input {
    border: none; /* Remove border from input since form has border */
    border-radius: 9999px;
    padding-left: 2.5rem;
}

#mobile-search-overlay input:focus,
#mobile-sticky-search input:focus {
    border-color: #1847ea;
    outline: none;
    box-shadow: none !important;
}

#mobile-search-overlay,
#mobile-sticky-search {
    border: none; /* Remove border from containers */
    box-shadow: none !important;
}

/* Ensure search submit button arrow icon is visible */
#main-search-form button[type="submit"] i[data-lucide="arrow-right"] {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.n-logo {
    background: linear-gradient(135deg, #3b82f6 0%, #315EFB 100%);
}

.card-bg-image {
    background-size: cover;
    background-position: center;
}

/* Enhanced search category buttons with smoother interaction */
.search-category-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.search-category-btn.active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

/* Styles for the new News Section */
.news-category-tab {
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Special Event Bubble - Enhanced Circular Display */
.special-event-bubble {
    display: inline-block;
    text-decoration: none;
}

.bubble-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50% !important;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    aspect-ratio: 1 / 1;
}

.bubble-circle:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.bubble-circle .bg-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.bubble-circle .bg-gradient-to-t {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.bubble-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
    z-index: 10;
}

/* Festival Celebration Animations */
.festival-bubble {
    animation: festivalSway 3s ease-in-out infinite, festivalGlow 2s ease-in-out infinite alternate;
}
.festival-bubble .bubble-circle {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4), 0 8px 25px rgba(0, 0, 0, 0.15);
}

.festival-bubble .bubble-content {
    animation: festivalContentShimmer 2.5s ease-in-out infinite;
}

/* Sparkle Effects */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #dc2626;
    border-radius: 50%;
    animation: sparkleBurst 2s ease-in-out infinite;
    z-index: 15;
}

.sparkle:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 30%; right: 20%; animation-delay: 0.3s; }
.sparkle:nth-child(3) { bottom: 25%; left: 25%; animation-delay: 0.6s; }
.sparkle:nth-child(4) { bottom: 15%; right: 15%; animation-delay: 0.9s; }
.sparkle:nth-child(5) { top: 50%; left: 10%; animation-delay: 1.2s; }
.sparkle:nth-child(6) { top: 40%; right: 10%; animation-delay: 1.5s; }

/* Festival Animation Keyframes */
@keyframes festivalSway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-8px) rotate(-2deg); }
    75% { transform: translateX(8px) rotate(2deg); }
}
@keyframes festivalFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes festivalGlow {
    0% { filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.3)); }
    100% { filter: drop-shadow(0 0 15px rgba(220, 38, 38, 0.6)); }
}

@keyframes festivalRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes festivalPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(220, 38, 38, 0.4), 0 8px 25px rgba(0, 0, 0, 0.15); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(220, 38, 38, 0.6), 0 12px 35px rgba(0, 0, 0, 0.2); }
}

@keyframes festivalContentShimmer {
    0%, 100% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); }
    50% { text-shadow: 0 2px 8px rgba(220, 38, 38, 0.4), 0 2px 4px rgba(0, 0, 0, 0.7); }
}

@keyframes sparkleBurst {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
    100% { opacity: 0; transform: scale(0) rotate(360deg); }
}

/* Enhanced festival bubble styles */
.festival-bubble .bubble-title {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.festival-bubble .bubble-date {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* Enhanced sparkle variations */
.sparkle:nth-child(odd) {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.8);
}

.sparkle:nth-child(even) {
    background: linear-gradient(45deg, #dc2626, #ef4444);
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.8);
}

.sparkle:nth-child(3n) {
    background: linear-gradient(45deg, #dc2626, #ef4444);
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.8);
}

/* Festival burst animation - removed to maintain circular shape */
/* .festival-bubble .bubble-circle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(220, 38, 38, 0.3), transparent, rgba(239, 68, 68, 0.3), transparent);
    animation: festivalBurst 4s linear infinite;
    z-index: 5;
} */

/* Enhanced glow effects */
.festival-bubble {
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.3));
}

.festival-bubble:hover {
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.6));
}

/* Celebration particles */
.celebration-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #dc2626;
    border-radius: 50%;
    animation: celebrationFloat 3s ease-in-out infinite;
    z-index: 16;
}

.celebration-particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; animation-duration: 2.5s; }
.celebration-particle:nth-child(2) { top: 15%; right: 30%; animation-delay: 0.5s; animation-duration: 3s; }
.celebration-particle:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 1s; animation-duration: 2.8s; }
.celebration-particle:nth-child(4) { bottom: 10%; right: 25%; animation-delay: 1.5s; animation-duration: 3.2s; }

@keyframes celebrationFloat {
    0% { transform: translateY(0px) scale(0); opacity: 0; }
    50% { transform: translateY(-20px) scale(1); opacity: 1; }
    100% { transform: translateY(-40px) scale(0); opacity: 0; }
}

.bubble-title {
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 4px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    width: 100%;
}

.bubble-date {
    font-size: 0.75rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.bubble-circle .animate-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    animation: bubblePulse 3s ease-in-out infinite;
}

.bubble-circle .animate-pulse > div {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bubble-shadow {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 8px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    filter: blur(8px);
    transition: all 0.3s ease;
}

.special-event-bubble:hover .bubble-shadow {
    width: 90px;
    height: 10px;
    bottom: -14px;
}

@keyframes bubblePulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

.bubble-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-origin: center bottom;
}

.bubble-circle:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.bubble-content {
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bubble-title {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-snug);
    max-height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bubble-date {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

.bubble-pulse {
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    animation: bubblePulse 2s ease-in-out infinite;
    z-index: 1;
}

.bubble-shadow {
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.special-event-bubble:hover .bubble-shadow {
    width: 100px;
    height: 6px;
    opacity: 0.6;
}

/* Bubble animations */
@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bubblePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .bubble-circle {
        width: 100px;
        height: 100px;
    }
    
    .bubble-title {
        font-size: var(--font-size-xs);
    }
    
    .bubble-date {
        font-size: var(--font-size-xs);
    }
}

/* Add some playful bounce on page load */
.special-event-bubble {
    animation: bubbleFloat 3s ease-in-out infinite, bubbleBounce 0.6s ease-out;
}

@keyframes bubbleBounce {
    0% {
        transform: translateY(20px) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateY(-5px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateY(0px) scale(1);
        opacity: 1;
    }
}

.news-category-tab.active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.bg-purple-500 {
    --tw-bg-opacity: 1;
    background-color: #4f46e5;
}

.preview-notice {
    background: linear-gradient(90deg, #4f46e5, #818cf8, #a78bfa, #4f46e5);
    background-size: 200% 100%;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.brand-gradient { 
    background-image: linear-gradient(135deg, #3b82f6 0%, #315EFB 100%); 
}

/* Homepage Header - Fixed to ensure full gradient without white mix */
.homepage-header {
    background: linear-gradient(135deg, #3b82f6 0%, #315EFB 100%);
}

/* Enhanced Radial Menu Styles */
#radial-menu-container {
    transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform: translateY(100%);
    opacity: 0;
}

#radial-menu-container.active {
    transform: translateY(0);
    opacity: 1;
    backdrop-filter: blur(20px);
}

#radial-menu-body {
    width: 36rem; /* 576px */
    height: 36rem; /* 576px */
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 18rem); /* Move down by half height to create arc effect */
}

#radial-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    user-select: none;
    transition: transform 0.25s ease-out;
    border-radius: 50%;
}

.radial-menu-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5rem; /* 80px */
    height: 5rem; /* 80px */
    margin-left: -2.5rem;
    margin-top: -2.5rem;
    transform-origin: center;
    cursor: pointer;
}

.radial-menu-item-content {
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    backdrop-filter: blur(10px);
}

.radial-menu-item:hover .radial-menu-item-content {
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Radial menu item focus and enter animations */
.radial-menu-item:focus-visible .radial-menu-item-content {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 3px;
    border-radius: 9999px;
}

.radial-menu-item { 
    opacity: 0; 
}

/* Enhanced Gemini AI Feature Styles */
.gemini-modal {
    transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    backdrop-filter: blur(10px);
}

.gemini-modal-content {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.gemini-modal.active .gemini-modal-content {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.chat-bubble-user {
    background-color: #3b82f6;
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.chat-bubble-ai {
    background-color: #f1f5f9;
    color: #1f2937;
    border-radius: 18px 18px 18px 4px;
}

.gemini-loader div {
}

.gemini-loader .bounce1 { }
.gemini-loader .bounce2 { }

/* Style for highlighted autocomplete item */
.autocomplete-selected {
    background-color: #eef2ff;
}

/* Styles for new cards */
.rate-up { color: #22c55e; }
.rate-down { color: #ef4444; }

/* Enhanced animation styles with smoother transitions */
.peeping-animation {
    position: fixed;
    top: 180px;
    right: -60px;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: 0.75rem;
    height: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: peepFromRight 12s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 5s;
}

.peeping-animation:hover {
    transform: scale(1.05) translateX(0);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.peeping-animation.left {
    top: 250px;
    left: -60px;
    right: auto;
    animation: peepFromLeft 12s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 1s;
}

.peeping-animation.bottom-right {
    top: auto;
    bottom: 30px;
    right: 30px;
    animation: peepFromBottom 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    animation-delay: 0s;
    width: auto;
    min-width: 60px;
}

@keyframes peepFromRight {
    0%, 85%, 100% { transform: translateX(0); right: -60px; }
    10%, 75% { transform: translateX(-60px); right: 0; }
}

@keyframes peepFromLeft {
    0%, 85%, 100% { transform: translateX(0); left: -60px; }
    10%, 75% { transform: translateX(60px); left: 0; }
}

@keyframes peepFromBottom {
    0% { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.greeting-animation {
    position: fixed;
    top: 250px;
    left: -250px;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: 0.75rem;
    height: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInAndOut 10s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 1s;
}

.greeting-animation:hover {
    transform: scale(1.05) translateX(0);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

@keyframes slideInAndOut {
    0%, 85%, 100% { transform: translateX(0); left: -60px; }
    15%, 70% { transform: translateX(60px); left: 0; }
}

/* Enhanced section heading styles with softer look */
.section-heading {
    position: relative;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: #1e3a8a; /* blue-900 */
    padding: 0.75rem 2rem 1.5rem; /* Adjust padding for the shape */
    margin-bottom: 1.5rem;
    display: inline-block;
    z-index: 1;
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-snug);
}

.section-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    z-index: -1;
    clip-path: url(#heading-clip-shape);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 12px;
}

.section-heading:hover::before {
    transform: scale(1.05, 1.1);
}

/* Enhanced mobile search styles */
#mobile-search-overlay {
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 50;
    display: none;
    flex-direction: column;
    height: 100vh;
    backdrop-filter: blur(10px);
}

#mobile-search-overlay.hidden {
    display: none;
}

#mobile-search-overlay input,
#mobile-sticky-search input {
    border: 1px solid #1847ea;
    border-radius: 50px;
    padding-left: 2.5rem;
}

#mobile-search-overlay input:focus,
#mobile-sticky-search input:focus {
    border-color: #1847ea;
    outline: none;
    box-shadow: none !important;
}

#mobile-sticky-search {
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 0 0 24px 24px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: none; /* Remove border from container */
    border-top: none;
}

#mobile-search-overlay,
#mobile-sticky-search {
    border: none; /* Remove border from containers */
}

/* Voice search button styles */
#voice-search-btn,
#mobile-voice-search-btn,
#mobile-sticky-voice-search-btn {
    transition: all 0.2s ease-in-out;
}

#voice-search-btn:hover,
#mobile-voice-search-btn:hover,
#mobile-sticky-voice-search-btn:hover {
    background-color: #f0f5ff;
    transform: scale(1.05);
}

#mobile-search-overlay.hidden {
    display: none;
}

#mobile-search-content a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

#mobile-search-content a:hover {
    background-color: #f3f4f6;
}

#mobile-search-content h3 {
    margin-bottom: 12px;
    font-weight: 600;
}

#clear-recent-searches {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    padding: 4px 8px;
    border-radius: 4px;
}

#clear-recent-searches:hover {
    text-decoration: underline;
}

/* Hide logo on new homepage and index page since there's already a big logo before search form */
@media (min-width: 768px) {
    .new-home-page .site-header .custom-logo-link,
    .home .site-header .custom-logo-link {
        display: none;
    }
}

/* Enhanced movie details slide container */
#movie-details-container {
    z-index: 100;
}

#movie-details-container .absolute.inset-0 {
    background-color: rgba(0, 0, 0, 0.4);
}

#movie-details-container .transform {
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem 0 0 1.5rem;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

#movie-details-container #close-movie-details {
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 12px;
}

#movie-details-container #close-movie-details:hover {
    background-color: #f3f4f6;
    color: #374151;
}

#movie-details-container #movie-backdrop-placeholder,
#movie-details-container #movie-backdrop {
    border-radius: 0.75rem;
}

#movie-details-container #movie-details-poster {
    border-radius: 0.75rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#movie-details-container #movie-details-full-title {
    color: #1f2937;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#movie-details-container #movie-details-release-date,
#movie-details-container #movie-details-runtime {
    color: #6b7280;
}

#movie-details-container #movie-details-overview {
    color: #374151;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

#movie-details-container #movie-details-rating {
    color: #dc2626; /* red-600 */
}

#movie-details-container #movie-details-vote-count {
    color: #dc2626; /* red-600 */
}

#movie-details-container .cast-member {
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 12px;
}

#movie-details-container .cast-member:hover {
    transform: translateY(-6px);
}

#movie-details-container .cast-member img {
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 12px;
}

#movie-details-container .cast-member:hover img {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for movie details container */
@media (max-width: 768px) {
    #movie-details-container .max-w-md {
        max-width: 100%;
    }
    
    #movie-details-container .transform {
        border-radius: 1.5rem 1.5rem 0 0;
    }
    
    #movie-details-container .pl-32 {
        padding-left: 0;
    }
    
    #movie-details-container .mb-4 > div:first-child {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 1rem;
    }
}

/* Enhanced loading animation */
.gemini-loader div {
    animation: gemini-bouncedelay 1.4s infinite ease-in-out both;
}

.gemini-loader .bounce1 { animation-delay: -0.32s; }
.gemini-loader .bounce2 { animation-delay: -0.16s; }

@keyframes gemini-bouncedelay {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Apple-like smooth interactions */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

/* Enhanced card styles for better mobile experience */
.card-enhanced {
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
    background: #ffffff !important;
    backdrop-filter: blur(10px);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-md {
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: #ffffff !important;
      box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .05);
}

.shadow-sm {
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


/* Improved text styles for better readability */
.text-enhanced {
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.text-enhanced-sm {
    letter-spacing: -0.005em;
    line-height: 1.4;
}

/* Subtle gradient backgrounds for cards */
.bg-gradient-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.9) 100%);
}

/* Enhanced button styles */
.btn-enhanced {
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    font-weight: 500;
    letter-spacing: -0.01em;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Improved spacing for mobile */
@media (max-width: 767px) {
    .mb-mobile-sm {
        margin-bottom: 1rem;
    }
    
    .mb-mobile-md {
        margin-bottom: 1.5rem;
    }
    
    .mb-mobile-lg {
        margin-bottom: 2rem;
    }
    
    .p-mobile-sm {
        padding: 0.75rem;
    }
    
    .p-mobile-md {
        padding: 1rem;
    }
    
    .p-mobile-lg {
        padding: 1.25rem;
    }
}

/* Promotional Banner Styles */
.promotional-banner-container {
    max-width: 30rem; /* 480px - smaller than search form (576px) */
}

.promotional-banner-content {
    padding: 0.5rem 0 0 0; /* Keep top padding, remove bottom/left/right padding */
}

.promotional-banner-title {
    font-size: var(--font-size-md);
    margin-bottom: 0.5rem; /* 8px - reduced margin */
}

.promotional-banner-image {
    max-height: 7.5rem; /* 120px - increased max height */
    object-fit: contain;
}

/* Responsive adjustments for promotional banner */
@media (max-width: 640px) {
    .promotional-banner-container {
        max-width: 24rem; /* 384px - even smaller on mobile */
    }
    
    .promotional-banner-content {
        padding: 0.25rem 0 0 0; /* Keep top padding, remove bottom/left/right padding on mobile */
    }
    
    .promotional-banner-title {
        font-size: var(--font-size-sm);
        margin-bottom: 0.25rem; /* 4px - reduced margin on mobile */
    }
    
    .promotional-banner-image {
        max-height: 7.5rem; /* 120px - increased max height on mobile */
    }
}

/* Bubble effects for promotional banner */
.bubble-left-1 {
    position: absolute;
    left: -40px;
    top: 20%;
    width: 80px;
    height: 80px;
    background-color: #1847ea;
    border-radius: 50%;
    z-index: 1;
    animation: bubble-float-left 8s ease-in-out infinite;
}

.bubble-left-2 {
    position: absolute;
    left: -30px;
    top: 60%;
    width: 120px;
    height: 120px;
    background-color: #1847ea;
    border-radius: 50%;
    z-index: 1;
    animation: bubble-float-left 10s ease-in-out infinite 1s;
}

.bubble-left-3 {
    position: absolute;
    left: -20px;
    top: 80%;
    width: 60px;
    height: 60px;
    background-color: #8b5cf6; /* Purple color */
    border-radius: 50%;
    z-index: 1;
    animation: bubble-float-left 12s ease-in-out infinite 2s;
}

.bubble-left-4 {
    position: absolute;
    left: -30px;
    top: 5%;
    width: 70px;
    height: 70px;
    background-color: #1847ea;
    border-radius: 50%;
    z-index: 1;
    animation: bubble-float-left 14s ease-in-out infinite 3s;
}

.bubble-right-1 {
    position: absolute;
    right: -50px;
    top: 30%;
    width: 150px;
    height: 150px;
    background-color: #1847ea;
    border-radius: 50%;
    z-index: 1;
    animation: bubble-float-right 9s ease-in-out infinite;
}

.bubble-right-2 {
    position: absolute;
    right: -35px;
    top: 70%;
    width: 90px;
    height: 90px;
    background-color: #1847ea;
    border-radius: 50%;
    z-index: 1;
    animation: bubble-float-right 11s ease-in-out infinite 1.5s;
}

.bubble-right-3 {
    position: absolute;
    right: -15px;
    top: 10%;
    width: 70px;
    height: 70px;
    background-color: #8b5cf6; /* Purple color */
    border-radius: 50%;
    z-index: 1;
    animation: bubble-float-right 13s ease-in-out infinite 0.5s;
}

.bubble-right-4 {
    position: absolute;
    right: -45px;
    top: 5%;
    width: 80px;
    height: 80px;
    background-color: #1847ea;
    border-radius: 50%;
    z-index: 1;
    animation: bubble-float-right 15s ease-in-out infinite 4s;
}

@keyframes bubble-float-left {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-10px, -15px); }
    50% { transform: translate(0, -10px); }
    75% { transform: translate(-5px, 15px); }
}

@keyframes bubble-float-right {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -10px); }
    50% { transform: translate(0, 15px); }
    75% { transform: translate(10px, -20px); }
}

/* Gallery and Image Spacing Styles */
.gallery-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-grid-2x2 a {
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.gallery-grid-2x2 img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-grid-2x2 img:hover {
    transform: scale(1.02);
}

/* Feed Image Spacing - Only for multi-image posts */
.feed-image {
    border-radius: 12px;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.feed-image:hover {
    transform: scale(1.01);
}

/* Image Collection Grid Spacing - Only for multi-image collections */
.image-collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
}

.image-collection-grid a {
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.image-collection-grid img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-collection-grid img:hover {
    transform: scale(1.02);
}

/* Related Posts Image Spacing */
.related-post-image {
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Trending Search Pills - Smaller Font Size */
#trending-searches-container a.text-xbase {
    font-size: 0.8125rem !important; /* 13px - between text-xs (12px) and text-sm (14px) */
}

#trending-searches-container a.text-xs {
    font-size: 0.75rem !important; /* Keep text-xs at 12px but ensure consistency */
}

/* End of file */
