/* Home AI Driven Section (container main-container) */
.main-container {
    padding-right: 0px;
}

.main-container .ai-driven-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.main-container .ai-driven-content h2 {
    color: #1A1A1A;
    font-family: "DM Sans";
    font-size: 48px;
    font-style: normal;
    font-weight: 300;
    padding: 0px 3px;
    margin-left: 3px;
    letter-spacing: 2px;
}

.main-container .ai-driven-content .subtitle {
    color: #1A1A1A;
    font-family: "DM Sans";
    font-size: 23px !important;
    font-style: normal;
    font-weight: 300;
    margin: 0 0 5px 0;
    line-height: 57.6px !important;
}

.main-container .ai-driven-content .subtitle strong {
    color: transparent;
    font-weight: 600;
    background: linear-gradient(131deg, #544FF8 70.42%, #2EB6AE 102.7%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-container .ai-driven-content .desc {
    color: #4D4D4D;
    font-family: "DM Sans";
    font-size: 16px !important;
    font-style: normal;
    font-weight: 400;
    margin: 0 0 42px 0;
    line-height: 24px !important;
}

/* Video buttons */
.main-container .flex-btn {
    gap: 10px;
}

.main-container .aide-play-btn {
    display: inline-flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 18px;
    border-radius: 12px;
    background: #242424;
    color: #FFF;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 160%;
    text-decoration: none;
    transition: all 0.4s ease;
}

.main-container .aide-play-btn:hover {
    background: linear-gradient(91deg, #544FF8 70.08%, #2EB6AE 100.12%);
    gap: 10px;
}

.main-container .aide-play-btn span {
    background: linear-gradient(131deg, #544FF8 58.87%, #2EB6AE 91.53%);
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
}

.main-container .aide-play-btn:hover span {
    background: #fff;
}

.main-container .aide-play-btn span .play-black,
.main-container .aide-play-btn:hover span .play-white {
    display: none;
}

.main-container .aide-play-btn:hover span .play-black {
    display: block;
}

/* Video popup */
.main-container .videopopup-section .modal .btn-close {
    background: no-repeat;
    position: absolute;
    z-index: 1;
    right: -32px;
    padding: 0px;
    border-radius: 0;
    color: #000;
    opacity: 1;
    margin: 0px;
    width: 24px;
    height: 24px;
    top: -10px;
}

.main-container .videopopup-section .modal-content {
    background: #000;
}

/* Stat cards */
.main-container .cards {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

.main-container .cards .card {
    border-radius: 12px;
    background: #F5F5F5;
    display: flex;
    width: 140px;
    height: 234px;
    padding: 21px;
    flex-direction: column;
    justify-content: center;
    transition: all 0.8s ease;
    border: none;
}

.main-container .cards .stat-number {
    color: #4D4D4D;
    font-family: "DM Sans";
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 56px;
    display: flex;
}

.main-container .cards .stat-label {
    background: rgba(0, 0, 0, 0.50);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    text-transform: uppercase;
    min-height: 45px;
}

.main-container .cards .extra {
    color: white;
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    width: 238px;
    transition: opacity 0.2s ease, max-height 0.3s ease;
}

/* Card hover / active (mobile scroll) state */
.main-container .cards .card:hover,
.main-container .cards .card.hover-effect {
    background: linear-gradient(131deg, #544FF8 70.42%, #2EB6AE 102.7%);
    color: white;
    width: 248px;
    line-height: 56px;
    transform-origin: left;
    padding: 14px 13px;
}

.main-container .cards .card:hover .stat-number,
.main-container .cards .card.hover-effect .stat-number {
    color: #FFF;
    font-family: "DM Sans";
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    align-self: stretch;
    margin: 0px 0 4px 0;
}

.main-container .cards .card:hover .stat-label,
.main-container .cards .card.hover-effect .stat-label {
    display: block;
    background: linear-gradient(91deg, #fff 23.29%, #fff 46.19%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    align-self: stretch;
    font-family: "DM Sans";
    font-size: 19px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    text-transform: uppercase;
    margin: 0 0 24px 0;
}

.main-container .cards .card:hover .line-break,
.main-container .cards .card.hover-effect .line-break {
    display: none;
}

.main-container .cards .card:hover .extra,
.main-container .cards .card.hover-effect .extra {
    opacity: 1;
    max-height: 100px;
    color: rgba(255, 255, 255, 0.90);
    font-family: "DM Sans";
    font-size: 16px !important;
    font-style: normal;
    font-weight: 400;
    align-self: stretch;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .main-container .ai-driven-content h2 {
        font-size: 38px;
    }
    .main-container .ai-driven-content .subtitle {
        font-size: 18px !important;
        line-height: 28px !important;
    }
    .main-container .ai-driven-content .desc br {
        display: none;
    }
    .main-container .ai-driven-container {
        flex-wrap: wrap;
    }
    .main-container .cards .card {
        width: 200px;
    }
}

@media (max-width: 991.98px) {
    .main-container {
        padding-right: 15px;
    }
    .main-container .ai-driven-content h2 {
        font-size: 40px !important;
        line-height: 48px !important;
    }
    .main-container .ai-driven-content .subtitle {
        font-size: 19px !important;
        line-height: 24px !important;
        margin: 20px 0;
    }
    .main-container .ai-driven-container {
        flex-direction: column;
        gap: 40px;
    }
    .main-container .cards {
        justify-content: center;
    }
    .main-container .ai-driven-content {
        text-align: center;
        align-items: center;
    }
    .main-container .flex-btn {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .main-container .ai-driven-content .desc {
        margin-top: 20px;
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
    .main-container .cards {
        justify-content: center;
        flex-wrap: wrap;
    }
    .main-container .aide-play-btn {
        padding: 10px 12px;
        gap: 10px;
        font-size: 14px;
    }
    .main-container .videopopup-section .modal-content {
        width: 92%;
    }
}

@media (max-width: 575.98px) {
    .main-container .ai-driven-container {
        flex-direction: column;
        gap: 40px;
        margin-top: 60px;
    }
    .main-container .cards .card {
        max-width: 100%;
        width: 100%;
        padding: 10px;
    }
    .main-container .cards .card:hover,
    .main-container .cards .card.hover-effect {
        width: 100%;
    }
    .main-container .flex-btn {
        flex-wrap: wrap;
    }
}

/* Click-to-play YouTube facade (thumbnail + play button) inside the video popups */
.main-container .videopopup-section .aid-yt-facade { background: #000; overflow: hidden; }
.main-container .videopopup-section .aid-yt-btn { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.main-container .videopopup-section .aid-yt-btn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.main-container .videopopup-section .aid-yt-play { position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(0, 0, 0, .65); transition: background-color .2s ease; }
.main-container .videopopup-section .aid-yt-play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -7px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.main-container .videopopup-section .aid-yt-btn:hover .aid-yt-play,
.main-container .videopopup-section .aid-yt-btn:focus-visible .aid-yt-play { background: rgba(0, 0, 0, .9); }
.main-container .videopopup-section .aid-yt-btn:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
