/* ==========================================================
   HAMASTA MEDIA — house adverts for our services (includes/service-ads.php)
   ========================================================== */
.hsa-banner, .hsa-card { --hsa-red: #be1622; font-family: 'Outfit', system-ui, sans-serif; }
.hsa-banner *, .hsa-card * { box-sizing: border-box; }
.hsa-label {
    position: absolute; top: 14px; right: 16px; z-index: 3;
    font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75); background: rgba(0, 0, 0, 0.35); padding: 4px 10px; border-radius: 20px;
}
.hsa-kicker {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
    font-size: 12px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: #ff8a92;
}

/* ── Rotating banner ── */
.hsa-banner {
    position: relative; overflow: hidden; border-radius: 24px; margin: 40px 0; color: #fff;
    background: radial-gradient(700px 320px at 0% 0%, rgba(190, 22, 34, 0.4), transparent 65%), linear-gradient(135deg, #0d0f15, #1b0b10);
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.45);
}
.hsa-track { display: grid; }
.hsa-slide {
    grid-area: 1 / 1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; min-height: 280px;
    opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s;
}
.hsa-slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.hsa-copy { padding: 38px 40px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hsa-slide h3 { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.4px; color: #fff; }
.hsa-slide p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); max-width: 460px; }
.hsa-slide.is-on .hsa-kicker, .hsa-slide.is-on h3, .hsa-slide.is-on p, .hsa-slide.is-on .hsa-ctas { animation: hsaUp .7s cubic-bezier(.2, .7, .2, 1) both; }
.hsa-slide.is-on h3 { animation-delay: .08s; }
.hsa-slide.is-on p { animation-delay: .16s; }
.hsa-slide.is-on .hsa-ctas { animation-delay: .24s; }
@keyframes hsaUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hsa-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hsa-btn, .hsa-ghost {
    display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 13px;
    font-size: 14.5px; font-weight: 700; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s;
}
.hsa-btn { background: linear-gradient(135deg, #a10f1a, var(--hsa-red)); color: #fff !important; box-shadow: 0 10px 24px rgba(190, 22, 34, 0.35); }
.hsa-btn:hover { transform: translateY(-2px); }
.hsa-btn i { font-size: 12px; transition: transform .2s; }
.hsa-btn:hover i { transform: translateX(3px); }
.hsa-ghost { color: #fff !important; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.hsa-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.hsa-ghost i { color: #4ade80; font-size: 16px; }
.hsa-media { position: relative; overflow: hidden; }
.hsa-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7.5s linear; }
.hsa-slide.is-on .hsa-media img { transform: scale(1); }
.hsa-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #12090d 0%, rgba(18, 9, 13, 0.4) 35%, transparent 70%); }
.hsa-dots { position: absolute; left: 40px; bottom: 22px; z-index: 3; display: flex; gap: 8px; }
.hsa-dot { width: 26px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.hsa-dot span { position: relative; display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.hsa-dot span::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hsa-dot.is-on span::after { transform: scaleX(1); }
.hsa-banner.is-playing .hsa-dot.is-on span::after { animation: hsaFill 7s linear both; }
@keyframes hsaFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hsa-dot:focus-visible { outline: 2px solid #009fe3; outline-offset: 2px; border-radius: 4px; }

/* ── Sidebar card ── */
.hsa-card {
    position: relative; overflow: hidden; border-radius: 20px; color: #fff; text-align: left;
    background: linear-gradient(180deg, #14090d, #0d0f15); box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.5);
}
.hsa-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.hsa-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.hsa-card:hover .hsa-card-media img { transform: scale(1.06); }
.hsa-card-media::after { content: ''; position: absolute; inset: 40% 0 0 0; background: linear-gradient(to top, #14090d, transparent); }
.hsa-card-body { position: relative; padding: 4px 22px 22px; margin-top: -18px; z-index: 2; }
.hsa-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; line-height: 1.2; color: #fff; }
.hsa-card p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); }
.hsa-card .hsa-btn { width: 100%; justify-content: center; }
.hsa-link { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.8) !important; text-decoration: none; }
.hsa-link i { color: #4ade80; font-size: 15px; }
.hsa-link:hover { color: #fff !important; }

@media (max-width: 760px) {
    .hsa-banner { border-radius: 20px; margin: 28px 0; }
    .hsa-slide { grid-template-columns: 1fr; grid-template-rows: 170px auto; min-height: 0; }
    .hsa-media { grid-row: 1; }
    .hsa-media::before { background: linear-gradient(0deg, #150a0e 0%, transparent 70%); }
    .hsa-copy { grid-row: 2; padding: 6px 22px 52px; }
    .hsa-slide p { font-size: 14.5px; margin-bottom: 18px; }
    .hsa-btn, .hsa-ghost { flex: 1 1 auto; justify-content: center; }
    .hsa-dots { left: 22px; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .hsa-slide, .hsa-slide.is-on { transition: none; }
    .hsa-slide.is-on .hsa-kicker, .hsa-slide.is-on h3, .hsa-slide.is-on p, .hsa-slide.is-on .hsa-ctas { animation: none; }
    .hsa-media img { transition: none; transform: none; }
}

/* Article bodies style every <img>: keep ours untouched */
.hsa-banner .hsa-media img, .hsa-card .hsa-card-media img { margin: 0 !important; padding: 0 !important; max-width: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.hsa-banner .hsa-media img { height: 100% !important; }
.hsa-card .hsa-card-media img { height: 100% !important; }
.hsa-banner p, .hsa-card p { text-align: left; }
