/* SRIAS CMS - Main Stylesheet
 * ============================
 * Modern, clean CSS for SRIAS website
 * Author: Expert PHP Developer
 * Version: 1.0
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables for Brand Colors */
:root {
    --primary-blue: #3B82F6;
    --secondary-red: #EF4444;
    --light-blue: #DBEAFE;
    --light-red: #FEE2E2;
    --neutral-gray: #F8FAFC;
    --white: #FFFFFF;
    --black: #000000;
    --gray-600: #6B7280;
    --gray-800: #1E293B;
}

/* Alpine.js Cloaking - Prevent Flash of Unstyled Content */
[x-cloak] {
    display: none !important;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
}

/* Header Sticky Fix - Complete Override */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8) !important;
    transition: all 0.3s ease !important;
}

/* Enhanced header styling for better visual appeal */
header nav {
    position: relative;
    z-index: inherit;
}

header .max-w-7xl {
    position: relative;
    z-index: inherit;
}

/* Logo styling enhancement */
header a[href="/"] {
    transition: transform 0.3s ease !important;
}

header a[href="/"]:hover {
    transform: scale(1.02) !important;
}

/* Navigation links enhancement */
header .nav-link {
    position: relative;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

header .nav-link:hover {
    color: #3B82F6 !important;
    transform: translateY(-1px) !important;
}

/* CTA button enhancement */
header .bg-gradient-to-r {
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
}

header .bg-gradient-to-r:hover {
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Add top padding to body to compensate for fixed header */
body {
    padding-top: 80px !important;
    overflow-x: hidden;
}

/* Ensure sections don't interfere with header stacking */
section {
    position: relative;
    z-index: 1;
}

/* Fix for any transform issues that might affect sticky positioning */
main {
    position: relative;
    z-index: 1;
}

/* Ensure header stays above all content */
header nav {
    position: relative;
    z-index: inherit;
}

/* Make sure all absolute/fixed elements respect header */
.absolute, .fixed {
    z-index: 1;
}

/* Override any high z-index elements that might interfere */
section .absolute {
    z-index: 10 !important;
}

section button {
    z-index: 10 !important;
}

/* Smooth Transitions */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Enhanced Marquee Styles */
.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* Pause marquee on hover for better UX */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Tailwind Custom Classes */
.text-srias-blue {
    color: var(--primary-blue);
}

.bg-srias-blue {
    background-color: var(--primary-blue);
}

.bg-srias-red {
    background-color: var(--secondary-red);
}

.bg-srias-light-blue {
    background-color: var(--light-blue);
}

.bg-srias-light-red {
    background-color: var(--light-red);
}

.bg-srias-gray {
    background-color: var(--neutral-gray);
}

/* Custom Gradients */
.bg-gradient-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #60A5FA 50%, var(--secondary-red) 100%);
}

.text-gradient-srias {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-blue-red {
    background: linear-gradient(135deg, #3B82F6, #EF4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section Specific Styles */
.hero-container {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3), transparent);
}

/* Modern Button Styles */
.btn-modern-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: var(--primary-blue);
    border-radius: 9999px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-modern-primary:hover {
    background-color: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-modern-primary .btn-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-modern-primary:hover .btn-overlay {
    opacity: 1;
}

.btn-modern-primary .btn-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
}

.btn-modern-primary .btn-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-modern-primary:hover .btn-arrow {
    transform: translateX(0.25rem);
}

.btn-modern-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern-secondary:hover {
    background-color: white;
    color: var(--gray-800);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dot.active {
    background-color: white;
}

.slider-dot.inactive {
    background-color: rgba(255, 255, 255, 0.5);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.slider-arrow.prev {
    left: 1rem;
}

.slider-arrow.next {
    right: 1rem;
}

/* Foundation Section Styles */
.foundation-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.foundation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.foundation-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Why Choose Us Section Styles */
.why-choose-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 1);
    transition: all 0.3s ease;
}

.why-choose-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(48, 92, 222, 0.2);
}

.why-choose-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue);
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.why-choose-card:hover .why-choose-icon {
    transform: scale(1.05);
}

.why-choose-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.why-choose-card:hover .why-choose-title {
    color: var(--primary-blue);
}

.why-choose-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Welcome Section Styles */
.welcome-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(48, 92, 222, 0.1);
    color: var(--primary-blue);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.welcome-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.welcome-feature-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.welcome-feature-content h4 {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.welcome-feature-content p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.welcome-image-container {
    position: relative;
}

.welcome-main-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.welcome-overlay-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.welcome-decorative-circle-1 {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background: rgba(48, 92, 222, 0.1);
    border-radius: 50%;
}

.welcome-decorative-circle-2 {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    width: 8rem;
    height: 8rem;
    background: rgba(255, 235, 59, 0.2);
    border-radius: 50%;
}

.welcome-stats-card {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 1);
    text-align: center;
}

.welcome-stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.welcome-stats-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.welcome-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.welcome-cta-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.welcome-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #d1d5db;
    color: var(--gray-700);
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.welcome-cta-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Courses Section Styles */
.course-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 1);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.course-image {
    position: relative;
    height: 12rem;
    background: linear-gradient(135deg, rgba(48, 92, 222, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #eab308;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.course-content {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.course-card:hover .course-title {
    color: var(--primary-blue);
}

.course-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.course-feature-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.course-feature-tag.duration {
    background-color: rgba(229, 231, 235, 1);
    color: var(--gray-700);
}

.course-feature-tag.faculty {
    background-color: rgba(220, 252, 231, 1);
    color: #065f46;
}

.course-feature-tag.material {
    background-color: rgba(219, 234, 254, 1);
    color: #1e40af;
}

.course-actions {
    display: flex;
    gap: 0.75rem;
}

.course-btn-primary {
    flex: 1;
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.course-btn-secondary {
    background-color: rgba(229, 231, 235, 1);
    color: var(--gray-700);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-btn-secondary:hover {
    background-color: rgba(209, 213, 219, 1);
}

.course-category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.course-category-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(229, 231, 235, 1);
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-category-btn:hover {
    background-color: rgba(249, 250, 251, 1);
}

.course-category-btn.active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.course-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.course-view-all-btn:hover {
    background-color: #2563eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Course Filtering Animations */
.course-card {
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card.filtering {
    opacity: 0.3;
    transform: scale(0.95);
}

.course-card.hidden {
    display: none !important;
}

.course-grid {
    transition: all 0.3s ease;
}

/* Smooth grid transitions */
.grid {
    transition: all 0.3s ease;
}

.grid .course-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Course Slider Styles */
.course-slider-container {
    position: relative;
    overflow: hidden;
}

.course-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.course-slider .course-card {
    flex-shrink: 0;
    width: 100%;
}

/* Responsive slider widths */
@media (min-width: 768px) {
    .course-slider .course-card {
        width: calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .course-slider .course-card {
        width: calc(33.333% - 1.33rem);
    }
}

/* Navigation Arrows */
.course-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    padding: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-nav-btn:hover {
    background-color: #f9fafb;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.course-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.course-nav-btn.prev {
    left: -1rem;
}

.course-nav-btn.next {
    right: -1rem;
}

/* Slider Dots */
.course-slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.course-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(209, 213, 219, 1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

.course-dot:hover {
    background-color: rgba(156, 163, 175, 1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content-overlay {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }
    
    .btn-modern-primary,
    .btn-modern-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background-color: white;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 4rem;
    height: 4rem;
    border: 4px solid var(--primary-blue);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding: 0 2rem;
    }
}

/* Demo Videos Section Styles */
@keyframes animate-spin-slow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.animate-spin-slow {
    animation: animate-spin-slow 20s linear infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video Modal Styles */
#videoModal {
    backdrop-filter: blur(8px);
}

#videoModal .aspect-video {
    aspect-ratio: 16 / 9;
}

/* Enhanced Hover Effects for Video Cards */
.group:hover .group-hover\:shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.group:hover .hover\:shadow-red-500\/50 {
    box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.5), 0 10px 10px -5px rgba(239, 68, 68, 0.04);
}

/* Video Card Specific Styles */
.video-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.5);
}

.video-play-button i {
    color: white;
    font-size: 1.5rem;
    margin-left: 0.125rem;
}

.video-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.video-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.video-card:hover .video-title {
    color: #93c5fd;
}

.video-description {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Video Section Background Elements */
.video-bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.video-bg-element:nth-child(2) {
    animation-delay: 2s;
}

.video-bg-element:nth-child(3) {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* View All Videos Button */
.view-all-videos-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-videos-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .video-play-button {
        width: 4rem;
        height: 4rem;
    }
    
    .video-play-button i {
        font-size: 1.25rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-title {
        font-size: 1.125rem;
    }
}

/* Important Facts Counter Styles */
.fact-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(239, 68, 68, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fact-card:hover::before {
    opacity: 1;
}

.counter-wrapper {
    position: relative;
    overflow: hidden;
}

.counter {
    display: inline-block;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.counter.animated {
    transform: scale(1);
}

.counter-completed .counter {
    background: linear-gradient(135deg, #ffffff, #dbeafe, #fecaca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating Animation for Background Elements */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

@keyframes floating-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(8px) rotate(-1deg);
    }
    66% {
        transform: translateY(-6px) rotate(1deg);
    }
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

.floating-delayed {
    animation: floating-delayed 6s ease-in-out infinite;
    animation-delay: -2s;
}

/* Decoration Blob Styles */
.decoration-blob {
    border-radius: 50%;
    filter: blur(40px);
    animation: floating 8s ease-in-out infinite;
}

.decoration-blob:nth-child(2) {
    animation-delay: -2s;
}

.decoration-blob:nth-child(3) {
    animation-delay: -4s;
}

/* Important Facts Responsive Adjustments */
@media (max-width: 768px) {
    .fact-card {
        padding: 1.5rem;
    }
    
    .counter {
        font-size: 2.5rem;
    }
    
    .decoration-blob {
        width: 8rem !important;
        height: 8rem !important;
    }
}

@media (max-width: 640px) {
    .fact-card {
        padding: 1.25rem;
    }
    
    .counter {
        font-size: 2rem;
    }
}

/* News Section Styles */
.news-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(239, 68, 68, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card .aspect-video {
    aspect-ratio: 16 / 9;
}

.news-card img {
    transition: transform 0.7s ease;
}

.news-card:hover img {
    transform: scale(1.1);
}

/* News Category Badge Styles */
.news-category-badge {
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* News Meta Information */
.news-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.news-meta i {
    width: 14px;
    text-align: center;
}

/* News Title Hover Effect */
.news-card h3 {
    transition: color 0.3s ease;
}

.news-card:hover h3 {
    color: #3b82f6;
}

/* News Read More Button */
.news-read-more {
    position: relative;
    overflow: hidden;
}

.news-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.news-read-more:hover::before {
    left: 100%;
}

/* News Author Avatar */
.news-author-avatar {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transition: transform 0.3s ease;
}

.news-card:hover .news-author-avatar {
    transform: scale(1.1);
}

/* News Loading State */
.news-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.news-card.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* News Section Responsive Adjustments */
@media (max-width: 768px) {
    .news-card {
        margin-bottom: 1.5rem;
    }
    
    .news-card h3 {
        font-size: 1.125rem;
    }
    
    .news-meta {
        font-size: 0.75rem;
    }
    
    .news-author-avatar {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (max-width: 640px) {
    .news-card .p-6 {
        padding: 1rem;
    }
    
    .news-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Contact Form Styles */
.contact-form-section {
    position: relative;
}

.form-group {
    position: relative;
    transition: all 0.3s ease;
}

.form-group-focused {
    transform: translateY(-2px);
}

.form-group-filled label {
    color: #3B82F6;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #10B981;
}

.error-message {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-success {
    animation: formSuccess 0.6s ease;
}

@keyframes formSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.contact-image-container {
    position: relative;
    overflow: hidden;
}

.contact-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(239, 68, 68, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.contact-image-container:hover::before {
    opacity: 1;
}

.contact-stats-card {
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.contact-stats-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-info-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-card .contact-icon {
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Form Loading Animation */
.form-loading {
    position: relative;
    overflow: hidden;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: formShimmer 1.5s infinite;
}

@keyframes formShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Contact Form Responsive Adjustments */
@media (max-width: 768px) {
    .contact-form-section .grid {
        gap: 2rem;
    }
    
    .contact-image-container {
        height: 300px;
    }
    
    .contact-stats-card {
        padding: 1rem;
    }
    
    .contact-stats-card .text-2xl {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 640px) {
    .contact-form-section {
        padding: 1rem 0;
    }
    
    .contact-form-section .rounded-3xl {
        border-radius: 1.5rem;
    }
    
    .contact-form-section .p-8 {
        padding: 1.5rem;
    }
    
    .contact-info-card h4 {
        font-size: 1rem;
    }
} 

/* Speed up marquee on mobile screens */
@media (max-width: 768px) {
  .animate-marquee,
  .marquee-content {
    animation-duration: 5s !important;
  }
}
@media (max-width: 480px) {
  .animate-marquee,
  .marquee-content {
    animation-duration: 5s !important;
  }
}