/**
 * DSI Hero Section — DuraIsiphala263
 *
 * @package Astra Child
 */

/* ══════════════════════════════════════════════════════════════════════════
   BASE SECTION — side-by-side split layout
   ══════════════════════════════════════════════════════════════════════════ */
.dsi-hero {
    display: flex;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* ══════════════════════════════════════════════════════════════════════════
   LEFT PANEL — solid green background, text content
   ══════════════════════════════════════════════════════════════════════════ */
.dsi-hero__left {
    flex: 0 0 52%;
    background: linear-gradient(135deg, #1a5c23 0%, #2E7D32 60%, #1B5E20 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px 60px 48px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* subtle texture on left panel */
.dsi-hero__left::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* ── Heading ─────────────────────────────────────────────────────────────── */
.dsi-hero__heading {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: clamp(1.9rem, 3vw, 2.75rem);
    font-weight: 900;
    line-height: 1.12;
    color: #fff;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

/* ── Body text ───────────────────────────────────────────────────────────── */
.dsi-hero__body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    margin: 0 0 32px;
    max-width: 420px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.dsi-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.dsi-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* solid dark green — "Log In to the System" style */
.dsi-hero__btn--solid {
    background: #1B5E20;
    color: #fff;
    border: 2px solid #1B5E20;
}

.dsi-hero__btn--solid:hover {
    background: #0d3b12;
    border-color: #0d3b12;
    color: #fff;
    transform: translateY(-2px);
}

/* outlined — "Contact Us" style */
.dsi-hero__btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}

.dsi-hero__btn--outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════════════════
   RIGHT PANEL — sliding background images
   ══════════════════════════════════════════════════════════════════════════ */
.dsi-hero__right {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

/* Swiper fills the whole right panel */
.dsi-hero__slider,
.dsi-hero__slider .swiper-wrapper,
.dsi-hero__slider .swiper-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.dsi-hero__slide-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.1s;
}

/* Ken-Burns zoom on active slide */
.swiper-slide-active .dsi-hero__slide-img {
    animation: dsiKenBurns 7s ease-in-out forwards;
}

@keyframes dsiKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}

/* Left-edge fade — right panel bleeds into green panel */
.dsi-hero__right-fade {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 120px;
    background: linear-gradient(to right, #2E7D32, transparent);
    z-index: 2;
    pointer-events: none;
}

/* Pagination dots — bottom right */
.dsi-hero__dots {
    position: absolute;
    bottom: 18px;
    right: 20px;
    z-index: 3;
    display: flex;
    gap: 6px;
    align-items: center;
}

.dsi-hero__dot {
    display: block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, width 0.25s ease;
}

.dsi-hero__dot--active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .dsi-hero {
        flex-direction: column;
        min-height: auto;
    }

    .dsi-hero__left {
        flex: none;
        padding: 48px 32px;
    }

    .dsi-hero__right {
        min-height: 280px;
        flex: none;
    }

    .dsi-hero__right-fade {
        display: none;
    }
}

@media (max-width: 480px) {
    .dsi-hero__left { padding: 36px 20px; }
    .dsi-hero__heading { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .dsi-hero__actions { flex-direction: column; }
    .dsi-hero__btn { width: 100%; justify-content: center; }
    .dsi-hero__right { min-height: 220px; }
}
