/* ============================================================
   HOME PAGE — Rich & Beautiful Styles
   assets/css/pages/home.css
   ============================================================ */

/* ── Hero Carousel Modern Design ── */
.hero {
    position: relative;
    overflow: hidden;
    background: #080d1a !important;
    background-image: 
        radial-gradient(at 15% 25%, rgba(0, 82, 255, 0.22) 0px, transparent 55%),
        radial-gradient(at 85% 75%, rgba(6, 182, 212, 0.18) 0px, transparent 55%),
        radial-gradient(at 50% 50%, rgba(99, 102, 241, 0.12) 0px, transparent 65%) !important;
    min-height: 640px !important;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 1;
}

.carousel {
    position: relative;
    width: 100%;
    min-height: 640px;
    height: auto;
    overflow: hidden;
    border-radius: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.carousel-item {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
    background: transparent !important;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
}

.hero-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.hero-col-text {
    color: #ffffff;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    background: rgba(0, 82, 255, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 9999px;
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 14px rgba(0, 82, 255, 0.15);
    animation: fadeInDown 0.6s ease;
    width: fit-content;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseBadgeDot 2s infinite;
}

@keyframes pulseBadgeDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: clamp(2rem, 3.6vw, 3.2rem) !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    color: #ffffff !important;
    letter-spacing: -0.03em !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.7s ease;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem) !important;
    color: #94a3b8 !important;
    line-height: 1.65 !important;
    max-width: 520px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-cta-group {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #0052ff 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    box-shadow: 0 10px 25px -5px rgba(0, 82, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 82, 255, 0.65) !important;
    background: linear-gradient(135deg, #1d4ed8 0%, #0052ff 100%) !important;
    color: #ffffff !important;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.hero-trust-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    max-width: 520px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.2;
}

.trust-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 3px;
}

.trust-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
}

/* ── Hero Image & Floating Badges ── */
.hero-col-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
}

.hero-image-frame {
    position: relative;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.35) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 70%);
    filter: blur(25px);
    z-index: -1;
    pointer-events: none;
    border-radius: 26px;
}

.hero-photo, .hero-image-frame img {
    width: 100% !important;
    height: auto !important;
    max-height: 380px !important;
    aspect-ratio: 16/10 !important;
    object-fit: cover !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    display: block !important;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
    animation: floatSlow 4s ease-in-out infinite alternate;
}

.floating-badge i {
    font-size: 1.35rem;
    color: #38bdf8;
}

.floating-badge strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
}

.floating-badge small {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.2;
}

.floating-badge.top-right {
    top: -14px;
    right: -14px;
}

.floating-badge.bottom-left {
    bottom: -14px;
    left: -14px;
    animation-delay: -2s;
}

@keyframes floatSlow {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

/* ── Carousel Navigation Controls ── */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 20;
}

.carousel-btn:hover {
    background: #0052ff !important;
    border-color: #3b82f6 !important;
    transform: translateY(-50%) scale(1.08) !important;
    box-shadow: 0 0 25px rgba(0, 82, 255, 0.7) !important;
    color: #ffffff !important;
}

.carousel-btn.prev {
    left: 24px;
}

.carousel-btn.next {
    right: 24px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
}

.carousel-indicators .indicator-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.carousel-indicators .indicator-btn.active {
    width: 36px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #0052ff, #38bdf8) !important;
    box-shadow: 0 0 14px rgba(0, 82, 255, 0.8) !important;
}

/* ── Feature Cards & Center Cards ── */
.feature-item, .center-card {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Why Choose Us Numbers → Dynamic Gradient */
.feature-number {
    font-family: 'Calistoga', Georgia, serif !important;
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    font-size: 3.25rem !important;
    font-weight: 700 !important;
    line-height: 1;
    margin-bottom: 12px;
    display: block !important;
}

/* Section Headings Styling */
.section-title h2 {
    font-family: 'Calistoga', Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--mm-fg, #0f172a);
    margin-bottom: 12px;
}

/* Career planning checklist */
.career-text .mm-checklist li {
    border-bottom: 1px solid var(--mm-border, #e2e8f0);
    font-size: 0.9375rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Home Gallery Preview Section ── */
.index-gallery-section {
    background: var(--mm-muted, #f8fafc);
    padding: 84px clamp(20px, 4vw, 40px);
    position: relative;
}

.index-gallery-header {
    text-align: center;
    margin-bottom: 44px;
}

.index-gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 82, 255, 0.25);
    background: rgba(0, 82, 255, 0.08);
    padding: 6px 18px;
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mm-accent, #0052ff);
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.1);
}

.index-gallery-title {
    font-family: 'Calistoga', Georgia, serif;
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 400;
    color: var(--mm-fg, #0f172a);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.index-gallery-sub {
    color: var(--mm-muted-fg, #64748b);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.index-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.index-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 220px;
    background: var(--mm-border, #e2e8f0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.index-gallery-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0, 82, 255, 0.22);
}

.index-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

.index-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.index-gallery-item:hover .index-gallery-overlay {
    opacity: 1;
}

.index-gallery-overlay__title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.35;
}

.index-gallery-overlay__cat {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(135deg, #0052ff, #4d7cff);
    color: #ffffff;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.index-gallery-cta {
    text-align: center;
    margin-top: 8px;
}

/* ── Enrollment Box Glow Effect ── */
.enrollment-form-box {
    transition: box-shadow 0.4s ease, transform 0.3s ease;
    border-radius: 20px;
}

/* ============ COMPACT CENTERS CAROUSEL SECTION ============ */
.centers-section {
    padding: 50px clamp(20px, 4vw, 40px);
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.mm-centers-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.mm-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.mm-centers-title-box h2 {
    font-family: 'Calistoga', Georgia, serif;
    font-size: 26px;
    color: #0f172a;
    margin-bottom: 4px;
}

.mm-centers-title-box p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.mm-centers-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #2563eb;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.mm-centers-view-all-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.mm-centers-carousel-wrapper {
    position: relative;
    padding: 4px 0;
}

.mm-centers-scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 4px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mm-centers-scroll-container::-webkit-scrollbar {
    display: none;
}

.mm-compact-center-card {
    flex: 0 0 280px;
    width: 280px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    position: relative;
}

.mm-compact-center-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
    border-color: #bfdbfe;
}

.mm-center-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mm-center-badge {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 4px;
}

.mm-center-badge.premium {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.mm-center-badge.tally {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.mm-center-badge.coding {
    background: rgba(147, 51, 234, 0.1);
    color: #7e22ce;
}

.mm-center-badge.english {
    background: rgba(234, 88, 12, 0.1);
    color: #c2410c;
}

.mm-center-badge.youth {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
}

.mm-center-badge.job {
    background: rgba(236, 72, 153, 0.1);
    color: #db2777;
}

.mm-center-link {
    color: #94a3b8;
    font-size: 12px;
    transition: color 0.2s;
}

.mm-center-link:hover {
    color: #2563eb;
}

.mm-center-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.35;
}

.mm-center-detail {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.mm-center-detail i {
    color: #2563eb;
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.mm-center-detail a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
}

.mm-center-detail a:hover {
    color: #2563eb;
}

.mm-center-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 10px 0 14px;
}

.mm-center-tag {
    font-size: 10.5px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 500;
}

.mm-center-inquire-btn {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.mm-center-inquire-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
