/* ==========================================================================
   Hero side panel - Persian homepage (replaces the old hero video card)
   ========================================================================== */

.hero-panel {
    --hp-navy: #0d2f6b;
    --hp-blue: #2054a7;
    --hp-sky: #1babe8;
    position: relative;
    overflow: hidden;
    padding: clamp(1.1rem, 2vw, 1.6rem);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78));
    border: 1px solid rgba(32, 84, 167, .12);
    box-shadow: 0 1px 2px rgba(16, 56, 130, .06), 0 24px 60px -24px rgba(16, 56, 130, .30);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    isolation: isolate;
}

    /* brand glow in the top corner */
    .hero-panel::before {
        content: "";
        position: absolute;
        top: -120px;
        left: -90px;
        width: 280px;
        height: 280px;
        z-index: -1;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(27, 171, 232, .22), transparent 70%);
        pointer-events: none;
    }

    /* thin gradient line on top */
    .hero-panel::after {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 3px;
        background: linear-gradient(90deg, var(--hp-sky), var(--hp-blue));
    }

/* ---------- head ---------- */
.hero-panel__status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, .10);
    border: 1px solid rgba(16, 185, 129, .22);
    color: #047857;
    font-size: .78rem;
    font-weight: 700;
}

.hero-panel__dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

    .hero-panel__dot::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #10b981;
        animation: hero-panel-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
    }

@keyframes hero-panel-ping {
    75%, 100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.hero-panel__title {
    margin: .8rem 0 .3rem;
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    font-weight: 800;
    color: var(--hp-navy);
}

.hero-panel__subtitle {
    margin: 0 0 1rem;
    text-align: start;
    color: #5a6b8c;
    font-size: .9rem;
    line-height: 1.9;
}

/* ---------- modules grid ---------- */
.hero-panel__modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.hero-panel__module {
    display: flex;
    align-items: center;
    gap: .65rem;
    height: 100%;
    padding: .7rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(32, 84, 167, .10);
    color: var(--hp-navy);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    .hero-panel__module:hover,
    .hero-panel__module:focus-visible {
        color: var(--hp-navy);
        transform: translateY(-2px);
        border-color: rgba(27, 171, 232, .45);
        box-shadow: 0 12px 26px -14px rgba(32, 84, 167, .45);
    }

    .hero-panel__module:focus-visible {
        outline: 2px solid var(--hp-sky);
        outline-offset: 2px;
    }

.hero-panel__module-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--hp-blue);
    background: linear-gradient(135deg, rgba(27, 171, 232, .14), rgba(32, 84, 167, .12));
    transition: background .2s ease, color .2s ease;
}

    .hero-panel__module-icon svg {
        width: 22px;
        height: 22px;
    }

.hero-panel__module:hover .hero-panel__module-icon,
.hero-panel__module:focus-visible .hero-panel__module-icon {
    color: #fff;
    background: linear-gradient(135deg, var(--hp-sky), var(--hp-blue));
}

.hero-panel__module-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.6;
}

    .hero-panel__module-text strong {
        font-size: .9rem;
        font-weight: 800;
    }

    .hero-panel__module-text small {
        font-size: .74rem;
        color: #6b7a96;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* ---------- perks ---------- */
.hero-panel__perks {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    margin: 0 0 1.1rem;
    padding: .8rem 0 0;
    list-style: none;
    border-top: 1px dashed rgba(32, 84, 167, .18);
    font-size: .82rem;
    color: #3d4f73;
}

    .hero-panel__perks li {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
    }

    .hero-panel__perks span {
        display: grid;
        place-items: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: rgba(16, 185, 129, .14);
        color: #059669;
    }

        .hero-panel__perks span svg {
            width: 12px;
            height: 12px;
            stroke-width: 3;
        }

/* ---------- CTA ---------- */
.hero-panel__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .85rem 1.1rem;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--hp-blue), var(--hp-sky));
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    box-shadow: 0 12px 28px -12px rgba(32, 84, 167, .7);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .hero-panel__cta svg {
        width: 20px;
        height: 20px;
        transition: transform .2s ease;
    }

    .hero-panel__cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 32px -12px rgba(32, 84, 167, .8);
    }

        .hero-panel__cta:hover svg {
            transform: translateX(-4px);
        }

    .hero-panel__cta:focus-visible {
        outline: 3px solid #fbbf24;
        outline-offset: 2px;
    }

@media (max-width: 991.98px) {
    .hero-panel {
        margin-top: .5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-panel__modules {
        gap: .5rem;
    }

    .hero-panel__module {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
        padding: .7rem .65rem;
    }

    .hero-panel__module-text small {
        white-space: normal;
    }
}

@media (max-width: 339.98px) {
    .hero-panel__modules {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-panel__dot::after {
        animation: none;
    }

    .hero-panel__module,
    .hero-panel__cta,
    .hero-panel__cta svg {
        transition: none;
    }
}
