/**
 * Info Tabs Section Styling
 * Interactive tabs with left navigation and right content
 */

.info-tabs-section {
    margin: 4rem auto;
}

.info-tabs-card {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

/* Left Side - Navigation */
.info-tabs-nav-wrapper {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    padding: 0;
}

.info-tabs-nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
}

.info-tab-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    border-left: 4px solid transparent;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.info-tab-link i:first-child {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-tab-link i:last-child {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.info-tab-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: white;
}

.info-tab-link:hover i:last-child {
    opacity: 1;
    transform: translateX(0);
}

.info-tab-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: white;
}

.info-tab-link.active i:last-child {
    opacity: 1;
    transform: translateX(0);
}

/* Right Side - Content */
.info-tabs-content-wrapper {
    background: white;
    padding: 3rem;
}

.info-tabs-content {
    position: relative;
    min-height: 400px;
}

.info-tab-pane {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.info-tab-pane.active {
    display: block;
}

.tab-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tab-icon i {
    font-size: 2rem;
    color: white;
}

.info-tab-pane h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
}

.info-tab-pane p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bs-secondary);
    margin-bottom: 1rem;
}

/* Steps List */
.info-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.info-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
}

.info-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.info-steps li strong {
    display: block;
    font-size: 1.1rem;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

.info-steps li p {
    margin: 0;
    color: var(--bs-secondary);
}

/* Benefits List */
.info-benefits {
    list-style: none;
    padding: 0;
}

.info-benefits li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.info-benefits li i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-benefits li strong {
    display: block;
    font-size: 1.1rem;
    color: var(--bs-dark);
    margin-bottom: 0.25rem;
}

.info-benefits li p {
    margin: 0;
    color: var(--bs-secondary);
}

/* FAQ */
.info-faq {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    padding: 1.5rem;
    background: var(--bs-light);
    border-radius: 12px;
    border-left: 4px solid var(--bs-primary);
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-dark);
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin: 0;
    color: var(--bs-secondary);
}

/* Section Title */
.info-tabs-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    position: relative;
    padding-bottom: 1rem;
}

.info-tabs-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    border-radius: 2px;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Support */
[data-bs-theme="dark"] .info-tabs-section .section-title {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .info-tabs-section .info-tabs-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .info-tabs-section .info-tabs-content-wrapper {
    background: rgba(255, 255, 255, 0.03);
}

[data-bs-theme="dark"] .info-tabs-section .info-tab-pane h3 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .info-tabs-section .info-tab-pane p,
[data-bs-theme="dark"] .info-tabs-section .info-steps li p,
[data-bs-theme="dark"] .info-tabs-section .info-benefits li p,
[data-bs-theme="dark"] .info-tabs-section .faq-item p {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-bs-theme="dark"] .info-tabs-section .info-steps li strong,
[data-bs-theme="dark"] .info-tabs-section .info-benefits li strong,
[data-bs-theme="dark"] .info-tabs-section .faq-item h4 {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .info-tabs-section .faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--bs-primary);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .info-tabs-section {
        margin: 3rem auto;
    }
    
    .info-tabs-card {
        border-radius: 12px;
    }
    
    .info-tabs-nav-wrapper {
        background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
        border-radius: 12px 12px 0 0;
    }
    
    .info-tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1rem;
        gap: 0.75rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scroll-behavior: smooth;
    }
    
    .info-tab-link {
        flex-direction: column;
        flex-shrink: 0;
        padding: 1rem 1.25rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        min-width: 110px;
        text-align: center;
        gap: 0.5rem;
        white-space: nowrap;
    }
    
    .info-tab-link i:first-child {
        font-size: 1.75rem;
    }
    
    .info-tab-link span {
        font-size: 0.875rem;
        font-weight: 600;
    }
    
    .info-tab-link i:last-child {
        display: none;
    }
    
    .info-tab-link:hover,
    .info-tab-link.active {
        border-left: none;
        border-bottom-color: white;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .info-tabs-content-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 0 0 12px 12px;
    }
    
    .info-tabs-content {
        min-height: 350px;
    }
}

@media (max-width: 767.98px) {
    .info-tabs-section {
        margin: 2rem auto;
    }
    
    .info-tabs-card {
        border-radius: 8px;
    }
    
    .info-tabs-nav-wrapper {
        border-radius: 8px 8px 0 0;
    }
    
    .info-tabs-nav {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .info-tab-link {
        min-width: 90px;
        padding: 0.875rem 1rem;
    }
    
    .info-tab-link i:first-child {
        font-size: 1.5rem;
    }
    
    .info-tab-link span {
        font-size: 0.75rem;
    }
    
    .info-tabs-content-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 0 0 8px 8px;
    }
    
    .info-tabs-content {
        min-height: 300px;
    }
    
    .tab-icon {
        width: 60px;
        height: 60px;
    }
    
    .tab-icon i {
        font-size: 1.5rem;
    }
    
    .info-tab-pane h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .info-tab-pane p {
        font-size: 0.95rem;
    }
    
    .info-steps li {
        padding-left: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .info-steps li::before {
        width: 2rem;
        height: 2rem;
        font-size: 0.95rem;
    }
    
    .info-steps li strong {
        font-size: 1rem;
    }
    
    .info-benefits li {
        gap: 0.75rem;
    }
    
    .info-benefits li i {
        font-size: 1.25rem;
    }
    
    .info-benefits li strong {
        font-size: 1rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .faq-item h4 {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .info-tabs-section {
        margin: 1.5rem auto;
    }
    
    .info-tab-link {
        min-width: 80px;
        padding: 0.75rem 0.75rem;
    }
    
    .info-tab-link i:first-child {
        font-size: 1.25rem;
    }
    
    .info-tab-link span {
        font-size: 0.7rem;
    }
    
    .info-tabs-content-wrapper {
        padding: 1.25rem 0.875rem;
    }
    
    .tab-icon {
        width: 50px;
        height: 50px;
    }
    
    .tab-icon i {
        font-size: 1.25rem;
    }
    
    .info-tab-pane h3 {
        font-size: 1.25rem;
    }
    
    .info-steps li {
        padding-left: 2.5rem;
    }
    
    .info-steps li::before {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.875rem;
    }
}

/* Smooth scrolling for mobile tabs */
.info-tabs-nav::-webkit-scrollbar {
    height: 6px;
}

.info-tabs-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.info-tabs-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.info-tabs-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Scroll hint for mobile */
@media (max-width: 991.98px) {
    .info-tabs-nav-wrapper::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to left, rgba(0, 86, 179, 0.8), transparent);
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
    }
    
    .info-tabs-nav-wrapper.scrolled-end::after {
        opacity: 0;
    }
    
    .info-tabs-nav-wrapper {
        position: relative;
    }
}
