﻿/* Dark Glassmorphism Overlay */
.cfx-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
    box-sizing: border-box;
}

/* Modal Card Container */
.cfx-modal-card {
    background: #070b15 !important;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    border-radius: 12px;
    /*border: 1px solid rgb(180 134 61) !important;*/
    border: 1px solid rgb(180 134 61 / 36%) !important;
    box-shadow: 0 20px 50px rgb(224 201 51 / 25%) !important;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Open Active Class */
.cfx-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

    .cfx-modal-overlay.active .cfx-modal-card {
        transform: scale(1) translateY(0);
    }

/* Fixed Header for Feed */
.cfx-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    /*border-bottom: 1px solid #E0E5F2;*/
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}
.news-des {
    font-size: 12px;
    font-weight: 200;
    margin-top:2px;
}
.cfx-feed-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .cfx-feed-title-wrap h2 {
        font-size: 18px;
        font-weight: 800;
        color: #f6f6f6;
        margin: 0;
    }

.cfx-bell-icon {
    color: #4318FF;
    width: 22px;
    height: 22px;
}

.cfx-feed-count {
    font-size: 10px;
    font-weight: 700;
    background: #E9E3FF;
    color: #4318FF;
    padding: 4px 6px;
    border-radius: 100px;
    text-transform: uppercase;
    margin-left: auto;
    min-width: 85px;
    display: flex;
    justify-content: center;
}

/* Scrollable Body Container */
.cfx-modal-scroll-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 8px;
    margin-bottom: 16px;
}

    /* Scrollbar styling */
    .cfx-modal-scroll-body::-webkit-scrollbar {
        width: 5px;
    }

    .cfx-modal-scroll-body::-webkit-scrollbar-track {
        background: #F4F7FE;
        border-radius: 10px;
    }

    .cfx-modal-scroll-body::-webkit-scrollbar-thumb {
        background: #CBD5E1;
        border-radius: 10px;
    }

/* Floating Close Button */
.cfx-modal-close {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #F4F7FE;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #070b15;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 99;
}

    .cfx-modal-close:hover {
        background: #E9E3FF;
        color: #4318FF;
        transform: rotate(90deg);
    }

/* ==========================================
        SEQUENCE NEWS CARD STYLES
        ========================================== */
.cfx-news-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.2s ease;
}

    .cfx-news-card:hover {
        border-color: #CBD5E1;
        box-shadow: 0 4px 12px rgba(112, 144, 176, 0.08);
    }

/* Meta date-tag alignment */
.cfx-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cfx-card-badge {
    font-size: 8px;
    font-weight: 800;
    color: #4318FF;
    background: #E9E3FF;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

    .cfx-card-badge.video-badge {
        color: #FF0000;
        background: #FFEAEA;
    }

.cfx-card-date {
    font-size: 11px;
    color: #707EAE;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .cfx-card-date i {
        width: 12px;
        height: 12px;
    }

.cfx-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #1B2559;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cfx-card-desc {
    font-size: 12.5px;
    color: #707EAE;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

/* Embedded Banner Image */
.cfx-card-banner {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    margin-bottom: 12px;
    display: block;
}

/* Embedded Responsive Video container */
.cfx-card-video-box {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #000000;
    margin-bottom: 12px;
}

    .cfx-card-video-box iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* Action Links within feed card */
.cfx-card-link {
    font-size: 12px;
    font-weight: 700;
    color: #4318FF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

    .cfx-card-link:hover {
        color: #3010C9;
        text-decoration: underline;
    }

/* Footer Button */
.cfx-btn-primary {
    background: linear-gradient(135deg, #c99c53, #aa7c32);
    color: black;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    /*box-shadow: 0 8px 20px rgba(67, 24, 255, 0.2);*/
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .cfx-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    }
