/* ============================================================
   Viro Hero Grid Widget — Harmonized Styles
   Uses theme variables for perfect UI consistency.
   ============================================================ */

.viro-hero-grid-wrapper {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--spacing-lg, 24px);
    margin-bottom: var(--spacing-xl, 50px);
    font-family: var(--font-family, 'Inter', sans-serif);
}

.viro-hero-grid-left {
    min-height: 520px;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.viro-hero-grid-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg, 24px);
}

/* ── Banner Boxes ────────────────────────────────────── */
.viro-hero-banner-box {
    position: relative;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    display: flex;
    padding: var(--spacing-lg, 35px);
    transition: all var(--transition-normal, 0.3s ease);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.05));
}

.viro-hero-banner-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.viro-hero-banner-top {
    flex: 1;
    min-height: 260px;
}

.viro-hero-grid-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg, 24px);
}

.viro-hero-banner-small {
    min-height: 200px;
    padding: var(--spacing-md, 25px);
}

/* ── Content Elements ─────────────────────────────────── */
.viro-hero-content {
    position: relative;
    z-index: 5;
    max-width: 65%;
    display: flex;
    flex-direction: column;
}

.viro-hero-subtitle-box {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--viro-primary-color);
    line-height: 1.2;
}

.viro-hero-subtitle-box-small {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.8;
}

.viro-hero-title-box {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    color: var(--viro-secondary-color);
}

.viro-hero-banner-small .viro-hero-title-box {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ── Buttons ──────────────────────────────────────────── */
.viro-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm, 12px) var(--spacing-lg, 30px);
    background-color: var(--viro-primary-color);
    color: var(--color-white, #fff) !important;
    border-radius: var(--radius-md, 6px);
    font-weight: 800;
    text-decoration: none !important;
    transition: all var(--transition-normal, 0.4s) cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    font-size: var(--font-size-sm, 13px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.viro-hero-btn:hover {
    background-color: var(--viro-secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.viro-hero-btn-alt {
    background-color: var(--color-white, #fff);
    color: var(--viro-secondary-color) !important;
    box-shadow: var(--shadow-sm);
}

.viro-hero-btn-alt:hover {
    background-color: var(--viro-primary-color);
    color: var(--color-white, #fff) !important;
}

/* ── Slider Styles (Left Section) ────────────────────── */
.viro-hero-grid-left .swiper,
.viro-hero-grid-left .swiper-wrapper,
.viro-hero-grid-left .swiper-slide {
    height: 100%;
}

.hero-slide-content {
    height: 100% !important;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-xl, 60px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 60%); */
    z-index: 1;
}

.hero-caption {
    position: relative;
    z-index: 10;
    max-width: 550px;
    color: var(--color-white, #fff);
}

.hero-caption .hero-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: var(--spacing-md, 20px);
    line-height: 1;
    color: var(--color-white, #fff);
}

.hero-caption .hero-description {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.6;
    color: #fff;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm, 14px) var(--spacing-xl, 40px);
    background-color: var(--viro-primary-color);
    color: var(--color-white, #fff) !important;
    border-radius: var(--radius-md, 8px);
    font-weight: 800;
    text-decoration: none !important;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal, 0.4s) cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-md);
}

.btn-hero:hover {
    background-color: var(--color-white, #fff);
    color: var(--viro-primary-color) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ── Countdown Styles ────────────────────────────────── */
.viro-hero-countdown {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.viro-hero-timer-unit {
    background: var(--color-white, #fff);
    color: var(--viro-secondary-color);
    padding: var(--spacing-sm, 10px);
    border-radius: var(--radius-md, 8px);
    min-width: 60px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.viro-hero-timer-val {
    font-size: 22px;
    font-weight: 800;
    display: block;
    line-height: 1.1;
    color: var(--viro-primary-color);
}

.viro-hero-timer-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.6;
}

/* ── Floating Images (Right side) ─────────────────────── */
.viro-hero-float-img {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 48%;
    max-height: 85%;
    object-fit: contain;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.viro-hero-banner-box:hover .viro-hero-float-img {
    transform: translateY(-50%) scale(1.05);
    /* Softer hover to avoid jumping if right is customized */
}

/* ── Swiper Pagination Overrides ──────────────────────── */
.viro-hero-grid-left .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.viro-hero-grid-left .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
    background: var(--viro-primary-color);
}

.viro-hero-grid-left .swiper-pagination {
    bottom: 30px !important;
}

/* ── Swiper Navigation Overrides ──────────────────────── */
.viro-hero-grid-left .swiper-button-next,
.viro-hero-grid-left .swiper-button-prev {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.viro-hero-grid-left .swiper-button-next:hover,
.viro-hero-grid-left .swiper-button-prev:hover {
    background: var(--viro-primary-color);
    border-color: var(--viro-primary-color);
}

.viro-hero-grid-left .swiper-button-next::after,
.viro-hero-grid-left .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1200px) {
    .hero-caption .hero-title {
        font-size: 42px;
    }

    .viro-hero-title-box {
        font-size: 26px;
    }
}

@media (max-width: 1024px) {
    .viro-hero-grid-wrapper {
        grid-template-columns: 1fr;
    }

    .viro-hero-grid-left {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .viro-hero-grid-bottom-row {
        grid-template-columns: 1fr;
    }

    .hero-caption {
        padding: 0 30px;
    }

    .hero-caption .hero-title {
        font-size: 32px;
    }

    .viro-hero-content {
        max-width: 100%;
    }

    .viro-hero-float-img {
        opacity: 0.2;
        /* Minimal image on small mobile to avoid text overlap */
    }
}