/* =====================================================
   MODAL CONTAINER
===================================================== */
.home-popup-modal {
    border-radius: 18px;
    background: #d6d3d3;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* =====================================================
   CLOSE BUTTON
===================================================== */
.popup-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background-color: #dc3545;
    border-radius: 50%;
    padding: 8px;
    opacity: 1;
    z-index: 10;
}

/* =====================================================
   MODAL BODY
===================================================== */
.modal-body {
    max-height: 80vh;
    overflow: hidden;
    padding: 32px 36px;
}

/* =====================================================
   HEADING BLOCK
===================================================== */
.modal-body .mb-3 {
    position: relative;
    padding: 14px 16px 16px 16px;
    margin-bottom: 22px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f8fdfb, transparent);
}

/* Decorative underline */
.modal-body .mb-3::after {
    content: "";
    position: absolute;
    left: 16px;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #198754, #20c997);
    border-radius: 2px;
}

/* Main Heading */
.modal-body h4 {
    font-size: 22px;
    font-weight: 700;
    color: #212529;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

/* Sub Heading */
.modal-body h6 {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   OPTIONAL BADGE (Instruction / Notice)
===================================================== */
.popup-badge {
    display: inline-block;
    background: #e9f7ef;
    color: #198754;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

/* =====================================================
   DESCRIPTION WRAPPER
===================================================== */
.popup-description {
    position: relative;
    height: 260px;
    overflow: hidden;
    padding: 16px 18px;
    margin-bottom: 24px;
    border-radius: 12px;
    background: #f9fafb;
    border-left: 4px solid #198754;
}

/* =====================================================
   FADE EFFECT (TOP & BOTTOM)
===================================================== */
.popup-description::before,
.popup-description::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 2;
    pointer-events: none;
}

.popup-description::before {
    top: 0;
    background: linear-gradient(to bottom, #f9fafb 0%, transparent 100%);
}

.popup-description::after {
    bottom: 0;
    background: linear-gradient(to top, #f9fafb 0%, transparent 100%);
}

/* =====================================================
   INNER SCROLL CONTENT
===================================================== */
.popup-description-inner {
    font-size: 14px;
    line-height: 1.8;
    color: #343a40;
    animation: scrollUp 20s linear infinite;
}

/* Paragraph spacing */
.popup-description-inner p {
    margin-bottom: 12px;
}

/* Pause on hover */
.popup-description:hover .popup-description-inner {
    animation-play-state: paused;
}

/* =====================================================
   SCROLL ANIMATION
===================================================== */
@keyframes scrollUp {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* =====================================================
   SCROLLBAR (DESKTOP)
===================================================== */
.popup-description::-webkit-scrollbar {
    width: 6px;
}

.popup-description::-webkit-scrollbar-thumb {
    background: #cfe9dd;
    border-radius: 10px;
}

/* =====================================================
   BUTTONS
===================================================== */
.modal-body .btn {
    padding: 9px 22px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.modal-body .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Divider above buttons */
.modal-body .mt-4 {
    padding-top: 18px;
    border-top: 1px dashed #dee2e6;
}

/* =====================================================
   MODAL ENTRANCE ANIMATION
===================================================== */
.modal.fade .modal-dialog {
    transform: translateY(30px) scale(0.98);
    transition: all 0.4s ease;
}

.modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

/* =====================================================
   MOBILE OPTIMIZATION
===================================================== */
@media (max-width: 768px) {
    .modal-body {
        padding: 24px;
    }

    .popup-description {
        height: 220px;
    }

    .modal-body h4 {
        font-size: 20px;
    }
}

/* =====================================================
   HEADING – BRAND COLOR PANEL
===================================================== */
.popup-heading-block {
    background: var(--theme-color);
    padding: 22px 26px;
    border-radius: 14px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    animation: slideFadeDown 0.6s ease forwards;
}

/* Soft animated shine */
.popup-heading-block::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -30%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(25deg);
    animation: shineMove 4s linear infinite;
}

/* Heading text */
.popup-heading-block h4 {
    font-size: 23px;
    font-weight: 700;
    color: #0e0d0d;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
    position: relative;
    z-index: 1;
}

/* Sub-heading text */
.popup-heading-block h6 {
    font-size: 14px;
    font-weight: 400;
    color: rgba(5, 5, 5, 0.85);
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
    position: relative;
    z-index: 1;
}

/* =====================================================
   HEADING ANIMATION
===================================================== */
@keyframes slideFadeDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shineMove {
    0% { left: -40%; }
    100% { left: 120%; }
}

/* =====================================================
   DESCRIPTION – SOFT LIGHT PANEL
===================================================== */
.popup-description {
    background: #f8faf9;
    border-radius: 14px;
    padding: 18px 20px;
    border-left: 4px solid var(--theme-color);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.03),
        0 6px 16px rgba(0, 0, 0, 0.05);
}

/* Text inside */
.popup-description-inner {
    font-size: 14px;
    line-height: 1.8;
    color: #2f3a38;
}

@media (max-width: 768px) {
    .popup-heading-block {
        padding: 18px 20px;
    }

    .popup-heading-block h4 {
        font-size: 20px;
    }

    .popup-heading-block h6 {
        max-width: 100%;
    }

    .popup-description {
        padding: 16px;
    }
}

/* =====================================================
   CLOSE BUTTON – RED CIRCLE + WHITE ❌
===================================================== */
.popup-close-btn {
    position: absolute;
    top: 40px;
    right: 14px;
    width: 25px;
    height: 25px;

    background-color: #c3b7b8;   /* 🔴 red circle */
    border-radius: 50%;
    opacity: 1;
    z-index: 10;

    /* 🔑 turns Bootstrap black SVG into WHITE */
    filter: invert(1) brightness(2);
}

/* Optional hover polish */
.popup-close-btn:hover {
    background-color: #c3b7b8;
}












