@import url('styles.css');

/* ============
 * Hero Section
 * ============
 */

.hero {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 112px 80px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 32px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-weight: var(--text-weight-bold);
    font-size: var(--text-size-xl);
    line-height: 120%;
}

.hero-description {
    line-height: 150%;
}

.hero-cta {
    font-weight: var(--text-weight-regular);
    font-size: var(--text-size-xs);
    line-height: 150%;
    height: 56px;
    width: 313px;
}

.hero-media {
    flex: 1;
    position: relative;
}

.hero-video {
    width: calc((100vw - 160px - 80px) / 2);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-xl);
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.hero .video-hero__fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: calc((100vw - 160px - 80px) / 2);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-xl); 
    z-index: -1;                                 
}

.video-hero__play {
    position: absolute;
    top: calc((((100vw - 160px - 80px) / 2) - 64px) / 2);
    left: calc((((100vw - 160px - 80px) / 2) - 64px) / 2);
    border: none;
    background-color: transparent;  
}

/* ============
 * Feature Stats Section
 * ============
 */
.feature-stats {
    display: flex;
    gap: 80px;
    align-items: center;
    padding: 112px 80px;
}

.feature-stats-content {
    flex: .4;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-stats-title {
    font-weight: var(--text-weight-bold);
    font-size: var(--text-size-lg);
    line-height: 120%;
}

.feature-stats-description {
    line-height: 180%;
}

.feature-stats-grid {
    flex: .8;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 32px; 
    width: 100%;
}

.feature-stat-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-radius: var(--radius-xl);
    background-color: var(--background-color-secondary);
    border: 1px solid var(--border-color-secondary);
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.25);
    padding: 32px;
}

.feature-stat-value {
    font-weight: var(--text-weight-bold);
    font-size: var(--text-size-lg);
    line-height: 130%;
}

.feature-stat-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-stat-label {
    font-weight: var(--text-weight-bold);
    font-size: var(--text-size-sm);
    line-height: 140%;
}

.feature-stat-description {
    line-height: 150%;
}

/* ============
 * Split Card Section
 * ============
 */

.split-card-section {
    background-color: var(--background-color-quaternary);
    padding: 230px 80px;
 }

.split-card {
    display: flex;
    align-items: center;
    border-radius: var(--radius-xl);
    background-color: var(--background-color-white);
}

.split-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 32px;
    padding: 48px;
}

.split-card-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.split-card-section .split-card-title {
    line-height: 120%;
}

.split-card-description {
    line-height: 180%;
}

.split-card-cta {
    height: 56px;
    width: 124px;
}

.split-card-media {
    flex: 1;
    display: flex;
}

.split-card-image {
    width: 100%;
    border-top-right-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}


[dir="rtl"] .split-card-image {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: var(--radius-xl);
    border-bottom-left-radius: var(--radius-xl);
}

/* Mobile */
@media (max-width: 600px) {
  /* Mobile CSS */
    .hero  {
        flex-direction: column-reverse;
        padding: var(--padding-xs);
    }

    .hero-video {
        width: calc(100vw - 40px);
    }

    .hero .video-hero__fallback {
        width: calc(100vw - 40px);
    }

    .video-hero__play {
        top: calc(((100vw - 40px) - 64px) / 2);
        left: calc(((100vw - 40px) - 64px) / 2);
    }

    .hero-cta {
        width: 100%;
    }

    .hero-text {
        text-align: center;
    }

    .feature-stats {
        flex-direction: column;
        text-align: center;
        padding: 64px var(--padding-xs);
    }

    .feature-stats-grid {
        grid-template-columns: repeat(1, 1fr); 
    }

    .split-card-section {
        padding: 64px var(--padding-xs);
    }

    .split-card {
        flex-direction: column-reverse;
    }

    .split-card .split-card-image {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        border-top-left-radius: var(--radius-xl);
        border-top-right-radius: var(--radius-xl);
    }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
  /* Tablet CSS */
    .hero  {
        flex-direction: column-reverse;
    }

    .hero-video {
        width: calc(100vw - 160px);
    }

    .hero .video-hero__fallback {
        width: calc(100vw - 160px);
    }

    .video-hero__play {
        top: calc(((100vw - 160px) - 64px) / 2);
        left: calc(((100vw - 160px) - 64px) / 2);
    }

    .hero-text {
        text-align: center;
    }

    .hero-cta {
        width: 100%;
    }

    .feature-stats {
        flex-direction: column;
        text-align: center;
    }

    .feature-stats-grid {
        grid-template-columns: repeat(1, 1fr); 
    }

    .split-card {
        flex-direction: column-reverse;
    }

    .split-card .split-card-image {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        border-top-left-radius: var(--radius-xl);
        border-top-right-radius: var(--radius-xl);
    }
}

/* Desktop */
@media (min-width: 1025px) {
  /* Desktop CSS */
}


/* ============
 * Hero — background image + overlay
 * ============ */

.hero {
    position: relative;
    /*
    background-image:
        linear-gradient(135deg, rgba(51, 59, 69, 0.92) 0%, rgba(51, 59, 69, 0.65) 50%, rgba(51, 59, 69, 0.95) 100%),
        url('./../../assets/images/home_card.jpg');
    */
    background-color: rgba(227, 238, 255, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#coursesSection .collection {
    background-color: var(--background-color-secondary);
}

#expertsSection .collection {
    background-color: var(--background-color-secondary);
}
