/* Enhanced Tab Styles - Sleeker and Modern Design */

/* Force single line layout and override any conflicting styles */
.about-tabs-container {
    overflow: visible !important; /* Allow content to be visible */
    width: 100% !important; /* Use full width */
    max-width: 100% !important; /* Ensure no width restrictions */
}

.about-tabs.wide-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-height: 60px !important; /* Ensure consistent height */
    width: 100% !important; /* Use full width */
    max-width: none !important; /* Remove any max-width restrictions */
}

/* Enhanced tab container - ensure single line layout */
.about-tabs {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* Prevent wrapping */
    padding: 25px 20px !important; /* Add horizontal padding */
    gap: 30px !important; /* Increased gap for better spacing */
    overflow: visible !important; /* Show all content */
    scrollbar-width: none !important; /* Hide scrollbar */
    width: 100% !important; /* Use full width */
    max-width: none !important; /* Remove max-width restrictions */
}

.about-tabs::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar for webkit browsers */
}

/* Sleek modern tab styling */
.tab-item {
    font-size: 1.3rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important; /* Sleeker gray color */
    margin: 0 !important; /* Remove margins, use gap instead */
    padding: 12px 24px !important; /* Balanced padding */
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; /* Smoother easing */
    border: none;
    background-color: transparent;
    letter-spacing: 0.025em !important; /* Subtle letter spacing */
    text-transform: uppercase;
    white-space: nowrap !important; /* Prevent text wrapping */
    border-radius: 8px !important; /* Subtle rounded corners */
    flex-shrink: 0 !important; /* Prevent shrinking */
}

/* Sleek hover effect with background */
.tab-item:hover {
    color: var(--primary-color) !important;
    background-color: rgba(59, 130, 246, 0.08) !important; /* Subtle background */
    transform: translateY(-1px) !important; /* Subtle lift */
}

/* Modern active tab styling */
.tab-item.active {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    background-color: rgba(59, 130, 246, 0.12) !important; /* Slightly stronger background */
}

/* Sleek active tab indicator */
.tab-item.active:after {
    content: '' !important;
    position: absolute !important;
    bottom: 6px !important; /* Moved up from edge */
    left: 50% !important;
    transform: translateX(-50%) !important; /* Center the indicator */
    width: 24px !important; /* Smaller, more elegant indicator */
    height: 3px !important;
    background: linear-gradient(90deg, var(--primary-color), #3b82f6) !important; /* Gradient indicator */
    border-radius: 2px !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3) !important; /* Subtle glow */
}

/* Enhanced tab container */
.about-tabs {
    padding: 20px 0 !important; /* Added more vertical padding */
}

/* Fix spacing between hero and tabs on ADU page */
.hero + .about-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero + .about-section .about-tabs-container {
    margin-top: 0 !important;
}

/* Responsive design - maintain single line */
@media (max-width: 1024px) {
    .tab-item {
        font-size: 1.2rem !important;
        padding: 10px 20px !important;
    }
    
    .about-tabs {
        gap: 15px !important;
        padding: 18px 0 !important;
    }
}

@media (max-width: 768px) {
    .tab-item {
        font-size: 1.1rem !important;
        padding: 8px 16px !important;
    }
    
    .about-tabs {
        gap: 20px !important; /* Maintain good spacing */
        padding: 15px 15px !important; /* Balanced padding */
    }
}

@media (max-width: 640px) {
    .tab-item {
        font-size: 1rem !important;
        padding: 8px 12px !important;
    }
    
    .about-tabs {
        gap: 15px !important; /* Maintain reasonable spacing */
        padding: 12px 10px !important; /* Proper side padding */
    }
}

/* Very small screens - maintain readability */
@media (max-width: 480px) {
    .tab-item {
        font-size: 0.95rem !important;
        padding: 6px 10px !important;
        letter-spacing: 0.01em !important;
    }
    
    .about-tabs {
        gap: 10px !important; /* Maintain minimum spacing */
        padding: 10px 8px !important; /* Ensure side padding */
        justify-content: center !important; /* Keep centered */
        overflow-x: auto !important; /* Allow horizontal scroll if needed */
    }
}

/* Enhanced and sleeker tab separator */
.tab-separator {
    height: 1px !important; /* Thinner, more elegant */
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.1) 80%, transparent 100%) !important;
    margin: 15px 0 !important;
    border: none !important;
}

/* Additional styling for tab containers */
.about-tabs-container {
    position: relative !important;
}

.about-tabs-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.05) 50%, transparent 100%) !important;
}
