/* =========================================
   NEW PRESENCE SECTION STYLES
   ========================================= */

.presence-section {
    padding: 100px 0;
    /* Clean white background */
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Optional: Add map background to the section itself */
.presence-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url('../assets/world-map-dots.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.05;
    /* Very subtle */
    pointer-events: none;
    z-index: 0;
}

.presence-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 10;
}

.presence-header-center h2 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #12131A;
    margin-bottom: 16px;
}

.presence-header-center p {
    font-family: 'Segoe UI', 'Inter', sans-serif;
    font-size: 18px;
    color: #4A4A4A;
    line-height: 1.6;
}

/* Simple Grid Layout */
.presence-grid-simple {
    display: grid;
    /* Create responsive columns that are at least 150px wide, simpler and cleaner */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    row-gap: 20px;
    column-gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    /* No borders or heavy backgrounds */
}

.country-item {
    font-family: 'Segoe UI', 'Inter', sans-serif;
    font-size: 16px;
    color: #4A4A4A;
    /* Neutral dark grey */
    font-weight: 400;
    display: flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: default;
}

/* Optional: Subtle hover effect */
.country-item:hover {
    color: #009689;
    /* Brand Accent */
    transform: translateX(4px);
}


.country-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #cbd5e1;
    /* Light grey dot */
    border-radius: 50%;
    display: block;
    margin-right: 12px;
    transition: background-color 0.2s ease;
}

.country-item:hover::before {
    background-color: #009689;
}

@media (max-width: 768px) {
    .presence-grid-simple {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .presence-grid-simple {
        grid-template-columns: repeat(2, 1fr);
        /* Keep 2 cols even on mobile for compactness if names fit, or 1 if long */
    }
}
/* Certifications Row */
.presence-certs-container {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 10;
}

.presence-cert-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 32px 24px;
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.presence-cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Soft shadow like image */
    border-color: #e0e0e0;
}

.cert-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.presence-cert-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.presence-cert-card p {
    font-family: 'Segoe UI', 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .presence-certs-container {
        gap: 20px;
        margin-top: 60px;
    }
    .presence-cert-card {
        width: 100%;
        max-width: 280px;
    }
}

/* =========================================
   UPDATES FOR SPLIT LAYOUT
   ========================================= */

.presence-split-layout {
    display: flex;
    justify-content: center;
    gap: 60px; /* Spacious gap between images and list */
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Left Column: Vertical Stack of Images or Grid */
.presence-images-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
    width: 220px; /* Fixed width for the image stack */
}

/* Ensure images are cards */
.cert-image-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
}

.cert-image-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Right Column: The Grid - Flex-grow to take remaining space */
.presence-grid-simple {
    flex-grow: 1;
    max-width: none; 
    margin: 0; 
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
}

/* Responsive */
@media (max-width: 1024px) {
    .presence-split-layout {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .presence-split-layout {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .presence-images-col {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .cert-image-card {
        width: 140px; 
    }

    .presence-grid-simple {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
}
