/* Tabbed Section Styling */

* {
    box-sizing: border-box;
}

.tabbed-section {
    background-color: #1e1d19;
    padding: 3rem 2rem;
    font-family: 'Gilroy', sans-serif;
    width: 100%;
    overflow-x: hidden;
}

.tabbed-section .container {
    box-sizing: border-box;
}

/* Desktop Tabs Container */
.tabs-container-desktop {
    display: none;
    gap: 0;
    margin-bottom: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Tab Button Styling */
.tab-button {
    position: relative;
    height: 70px;
    padding: 0 1rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: transparent;
    border-top: 1px solid #008080;
    border-left: none;
    border-right: none;
    border-bottom: none;
    cursor: pointer;
    font-family: 'Gilroy', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 130px;
    font-style: normal;
}

.tab-button.selected {
    background-color: white;
    border-top: none;
    border-left: 1px solid #008080;
    border-right: 1px solid #008080;
}

.tab-button.leftmost {
    border-left: 1px solid #008080;
}

.tab-button.rightmost {
    border-right: 1px solid #008080;
}

.tab-button span {
    font-weight: bold;
    font-size: 14px;
    color: white;
    font-family: 'Gilroy', sans-serif;
    font-style: normal;
    transition: color 0.3s ease;
}

.tab-button.selected span {
    color: #1e1e1e;
}

.tab-button:hover:not(.selected) {
    background-color: rgba(0, 128, 128, 0.1);
}

/* Tab Icon Styling */
.tab-icon-img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1) saturate(0%);
    transition: filter 0.3s ease;
}

.tab-button.selected .tab-icon-img {
    filter: brightness(0) saturate(100%);
}

/* Tab Button Border Extensions */
.tab-button.leftmost::after {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    width: 1px;
    height: 1rem;
    background-color: #008080;
}

.tab-button.rightmost::after {
    content: '';
    position: absolute;
    right: 0;
    top: 100%;
    width: 1px;
    height: 1rem;
    background-color: #008080;
}

.tab-button.leftmost.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 1rem;
    background-color: white;
    z-index: 1;
}

.tab-button.rightmost.selected::before {
    content: '';
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    height: 1rem;
    background-color: white;
    z-index: 1;
}

.tab-button.selected::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 1rem;
    background-color: white;
    z-index: 1;
}

/* Mobile Dropdown Styling */
.mobile-dropdown {
    display: none;
    position: relative;
    margin-bottom: 1.5rem;
}

.dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 100px;
    border: 1px solid #008080;
    background: transparent;
    cursor: pointer;
    font-family: 'Gilroy', sans-serif;
    transition: background-color 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(0, 128, 128, 0.1);
}

.dropdown-toggle > div:first-child {
    flex: 1;
    padding-left: 1.5rem;
}

.dropdown-title {
    color: #f15e2b;
    font-size: 20px;
    font-weight: 600;
    text-align: left;
    margin: 0;
    font-family: 'Gilroy', sans-serif;
}

.dropdown-toggle > div:last-child {
    background-color: #008080;
    border-radius: 100%;
    width: 77px;
    height: 77px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-dropdown-icon {
    width: 38px;
    height: 38px;
    transition: transform 0.3s ease;
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background-color: #111;
    border-radius: 20px;
    padding: 0.5rem;
    z-index: 10;
    border: 1px solid #565656;
}

.dropdown-option {
    width: 100%;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-option > div {
    border-radius: 100px;
    height: 39px;
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    gap: 0.5rem;
    background-color: transparent;
    border: 1px solid #565656;
    font-family: 'Gilroy', sans-serif;
    transition: all 0.3s ease;
}

.dropdown-option > div.selected {
    background-color: white;
}

.dropdown-option > div p {
    font-size: 16px;
    font-weight: 500;
    color: white;
    margin: 0;
    font-family: 'Gilroy', sans-serif;
    transition: color 0.3s ease;
}

.dropdown-option > div.selected p {
    color: #111;
}

/* Mobile Dropdown Option Icons */
.dropdown-option .tab-icon-img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1) saturate(0%);
    transition: filter 0.3s ease;
}

.dropdown-option > div.selected .tab-icon-img {
    filter: brightness(0) saturate(100%);
}

/* Subtitle Section */
.subtitle-section {
    border-top: 1px solid #008080;
    padding: 2.25rem 1.5rem;
    display: none;
}

.tab-subtitle {
    font-size: 20px;
    color: white;
    font-weight: 500;
    line-height: normal;
    margin: 0;
    font-family: 'Gilroy', sans-serif;
}

/* Mobile Subtitle Section */
.subtitle-section-mobile {
    border-top: 1px solid #008080;
    padding: 2.25rem 0;
    display: none;
}

.tab-subtitle-mobile {
    font-size: 14px;
    color: white;
    font-weight: 500;
    line-height: normal;
    margin: 0;
    font-family: 'Gilroy', sans-serif;
}

/* Content Cards Container */
.content-cards-container {
    width: 100%;
    box-sizing: border-box;
    display: none;
}

.content-cards-container.active {
    display: block;
}

.content-card {
    border-radius: 15px;
    min-height: 250px;
    border: 1px solid #565656;
    margin-bottom: 3rem;
    width: 100%;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.content-card h3 {
    font-size: 36px;
    font-weight: 800;
    color: #f15e2b;
    margin: 0 0 1.5rem 0;
    font-family: 'Gilroy', sans-serif;
}

.content-card p {
    font-size: 16px;
    color: white;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    font-family: 'Gilroy', sans-serif;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .tabs-container-desktop {
        display: none !important;
    }

    .mobile-dropdown {
        display: block !important;
    }

    .subtitle-section {
        display: none !important;
    }

    .subtitle-section-mobile {
        display: block !important;
        border-top: none !important;
    }
}

@media (min-width: 1024px) {
    .tabs-container-desktop {
        display: flex !important;
    }

    .mobile-dropdown {
        display: none !important;
    }

    .subtitle-section {
        display: block !important;
    }

    .subtitle-section-mobile {
        display: none !important;
    }
}
