
/* Grid layout is enforced by layout.css — no need to repeat here */

/* Regions Page Specific Styles - Modernized & Compact */
.regions-hero {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
    color: white;
    padding: 40px 20px; /* Restored breathing room */
    text-align: center;
    /* Force gap: 
       Container Pad Top (20px) + Margin Top (10px) = 30px visual space from container top.
       Red banner is above container. 
       Let's try a distinct positive margin. */
    margin: 15px -20px 15px -20px !important; 
    position: relative;
    z-index: 5;
    border-radius: 8px 8px 0 0;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
}
.regions-hero h1 {
    font-size: 1.8em; /* Reduced from 2.5em */
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.regions-hero p {
    font-size: 0.95em; /* Reduced from 1.1em */
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.4;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px; /* Increased gap */
    padding-bottom: 50px;
    width: 100%;
}

.region-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.region-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.region-header {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.region-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important; /* Force visibility */
}

.region-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.region-flag {
    font-size: 1.8em;
}

.region-content {
    padding: 20px; /* Increased padding */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.region-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.region-description {
    font-size: 0.85em;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
}

.region-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.2em;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    display: block;
    font-size: 0.7em;
    color: #94a3b8;
    text-transform: uppercase;
}

.region-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.region-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .regions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: Full-width purple banner + 2-card horizontal carousel */
@media (max-width: 768px) {
    /* Sidebars hidden + block layout handled globally by layout.css */

    /* Content area full width */
    .content-area {
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    
    /* Compact headline & description */
    .regions-hero {
        margin: 0 !important;
        padding: 15px 10px !important;
        border-radius: 0 !important;
        width: 100% !important;
    }
    
    .regions-hero h1 {
        font-size: 1.3em !important;
        margin-bottom: 5px !important;
    }
    
    .regions-hero p {
        font-size: 0.82em !important;
        line-height: 1.3 !important;
    }
    
    /* 2-card horizontal carousel - FULL WIDTH */
    .regions-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 12px !important;
        /* Full screen width */
        margin: 20px 0 !important;
        padding: 0 15px 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        scrollbar-width: none !important; /* Firefox */
    }
    
    /* Hide scrollbar */
    .regions-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Each card takes up ~48% of screen width (2 cards visible) */
    .region-card {
        flex: 0 0 calc(50% - 8px) !important;
        min-width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        scroll-snap-align: start !important;
        min-height: 320px !important;
    }
    
    /* Compact card content for mobile */
    .region-header {
        height: 100px !important;
    }
    
    .region-content {
        padding: 12px !important;
    }
    
    .region-title {
        font-size: 0.95em !important;
        margin-bottom: 6px !important;
    }
    
    .region-description {
        font-size: 0.75em !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    
    .stat-number {
        font-size: 1em !important;
    }
    
    .stat-label {
        font-size: 0.65em !important;
    }
    
    .region-btn {
        padding: 6px !important;
        font-size: 0.8em !important;
    }
}



