/* ========================================
   ACHIEVERS GYMNASTICS ACADEMY
   Global CSS - Consolidated (no inline styles)
   ======================================== */

:root {
    --primary: #0f172a;
    --accent: #f59e0b;
    --gold: #fbbf24;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', 'Roboto', 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #334155;
}

h1, h2, h3 { font-weight: 700; }

/* Tailwind-inspired container */
.tail-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 480px) {
    .tail-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (min-width: 1600px) {
    .tail-container {
        max-width: 1400px;
    }
}

/* ===================== GRADIENT SECTIONS ===================== */
.section-gradient-1 { background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%); }
.section-gradient-2 { background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%); }
.section-gradient-3 { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.section-gradient-4 { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); }
.section-gradient-5 { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); }
.section-gradient-6 { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); }
.section-gradient-7 { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }

/* ===================== NAVBAR ===================== */
.navbar,
nav.navbar,
body nav.navbar,
html body .navbar {
    background: #0f172a !important;
    background-color: #0f172a !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
}

.nav-link,
.navbar a,
body .nav-link,
html body .nav-link {
    color: #e2e8f0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500;
}

.nav-link:hover,
.navbar a:hover,
body .nav-link:hover {
    color: #fbbf24 !important;
    transform: translateY(-1px);
}

/* ===================== LOGO (100px) ===================== */
.navbar-logo {
    height: 100px !important;
    width: auto !important;
    max-height: 110px !important;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.03);
}

@media (max-width: 640px) {
    .navbar-logo {
        height: 44px !important;
        max-height: 48px !important;
    }
}

/* ===================== HERO SLIDER ===================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.82) 0%, rgba(15,23,42,0.75) 40%, rgba(15,23,42,0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.25rem;
    line-height: 1.05;
}

.hero-badge {
    background: rgba(251, 191, 36, 0.95);
    color: #0f172a;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.35rem;
    }
}

/* Hero slider controls */
.slider-nav {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.active {
    background: #fbbf24;
    width: 32px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ===================== CAROUSEL STYLES (Training Programs, Star Achievers, Loved by Champions) ===================== */
.carousel-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 16px;
}

.carousel-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 calc(100% - 0.5rem);
    min-width: 260px;
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .carousel-item {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 280px;
    }
}

@media (min-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(33.333% - 0.75rem);
        min-width: 280px;
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(25% - 1rem);
        min-width: 300px;
    }
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    background: #0f172a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.carousel-btn:hover {
    background: #1e2937;
    transform: scale(1.05);
}

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: #f59e0b;
    width: 24px;
}

/* ===================== MODERN CARDS ===================== */
.modern-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    background: white;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-color: #f59e0b;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
    background: #0f172a;
    color: white;
    padding: 12px 26px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #1e2937;
    transform: translateY(-1px);
}

.btn-accent {
    background: #f59e0b;
    color: #0f172a;
    padding: 12px 26px;
    border-radius: 9999px;
    font-weight: 600;
}

.btn-accent:hover {
    background: #d97706;
}

/* ===================== OTHER GLOBAL STYLES ===================== */
.card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.course-card {
    border: 1px solid #e2e8f0;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 55px;
    height: 3px;
    background: #f59e0b;
    border-radius: 9999px;
}

.section-header {
    position: relative;
    display: inline-block;
}

.section-header:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(to right, #f59e0b, #fbbf24);
    border-radius: 9999px;
}

/* Table styles for CMS */
.admin-table th {
    background: #0f172a;
    color: white;
    font-weight: 600;
}

.admin-table td, .admin-table th {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

/* Forms */
input, textarea, select {
    transition: border-color .15s;
}

input:focus, textarea:focus, select:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Status pills */
.status-pill {
    font-size: 0.75rem;
    padding: 3px 12px;
    border-radius: 9999px;
    font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Dashboard Cards */
.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

/* Better mobile touch targets */
.nav-link, .btn-primary, .btn-accent {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive enhancements */
@media (max-width: 480px) {
    .hero-slide {
        min-height: 100dvh;
    }
}

/* Hide top bar on mobile */
@media (max-width: 768px) {
    .top-bar,
    .bg-slate-900.text-white.text-sm.py-2\.5,
    header .top-bar,
    .top-bar-wrapper {
        display: none !important;
    }
    
    /* Optional: make navbar slightly tighter on mobile */
    .navbar {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
}


iframe{
    width: 100% !important;
    height: 100% !important;
}

.text-logo {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
    width: 300px !important;
}