/* common code  */
/* .container {
    background: green;
} */

.bg-odd {
    /* background: #fff; */
    background: red;
}

.bg-even {
    /* background: #f5f5f5; */
    background: green;
}

.border-red {
    border: 5px solid red;
}

.border-green {
    border: 5px solid green;
}

.border-blue {
    border: 5px solid blue;
}

.bg-black {
    background: black;
}



/* ================= study ================= */
.study-card {
    position: relative;
    /* border-radius: 14px; */
    overflow: hidden;
    background: #000;
    border: 1px solid grey;
}

.study-img {
    width: 100%;
    height: auto;
    /* object-fit: cover; */
}

/* HOVER SLIDE */
.study-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    transform: translateY(100%);
    transition: 0.4s ease;
}

.study-card:hover .study-overlay {
    transform: translateY(0);
}

.study-overlay h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.btn-download {
    background: #ff5a00;
    color: #fff;
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 5px;
    text-decoration: none;
}

/* =================video ================= */
#videoPopupOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

#videoPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 720px;
    background: #fff;
    z-index: 9999;
    padding: 20px;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Active State */
#videoPopup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

#videoPopupOverlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================= Responsive Video ================= */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    border-radius: 10px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ================= Video Switching ================= */
.videoItem {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.videoItem.active {
    display: block;
    opacity: 1;
}

/* ================= Buttons ================= */
.popup-btn {
    position: absolute;
    top: 12px;
    border: none;
    background: #000;
    color: #fff;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}

.popup-btn:hover {
    background: #333;
}

#closeVideoPopup {
    right: 12px;
}

#prevVideo {
    left: 12px;
}

#nextVideo {
    right: 90px;
}

.info {
    margin-top: 15px;
    text-align: center;
}

.info h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* ================= Podcast section ================= */
.podcast-description {
    /* color : red; */
    padding: 10px 0px;
    font-size: 17px;
    font-weight: 400;
    line-height: 24px;
    color: #2B2A27;
}

/* Responsive YouTube Video */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Podcast content */
.podcast-title {
    font-size: 18px;
    font-weight: 400;
    color: #959595;
    line-height: 30px;

}

.podcast-date {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* ************************************************* */
/* ================= Responsive Feature  ================= */
/* ************************************************* */

/******************** Tablet ********************/
@media (max-width:992px) {

    .podcast-title {
        /* font-size: 20px; */
        font-size: 17px;
        font-weight: 400;
        /* letter-spacing: 0.4px; */
        color: #959595;
        /* opacity: 0.7; */
        line-height: 30px;
    }


}

/* End of Tablet */


/******************** Mobile ********************/
@media (max-width:768px) {

    .read-section .title ul li:first-child a {
        padding-left: 0;
        font-size: 18px;
        font-weight: 400;
    }

    .podcast-wrapper {
        gap: 20px;
    }

    .podcast-title {
        font-size: 18px;
        font-weight: 400;
        /* letter-spacing: 0.4px; */
        color: #959595;
        /* opacity: 0.7; */
        line-height: 26px;
    }

}

/* End of Mobile */

/******************** DESKTOP ********************/
@media (min-width: 769px) {

    /* Study  */
    .mobile-wrapper {
        display: none !important;
    }

    .desktop-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .desktop-grid .col-item {
        width: 18%;
    }
}

/* End of DESKTOP */


/******************** MOBILE ********************/
@media (max-width: 576px) {
    #videoPopup {
        padding: 15px;
    }

    .popup-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    #nextVideo {
        right: 75px;
    }
}

/******************** MOBILE ********************/
@media (max-width: 768px) {

    /* Study  */
    .desktop-grid {
        display: none !important;
    }

    .mobile-wrapper {
        position: relative;
    }

    .mobile-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 20px;
        scroll-behavior: smooth;
    }

    .mobile-slider::-webkit-scrollbar {
        display: none;
    }

    .mobile-card {
        flex: 0 0 80%;
        scroll-snap-align: center;
    }

    /* arrows */
    .slider-btn {
        position: absolute;
        top: 45%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        z-index: 10;
    }

    .slider-btn.left {
        left: 5px;
    }

    .slider-btn.right {
        right: 5px;
    }

    /* better mobile UX */
    .study-overlay {
        transform: translateY(40%);
    }
}