/* ==============================
   Base Tabs Container
   ============================== */
.tabs {
    display: flex;
    padding: 0.25rem;
    align-items: flex-start;
    gap: 0.8125rem;
    width: max-content;
    margin-inline: auto;
    margin-top: 2.5rem;
    border-radius: 6.1875rem;
    background: var(--color-bg-light, #f9fafb);
    box-shadow: 
        0px 1px 3px rgba(15, 23, 42, 0.05), 
        0px 1px 2px rgba(15, 23, 42, 0.07), 
        0px 0px 0px 1px rgba(15, 23, 42, 0.04);
}



/* Overflow handling for smaller screens */
.tabs__outter {
    margin-left: var(--only-ml);
    padding-bottom: 4px;
    overflow: auto;
}

/* Medium screen adjustments */
@media (min-width: 768px) {
    .tabs__outter {
        margin-inline: auto;
    }
}

/* Tabs container responsiveness for 1024px */
@media (min-width: 1024px) {
    .tabs {
        gap: 1.5rem; 
        padding: 0.5rem; 
        margin-top: 3rem;
    }
}

/* ==============================
   Tab Items Styling
   ============================== */
.tabs__item {
    display: flex;
    padding: 0.5rem 1rem;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary, #626c83);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.02rem;
}

.tabs__item::before {
    content: '•'; 
    margin-right: 10px;
    color: #626C83;
}


/* Active tab item styling */
.tabs__item--active {
    border-radius: 6.1875rem;
    background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
    box-shadow: 
        0px 0px 0px 1px rgba(56, 25, 95, 0.04), 
        0px 1px 4px rgba(56, 25, 95, 0.08), 
        0px 1px 3px rgba(56, 25, 95, 0.12);
}


@media (min-width: 1024px) {
    .tabs__item {
        padding: 0.75rem 1.25rem; /* Increased padding for larger screens */
        font-size: 1.1rem; /* Slightly increased font size */
    }
}

/* ==============================
   Tab Content Section
   ============================== */
.tabs__content {
    margin-top: 1.95rem;
    background: var(--color-bg-elevated, #fff);
    max-width: 100vw;
    overflow: hidden;
    background-color: rgba(37, 99, 235, 0.03);
}




/* ==============================
   Tab Content Wrapper (Handles visibility)
   ============================== */
.tabs__content__wrapper {
    display: none;
    padding-top: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tabs__content__wrapper--active {
    display: block;
    opacity: 1;
    visibility: visible;
}



/* ==============================
   Image in Tab Content Section
   ============================== */
.tabs__content__image {
    margin-top: 2rem;
    object-fit: cover;
    object-position: top left;
    width: 100%;
}

/* Remove margin on larger screens */
@media (min-width: 768px) {
    .tabs__content__image {
        margin-top: 0;
    }
}



/* ==============================
   Responsivness
   ============================== */

@media (min-width: 768px) {
    .tabs__content__item {
        padding-top: 4rem;
    }
}


@media (min-width: 1024px) {
    .tabs__content {
        margin-top: 2.5rem; /* Adjust margin-top for better spacing */
    }
}


/* For 1024px screens */
@media (max-width: 1024px) {
    h2.h2-title {
        font-size: 42px;
    }
    p.body {
        font-size: 1rem;
    }


}


@media (min-width: 768px) {
    .tabs__content__wrapper--active {
        display: grid;
        grid-template-columns: 0.5fr 1fr;
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .tabs__content__image {
        margin-top: 0;
    }
}