/* =============================================================
   Tiger Accordion — Beautiful Modern Design
   CSS custom-properties are set inline via accordion-render.php
   ============================================================= */

/* ── Root / Container ──────────────────────────────────────── */
.tg-ac {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;

    /* Icon colours (overridden by inline style per instance) */
    --icon-closed-color: #ffffff;
    --icon-opened-color: #ffffff;
    --icon-closed-bg:    #6EC1E4;
    --icon-opened-bg:    #3AD29F;

    /* Internal */
    --header-bg:    #5d8aa8;
    --ac-duration:  520;            /* consumed by JS for timing */
    --accent:       #F37F2B;
}

/* ── Item card ──────────────────────────────────────────────── */
.tg-ac .tg-ac-item {
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition:
        box-shadow   0.30s ease,
        transform    0.25s ease,
        border-color 0.25s ease;
}

.tg-ac .tg-ac-item:last-child { margin-bottom: 0; }

.tg-ac .tg-ac-item:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.tg-ac .tg-ac-item.tg-ac-active {
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
    border-color: rgba(243, 127, 43, 0.25);
}

/* ── Header row ─────────────────────────────────────────────── */
.tg-ac .tg-ac-header {
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, filter 0.2s ease;
    outline: none;
}

.tg-ac .tg-ac-header:hover   { filter: brightness(1.06); }
.tg-ac .tg-ac-header:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

/* ── Number badge ───────────────────────────────────────────── */
.tg-ac .tg-ac-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width:  32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background-color: #F37F2B;
    background-image: linear-gradient(135deg, #F37F2B 0%, #e05e00 100%);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(243, 127, 43, 0.40);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tg-ac .tg-ac-item.tg-ac-active .tg-ac-badge {
    transform: scale(1.10);
    box-shadow: 0 4px 16px rgba(243, 127, 43, 0.50);
}

/* ── Left column (title) ────────────────────────────────────── */
.tg-ac .tg-ac-hd-left { flex: 1; min-width: 0; }

/* ── Right column (chevron) ─────────────────────────────────── */
.tg-ac .tg-ac-hd-right {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ── Title text ─────────────────────────────────────────────── */
.tg-ac .tg-ac-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: inherit;
    transition: color 0.2s ease;
}

/* ── Chevron container ──────────────────────────────────────── */
.tg-ac .tg-ac-chevron {
    display: inline-flex;
    align-items: center;
}

.tg-ac .tg-ac-chevron-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width:  40px;
    height: 40px;
    border-radius: 50%;
    background: var(--icon-closed-bg);
    position: relative;
    transition:
        background   0.30s ease,
        box-shadow   0.30s ease,
        transform    0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Active chevron ring glow */
.tg-ac .tg-ac-item.tg-ac-active .tg-ac-chevron-inner {
    background: var(--icon-opened-bg);
    transform: rotate(180deg) scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ── Icon layers (closed / opened states) ───────────────────── */
.tg-ac .tg-ac-icon-closed,
.tg-ac .tg-ac-icon-opened {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.tg-ac .tg-ac-icon-closed { opacity: 1; }
.tg-ac .tg-ac-icon-opened { opacity: 0; }

.tg-ac .tg-ac-item.tg-ac-active .tg-ac-icon-closed { opacity: 0; }
.tg-ac .tg-ac-item.tg-ac-active .tg-ac-icon-opened { opacity: 1; }

.tg-ac .tg-ac-icon-closed .elementor-icon,
.tg-ac .tg-ac-icon-closed .elementor-icon svg,
.tg-ac .tg-ac-icon-closed .tg-ac-chevron-fallback { color: var(--icon-closed-color); }

.tg-ac .tg-ac-icon-opened .elementor-icon,
.tg-ac .tg-ac-icon-opened .elementor-icon svg,
.tg-ac .tg-ac-icon-opened .tg-ac-chevron-fallback { color: var(--icon-opened-color); }

.tg-ac .tg-ac-icon-svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ── Collapsible body (height driven by JS) ─────────────────── */
.tg-ac .tg-ac-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: block;
    transition:
        max-height 0.52s cubic-bezier(0.4, 0, 0.2, 1),
        opacity    0.52s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-ac .tg-ac-item.tg-ac-active .tg-ac-content { opacity: 1; }

/* ── Inner grid (image + text) ──────────────────────────────── */
.tg-ac .tg-ac-item-inner {
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: 100%;
}

.tg-ac.tg-ac-layout-col .tg-ac-item-inner { flex-direction: column; }

/* ── Image column ───────────────────────────────────────────── */
.tg-ac .tg-ac-grid {
    display: inline-flex;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
}

.tg-ac .tg-ac-image-col {
    display: flex;
    flex-shrink: 0;
}

.tg-ac .tg-ac-content-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.tg-ac .tg-ac-content-full { width: 100%; }

/* ── Image ──────────────────────────────────────────────────── */
.tg-ac .tg-ac-img {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tg-ac .tg-ac-item.tg-ac-show-image .tg-ac-img { opacity: 1; }

.tg-ac .tg-ac-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ── Text content ───────────────────────────────────────────── */
.tg-ac .tg-ac-text {
    padding: 22px 22px 22px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #444;
}

.tg-ac .tg-ac-text p:last-child { margin-bottom: 0; }
.tg-ac .tg-ac-text ul,
.tg-ac .tg-ac-text ol { padding-left: 1.4em; }

/* ── Section heading & description ─────────────────────────── */
.tg-ac .tg-ac-heading {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.tg-ac .tg-ac-desc {
    margin-bottom: 28px;
    font-size: 0.95rem;
    opacity: 0.75;
    line-height: 1.65;
}

/* ── Active item body tint ──────────────────────────────────── */
.tg-ac .tg-ac-item.tg-ac-active .tg-ac-item-inner {
    /* subtle background — overridden by Elementor controls */
    background-color: transparent;
}

/* ── Section template placeholder ──────────────────────────── */
.tg-sw-placeholder {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 26px;
    background: linear-gradient(135deg, #fff7f0 0%, #fff3ea 100%);
    border: 2px dashed #F37F2B;
    border-radius: 12px;
    color: #666;
    font-size: 0.92rem;
}

.tg-sw-placeholder svg { color: #F37F2B; flex-shrink: 0; }
.tg-sw-error { background: #fff3f3; border-color: #e55; }
.tg-sw-error svg { color: #e55; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tg-ac .tg-ac-grid { flex-direction: column; }
    .tg-ac .tg-ac-image-col { width: 100% !important; }
    .tg-ac .tg-ac-content-col { width: 100% !important; }
}
