@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Ensure proper spacing from fixed header */
section:not(#home) {
    scroll-margin-top: 80px;
}

@media (max-width: 768px) {
    section:not(#home) {
        scroll-margin-top: 64px;
    }
}

.hero-gradient {
    background: linear-gradient(135deg, #2E8B57 0%, #287A4E 25%, #226442 50%, #1d5136 75%, #184129 100%);
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

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

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

.scroll-smooth {
    scroll-behavior: smooth;
}

.card-hover {
    transition: all 0.3s ease;
}

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

.btn {
    transition: all 0.3s ease;
    border-radius: 50px;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

/* Enhanced Mobile Navigation */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: white;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Ensure mobile menu shows on appropriate screen sizes */
@media (min-width: 768px) {
    .mobile-menu,
    .mobile-menu-backdrop {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .mobile-menu-button {
        display: block !important;
    }
}

/* Responsive Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

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

/* Enhanced Responsive Design */
@media (max-width: 640px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }
    
    .card-hover {
        padding: 1.5rem !important;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
    
    .section {
        padding: 3rem 0 !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .hero-content {
        padding: 2rem 0 !important;
    }
    
    .text-4xl, .text-5xl, .text-6xl, .text-7xl {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .text-xl {
        font-size: 1.125rem !important;
    }
}

/* Print-friendly styles */
@media print {
    .btn, .mobile-menu-button, nav {
        display: none !important;
    }
    
    .hero-gradient, .bg-primary-600 {
        background: white !important;
        color: black !important;
    }
}

/* Video container styles */
.video-container {
    position: relative;
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-container.loaded {
    transform: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* YouTube play button styling */
.video-container .fa-play::before {
    margin-left: 3px; /* Center the play icon better */
}

/* Responsive video adjustments */
@media (max-width: 768px) {
    .video-container:hover {
        transform: none; /* Disable hover effects on mobile */
    }
    
    .video-container .w-20 {
        width: 4rem;
        height: 4rem;
    }
    
    .video-container .text-2xl {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .video-container .w-20 {
        width: 3rem;
        height: 3rem;
    }
    
    .video-container .text-2xl {
        font-size: 1rem;
    }
}

/* Auto-scrolling gallery styles - Instagram-style */
.auto-scroll-gallery {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.auto-scroll-container {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease;
    scroll-behavior: smooth;
    overflow: visible;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    will-change: transform; /* Optimize for transforms */
    padding: 0 1rem; /* Add padding for spacing */
}

.auto-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Auto-scroll animation for media logos */
.auto-scroll-container[style*="animation-duration"] {
    animation: autoScroll linear infinite;
    animation-play-state: running;
}

/* Instagram-style image display */
.auto-scroll-image.leader-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 300px;
    height: 400px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px; /* Add 4px border radius */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.auto-scroll-image.leader-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Mobile: One image at a time (Instagram-style) */
@media (max-width: 768px) {
    .auto-scroll-container {
        gap: 1rem; /* Restore spacing on mobile as requested */
        padding: 0 1rem; /* Maintain padding */
    }
    
    .auto-scroll-image.leader-image {
        width: calc(100vw - 2rem); /* Account for padding */
        max-width: calc(100vw - 2rem);
        height: 60vh;
        border-radius: 4px; /* Keep border radius on mobile */
        margin-right: 0;
    }
    
    .auto-scroll-image.events-image {
        width: calc(100vw - 2rem); /* Account for padding */
        max-width: calc(100vw - 2rem);
        height: 60vh;
        border-radius: 4px; /* Keep border radius on mobile */
        margin-right: 0;
    }
    
    .auto-scroll-gallery {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Tablet and small desktop: Show full images centered */
@media (min-width: 769px) and (max-width: 1024px) {
    .auto-scroll-image.leader-image {
        width: 280px;
        height: 360px;
    }
    
    .auto-scroll-image.events-image {
        width: 280px;
        height: 360px;
    }
}

/* Instagram-style pagination dots for mobile */
.gallery-pagination {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e5e7eb;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.gallery-dot.active {
    background-color: #2E8B57;
}

@media (max-width: 768px) {
    .gallery-pagination {
        display: flex;
    }
}

/* Gallery interaction styles */
.auto-scroll-container {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.auto-scroll-image {
    pointer-events: auto;
    user-select: none;
}

.auto-scroll-image.events-image {
    height: 400px;
    width: 300px;
    object-fit: cover;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
}

.auto-scroll-image.events-image:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auto-scroll-image.media-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    min-width: 120px;
    object-fit: contain;
    background: white;
    padding: 12px;
    border: 1px solid #e5e7eb;
}

.auto-scroll-image.leader-image {
    height: 400px;
    width: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auto-scroll-image.leader-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Gallery Navigation Controls */
.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #2E8B57;
    border: 1px solid #2E8B57;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 12px;
}

.gallery-controls:hover {
    background: #2E8B57;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-controls.left {
    left: 10px;
}

.gallery-controls.right {
    right: 10px;
}

.gallery-controls.pause {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: none;
    width: 35px;
    height: 30px;
    border-radius: 15px;
}

.auto-scroll-gallery {
    position: relative;
}

.auto-scroll-gallery.paused .auto-scroll-container {
    animation-play-state: paused;
}

/* Gallery Controls Below */
.gallery-controls-bottom {
    background: rgba(46, 139, 87, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.gallery-controls-bottom:hover {
    background: rgba(46, 139, 87, 1);
    transform: scale(1.1);
}

.gallery-controls-bottom.pause {
    width: 60px;
    height: 50px;
    border-radius: 25px;
}

/* Simple Gallery Controls (No Background) */
.touch-manipulation {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    .touch-manipulation {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Smooth scrolling for gallery */
.auto-scroll-container {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-controls-simple {
    background: transparent;
    color: #2E8B57;
    border: 2px solid #2E8B57;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.gallery-controls-simple:hover {
    color: #fff;
    background: #2E8B57;
    transform: scale(1.1);
}

.gallery-controls-simple.pause {
    width: 50px;
    border-radius: 20px;
}