* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #7cb342 0%, #8bc34a 50%, #aed581 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-in;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.header-content {
    flex: 1;
    min-width: 300px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 2em;
}

.logo-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #558b2f;
}

h1 {
    font-size: 2.5em;
    color: #33691e;
    margin-bottom: 10px;
}

.subtitle {
    color: #7cb342;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.header-description {
    color: #689f38;
    line-height: 1.6;
    max-width: 500px;
}

.header-illustration {
    flex: 0 0 400px;
    text-align: center;
    font-size: 10em;
}

.controls {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 18px 22px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.control-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

label {
    font-weight: 600;
    font-size: 0.95em;
    color: #558b2f;
}

select, input[type="date"] {
    padding: 10px 14px;
    border: 2px solid #c5e1a5;
    border-radius: 10px;
    font-size: 1em;
    background: white;
    color: #33691e;
    cursor: pointer;
    transition: all 0.3s ease;
    /* make inputs consistent size while allowing some flexibility */
    min-width: 160px;
    width: 220px;
    max-width: 320px;
}

/* Normalize date input font and appearance across browsers */
input[type="date"] {
    font-family: inherit; /* use same font as body */
    font-size: 1em; /* same size as other controls */
    line-height: 1.2;
    color: inherit;
    appearance: none;
    -webkit-appearance: none; /* remove differing native UI on WebKit */
    -moz-appearance: textfield; /* better cross-browser baseline */
}

/* Re-enable basic calendar affordance spacing on WebKit while keeping font consistent */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: none;
}

/* WebKit-specific internal editable areas (ensure displayed text uses site font) */
input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-text {
    font-family: inherit;
    font-size: 1em;
    line-height: 1.2;
    color: inherit;
}

/* Firefox - try to force same font for the internal text (best-effort) */
input[type="date"]::-moz-focus-inner {
    font-family: inherit;
}

select:hover, input[type="date"]:hover {
    border-color: #7cb342;
}

select:focus, input[type="date"]:focus {
    outline: none;
    border-color: #558b2f;
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    background: linear-gradient(135deg, #7cb342, #558b2f);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(85, 139, 47, 0.3);
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 139, 47, 0.4);
}

.mode-toggle {
    display: flex;
    gap: 10px;
}

.mode-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #c5e1a5;
    color: #558b2f;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: #7cb342;
    color: white;
    border-color: #7cb342;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 18px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    animation: slideUp 0.5s ease-out;
    transition: transform 0.3s ease;
    border-left: 5px solid #7cb342;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-icon {
    font-size: 2.4em;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.2em;
    font-weight: bold;
    color: #33691e;
    margin: 6px 0;
    /* keep number and unit on the same line */
    white-space: nowrap;
    display: inline-block;
}

.stat-label {
    font-size: 0.95em;
    color: #689f38;
    font-weight: 500;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.chart-title {
    color: #33691e;
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.models-grid {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.models-title {
    font-size: 1.5em;
    margin-bottom: 25px;
    text-align: center;
    color: #33691e;
    font-weight: 600;
}

.model-card {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-left: 5px solid #7cb342;
    transition: all 0.3s ease;
}

.model-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.model-name {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    color: #33691e;
}

.model-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    font-size: 0.95em;
}

.model-stat-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 8px;
}

.model-stat-item strong {
    color: #558b2f;
    display: block;
    margin-bottom: 5px;
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.5em;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    color: #558b2f;
}

.error {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    color: #c62828;
}

footer {
    text-align: center;
    padding: 30px;
    color: #fff;
    font-size: 0.9em;
    margin-top: 40px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .controls {
        flex-direction: column;
    }

    /* make inputs fill the available width on small screens */
    select, input[type="date"] {
        width: 100%;
        min-width: 0;
    }

    .header-illustration {
        font-size: 6em;
    }

    .model-stats {
        grid-template-columns: 1fr;
    }
}

/* Section éducative principale */
.education-section {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.education-main-title {
    font-size: 2em;
    text-align: center;
    color: #2e7d32;
    margin-bottom: 35px;
    font-weight: 700;
}

/* Cards d'impact */
.impact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.impact-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #66bb6a;
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.impact-icon {
    font-size: 3em;
    text-align: center;
    margin-bottom: 15px;
}

.impact-card h3 {
    color: #2e7d32;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
}

.impact-card p {
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.stat-highlight {
    background: rgba(102, 187, 106, 0.15);
    border-left: 4px solid #66bb6a;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95em;
    color: #2e7d32;
    margin-top: 15px;
}

/* Section source scientifique */
.source-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 6px solid #7cb342;
}

.source-section h3 {
    color: #33691e;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.source-section p {
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.methodology-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.methodology-list li {
    background: rgba(124, 179, 66, 0.1);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: #33691e;
    font-weight: 500;
    transition: all 0.2s ease;
}

.methodology-list li:hover {
    background: rgba(124, 179, 66, 0.2);
    transform: translateX(5px);
}

.source-link {
    margin-top: 20px;
    text-align: center;
}

.source-link a {
    display: inline-block;
    background: linear-gradient(135deg, #66bb6a 0%, #7cb342 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.3);
}

.source-link a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 179, 66, 0.4);
    background: linear-gradient(135deg, #7cb342 0%, #66bb6a 100%);
}

/* Section actions */
.action-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.action-section h3 {
    color: #33691e;
    font-size: 1.5em;
    margin-bottom: 25px;
    text-align: center;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-item {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-item:hover {
    border-color: #7cb342;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(124, 179, 66, 0.2);
}

.action-emoji {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

.action-item p {
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

.action-item strong {
    color: #2e7d32;
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

/* Call to action box */
.cta-box {
    background: linear-gradient(135deg, #66bb6a 0%, #7cb342 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 25px rgba(124, 179, 66, 0.3);
}

.cta-box h4 {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-box p {
    font-size: 1.1em;
    line-height: 1.8;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive design */
@media (max-width: 768px) {
    .education-section {
        padding: 25px;
    }
    
    .education-main-title {
        font-size: 1.6em;
    }
    
    .impact-cards {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .source-section,
    .action-section {
        padding: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .impact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Section actualités */
.news-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.news-title {
    font-size: 1.5em;
    margin-bottom: 25px;
    text-align: center;
    color: #33691e;
    font-weight: 600;
}

.news-loading {
    text-align: center;
    padding: 30px;
    color: #558b2f;
    font-size: 1.1em;
}

.news-error {
    background: rgba(255, 152, 0, 0.1);
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    color: #e65100;
    margin: 20px 0;
}

.news-container {
    column-count: 2;
    column-gap: 15px;
    width: 100%;
}

.news-card {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    border-radius: 12px;
    padding: 15px;
    border-left: 5px solid #7cb342;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding-bottom: 15px;
    break-inside: avoid;
    /* allow card height to fit content (no large empty blocks when no summary) */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-card h4 {
    color: #33691e;
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.4;
}

.news-card h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card h4 a:hover {
    color: #7cb342;
}

.news-summary {
    color: #689f38;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
    padding-bottom: 15px;
    /* don't force growth when there's no text */
    flex-grow: 0;
    min-height: 0;
}

/* hide empty summary elements to avoid blank space */
.news-summary:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #5d8233;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(124, 179, 66, 0.2);
}

.news-date {
    font-weight: 600;
}

.news-source {
    font-style: italic;
    color: #5d8233 !important;
}

.news-meta a {
    color: #5d8233 !important;
    text-decoration: none;
}

.news-meta a:visited {
    color: #5d8233 !important;
}

@media (max-width: 768px) {
    .news-container {
        column-count: 1;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .news-container {
        column-count: 2;
    }
}

@media (min-width: 1201px) {
    .news-container {
        column-count: 3;
    }
}
/* Navigation */
.navigation {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 20px;
    background: white;
    border: 2px solid #c5e1a5;
    color: #558b2f;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: #f1f8e9;
    border-color: #7cb342;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.2);
}

.nav-link:focus,
.nav-link:focus-visible {
    outline: 3px solid rgba(124,179,66,0.18);
    outline-offset: 3px;
}

.nav-link.active {
    background: linear-gradient(135deg, #7cb342, #558b2f);
    color: white;
    border-color: #7cb342;
    box-shadow: 0 4px 15px rgba(85, 139, 47, 0.3);
}

.nav-link.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 139, 47, 0.4);
}

/* Styles pour la page datacenter-map */

.datacenter-content {
    padding: 2rem 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Map Section */
.map-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.map-section .section-header h2 {
    color: white;
}

.map-section .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.map-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

#worldMap {
    height: 600px;
    width: 100%;
}

/* Map Legend */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
}

.legend-marker.operational {
    background: #27ae60;
}

.legend-marker.planned {
    background: #f39c12;
}

.legend-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Map Stats */
.map-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Datacenters List Section */
.datacenters-list-section {
    margin: 4rem 0;
}

.datacenters-list-section > h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
}

.datacenters-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.datacenter-category {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #3498db;
}

.category-header h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
}

.category-count {
    background: #3498db;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
}

.datacenter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.datacenter-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border-left: 5px solid transparent;
    cursor: pointer;
}

.datacenter-card.operational {
    border-left-color: #27ae60;
}

.datacenter-card.planned {
    border-left-color: #f39c12;
}

.datacenter-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.datacenter-card:active {
    transform: translateY(-5px) scale(1.01);
}

.card-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.datacenter-card.operational .card-status-badge {
    background: #d5f4e6;
    color: #27ae60;
}

.datacenter-card.planned .card-status-badge {
    background: #fef5e7;
    color: #f39c12;
}

.datacenter-card h4 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
}

.location-detail {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.datacenter-description {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.datacenter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 0.35rem 0.9rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Partners Section */
.partners-section {
    margin: 4rem 0;
    text-align: center;
}

.partners-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.partners-intro {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.partner-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.partner-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.partner-card:active {
    transform: translateY(-3px) scale(1.01);
}

.partner-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.partner-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.partner-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    padding: 0 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
}

#modalBody {
    padding: 2.5rem;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

.modal-icon {
    font-size: 3rem;
}

.modal-title {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section p {
    color: #34495e;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #34495e;
    line-height: 1.6;
}

.modal-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-datacenters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.modal-datacenters h4 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.datacenter-tag-inline {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 0.25rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .datacenter-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .datacenter-content {
        padding: 1rem 0;
    }

    .map-section,
    .datacenter-category {
        padding: 2rem 1.5rem;
    }

    .section-header h2,
    .datacenters-list-section > h2,
    .partners-section h2 {
        font-size: 1.8rem;
    }

    #worldMap {
        height: 400px;
    }

    .map-legend {
        flex-direction: column;
        gap: 1rem;
    }

    .datacenter-grid {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .map-stats {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .map-section,
    .datacenter-category {
        padding: 1.5rem 1rem;
    }

    .datacenter-card {
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    #worldMap {
        height: 300px;
    }
}