/* Horizontal Accordion → Fade Slider — v2.0.0 */

.havc-wrapper {
    position: relative;
    width: 100%;
    height: var(--havc-height, 380px);
    border-radius: 0px;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
}

.havc-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Slide ──────────────────────────────────────────── */
.havc-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    outline: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--havc-speed, 600ms) ease;
    z-index: 1;
}

.havc-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* ── Image ──────────────────────────────────────────── */
.havc-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform var(--havc-speed, 600ms) ease;
    display: block;
    min-width: 100%;
}

.havc-slide.is-active .havc-image {
    transform: scale(1.04);
}

/* ── Gradient overlay ───────────────────────────────── */
.havc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.20) 55%,
        transparent 100%
    );
    opacity: 1;
}

/* ── Content ────────────────────────────────────────── */
.havc-content {
    position: absolute;
    inset: 0;
    padding: 3em;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    pointer-events: none;
}

.havc-slide.is-active .havc-content {
    pointer-events: auto;
}

/* ── Tag ────────────────────────────────────────────── */
.havc-tagrow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-self: flex-start;
	margin-bottom: 15px;
}

.havc-tag {
	display: inline-block;
	font-style: normal;
	font-weight: 500;
	font-size: 13px;
	line-height: 20px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background-color: var(--nectar-accent-color);
	border: 0px solid rgba(255, 255, 255, 0.30);
	border-radius: 200px;
	padding: .5em 1em;
	align-self: flex-start;
	opacity: 0;
	transition: opacity 0.3s ease 0.12s;
}

.havc-tag--open {
	background-color: #002266;
	color: #fff;
	font-weight: 600;
}

.havc-slide.is-active .havc-tag {
    opacity: 1;
}

/* ── Title ──────────────────────────────────────────── */
.havc-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.17s,
                transform 0.3s ease 0.17s;
    max-width: 640px;
}

.havc-slide.is-active .havc-title {
    opacity: 1;
    transform: translateY(0);
}

/* ── Date ───────────────────────────────────────────── */
.havc-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 12px;
    opacity: 0;
    transition: opacity 0.3s ease 0.22s;
    text-transform: uppercase;
}

.havc-slide.is-active .havc-date {
    opacity: 1;
}

.havc-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: rgba(255, 255, 255, 0.8);
}

/* ── CTA button ─────────────────────────────────────── */
.havc-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
	line-height: 17px;
    font-weight: 500;
    color: var(--nectar-accent-color);
    background-color: #ffffff;
    border: 0px solid rgba(255, 255, 255, 0.40);
    border-radius: 200px;
    padding: 10px 15px 10px 20px !important;
    text-decoration: none;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease 0.27s,
                transform 0.3s ease 0.27s,
                background 0.2s ease,
                border-color 0.2s ease;
    cursor: pointer;
}

.havc-cta::after {
  content: "\f054";
  font-size: 0.7em !important;
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  color: var(--nectar-accent-color) !important;
}

.havc-slide.is-active .havc-cta {
    opacity: 1;
    transform: translateY(0);
}

.havc-cta:hover,
.havc-cta:focus-visible {
    background-color: var(--nectar-accent-color) !important;
    border-color: var(--nectar-accent-color);
    color: #ffffff;
    text-decoration: none;
}

.havc-cta:hover:after,
.havc-cta:focus-visible:after {
    color: #ffffff !important;
}

/* small arrow icon inside the CTA button (unchanged from original) */
.havc-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.havc-cta:hover .havc-arrow {
    transform: translateX(3px);
}

/* ── Slider navigation buttons (prev/next) ───────────── */
.havc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}

.havc-nav:hover,
.havc-nav:focus-visible {
    background: rgba(0, 0, 0, 0.6);
}

.havc-nav svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    flex-shrink: 0;
}

.havc-nav--prev {
    left: 16px;
}

.havc-nav--next {
    right: 16px;
}

/* ── Dots ─────────────────────────────────────────────── */
.havc-dots {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.havc-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.havc-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.havc-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

/* ── Empty state ────────────────────────────────────── */
.havc-empty {
    padding: 1rem;
    color: #888;
    font-style: italic;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
    .havc-wrapper {
        height: 320px;
    }

    .havc-content {
        padding: 1.75em;
    }

    .havc-title {
        max-width: 100%;
    }

    .havc-nav {
        width: 36px;
        height: 36px;
    }

    .havc-nav svg {
        width: 18px;
        height: 18px;
    }

    .havc-nav--prev {
        left: 8px;
    }

    .havc-nav--next {
        right: 8px;
    }

    .havc-dots {
        right: 16px;
        bottom: 16px;
    }
}
