/* ── Infinity Solar Popup ── */

.isol-pop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.isol-pop-overlay.isol-pop-visible {
    opacity: 1;
    visibility: visible;
}

.isol-pop-modal {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.28),
        0 8px 24px rgba(0, 0, 0, 0.12);
    transform: scale(0.88) translateY(24px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.isol-pop-overlay.isol-pop-visible .isol-pop-modal {
    transform: scale(1) translateY(0);
}

/* scrollbar */
.isol-pop-modal::-webkit-scrollbar { width: 5px; }
.isol-pop-modal::-webkit-scrollbar-track { background: transparent; }
.isol-pop-modal::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }

/* ── CLOSE BUTTON ── */
.isol-pop-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    color: #4a5568;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    padding: 0;
    font-family: Arial, sans-serif;
}

.isol-pop-close:hover {
    background: #1a2e44;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ── IMAGE ── */
.isol-pop-image {
    width: 100%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    max-height: 320px;
}

.isol-pop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── BODY ── */
.isol-pop-body {
    padding: 36px 40px 40px;
}

/* if no image, add top padding */
.isol-pop-modal:not(:has(.isol-pop-image)) .isol-pop-body {
    padding-top: 48px;
}

/* ── HEADING ── */
.isol-pop-heading {
    font-size: 1.55rem;
    font-weight: 800;
    color: #1a2e44;
    line-height: 1.25;
    margin: 0 0 14px;
    padding-right: 20px;
}

/* ── CONTENT ── */
.isol-pop-content {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.75;
    margin-bottom: 24px;
}

.isol-pop-content p { margin: 0 0 12px; }
.isol-pop-content p:last-child { margin-bottom: 0; }
.isol-pop-content a { color: #0ac23c; text-decoration: underline; }
.isol-pop-content ul, .isol-pop-content ol { padding-left: 20px; margin: 8px 0; }
.isol-pop-content li { margin-bottom: 6px; }
.isol-pop-content strong { color: #1a2e44; }

/* ── CTA BUTTON ── */
.isol-pop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0ac23c, #009fd6);
    color: #ffffff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(10, 194, 60, 0.32);
    margin-top: 4px;
}

.isol-pop-btn:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(10, 194, 60, 0.38);
    color: #ffffff;
    text-decoration: none;
}

/* ── DECORATIVE GRADIENT LINE at bottom of image ── */
.isol-pop-image::after {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #0ac23c, #009fd6);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .isol-pop-overlay { padding: 12px; }

    .isol-pop-modal {
        border-radius: 16px;
        max-height: 88vh;
    }

    .isol-pop-image {
        border-radius: 16px 16px 0 0;
        max-height: 200px;
    }

    .isol-pop-body { padding: 24px 22px 28px; }

    .isol-pop-heading { font-size: 1.25rem; }

    .isol-pop-content { font-size: 0.9rem; }

    .isol-pop-btn { width: 100%; justify-content: center; }
}
