/* Life @ YMBC — Videos & Shorts */
/* Site colors: #24353b, #c43a47, #5a5a5a, #646567, #eee, #e5e5e5, #404d8f */

.videos-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(36, 53, 59, 0.94) 0%, rgba(64, 77, 143, 0.88) 100%),
                url(../images/banners/INDEX-BANNER-02.jpg) no-repeat center center / cover;
}
.videos-hero .container { position: relative; z-index: 2; }
.videos-hero .hero-eyebrow {
    font-size: 12px;
    color: #c43a47;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}
.videos-hero h1 {
    font-size: clamp(32px, 4vw, 46px);
    color: #fff;
    text-transform: none;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}
.videos-hero .hero-tagline {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    font-style: italic;
    margin: 0;
}

.videos-intro {
    padding-top: 50px !important;
    padding-bottom: 40px !important;
    margin-top: -35px;
}
.videos-welcome-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    padding: 40px 45px;
    border-left: 5px solid #c43a47;
}
.videos-welcome-card p {
    font-size: 15px;
    line-height: 1.9;
    color: #5a5a5a;
    margin-bottom: 16px;
    text-align: justify;
}
.videos-welcome-card p:last-child { margin-bottom: 0; }
.videos-welcome-card strong { color: #c43a47; font-weight: 600; }

.videos-section {
    background: #f7f8f9;
    padding: 55px 0 65px;
}

/* Toggle switch — Videos / Shorts */
.videos-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 42px;
}
.videos-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    min-width: 280px;
}
.videos-toggle-btn {
    position: relative;
    z-index: 2;
    appearance: none;
    border: 0;
    background: transparent;
    color: #646567;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 28px;
    cursor: pointer;
    border-radius: 50px;
    transition: color 0.25s ease;
    outline: none;
}
.videos-toggle-btn.is-active {
    color: #fff;
}
.videos-toggle-btn:focus-visible {
    box-shadow: 0 0 0 2px #c43a47;
}
.videos-toggle-slider {
    position: absolute;
    z-index: 1;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: #c43a47;
    border-radius: 50px;
    transition: transform 0.3s ease;
    pointer-events: none;
}
.videos-toggle.is-shorts .videos-toggle-slider {
    transform: translateX(100%);
}

.videos-panel[hidden] {
    display: none !important;
}
.videos-panel.is-active {
    display: block;
    animation: videosFadeIn 0.35s ease;
}
@keyframes videosFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.videos-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}
.videos-section .section-title .sec-label {
    display: block;
    font-size: 12px;
    color: #c43a47;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}
.videos-section .section-title h2 {
    font-size: 28px;
    color: #24353b;
    margin-bottom: 8px;
    text-transform: none;
}
.videos-section .section-title p {
    font-size: 15px;
    color: #646567;
    margin: 0;
}

.videos-empty {
    text-align: center;
    color: #646567;
    font-size: 15px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #e5e5e5;
}

/* Videos grid — 16:9 */
.videos-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}
.video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #24353b;
}
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-title {
    font-size: 16px;
    color: #24353b;
    font-weight: 600;
    margin: 0;
    padding: 18px 20px;
    line-height: 1.4;
}

/* Shorts grid — 9:16 */
.shorts-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.short-card {
    background: #f7f8f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.short-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}
.short-frame {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%;
    background: #24353b;
}
.short-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.short-title {
    font-size: 14px;
    color: #24353b;
    font-weight: 600;
    margin: 0;
    padding: 14px 16px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 991px) {
    .shorts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .videos-welcome-card {
        padding: 28px 24px;
    }
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .shorts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 479px) {
    .shorts-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* CTA */
.academics-cta {
    background: linear-gradient(135deg, #24353b 0%, #1a2830 100%);
    padding: 70px 0;
}
.academics-cta h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
    text-transform: none;
}
.academics-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 35px;
}
.academics-cta .btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background: #c43a47;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.academics-cta .btn-primary:hover {
    background: #fff;
    color: #24353b !important;
}
@media (max-width: 767px) {
    .academics-cta h2 { font-size: 26px; }
}
