/* ====================================================
   HOMEPAGE STYLES — Centralized CSS
   All homepage component styles in one file
   ==================================================== */

/* ===== HERO CAROUSEL ===== */
#heroCarousel {
    margin-top: -80px;
}

.hero-slide {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-hero-green {
    background: #22c55e;
    color: #fff;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.btn-hero-green:hover {
    transform: translateY(-3px);
    color: #fff;
    filter: brightness(1.1);
}

.btn-hero-white {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.btn-hero-white:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

/* Carousel indicator styling */
#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    border: 2px solid #fff;
    background: transparent;
    opacity: 0.5;
}

#heroCarousel .carousel-indicators button.active {
    background: #22c55e;
    border-color: #22c55e;
    opacity: 1;
}

/* Slide transition animation */
.carousel-item {
    transition: opacity 0.8s ease-in-out !important;
}

/* ===== STATS STRIP ===== */
@media(min-width:1024px) {
    .hero-flex-wrap {
        flex-wrap: nowrap !important;
    }
}

@media(min-width:768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media(max-width:767px) {
    .stats-grid>div {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 16px;
    }

    .stats-grid>div:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ===== COMPANIES / PARTNERS ===== */
.colorful-track {
    display: flex;
    align-items: center;
    width: max-content;
}

.colorful-track img {
    filter: none !important;
    opacity: 1 !important;
    height: 60px;
    object-fit: contain;
    margin: 0 40px;
}

@keyframes scrollTrack {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== COURSES GRID ===== */
@media(min-width:768px) {
    .courses-home-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media(min-width:1024px) {
    .courses-home-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ===== ANNOUNCEMENTS ===== */
@media(min-width:768px) {
    .announce-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ===== REVIEWS / TESTIMONIALS ===== */
.reviews-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.review-col {
    flex: 1 1 calc(33.333% - 16px);
    display: flex;
}

@media (max-width: 768px) {
    .reviews-wrapper {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 24px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
    }

    .reviews-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .reviews-wrapper::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .reviews-wrapper::-webkit-scrollbar-thumb {
        background: rgba(15, 98, 254, 0.3);
        border-radius: 10px;
    }

    .review-col {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 769px) {
    .review-card {
        padding: 40px;
    }

    .review-card:hover,
    .active-review {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(15, 98, 254, 0.1);
        border-color: rgba(15, 98, 254, 0.2);
        z-index: 2;
    }
}

.review-quote {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: rgba(15, 98, 254, 0.08);
    line-height: 1;
}

.review-rating {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.review-text {
    font-size: 1.05rem;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.review-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--midnight);
    margin: 0 0 4px;
}

.review-author span {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    font-size: .9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '\203A';
    margin-right: 8px;
    color: var(--primary);
    font-weight: bold;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .5);
    font-size: .9rem;
    line-height: 1.5;
}

.footer-contact-item i {
    font-size: 1rem;
    margin-top: 3px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .5);
    font-size: 1rem;
    margin-right: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== VIDEO SECTION ===== */
@keyframes pulsePlay {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 98, 254, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(15, 98, 254, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 98, 254, 0);
    }
}

.video-play-btn:hover>div {
    background: #fff;
    color: var(--primary);
    transform: scale(1.1);
}