/* Hero Banner Redesign - Rising Tide Style */
.hero-banner {
    background: var(--white);
    padding: 20px 0 30px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    animation: heroFade 24s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes heroFade {
    0%, 25% {
        background-image: url('../images/banner/hero_bg_1.png');
    }
    33%, 58% {
        background-image: url('../images/banner/hero_bg_2.png');
    }
    66%, 91% {
        background-image: url('../images/banner/hero_bg_3.png');
    }
    100% {
        background-image: url('../images/banner/hero_bg_1.png');
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7); /* Deep dark overlay for high contrast */
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 2;
    grid-template-areas:
        "top visual"
        "bottom visual";
}

.hero-content-top {
    grid-area: top;
    text-align: left;
    max-width: 500px;
}

.hero-content-bottom {
    grid-area: bottom;
    text-align: left;
    max-width: 500px;
}

.hero-visual-center {
    grid-area: visual;
}


/* Rating Badge */
/* Google Reviews Badge */
.google-review-badge {
    display: inline-flex;
    text-decoration: none;
    background: #5c6f7a;
    /* Dark background similar to image */
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #5c6f7a;
    margin-bottom: 30px;
    margin-top: 30px;
    /* Added spacing from stats */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.google-review-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.google-badge-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.google-badge-header {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.google-badge-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.rating-score {
    color: #ffffff;
    font-weight: bold;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #f59e0b;
    /* Golden star color */
    font-size: 12px;
}

.review-count {
    color: #ffffff;
    /* Blue link color similar to Google's */
}

/* .hero-text {
    text-align: left;
    max-width: 500px;
} */

.company-name {
    font-size: 64px;
    font-weight: 800;
    /* Restored bold weight */
    line-height: 1.1;
    margin-bottom: 25px;
    /* Removed Times New Roman */
    color: var(--text-dark);
}

.hero-banner .company-name {
    color: var(--white);
}

.highlight-text {
    font-style: normal;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
}

.hero-banner .hero-subtitle {
    color: #e5e7eb;
}

.btn-enroll {
    background: #000;
    color: #fff;
    padding: 15px 40px;
    border-radius: 5px;
    /* Boxy look */
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-enroll:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* New Stats Row */
.hero-stats-new {
    display: flex;
    gap: 60px;
    margin-top: 40px;
    /* Reduced margin */
}

.stat-item-new h3 {
    font-size: 42px;
    /* significantly bigger */
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--white);
    display: inline-block;
}

.stat-item-new p {
    color: var(--white);
    font-size: 16px;
}

/* Visual Center - The Graphic Part */
.hero-visual-center {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 700px;
}

/* The Big Gradient Circle */
.gradient-circle {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,156,221,0.6) 0%, rgba(18,133,241,0.2) 100%);
    box-shadow: 0 0 80px 40px rgba(18,133,241,0.3);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* The White Box Feature */
.white-box-feature {
    position: relative;
    width: 380px;
    background: #fff;
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.spacer {
    flex: 1;
}

.feature-header i {
    font-size: 16px;
    color: #000000;
}

.feature-content h2 {
    /* Removed Times New Roman */
    font-weight: 700;
    /* Added bold to match original style better */
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #111;
}

.feature-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.feature-image-container {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 15px;
}

.feature-image-container img {
    width: 100%;
    display: block;
}

.feature-card-bottom {
    display: flex;
    gap: 15px;
}

.inner-card {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.orange-card {
    background: oklch(52.577% 0.20247 264.82);
    /* Reddish orange */
    color: #fff;
    flex: 2;
}

.dark-card {
    background: #0a97f5;
    color: #fff;
    flex: 1;
    align-items: center;
    text-align: center;
}

.card-label {
    font-size: 14px;
    opacity: 0.9;
}

.card-value {
    font-size: 20px;
    font-weight: 700;
    margin: 5px 0;
}

.card-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    width: 100%;
}

.card-progress .fill {
    height: 100%;
    background: #fff;
    border-radius: 2px;
}

/* Floating Cards */
.float-card {
    position: absolute;
    background: #000;
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    width: 140px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.float-card i {
    font-size: 18px;
    margin-bottom: 5px;
}

.float-card span {
    font-size: 12px;
    font-weight: 600;
}

.float-card small {
    font-size: 10px;
    color: #ffffff;
}

.card-left {
    top: 30%;
    left: 0px;
    background: linear-gradient(135deg, #1a77f1 0%, #15a1f3 100%);
}

.card-right {
    top: 30%;
    right: 0px;
    background: linear-gradient(135deg, #1a77f1 0%, #15a1f3 100%);
}

.side-decoration {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 12px;
}

.side-decoration .line {
    width: 1px;
    height: 50px;
    background: #333;
}

@media (max-width: 992px) {
    .container {
        overflow-x: hidden;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        /* Reduced from 60px */
        text-align: center;
        grid-template-areas:
            "top"
            "visual"
            "bottom";
    }

    .hero-content-top,
    .hero-content-bottom {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }

    .enroll-button-wrapper {
        justify-content: center !important;
    }

    .hero-stats-new {
        justify-content: center;
        flex-wrap: wrap;
        /* Ensure they don't overflow */
        margin-top: 20px;
        /* Reduced margin */
        gap: 30px;
        /* Adjust gap between stats */
    }

    /* Ensure badge is centered on mobile */
    .google-review-badge {
        margin-left: auto;
        margin-right: auto;
        margin-top: 15px;
        /* Reduced from 30px */
    }

    .rating-badge {
        margin: 0 auto 30px;
    }

    .hero-visual-center {
        height: auto;
        padding: 50px 0;
    }

    .gradient-circle {
        width: 350px;
        height: 350px;
    }

    .white-box-feature {
        width: 300px;
    }

    .card-left {
        left: -10px;
        top: 10%;
    }

    .card-right {
        right: -10px;
        top: 10%;
    }
}

/* ============================================
   ACHIEVEMENT BADGES SECTION
   ============================================ */
.achievement-badges-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.achievement-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px 35px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 180px;
}

.achievement-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

.badge-number {
    font-size: 48px;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.achievement-badge p {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    text-align: center;
    color: var(--white);
}

.enroll-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.btn-enroll {
    background: var(--white);
    color: #0991eb;
    padding: 14px 40px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    display: inline-block;
}

.btn-enroll:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Services Section */
.services-section {
    padding: 40px 0;
    background-color: var(--white);
    overflow: hidden;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-top: -30px;
    margin-bottom: 50px;
    line-height: 1.5;
}

.services-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.carousel-arrow:hover {
    background: var(--dark-blue);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.carousel-arrow-left {
    left: 10px;
}

.carousel-arrow-right {
    right: 10px;
}

.services-track {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.service-card-large {
    flex: 0 0 calc(50% - 20px);
    min-width: 500px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.4s ease;
    scroll-snap-align: start;
    position: relative;
}

.service-card-large:not(.active) {
    filter: blur(4px);
    opacity: 0.5;
    transform: scale(0.95);
}

.service-card-large.active {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.service-icon-large i {
    font-size: 50px;
    color: var(--white);
}

.service-card-large h3 {
    font-size: 32px;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service-item {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.service-item:hover {
    background: var(--light-blue);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

.service-item i {
    color: var(--secondary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.service-item span {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Popular Courses Section */
.popular-courses {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.courses-slider {
    position: relative;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.course-icon i {
    font-size: 36px;
    color: var(--white);
}

.course-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.course-card p {
    color: var(--text-light);
    font-size: 14px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

.slider-btn.prev {
    left: -20px;
}

.slider-btn.next {
    right: -20px;
}

/* Offers Section */
.offers-section {
    padding: 80px 0;
    background: var(--white);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.offer-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.offer-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.offer-content {
    padding: 25px;
}

.offer-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.offer-content p {
    color: var(--text-light);
}

/* Explore Courses Section */
.explore-courses {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.course-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.category-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-header h3 {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-header p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.course-list {
    list-style: none;
    margin-bottom: 30px;
}

.course-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-dark);
}

.course-list li:before {
    content: '✓ ';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

.btn-explore {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s ease;
    background: #000;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.8;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item .overlay i {
    font-size: 32px;
    color: var(--white);
    background: rgba(37, 99, 235, 0.8);
    padding: 15px;
    border-radius: 50%;
}

.video-item {
    border: 2px solid var(--light-blue);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-size: 18px;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 95%;
    }
}
