/*
 * ======================================================
 * main.css - Premium Public Pages Stylesheet
 * ======================================================
 * Million-Dollar UI Design System
 * Features: Premium gradients, micro-animations, 3D effects
 */

/* ==================== Design Tokens ==================== */

:root {
    /* Premium Color Palette (HSL for flexibility) */
    --color-primary-h: 222;
    --color-primary-s: 47%;
    --color-primary-l: 11%;
    --color-primary: hsl(var(--color-primary-h), var(--color-primary-s), var(--color-primary-l));

    --color-secondary-h: 217;
    --color-secondary-s: 91%;
    --color-secondary-l: 60%;
    --color-secondary: hsl(var(--color-secondary-h), var(--color-secondary-s), var(--color-secondary-l));

    --color-accent-h: 25;
    --color-accent-s: 95%;
    --color-accent-l: 53%;
    --color-accent: hsl(var(--color-accent-h), var(--color-accent-s), var(--color-accent-l));

    /* Extended Premium Palette */
    --color-emerald: #10b981;
    --color-violet: #8b5cf6;
    --color-rose: #f43f5e;
    --color-cyan: #06b6d4;
    --color-amber: #f59e0b;

    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, hsla(217, 91%, 60%, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(25, 95%, 53%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(217, 91%, 60%, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(180, 95%, 45%, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(25, 95%, 53%, 0.12) 0px, transparent 50%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, rgba(249, 115, 22, 0.5) 50%, rgba(16, 185, 129, 0.5) 100%);
    --gradient-glow: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    --gradient-shimmer: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);

    /* Premium Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.3), 0 0 80px rgba(59, 130, 246, 0.1);
    --shadow-glow-orange: 0 0 40px rgba(249, 115, 22, 0.3), 0 0 80px rgba(249, 115, 22, 0.1);
    --shadow-glow-emerald: 0 0 40px rgba(16, 185, 129, 0.3), 0 0 80px rgba(16, 185, 129, 0.1);
    --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 32px 64px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1);

    /* Animation Timing Functions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    /* Animation Durations */
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 800ms;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ==================== Base Styles ==================== */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ==================== Custom Scrollbar ==================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==================== Animations ==================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==================== Premium Animations ==================== */

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatReverse {

    0%,
    100% {
        transform: translateY(-20px);
    }

    50% {
        transform: translateY(0);
    }
}

/* Pulse Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    }
}

@keyframes pulseScale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Gradient Morphing */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradientRotate {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* Text Reveal */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Scale Animations */
@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUp {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.02);
    }
}

/* Slide Animations */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Orbital Animation */
@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

/* Border Glow Animation */
@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(59, 130, 246, 0.5);
    }

    50% {
        border-color: rgba(249, 115, 22, 0.5);
    }
}

/* Spotlight Effect */
@keyframes spotlight {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(2);
    }
}

/* Premium Animation Utilities */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

.animate-float-reverse {
    animation: floatReverse 7s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

.animate-pulse-scale {
    animation: pulseScale 2s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
}

.animate-text-reveal {
    animation: textReveal 1s var(--ease-out-expo) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s var(--ease-out-expo) forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s var(--ease-out-expo) forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s var(--ease-out-expo) forwards;
}

/* Staggered Animation Delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* ==================== Premium Component Styles ==================== */

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-accent {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Card Effects */
.card-premium {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient-card-border);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.card-premium:hover::before {
    opacity: 1;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

/* Glow Button */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.btn-glow:hover::before {
    opacity: 0.7;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

/* Animated Underline */
.underline-animated {
    position: relative;
}

.underline-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--duration-normal) var(--ease-smooth);
}

.underline-animated:hover::after {
    width: 100%;
}

/* Premium Loader */
.loader-premium {
    width: 48px;
    height: 48px;
    border: 4px solid;
    border-color: #3b82f6 transparent #f97316 transparent;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

/* Floating Decorations */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.floating-shape-blue {
    background: rgba(59, 130, 246, 0.3);
    animation: floatSlow 12s ease-in-out infinite;
}

.floating-shape-orange {
    background: rgba(249, 115, 22, 0.2);
    animation: floatReverse 10s ease-in-out infinite;
}

.floating-shape-emerald {
    background: rgba(16, 185, 129, 0.2);
    animation: float 14s ease-in-out infinite;
}

/* Mesh Background */
.bg-mesh {
    background: var(--gradient-mesh);
}

/* Premium Section Background */
.section-premium {
    position: relative;
    overflow: hidden;
}

.section-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    z-index: 0;
}

/* Interactive Glow Effect on Hover */
.glow-on-hover {
    transition: box-shadow var(--duration-normal) var(--ease-smooth);
}

.glow-on-hover:hover {
    box-shadow: var(--shadow-glow-blue);
}

/* Premium Image Container */
.img-premium {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.img-premium img {
    transition: transform var(--duration-slow) var(--ease-smooth);
}

.img-premium:hover img {
    transform: scale(1.05);
}

.img-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
    pointer-events: none;
}

/* ==================== Carousel Styles ==================== */

.carousel-wrapper {
    perspective: 1000px;
    position: relative;
    max-width: 100%;
}

@media (min-width: 768px) {
    .carousel-wrapper {
        max-width: 72rem;
        margin-left: auto;
        margin-right: auto;
    }
}

#programs-preview-container {
    overflow: hidden;
    padding: 2rem 0;
}

#home-program-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    padding: 0 1rem;
    gap: 1.5rem;
}

#home-program-scroll-container::-webkit-scrollbar {
    display: none;
}

.program-preview-card {
    width: 85vw;
    max-width: 400px;
    flex-shrink: 0;
    scroll-snap-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

@media (min-width: 768px) {
    .program-preview-card {
        width: 350px;
        opacity: 0.7;
        transform: scale(0.9);
    }

    .program-preview-card:hover,
    .program-preview-card.active {
        opacity: 1;
        transform: scale(1);
        z-index: 10;
    }
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: white;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.nav-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

#home-scroll-left-btn {
    left: 1rem;
}

#home-scroll-right-btn {
    right: 1rem;
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }
}

/* ==================== Video Container ==================== */

.video-container-16x9 {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.video-container-16x9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile video centering fix */
@media (max-width: 768px) {
    .video-container-16x9 {
        margin-left: auto;
        margin-right: auto;
        border-radius: 0.75rem;
    }

    /* Ensure parent container has proper padding */
    section .video-container-16x9 {
        max-width: calc(100% - 1rem);
    }
}


/* ==================== Modal Styles ==================== */

#program-modal.hidden {
    display: none;
}

#program-modal.flex {
    display: flex;
}

#program-modal.opacity-0 {
    opacity: 0;
    pointer-events: none;
}

#program-modal:not(.opacity-0) {
    opacity: 1;
    pointer-events: auto;
}

#modal-container {
    background-color: #1e293b;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 48rem;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    background-size: cover;
    background-position: center;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#modal-container:not(.opacity-0) {
    opacity: 1;
    transform: scale(1);
}

#modal-body {
    overflow-y: auto;
    padding: 2rem;
    background-color: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    flex-grow: 1;
}

#modal-body h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#modal-body p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

#modal-body .modal-inquire-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(to right, #f97316, #ea580c);
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
}

#modal-body .modal-inquire-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4);
}

#modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    padding: 0.5rem;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

#modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ==================== Card Styles ==================== */

.story-card,
.event-card {
    transition: all 0.3s ease;
}

.story-card:hover,
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* ==================== Loader ==================== */

.loader {
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

.main-loader {
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* ==================== Admin Floating Bar ==================== */

.admin-floating-bar {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 23, 42, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: adminBarSlideIn 0.4s ease-out;
    transform-origin: bottom right;
}

@keyframes adminBarSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-floating-bar .admin-bar-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.admin-floating-bar .admin-bar-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.admin-floating-bar .admin-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.admin-floating-bar .admin-bar-link:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.admin-floating-bar .admin-bar-close {
    margin-left: 0.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
}

.admin-floating-bar .admin-bar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile adjustments for admin bar */
@media (max-width: 640px) {
    .admin-floating-bar {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        justify-content: space-between;
        border-radius: 1rem;
    }

    .admin-floating-bar .admin-bar-text {
        display: none;
    }
}

/* ==================== Mobile Responsiveness Enhancements ==================== */

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal overflow globally */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Touch-friendly targets - minimum 44px for all interactive elements */
@media (max-width: 768px) {

    a,
    button,
    [role="button"],
    input,
    select,
    textarea {
        min-height: 44px;
    }

    /* Better touch targets for links in text */
    p a,
    li a,
    span a {
        padding: 0.25rem 0;
        min-height: auto;
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    html {
        font-size: 15px;
        /* Slightly smaller base for mobile */
    }

    h1 {
        font-size: 1.875rem !important;
        /* 30px */
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem !important;
        /* 24px */
        line-height: 1.25;
    }

    h3 {
        font-size: 1.25rem !important;
        /* 20px */
    }

    /* Better paragraph readability on mobile */
    p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Mobile Container Padding */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Reduce section padding on mobile */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Mobile Card Improvements */
@media (max-width: 640px) {

    .story-card,
    .event-card {
        margin-bottom: 1rem;
    }

    /* Full-width cards on mobile */
    .story-card img,
    .event-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }
}

/* Mobile Modal Improvements */
@media (max-width: 640px) {

    #program-modal,
    #event-modal {
        padding: 0.5rem;
    }

    #modal-container,
    .modal-container {
        max-height: 95vh;
        border-radius: 1rem;
    }

    #modal-body {
        padding: 1.25rem !important;
    }

    #modal-body h2 {
        font-size: 1.5rem !important;
    }
}

/* Mobile Footer Adjustments */
@media (max-width: 768px) {
    footer .container {
        padding: 2rem 1rem;
    }

    footer .grid {
        gap: 2rem;
    }
}

/* Mobile Form Improvements */
@media (max-width: 640px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents iOS zoom on focus */
        padding: 0.75rem 1rem;
    }

    /* Stack buttons on mobile */
    .flex-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .flex-row>button,
    .flex-row>a {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Video Container */
@media (max-width: 640px) {
    .video-container-16x9 {
        border-radius: 0.75rem;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }
}

/* Improve horizontal scroll areas on mobile */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    .overflow-x-auto::-webkit-scrollbar {
        display: none;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    #mobile-menu {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    #mobile-menu a {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}

/* Landscape Mobile Adjustments */
@media (max-width: 896px) and (orientation: landscape) {

    /* Adjust hero sections for landscape */
    .min-h-screen,
    [class*="min-h-"] {
        min-height: auto;
    }

    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .admin-floating-bar {
        bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* ==================== Premium Header Styles ==================== */

.header-premium {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.header-premium.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Animated accent line at top of header */
.header-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            #3b82f6 0%,
            #06b6d4 25%,
            #10b981 50%,
            #f59e0b 75%,
            #f97316 100%);
    background-size: 200% 100%;
    animation: gradientShift 4s ease-in-out infinite;
}

/* Premium Logo Animation */
.logo-premium {
    transition: all var(--duration-normal) var(--ease-smooth);
}

.logo-premium:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.25));
}

/* Premium Nav Link */
.nav-link-premium {
    position: relative;
    font-weight: 500;
    color: #475569;
    transition: color var(--duration-fast) var(--ease-smooth);
    padding: 0.5rem 0;
}

.nav-link-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-smooth);
    transform: translateX(-50%);
}

.nav-link-premium:hover {
    color: #3b82f6;
}

.nav-link-premium:hover::after {
    width: 100%;
}

.nav-link-premium.active {
    color: #3b82f6;
}

.nav-link-premium.active::after {
    width: 100%;
}

/* Premium Mobile Menu */
.mobile-menu-premium {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==================== Premium Hero Styles ==================== */

.hero-premium {
    position: relative;
    overflow: hidden;
}

/* Animated mesh background for heroes */
.hero-mesh-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(at 80% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 40%),
        radial-gradient(at 50% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(at 10% 90%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
    pointer-events: none;
    animation: floatSlow 20s ease-in-out infinite;
}

/* Hero floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.5;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.3);
    top: -100px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(249, 115, 22, 0.25);
    bottom: -50px;
    left: -50px;
    animation: floatReverse 12s ease-in-out infinite;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(16, 185, 129, 0.2);
    top: 40%;
    left: 20%;
    animation: floatSlow 18s ease-in-out infinite;
}

/* Hero badge styling */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #93c5fd;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: scaleIn 0.6s var(--ease-out-expo) forwards;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    margin-right: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Premium CTA Buttons */
.btn-hero-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-hero-primary:hover::before {
    transform: translateX(100%);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* ==================== Premium Footer Styles ==================== */

.footer-premium {
    position: relative;
    overflow: hidden;
}

/* Animated gradient border at top of footer */
.footer-gradient-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            #3b82f6 0%,
            #8b5cf6 25%,
            #f97316 50%,
            #10b981 75%,
            #3b82f6 100%);
    background-size: 200% 100%;
    animation: gradientShift 6s ease-in-out infinite;
}

/* Premium social icons */
.social-icon-premium {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 1.125rem;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.social-icon-premium:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.social-icon-premium.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-icon-premium.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.social-icon-premium.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

/* Footer floating decorations */
.footer-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.3;
}

.footer-decoration-1 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.4);
    top: -100px;
    right: 10%;
    animation: floatSlow 15s ease-in-out infinite;
}

.footer-decoration-2 {
    width: 200px;
    height: 200px;
    background: rgba(249, 115, 22, 0.3);
    bottom: -50px;
    left: 5%;
    animation: floatReverse 12s ease-in-out infinite;
}

.footer-decoration-3 {
    width: 250px;
    height: 250px;
    background: rgba(16, 185, 129, 0.25);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatSlow 18s ease-in-out infinite;
}

/* LinkedIn social icon */
.social-icon-premium.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

/* Twitter/X social icon */
.social-icon-premium.twitter:hover {
    background: #000000;
    border-color: #000000;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* TikTok social icon */
.social-icon-premium.tiktok:hover {
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 0, 80, 0.4);
}

/* Enhanced footer contact card */
.footer-contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.footer-contact-card:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

/* Footer link with animated underline */
.footer-link {
    position: relative;
    color: #94a3b8;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transition: width var(--duration-normal) var(--ease-smooth);
}

.footer-link:hover {
    color: #3b82f6;
}

.footer-link:hover::after {
    width: 100%;
}

/* Footer heading accent */
.footer-heading {
    position: relative;
    display: inline-block;
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Footer newsletter CTA box */
.footer-newsletter {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.footer-newsletter-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.25rem;
    color: white;
    width: 100%;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.footer-newsletter-btn {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.footer-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Mobile adjustments for footer */
@media (max-width: 768px) {

    .footer-decoration-1,
    .footer-decoration-2,
    .footer-decoration-3 {
        opacity: 0.15;
    }

    .footer-newsletter {
        padding: 1.5rem;
    }
}

/* ==================== Phase 4: Premium Component Upgrades ==================== */

/* ==================== 3D Card Effects ==================== */

/* Base 3D Card Container */
.card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-3deg) translateY(-12px) scale(1.02);
}

/* 3D Card with Depth Shadows */
.card-3d-depth {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s var(--ease-smooth);
}

.card-3d-depth::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    transform: translateZ(-40px);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.card-3d-depth:hover {
    transform: perspective(1000px) rotateX(3deg) rotateY(-4deg) translateY(-16px) translateZ(20px);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.2),
        0 15px 30px -10px rgba(0, 0, 0, 0.15),
        0 5px 15px -5px rgba(0, 0, 0, 0.1);
}

.card-3d-depth:hover::before {
    opacity: 0.3;
}

/* Interactive Tilt Card - responds to hover position */
.card-tilt {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.card-tilt:hover {
    transform: perspective(800px) rotateX(5deg) rotateY(-5deg) translateY(-8px);
    box-shadow:
        20px 20px 40px rgba(0, 0, 0, 0.15),
        -5px -5px 20px rgba(255, 255, 255, 0.05);
}

/* Tilt Left on Hover */
.card-tilt-left:hover {
    transform: perspective(800px) rotateX(3deg) rotateY(5deg) translateY(-8px);
}

/* Tilt Right on Hover */
.card-tilt-right:hover {
    transform: perspective(800px) rotateX(3deg) rotateY(-5deg) translateY(-8px);
}

/* 3D Float Effect */
.card-3d-float {
    position: relative;
    transition: all 0.5s var(--ease-smooth);
}

.card-3d-float::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
    filter: blur(8px);
    opacity: 0;
    transition: all 0.5s var(--ease-smooth);
}

.card-3d-float:hover {
    transform: translateY(-20px) scale(1.02);
}

.card-3d-float:hover::after {
    opacity: 1;
    transform: translateY(15px) scaleX(0.85);
}

/* ==================== Animated Gradient Borders ==================== */

/* Rotating Gradient Border */
.border-gradient-animated {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.border-gradient-animated::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(90deg,
            #3b82f6, #8b5cf6, #ec4899, #f97316, #10b981, #06b6d4, #3b82f6);
    background-size: 300% 100%;
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* Pulsing Glow Border */
.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #f97316);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.3s var(--ease-smooth);
}

.border-glow:hover::before {
    opacity: 0.6;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
        filter: blur(12px);
    }

    50% {
        opacity: 0.7;
        filter: blur(18px);
    }
}

/* Rainbow Border on Hover */
.border-rainbow {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
}

.border-rainbow::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: conic-gradient(from 0deg, #f97316, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #f97316);
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
    animation: spinBorder 3s linear infinite;
}

.border-rainbow:hover::before {
    opacity: 1;
}

@keyframes spinBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==================== Skeleton Loading States ==================== */

/* Base Skeleton Styles */
.skeleton {
    background: linear-gradient(90deg,
            #e2e8f0 0%,
            #f1f5f9 50%,
            #e2e8f0 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Skeleton Text Line */
.skeleton-text {
    height: 1rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg,
            #e2e8f0 0%,
            #f1f5f9 50%,
            #e2e8f0 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-text-sm {
    height: 0.75rem;
}

.skeleton-text-lg {
    height: 1.5rem;
}

/* Skeleton Image/Card Area */
.skeleton-image {
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg,
            #e2e8f0 0%,
            #f1f5f9 50%,
            #e2e8f0 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-image-square {
    aspect-ratio: 1/1;
}

/* Skeleton Avatar */
.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg,
            #e2e8f0 0%,
            #f1f5f9 50%,
            #e2e8f0 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.skeleton-avatar-sm {
    width: 32px;
    height: 32px;
}

.skeleton-avatar-lg {
    width: 64px;
    height: 64px;
}

/* Skeleton Card (Full Card Placeholder) */
.skeleton-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.skeleton-card .skeleton-card-image {
    height: 200px;
    background: linear-gradient(90deg,
            #e2e8f0 0%,
            #f1f5f9 50%,
            #e2e8f0 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-card .skeleton-card-content {
    padding: 1.5rem;
}

/* Dark Mode Skeleton */
.skeleton-dark {
    background: linear-gradient(90deg,
            #334155 0%,
            #475569 50%,
            #334155 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

/* ==================== Premium Button Animations ==================== */

/* Ripple Effect Button */
.btn-ripple {
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}

.btn-ripple:active::after {
    transform: scale(2.5);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

/* Magnetic Hover Effect */
.btn-magnetic {
    position: relative;
    transition: transform 0.3s var(--ease-elastic);
}

.btn-magnetic:hover {
    transform: scale(1.05);
}

.btn-magnetic:active {
    transform: scale(0.98);
}

/* Gradient Shift Button */
.btn-gradient-shift {
    position: relative;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 200%;
    color: white;
    border: none;
    transition: all 0.4s var(--ease-smooth);
}

.btn-gradient-shift:hover {
    background-position: 100% 100%;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* Icon Animation Button */
.btn-icon-animated i,
.btn-icon-animated svg {
    transition: transform 0.3s var(--ease-elastic);
}

.btn-icon-animated:hover i,
.btn-icon-animated:hover svg {
    transform: translateX(4px);
}

/* Icon Bounce on Hover */
.btn-icon-bounce i,
.btn-icon-bounce svg {
    transition: transform 0.3s var(--ease-bounce);
}

.btn-icon-bounce:hover i,
.btn-icon-bounce:hover svg {
    animation: iconBounce 0.5s var(--ease-bounce);
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Icon Rotate on Hover */
.btn-icon-rotate:hover i,
.btn-icon-rotate:hover svg {
    transform: rotate(90deg);
    transition: transform 0.3s var(--ease-smooth);
}

/* Shine/Shimmer Button Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::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 var(--ease-smooth);
}

.btn-shine:hover::before {
    left: 100%;
}

/* Glow Pulse Button */
.btn-glow-pulse {
    position: relative;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-glow-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.3s var(--ease-smooth);
}

.btn-glow-pulse:hover::before {
    opacity: 0.5;
    animation: glowPulse 1.5s ease-in-out infinite;
}

/* Liquid Fill Button */
.btn-liquid {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s var(--ease-smooth);
}

.btn-liquid::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    z-index: -1;
    transition: height 0.4s var(--ease-smooth);
    border-radius: inherit;
}

.btn-liquid:hover::before {
    height: 100%;
}

.btn-liquid:hover {
    color: white;
}

/* Outline to Fill Button */
.btn-outline-fill {
    position: relative;
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s var(--ease-smooth);
}

.btn-outline-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-smooth);
}

.btn-outline-fill:hover {
    color: white;
    border-color: transparent;
}

.btn-outline-fill:hover::before {
    transform: scaleX(1);
}

/* ==================== Enhanced Card Styles ==================== */

/* Apply 3D to existing card types */
.story-card,
.event-card {
    transform-style: preserve-3d;
    transition: all 0.4s var(--ease-smooth);
}

.story-card:hover,
.event-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-8px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

/* Program Card Enhancement */
.program-preview-card {
    transform-style: preserve-3d;
}

.program-preview-card:hover {
    transform: perspective(1000px) rotateX(1deg) rotateY(-2deg) translateY(-6px) scale(1.02);
}

/* ==================== Interactive Elements ==================== */

/* Focus Ring for Accessibility */
.focus-ring:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* Hover Underline Effect */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s var(--ease-smooth);
}

.hover-underline:hover::after {
    width: 100%;
}

/* Hover Scale */
.hover-scale {
    transition: transform 0.3s var(--ease-smooth);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Hover Lift */
.hover-lift {
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ==================== Floating Contact Button Widget ==================== */

.contact-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    font-family: 'Inter', sans-serif;
}

/* Main floating button */
.contact-widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    z-index: 10;
}

.contact-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

.contact-widget-btn:active {
    transform: scale(0.95);
}

.contact-widget-btn i {
    font-size: 1.5rem;
    color: white;
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.contact-widget-btn.active i {
    transform: rotate(45deg);
}

/* Pulse animation on button */
.contact-widget-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    opacity: 0;
    animation: contactPulse 2s ease-in-out infinite;
}

@keyframes contactPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.3;
    }
}

/* Popup container */
.contact-widget-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom right;
    transition: all var(--duration-normal) var(--ease-smooth);
    overflow: hidden;
}

.contact-widget-popup.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Popup header */
.contact-widget-header {
    background: var(--gradient-primary);
    padding: 1.25rem 1.5rem;
    color: white;
}

.contact-widget-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.contact-widget-header p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Contact options */
.contact-widget-options {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #1e293b;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.contact-option:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.contact-option-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-option-icon.email {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.contact-option-icon.facebook {
    background: #1877f2;
    color: white;
}

.contact-option-text {
    flex: 1;
    min-width: 0;
}

.contact-option-text strong {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.contact-option-text span {
    font-size: 0.8125rem;
    color: #64748b;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-option i.fa-arrow-right {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: transform var(--duration-fast) var(--ease-smooth);
}

.contact-option:hover i.fa-arrow-right {
    transform: translateX(4px);
    color: #3b82f6;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .contact-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .contact-widget-btn {
        width: 54px;
        height: 54px;
    }

    .contact-widget-btn i {
        font-size: 1.375rem;
    }

    .contact-widget-popup {
        width: calc(100vw - 2rem);
        right: 0;
    }
}

/* Adjust if admin bar is present */
.admin-floating-bar~.contact-widget {
    bottom: 5rem;
}

@media (max-width: 640px) {
    .admin-floating-bar~.contact-widget {
        bottom: 6rem;
    }
}