/**
 * RACE Concept School - Complete Custom Styles
 * File Location: race-theme/assets/css/custom.css
 */

/* ========== ROOT VARIABLES ========== */


/* ========== GLOBAL STYLES ========== */
body {
    background-color: #f8fafc;
}



/* ========== HEADER STYLES ========== */
.race-header {
    position: relative;
    z-index: 1050;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.marquee-container {
    background: var(--maroon);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
}

.navbar-toggler:focus { 
    box-shadow: none; 
}



@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        margin-top: 10px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        max-height: 70vh;
        overflow-y: auto;
    }
  
    .navbar-nav .nav-link:hover {
        background: var(--race-bg-soft);
        color: var(--maroon) !important;
    }
}

/* ========== STICKY SIDE TABS ========== */
.sticky-right-tabs {
    position: fixed;
    right: 0;
    top: 35%;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sticky-tab {
    writing-mode: vertical-rl;
    padding: 25px 12px;
    color: white;
    font-weight: bold;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
}

.sticky-tab:hover {
    padding-right: 20px;
    color: white;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.glass-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ========== SECTION TITLES ========== */

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background-color: var(--maroon);
}

.section-subtitle::before { left: 0; }
.section-subtitle::after { right: 0; }




/* ========== FUN FACTS / COUNTER ========== */
.quanto-funfacts-section { 
    padding: 80px 0; 
    background-color: #fff; 
}

.quanto-funfact-box {
    border-left: 3px solid var(--maroon);
    padding-left: 28px;
    transition: all 0.3s ease;
}

.quanto-funfact-box:hover { 
    transform: translateX(10px); 
}

.counter-item {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    font-weight: 800;
    font-size: 70px;
    letter-spacing: -2.5px;
    line-height: 1;
}

.counter-item em {
    color: var(--maroon);
    font-size: 0.6em;
    font-style: normal;
    margin-left: 5px;
}

.funfact-info {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== STACKING CARDS ========== */
.stack-section-bg {
    position: relative;
    background: linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.94)), 
                url('https://images.unsplash.com/photo-1523050853064-dbad350c746b?auto=format&fit=crop&q=80&w=2000');
    background-attachment: fixed;
    background-size: cover;
}

.stack-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-bottom: 150px;
}

.stack-card {
    position: sticky;
    height: 450px;
    width: 100%;
    background: linear-gradient(135deg, #801650 0%, #a32a6d 100%);
    border-radius: 40px;
    color: white;
    display: flex;
    overflow: hidden;
    box-shadow: 0 -15px 40px rgba(0,0,0,0.2);
}

.stack-card:nth-child(1) { top: 120px; }
.stack-card:nth-child(2) { top: 160px; }
.stack-card:nth-child(3) { top: 200px; }
.stack-card:nth-child(4) { top: 240px; }

.stack-card-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stack-card-image {
    flex: 1.4;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.stack-card:hover .stack-card-image { 
    transform: scale(1.05); 
}

.stack-card h3 { 
    font-size: 2.5rem; 
    color: var(--gold); 
}

.stack-read-more {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gold);
    color: var(--maroon);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    width: fit-content;
    transition: 0.3s ease;
}

.stack-read-more:hover {
    background: white;
    color: var(--maroon);
    transform: translateY(-3px);
}

/* ========== ADMISSION SECTION ========== */
.admission-hero-box {
    display: flex;
    background: #fff;
    border-radius: 40px;
    gap: 60px;
    align-items: center;
}

.admission-hero-text h2 {
    font-size: 3.5rem;
    color: #1e3a8a;
    font-weight: 700;
}

.admission-hero-text h2 span { 
    color: #3b82f6; 
}



.step-card-wide {
    background: var(--navy);
    color: #fff;
    padding: 45px 30px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,113,186,0.25);
    transition: all 0.4s ease;
    position: relative;
}

.step-card-wide:hover {
    transform: translateY(-15px);
    background: #005a96;
}

.step-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #fff;
    color: #0071ba;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

/* ========== TESTIMONIALS ========== */
.testimonial-section { 
    padding: 80px 20px; 
    background: #fff; 
}

.section-label {
    color: var(--maroon);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-label .dots span {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    display: inline-block;
    margin-left: 4px;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.rating-box {
    background: var(--race-bg-soft);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
}

.rating-number {
    font-size: 90px;
    font-weight: 700;
    color: var(--maroon);
    line-height: 1;
}

.rating-avatars img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-left: -12px;
    object-fit: cover;
}

.rating-avatars img:first-child { 
    margin-left: 0; 
}

.carousel-box {
    background: #f5f5f5;
    border-radius: 25px;
    padding: 40px;
}

.testimonial-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    position: relative;
}

.testimonial-stars {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.testimonial-stars i { 
    color: var(--gold); 
}

.testimonial-quote {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    font-style: italic;
}

.author-image {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
}

.author-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--maroon);
    margin: 0;
}

.author-info span { 
    font-size: 13px; 
    color: #888; 
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--maroon);
    transform: scale(1.1);
}

.admission-section .enroll-now-btn {
    background: var(--navy);
    padding: 14px 40px;
    border-radius: 12px;
}

.admission-section .enroll-now-btn:hover {
    background: var(--maroon);
}

.admission-btn:hover {
    background: var(--navy);
    color: #fff;
}

/* ========== NEWS SECTION ========== */
.news-block_one-image {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    height: 250px;
}

.news-block_one-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 500ms ease;
}

.news-block_one-image img:first-child {
    position: absolute;
    opacity: 0;
    transform: translateX(50%) scale(2);
    filter: blur(10px);
    z-index: 1;
}

.news-block_one-inner:hover .news-block_one-image img:first-child {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.news-block_one-inner:hover .news-block_one-image img:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(2);
    filter: blur(10px);
}

.news-block_one-date {
    background: linear-gradient(90deg, var(--maroon) 0%, #a32a6d 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    position: absolute;
    top: -20px;
    left: 30px;
    z-index: 10;
    border: 4px solid white;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--maroon) 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-nav a { 
    color: var(--gold); 
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

/* ========== FOOTER ========== */
.race-footer {
    background: var(--navy);
}

.race-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
}

.race-footer a:hover { 
    color: var(--gold); 
}

.footer-links li { 
    margin-bottom: 8px; 
}

.footer-logo img {
    max-height: 64px;
    filter: brightness(0) invert(1);
}


.whatsapp-float:hover {
    transform: scale(1.05);
    color: #fff;
}

.whatsapp-float i { 
    font-size: 24px; 
}

/* ========== SWIPER CUSTOMIZATION ========== */
.swiper-button-next,
.swiper-button-prev {
    color: var(--maroon) !important;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--maroon) !important;
}

/* ========== FORMS ========== */
.form-control:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(128, 22, 80, 0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .stack-card {
        height: auto;
        min-height: 500px;
        flex-direction: column;
    }
    .stack-card-image { 
        height: 300px; 
        order: -1; 
    }
    .admission-hero-box { 
        flex-direction: column; 
        text-align: center; 
    }
    .testimonial-stars { 
        position: static; 
        margin-bottom: 15px; 
    }
    .page-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .quanto-funfact-box {
        border-left: none;
        text-align: center;
        padding-left: 0;
        border-bottom: 3px solid var(--maroon);
        padding-bottom: 30px;
    }
    .quanto-funfact-box:hover { 
        transform: translateY(-5px); 
    }
    .counter-item { 
        justify-content: center; 
        font-size: 50px; 
    }
    .section-main-title { 
        font-size: 30px; 
    }
    .rating-number { 
        font-size: 70px; 
    }
    .admission-hero-text h2 { 
        font-size: 2rem; 
    }
    .section-subtitle { 
        padding: 0 30px; 
    }
    .section-subtitle::before,
    .section-subtitle::after { 
        width: 20px; 
    }
    .page-header h1 { 
        font-size: 28px; 
    }
    .page-header {
        padding: 50px 0;
    }
    .sticky-right-tabs {
        display: none;
    }
}