/* international-partnerships.css - Map layout, country details, and logo grid */

/* ==========================================
   1. Hero Header
   ========================================== */
.map-hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 100%), url('../../assets/images/hero-section/international-partnerships.webp') no-repeat center center/cover;
    color: var(--color-white);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--color-accent-main);
}

.map-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(123, 97, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.map-hero h1 {
    color: var(--color-white);
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-sm);
    line-height: 1.25;
}

.map-hero p {
    color: var(--color-sky-blue);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.map-badge {
    background-color: rgba(124, 206, 250, 0.15);
    color: var(--color-sky-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(124, 206, 250, 0.3);
}

/* ==========================================
   2. World Map Section
   ========================================== */
.map-section-main {
    padding: var(--spacing-xxl) 0;
}

.map-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.map-visual-container {
    background: var(--color-bg-very-light-grey);
    border: 1px solid var(--color-light-blue);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
}

.world-svg-map {
    width: 100%;
    height: auto;
    max-height: 420px;
}

/* SVG map node style */
.map-node {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.map-node:hover, .map-node.active {
    fill: var(--color-accent-hover);
    r: 12px;
    filter: drop-shadow(0 0 10px rgba(123, 97, 255, 0.8));
}

/* Country Details Cards */
.country-details-pane {
    position: relative;
    min-height: 280px;
}

.country-card {
    display: none;
    background: var(--color-white);
    border: 1px solid var(--color-light-blue);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-soft);
}

.country-card.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.country-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--color-light-blue);
    padding-bottom: var(--spacing-xs);
}

.country-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.country-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.country-stats li {
    font-size: 0.95rem;
}

.country-stats li strong {
    color: var(--color-primary-blue);
}

/* ==========================================
   3. Responsive Adaptations
   ========================================== */
@media (max-width: 991px) {
    .map-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .world-svg-map text {
        display: none; /* Hide map text markers on mobile to avoid overflow */
    }
    .logos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
