/* Tabs Benefits Widget Styles */

.tabs-benefits-wrapper {
    width: 100%;
}

/* Header Styles */
.tabs-header {
    text-align: center;
    margin-bottom: 40px;
}

.tabs-heading {
    font-size: 32px;
    font-weight: 600;
    color: #1a3a52;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.tabs-description {
    font-size: 16px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Tabs Container */
.tabs-container {
    width: 100%;
}

/* Tabs Buttons Wrapper */
.tabs-buttons-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling for buttons wrapper */
.tabs-buttons-wrapper::-webkit-scrollbar {
    height: 6px;
}

.tabs-buttons-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.tabs-buttons-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.tabs-buttons-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Tab Button Styles */
.tab-button {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background-color: #f5f5f5;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}

.tab-button:hover {
    border-color: #999;
    background-color: #efefef;
}

.tab-button.active {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

/* Tab Content Wrapper */
.tab-content-wrapper {
    position: relative;
    min-height: 400px;
}

/* Individual Tab Content */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Tab Content Inner - Two Column Layout */
.tab-content-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Tab Text Section */
.tab-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tab-content-heading {
    font-size: 28px;
    font-weight: bold;
    color: #1a3a52;
    margin: 0;
    line-height: 1.2;
}

.tab-content-description {
    font-size: 15px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

/* Read More Link */
.tab-read-more {
    display: inline-block;
    color: #333333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    width: fit-content;
    margin-top: 8px;
}

.tab-read-more:hover {
    color: #0066cc;
}

/* Tab Image */
.tab-image {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f5f5f5;
}

.tab-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.tab-image:hover img {
    transform: scale(1.02);
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .tab-content-inner {
        gap: 30px;
    }

    .tabs-heading {
        font-size: 28px;
    }

    .tabs-description {
        font-size: 15px;
    }

    .tab-content-heading {
        font-size: 24px;
    }

    .tab-content-description {
        font-size: 14px;
    }

    .tab-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .tabs-header {
        margin-bottom: 30px;
    }

    .tabs-heading {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .tabs-description {
        font-size: 14px;
    }

    .tabs-buttons-wrapper {
        gap: 8px;
        margin-bottom: 30px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        padding: 10px 16px;
        font-size: 13px;
        border-width: 1px;
    }

    /* Stack content on mobile */
    .tab-content-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tab-content-heading {
        font-size: 20px;
    }

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

    .tab-read-more {
        font-size: 13px;
    }

    .tab-image {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .tabs-header {
        margin-bottom: 24px;
        text-align: center;
    }

    .tabs-heading {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .tabs-description {
        font-size: 13px;
    }

    .tabs-buttons-wrapper {
        gap: 6px;
        margin-bottom: 24px;
    }

    .tab-button {
        padding: 8px 12px;
        font-size: 12px;
        min-width: fit-content;
    }

    .tab-content-inner {
        gap: 20px;
    }

    .tab-content-heading {
        font-size: 18px;
    }

    .tab-content-description {
        font-size: 12px;
        line-height: 1.5;
    }

    .tab-read-more {
        font-size: 12px;
    }

    .tab-image {
        min-height: 200px;
    }
}

/* Accessibility */
.tab-button:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.tab-read-more:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Smooth transitions */
.tab-button {
    -webkit-tap-highlight-color: transparent;
}

/* Print styles */
@media print {
    .tabs-buttons-wrapper {
        display: none;
    }

    .tab-content {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 30px;
    }
}
