/* WhyCori Interactive Tabs and Cards CSS */

/* Tab Navigation */
.metric-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}


.tab {
    font-size: 18px;
    font-weight: 600;
    color: #999; /* Slightly lighter default color */
    padding: 10px 5px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab:hover {
    color: #CCCCCC; /* Much lighter hover color for better visibility */
}

.tab.active {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #00a8e1; /* Primary color */
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
    min-height: 600px; /* Set minimum height to prevent layout shifts */
}

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


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


.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tab-text h3 {
    font-size: 32px;
    margin-bottom: 24px;
    font-weight: 600;
}

.tab-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #999999; /* Slightly dimmer for better balance */
}

.tab-visual img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Feature Lists */
.feature-list {
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 16px;
    color: #BBBBBB; /* Brighter color for better readability */
    list-style: none;
}

.feature-list li i {
    color: #00a8e1; /* Primary color */
    margin-right: 10px;
    margin-top: 4px;
}

/* Zones Grid */
.zones-grid {
    margin-top: 30px;
}

.zone-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.zone-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 15px;
}

.zone-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.zone-info p {
    font-size: 14px;
    margin-bottom: 0;
    color: #666;
}

/* Trends List */
.trends-list {
    margin-top: 30px;
}

.trend-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.trend-icon {
    width: 40px;
    height: 40px;
    background-color: #00a8e1; /* Primary color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #fff;
    font-size: 18px;
}

.trend-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.trend-info p {
    font-size: 14px;
    margin-bottom: 0;
    color: #666;
}

/* Why It Matters Section */
.why-it-matters {
    padding: 80px 0 80px 0; /* Add bottom padding below the cards */
    background-color: #1F252A;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 0; /* Remove margin to keep spacing consistent */
}

/* Mobile: Ensure no gap between Section 2.2 and 2.3 */
@media (max-width: 768px) {
    .why-it-matters {
        margin-bottom: 0;
        padding-bottom: 60px; /* Keep some bottom padding on mobile */
    }
}


.matter-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.matter-header h2 {
    font-family: 'Montserrat', sans-serif; /* Match Section 2.3 */
    font-size: clamp(2rem, 5vw, 3rem); /* Match Section 2.3 responsive size */
    font-weight: 600; /* Match Section 2.3 weight */
    color: #000000; /* Black color */
    margin: 0 0 2rem 0; /* Match Section 2.3 margins */
}

.matter-header p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

.matters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}


.matter-item {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}


.matter-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.matter-icon {
    font-size: 36px;
    color: #00a8e1; /* Primary color */
    margin-bottom: 10px; /* Reduced from 20px to 10px */
}

.matter-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.matter-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* WhyCori Page Backgrounds */

#section1.body-section {
    background-color: #000000 !important;
}

/* Metrics Overview Container */
.metrics-overview {
    min-height: 800px; /* Ensure consistent height for the entire section */
    padding: 2rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tab-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Reorder tab grid for mobile: image first, then text */
    .tab-grid {
        display: flex;
        flex-direction: column;
    }
    
    .tab-visual {
        order: 1; /* Image first */
        padding-top: 2rem; /* Add padding above image on mobile */
    }
    
    .tab-text {
        order: 2; /* Text second */
    }
    
    .metric-tabs {
        flex-direction: row; /* Keep horizontal on mobile */
        gap: 15px; /* Gap between tabs */
        flex-wrap: nowrap; /* Prevent wrapping */
        justify-content: flex-start; /* Align to start */
        overflow-x: auto; /* Enable horizontal scrolling */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        padding: 10px 0; /* Padding for scroll area */
        margin: 0 -20px; /* Negative margin to extend scroll area */
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .tab {
        text-align: center;
        padding: 10px 16px; /* More padding for better tap area */
        border: 1px solid #eee;
        border-radius: 8px;
        font-size: 14px; /* Smaller font for mobile */
        flex: 0 0 auto; /* Don't grow or shrink */
        min-width: fit-content; /* Maintain natural width */
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    .tab.active::after {
        display: none;
    }
    
    .tab.active {
        background-color: #00a8e1;
        color: white;
    }
    
    .matters-grid {
        grid-template-columns: 1fr 1fr; /* 2x2 grid for mobile */
        gap: 20px; /* Reduced gap for better spacing */
    }
    
    .matter-item {
        padding: 20px 15px; /* Reduced padding for mobile 2x2 layout */
    }
    
    .matter-item h3 {
        font-size: 18px; /* Slightly smaller heading for mobile */
    }
    
    .matter-item p {
        font-size: 14px; /* Smaller text for mobile */
    }
    
    .matter-icon {
        margin-bottom: 5px; /* Further reduced gap on mobile */
    }
    
    /* Adjust heights for mobile */
    .metrics-overview {
        min-height: 1000px; /* Taller on mobile due to stacked layout */
    }
    
    .tab-content {
        min-height: 800px; /* Adjust tab content height for mobile */
    }
}