/* ======================== HOME PAGE STYLES ======================== */
/* External CSS — no inline styles */

/* --- Fix horizontal overflow on landing pages --- */
.landing-body .landing-page-wrapper {
    overflow-x: hidden;
}

/* --- Hero Dark Background --- */
.landing-banner.hero-dark {
    background-color: #0f172a;
    background-image: none;
    overflow-x: hidden;
}
.landing-banner.hero-dark .landing-banner-heading {
    color: #fff;
    text-shadow: none;
}
.landing-banner.hero-dark .heading-subtitle {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: rgba(255,255,255,0.9);
}
.landing-banner.hero-dark .heading-subtitle::before,
.landing-banner.hero-dark .heading-subtitle::after {
    background-color: rgba(255,255,255,0.5);
}
.landing-banner.hero-dark .text-muted {
    color: rgba(255,255,255,0.65) !important;
}
.landing-banner.hero-dark .fw-semibold.text-default {
    color: #fff !important;
}
.landing-banner.hero-dark .fs-12.text-muted {
    color: rgba(255,255,255,0.5) !important;
}
.landing-banner.hero-dark .btn-outline-primary {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}
.landing-banner.hero-dark .btn-outline-primary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.landing-banner.hero-dark .banner-image-container {
    opacity: 0.04;
}

/* Hero video container */
.hero-video-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    background: #1e293b;
    aspect-ratio: 16/9;
}
.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}
.hero-video-wrapper .video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,0.4);
    cursor: pointer;
    transition: background 0.3s;
    z-index: 2;
}
.hero-video-wrapper .video-play-overlay:hover {
    background: rgba(15,23,42,0.2);
}
.hero-video-wrapper .video-play-overlay i {
    font-size: 3.5rem;
    color: #fff;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.3s;
}
.hero-video-wrapper .video-play-overlay:hover i {
    transform: scale(1.15);
}
.hero-video-wrapper.playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Video loader text */
.hero-video-wrapper .video-loader-text {
    display: none;
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    letter-spacing: 0.05em;
}
.hero-video-wrapper.loading .video-play-overlay i {
    animation: pulse-play 1.2s ease-in-out infinite;
}
.hero-video-wrapper.loading .video-loader-text {
    display: block;
}
@keyframes pulse-play {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* Video progress bar container */
.video-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.1);
    z-index: 5;
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}
.hero-video-wrapper.loading .video-progress-bar,
.hero-video-wrapper.playing .video-progress-bar {
    opacity: 1;
}
/* Buffer (pre-load) bar — light white */
.video-progress-bar .video-buffer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255,255,255,0.25);
    transition: width 0.3s ease;
}
/* Playback progress bar — primary color */
.video-progress-bar .video-playback-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgb(var(--primary-rgb));
    transition: width 0.15s linear;
}
/* Hover: thicker bar */
.hero-video-wrapper:hover .video-progress-bar {
    height: 6px;
}

.hero-video-wrapper .video-glow {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb),0.3), transparent 50%, rgba(var(--primary-rgb),0.15));
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .hero-video-wrapper {
        margin-top: 2rem;
    }
}

/* --- Module Cards with Background Image + Dark Gradient --- */
.module-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s;
    cursor: default;
}
.module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.module-card .module-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.module-card .module-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.module-card:hover .module-card-bg img {
    transform: scale(1.08);
}
.module-card .module-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.3) 100%);
}
.module-card .module-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}
.module-card .module-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
}

/* Sub-modules list inside module card */
.module-submodules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}
.module-submodules .submodule-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s;
}
.module-submodules .submodule-tag:hover {
    background: rgba(255,255,255,0.18);
}
.module-submodules .submodule-tag i {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Module card text colors */
.module-card h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.module-card .module-card-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}
.module-card .module-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
    .module-card {
        min-height: 360px;
    }
}
@media (min-width: 992px) {
    .module-card {
        min-height: 380px;
    }
    .module-card .module-card-content {
        padding: 2rem;
    }
}
