.antigravity-tab-accordion {
    --ag-primary-color: #EE4540;
    /* Red-ish Orange */
    --ag-nav-bg: #2D142C;
    /* Deep Purple/Black */
    --ag-text-color: #2D142C;
    --ag-light-bg: #FFF8F8;
    /* Very light pink/white */
    --ag-border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    /* Fallback */
}

/* --- Tabs Navigation --- */
.ag-tabs-nav {
    background-color: var(--ag-nav-bg);
    border-radius: var(--ag-border-radius);
    padding: 10px 20px;
    display: inline-block;
    margin-bottom: 30px;
}

.ag-tabs-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ag-tabs-nav li {
    margin: 0;
}

.ag-tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 25px;
    border-radius: var(--ag-border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    font-size: 14px;
}

.ag-tab-btn:hover {
    border-color: #fff;
}

.ag-tab-btn.active {
    background-color: var(--ag-primary-color);
    border-color: var(--ag-primary-color);
    color: #fff;
}

/* --- FAQ Items --- */
.ag-faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ag-faq-item {
    background-color: var(--ag-light-bg);
    border-left: 4px solid transparent;
    /* Placeholder for active state border */
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 3px;
    /* Subtle radius */
}

/* Hidden state for filtering */
.ag-faq-item.hidden-by-tab {
    display: none;
}

.ag-faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ag-faq-question {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #4a4a4a;
    transition: color 0.3s ease;
}

.ag-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #2D142C;
    color: #fff;
    border-radius: 4px;
    font-size: 18px;
    line-height: 1;
    transition: background-color 0.3s, transform 0.3s ease;
    position: relative;
}

/* Icons are absolute to overlap for transition */
.ag-icon-open,
.ag-icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

/* Default state: Plus is visible, Minus is hidden (rotated/scaled) */
.ag-icon-open {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.ag-icon-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
}

/* Active State Styles */
.ag-faq-item.active {
    background-color: #fff;
    /* White background for active */
    border-left-color: var(--ag-primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
}

.ag-faq-item.active .ag-faq-question {
    color: var(--ag-primary-color);
}

.ag-faq-item.active .ag-faq-icon {
    background-color: var(--ag-primary-color);
}

/* Active Icon State: Hide Plus, Show Minus */
.ag-faq-item.active .ag-icon-open {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
}

.ag-faq-item.active .ag-icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* CSS Grid Smooth Animation */
.ag-faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* No padding here to avoid jumps */
}

.ag-faq-answer {
    overflow: hidden;
    padding: 0 25px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.ag-faq-item.active .ag-faq-body {
    grid-template-rows: 1fr;
}

.ag-faq-item.active .ag-faq-answer {
    padding-bottom: 25px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}