/* ============================================
   Tabbed Content Section Styles
   ============================================ */

/* Section Container */
.section-tabbed-content {
    position: relative;
    overflow: hidden;
}

/* Tabbed Content Wrapper */
.section-tabbed-content .tabbed-content-wrapper {
    background-color: var(--paperwise-teal);
    border-radius: 40px;
    overflow: hidden;
}

/* Tab Navigation */
.section-tabbed-content .tab-navigation {
    display: flex;
    gap: 0;
    background-color: #f4f3ea;
    border-radius: 33px 33px 0 0;
}

.section-tabbed-content .tab-button {
    flex: 1;
    padding: 20px 16px;
    background-color: var(--paperwise-teal);
    border: none;
    border-radius: 33px 33px 0 0;
    color: #F4F3EA;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 0.6666666666666666em;
    letter-spacing: 0.016666666666666666em;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
    opacity: 0.6;
}

.section-tabbed-content .tab-button:hover:not(.active) {
    opacity: 0.8;
}

.section-tabbed-content .tab-button.active {
    opacity: 1;
}

.section-tabbed-content .tab-button:focus-visible {
    outline: 2px solid var(--paperwise-accent);
    outline-offset: -2px;
    z-index: 1;
}

/* Tab Panels */
.section-tabbed-content .tab-panels {
    position: relative;
    min-height: 400px;
}

.section-tabbed-content .tab-panel {
    padding: 60px 80px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.section-tabbed-content .tab-panel.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Tab Content Text */
.section-tabbed-content .tab-content-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tab Title */
.section-tabbed-content .tab-title {
    font-family: 'Impact', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2197265625em;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.section-tabbed-content .tab-title .title-line-1 {
    color: #F4F3EA;
    display: block;
}

.section-tabbed-content .tab-title .title-line-2 {
    color: var(--paperwise-accent);
    display: block;
}

/* Tab Description */
.section-tabbed-content .tab-description {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5714285714285714em;
    letter-spacing: 0.028571428571428571em;
    color: #F4F3EA;
    text-align: left;
	width: 85%;
}

/* Tab Button Wrapper */
.section-tabbed-content .tab-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Tab Image */
.section-tabbed-content .tab-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-tabbed-content .tab-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    display: block;
}
@media (max-width: 1440px) {
    .section-tabbed-content .container{
        max-width: 1240px;
    }
}
/* Responsive - Tablet */
@media (max-width: 991px) {
    .section-tabbed-content .tab-button {
        font-size: 20px;
        padding: 16px 12px;
    }

    .section-tabbed-content .tab-panel {
        padding: 48px 40px;
    }

    .section-tabbed-content .tab-title {
        font-size: 30px;
    }

    .section-tabbed-content .tab-description {
        font-size: 13px;
    }

    .section-tabbed-content .tab-panels {
        min-height: 500px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .section-tabbed-content .tab-navigation {
        flex-wrap: wrap;
    }

    .section-tabbed-content .tab-button {
        flex: 1 1 50%;
        font-size: 18px;
        padding: 14px 10px;
        min-width: 50%;
    }

    /* First two tabs */
    .section-tabbed-content .tab-button:nth-child(1),
    .section-tabbed-content .tab-button:nth-child(2) {
        border-radius: 33px 33px 0 0;
    }

    /* Last two tabs (if they exist) */
    .section-tabbed-content .tab-button:nth-child(3),
    .section-tabbed-content .tab-button:nth-child(4) {
        border-radius: 0;
    }

    .section-tabbed-content .tab-panel {
        padding: 32px 24px;
    }

    .section-tabbed-content .tab-title {
        font-size: 26px;
    }

    .section-tabbed-content .tab-description {
        font-size: 12px;
    }

    .section-tabbed-content .tab-panels {
        min-height: 600px;
    }

    /* Stack content vertically on mobile */
    .section-tabbed-content .row {
        flex-direction: column-reverse;
    }

    .section-tabbed-content .tab-image {
        margin-bottom: 24px;
    }
}

@media (max-width: 576px) {
    .section-tabbed-content .tab-button {
        font-size: 16px;
        padding: 12px 8px;
        letter-spacing: 0.01em;
    }

    .section-tabbed-content .tab-panel {
        padding: 24px 16px;
    }

    .section-tabbed-content .tab-title {
        font-size: 22px;
        letter-spacing: 0.12em;
    }

    .section-tabbed-content .tab-description {
        font-size: 11px;
    }

    .section-tabbed-content .tabbed-content-wrapper {
        border-radius: 35px;
    }

    .section-tabbed-content .tab-button {
        border-radius: 24px 24px 0 0;
    }

    .section-tabbed-content .tab-button:nth-child(1),
    .section-tabbed-content .tab-button:nth-child(2) {
        border-radius: 24px 24px 0 0;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .section-tabbed-content .tab-button,
    .section-tabbed-content .tab-panel {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .section-tabbed-content {
        page-break-inside: avoid;
    }

    .section-tabbed-content .tab-navigation {
        display: none;
    }

    .section-tabbed-content .tab-panel {
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        page-break-inside: avoid;
    }
}
