/* ==========================================================================
   blog-webinars.css
   WEBINARS PAGE (HỘI THẢO) MODERN REDESIGN
   ========================================================================== */

/* Main layout wrapper */
.l-topBody.webinars-page {
    margin-top: 80px; /* aligns with new header height */
    background-color: var(--color-bg-primary);
}

/* Layout structure overrides to ensure modern styling and clean limits */
.l-topSection {
    padding: 0 0 100px 0 !important;
    background-color: var(--color-bg-primary) !important;
}

.p-bannerTop.webinars {
    background-color: var(--color-bg-secondary) !important;
    padding: 56px 0 !important;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
}

.p-bannerTop.webinars h3 {
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    font-size: 2.2rem !important;
    color: var(--color-primary-dark) !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
}

.p-bannerTop.webinars .description {
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    color: var(--color-text-sub) !important;
    max-width: 620px;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

/* Responsive */
@media screen and (max-width: 991px) {
    .p-bannerTop.webinars h3 {
        font-size: 1.8rem !important;
        padding: 0 16px;
    }
    .p-bannerTop.webinars .description {
        font-size: 0.9rem !important;
        padding: 0 16px;
    }
}

@media screen and (max-width: 576px) {
    .p-bannerTop.webinars {
        padding: 44px 0 !important;
    }
    .p-bannerTop.webinars h3 {
        font-size: 1.5rem !important;
    }
    .p-bannerTop.webinars .description {
        font-size: 0.85rem !important;
    }
}

/* Webinars Specific Styles */
.p-resource_list.webinars {
    display: grid !important;
    grid-template-columns: 3fr 1fr !important;
    gap: 24px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 0 !important;
    width: 100% !important;
    align-items: stretch !important;
}

.p-resource-l,
.p-resource-r {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.webinars .p-resource_item {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    background-color: #ED8A32 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: var(--shadow-md) !important;
    transition: transform var(--transition-normal) !important;
}

.webinars .p-resource_item:hover,
.webinars .p-resource_item:focus-within {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.webinars .p-resource_item a:focus {
    outline: none !important;
}

.webinars .p-resource_item a {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
}

.webinars .p-resource_item .img-wrapper img {
    object-fit: fill !important;
}

/* Left card image styling */
.webinars .p-resource-l .p-resource_item .img-wrapper {
    width: 100% !important;
    height: calc(100% - 240px) !important;
    flex-grow: 0 !important;
    aspect-ratio: auto !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-right: none !important;
}

/* Left card badge - reduced height */
.webinars .p-resource-l .p-resource_item_badge {
    height: 240px !important;
    justify-content: space-between !important;
    flex-grow: 0 !important;
}

/* Right card image styling */
.webinars .p-resource-r .p-resource_item .img-wrapper {
    width: 100% !important;
    height: 150px !important;
    aspect-ratio: auto !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-right: none !important;
}

.webinars .p-resource_item_badge {
    background-color: #ED8A32 !important;
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    color: #FFFFFF !important;
}

.webinars .p-resource_item_badge .p-title {
    color: #FFFFFF !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    margin: 0 !important;
    position: static !important;
    min-height: auto !important;
    height: auto !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    text-align: left !important;
}

.webinars .p-resource-l .p-resource_item_badge .p-title {
    font-size: 1.4rem !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.35 !important;
}

.webinars .p-resource-r .p-resource_item {
    height: auto !important;
}

.webinars .p-resource-r .p-resource_item_badge {
    flex-grow: 0 !important;
    height: auto !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 16px !important;
}

.webinars .p-resource-r .p-resource_item_badge .p-title {
    font-size: 0.875rem !important;
    -webkit-line-clamp: 2 !important;
    width: auto !important;
    flex-grow: 1 !important;
    margin: 0 !important;
    min-height: auto !important;
    line-height: 1.4 !important;
}

.webinars .p-resource-r .p-resource_item_badge_link {
    width: auto !important;
    flex-shrink: 0 !important;
    text-align: right !important;
}

.webinars .p-resource_item_badge .p-desc {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    text-align: left !important;
    min-height: auto !important;
}

.webinars .p-resource_item_badge_link {
    position: static !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: right !important;
}

.webinars .p-resource_item_badge_link span.btn-more,
.webinars .p-resource_item_badge_link a {
    color: #FFFFFF !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    position: relative !important;
}

.webinars .p-resource_item_badge_link span.btn-more i,
.webinars .p-resource_item_badge_link a i {
    transition: transform 0.25s ease-in-out !important;
    display: inline-block !important;
}

.webinars .p-resource_item:hover .p-resource_item_badge_link span.btn-more,
.webinars .p-resource_item:hover .p-resource_item_badge_link a,
.webinars .p-resource_item:focus-within .p-resource_item_badge_link span.btn-more,
.webinars .p-resource_item:focus-within .p-resource_item_badge_link a {
    color: #FFFFFF !important;
}

.webinars .p-resource_item:hover .p-resource_item_badge_link span.btn-more i,
.webinars .p-resource_item:hover .p-resource_item_badge_link a i,
.webinars .p-resource_item:focus-within .p-resource_item_badge_link span.btn-more i,
.webinars .p-resource_item:focus-within .p-resource_item_badge_link a i {
    transform: translateX(5px) !important;
}

.webinars .p-resource_item_badge_link::after,
.webinars .p-resource_item_badge_link span.btn-more::after,
.webinars .p-resource_item_badge_link a::after {
    content: none !important;
    display: none !important;
}

/* Mobile / Tablet Responsive */
@media screen and (max-width: 991px) {
    .p-resource_list.webinars {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 32px var(--space-md) !important;
    }

    .webinars .p-resource-l .p-resource_item .img-wrapper {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }

    .webinars .p-resource-l .p-resource_item_badge {
        height: auto !important;
        justify-content: flex-start !important;
        gap: 12px !important;
    }

    .p-resource-r .p-resource_item {
        flex-direction: column !important;
    }

    .p-resource-r .p-resource_item a {
        flex-direction: column !important;
    }

    .p-resource-r .p-resource_item .img-wrapper {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        border-right: none !important;
        border-bottom: 1px solid var(--color-border) !important;
    }

    .p-resource-r .p-resource_item_badge {
        border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    }
}
