/*
    Articles listing page (articles.php)
    Extracted from an inline <style> block into its own stylesheet.
*/

.pagination .active .page-link {
    padding: 8px 14px !important;
    background-color: #0d3b3b !important;
}

.trend_header {
    color: #000;
}
.side-post img {
    width: 123px !important;
}
@media (max-width: 768px) {
    .side-post img {
        width: 50px !important;
        height: 50px;
    }

    .mob_text {
        font-size: 0.9rem !important;
    }
}

.webinar_libary_card {
    position: relative;
    overflow: hidden;
}

.webinar_libary_card .hover-btn {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.webinar_libary_card:hover .hover-btn {
    opacity: 1;
}

.featured-img {
    position: relative;
    overflow: hidden;
}

.featured-img .hover-btn {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.featured-img:hover .hover-btn {
    opacity: 1;
}

.side-img-wrapper {
    position: relative;
    display: inline-block;
}

.side-overlay {
    position: absolute;
    top: 0%;
    left: 35%;
    width: 20%;
    height: 100%;
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.side-img-wrapper:hover .side-overlay {
    opacity: 1;
}

/* Background Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Show Popup */
.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Popup Box */
.popup-box {
    background: #fff;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    animation: popupScale 0.35s ease;
    text-align: center;
}

/* Animation */
@keyframes popupScale {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: #000;
}

/* Main Title */
.popup-main {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #16484b !important;
}

/* Sub Title */
.popup-sub {
    font-size: 15px;
    color: #444;
    margin-bottom: 25px;
    color: #16484b !important;
}

/* Scroll animation base */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease;
}

/* When visible */
.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-slide {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-slide.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional stagger delays */
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.25s; }
.fade-delay-3 { transition-delay: 0.4s; }
.fade-delay-4 { transition-delay: 0.55s; }

/* Newsletter form validation */
.field-error {
    display: none;
    color: #dc3545;
    font-size: .82rem;
    text-align: left;
    margin: 0 0 10px;
}

/* Toast Notifications (matches index.php's form-submit toast) */
.form-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    z-index: 99999;
    max-width: 380px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .35s ease, transform .35s ease;
}
.form-toast--show {
    opacity: 1;
    transform: translateY(0);
}
.form-toast--success {
    background: #1a7f4b;
}
.form-toast--error {
    background: #c0392b;
}
.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}
