/* DFG Podcast Lists Styles */
.dfg-podcast-lists {
    margin: 40px 0;
}

.dfg-podcast-item {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #0000004D
}

.dfg-podcast-item:last-child,
.dfg-podcast-lists:has(.dfg-podcast-load-more-wrapper) .dfg-podcast-item:nth-last-child(2) {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

.dfg-podcast-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

/* Video Section (Left) */
.dfg-podcast-video {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
}

.dfg-podcast-youtube-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.dfg-podcast-youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.dfg-podcast-video-placeholder,
.dfg-podcast-video-error {
    padding: 40px;
    text-align: center;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
}

/* Content Section (Right) */
.dfg-podcast-content {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
}

.dfg-podcast-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #000;
    line-height: 1.1;
}

.dfg-podcast-description {
    margin-bottom: 50px;
    color: #000;
    font-size: 18px;
    line-height: 1.4;
}

.dfg-podcast-description p {
    margin-bottom: 15px;
}

.dfg-podcast-description p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.dfg-podcast-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dfg-podcast-buttons .dfg-podcast-button,
.dfg-podcast-buttons button.dfg-podcast-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px !important;
    border: none;
    border-radius: 0;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    height: 55px !important;
    text-decoration: none !important;
    border: 1px solid #456D6A !important;
}

.dfg-podcast-button-top {
    background-color: #456D6A;
    color: #fff;
}

.dfg-podcast-button-top:hover {
    background-color: #236666;
    color: #fff;
}

button.dfg-podcast-button-transcript {
    background-color: transparent !important;
    color: #456D6A !important;
}

button.dfg-podcast-button-transcript:hover {
    background-color: #456D6A !important;
    color: #fff !important;
}

.dfg-podcast-transcript-icon {
    margin-right: 10px;
}

.dfg-podcast-transcript-icon svg{
    display: block;
}

.dfg-podcast-transcript-icon svg path{
    transition: all 0.3s ease;
}

button.dfg-podcast-button-transcript:hover svg path {
    fill: #fff;
}

/* No Posts Message */
.dfg-podcast-no-posts {
    padding: 40px;
    text-align: center;
    color: #666;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Transcript Popup */
.dfg-podcast-transcript-popup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.dfg-podcast-transcript-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dfg-podcast-transcript-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dfg-podcast-transcript-popup.active .dfg-podcast-transcript-popup-overlay {
    opacity: 1;
}

.dfg-podcast-transcript-popup-content {
    position: relative;
    background: #fff;
    padding: 80px 100px;
    max-width: 1200px;
    max-height: 80vh;
    width: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dfg-podcast-transcript-popup.active .dfg-podcast-transcript-popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

button.dfg-podcast-transcript-close {
    position: absolute;
    top: 80px;
    right: 100px;
    width: 22px;
    height: 22px;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    line-height: 1;
    color: #000000CC !important;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    padding: 0 !important;
}

.dfg-podcast-transcript-close span {
    display: block;
    line-height: 1;
}

.dfg-podcast-transcript-heading {
    margin: 0 0 35px;
    font-size: 30px;
    font-weight: 600;
    color: #000;
}

.dfg-podcast-transcript-body {
    overflow-y: auto;
    flex: 1;
    color: #000000;
    line-height: 1.5;
    /* Custom scrollbar styling */
    scrollbar-color: #456D6A transparent;
    scrollbar-width: thin;
}

/* Webkit scrollbar styling (Chrome, Safari, Edge) */
.dfg-podcast-transcript-body::-webkit-scrollbar {
    width: 8px;
}

.dfg-podcast-transcript-body::-webkit-scrollbar-track {
    background: transparent;
}

.dfg-podcast-transcript-body::-webkit-scrollbar-thumb {
    background-color: #456D6A;
    border-radius: 4px;
}

.dfg-podcast-transcript-body::-webkit-scrollbar-thumb:hover {
    background-color: #3a5a58;
}

.dfg-podcast-transcript-body p {
    margin-bottom: 15px;
}

.dfg-podcast-transcript-body p:last-child {
    margin-bottom: 0;
}

/* Load More Button */
.dfg-podcast-load-more-wrapper {
    margin-top: 60px;
    text-align: left;
}

.dfg-podcast-load-more-wrapper button.dfg-podcast-load-more-button {
    display: inline-block;
    padding: 10px 25px !important;
    height: 51px;
    background-color: transparent !important;
    color: #456D6A !important;
    border: 1px solid #456D6A !important;
    border-radius: 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dfg-podcast-load-more-wrapper button.dfg-podcast-load-more-button:hover:not(:disabled) {
    background-color: #456D6A !important;
    color: #fff !important;
}

.dfg-podcast-load-more-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media screen and (max-width: 767px) {
    .dfg-podcast-wrapper{
        gap: 30px;
    }

    .dfg-podcast-item{
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .dfg-podcast-description{
        margin-bottom: 30px;
    }

    .dfg-podcast-buttons{
        gap: 15px;
    }

    .dfg-podcast-load-more-wrapper{
        margin-bottom: 45px;
    }
}