/* Horizontal Accordion for WPBakery — v1.0.0 */

.havc-wrapper {
    display: flex;
    width: 100%;
    height: var(--havc-height, 380px);
    gap: 5px;
    box-sizing: border-box;
}

/* ── Item ───────────────────────────────────────────── */
.havc-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 15%;
    border-radius: 0px;
    transition: flex var(--havc-speed, 450ms) cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    background-color: #A57C00;
}

.havc-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7),
                0 0 0 5px rgba(0, 0, 0, 0.4);
}

.havc-item.is-active {
    flex: 1 1 auto;
    cursor: auto;
}

/* ── Image ──────────────────────────────────────────── */
.havc-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform var(--havc-speed, 450ms) ease;
    display: block;
	min-width: 100%;
}

.havc-item.is-active .havc-image {
    transform: scale(1.04);
}

/* ── Gradient overlay ───────────────────────────────── */
.havc-item:nth-child(1) .havc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 34, 102, 0.65);
	opacity: 1;
	transition: opacity 0.35s ease;
}

.havc-item:nth-child(2) .havc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(174, 22, 57, 0.65);
	opacity: 1;
	transition: opacity 0.35s ease;
}

.havc-item:nth-child(3) .havc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(164, 125, 45, 0.65);
	opacity: 1;
	transition: opacity 0.35s ease;
}

.havc-item.is-active .havc-overlay {
	background: linear-gradient(
        to right,
        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-item.is-active .havc-content {
    pointer-events: auto;
}

/* ── Tag ────────────────────────────────────────────── */
.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;
	margin-bottom: 15px;
	opacity: 0;
	transition: opacity 0.3s ease 0.12s;
}

.havc-item.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-item.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-item.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;
    color: var(--nectar-accent-color);
    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-item.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;
}


.havc-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.havc-cta:hover .havc-arrow {
    transform: translateX(3px);
}

/* ── Vertical tab label (collapsed state) ───────────── */
.havc-tab {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 3em;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.havc-item.is-active .havc-tab {
    opacity: 0;
    pointer-events: none;
}

.havc-tab-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 100%;
}

/* ── Empty state ────────────────────────────────────── */
.havc-empty {
    padding: 1rem;
    color: #888;
    font-style: italic;
}

/* ── Responsive: stack vertically on small screens ──── */
@media (max-width: 600px) {
    .havc-wrapper {
        flex-direction: column;
        height: auto;
    }

    .havc-item {
        flex: 0 0 52px;
        border-radius: 6px;
        min-height: 52px;
    }

    .havc-item.is-active {
        flex: 0 0 260px;
    }

    .havc-tab {
        align-items: center;
        justify-content: flex-start;
        padding: 0 0 0 16px;
        flex-direction: row;
    }

    .havc-tab-label {
        writing-mode: horizontal-tb;
        transform: none;
        max-height: none;
        max-width: 80%;
        font-size: 12px;
    }

    .havc-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.15) 60%,
            transparent 100%
        );
    }
}
