/* --- BANNER OVERLAY */
.banner-overlay {
    position: relative;
}

.banner-overlay::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

/* Center all banner content vertically */
.banner-inner {
    min-height: 80vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    padding-top: 40px;       
}


/* Ensure content stays above overlay */
.banner-overlay .container,
.banner-overlay .banner-inner,
.banner-overlay * {
    position: relative;
    z-index: 2;
}


/* --- FULL RESPONSIVE --- */

/* Make banner text scale on all screens */
.section-subtext {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    padding-top: clamp(40px, 10vw, 120px);
    text-align: center;
}

/* Country grid auto-fit */
.country-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    margin-top: 25px;
    padding: 0 20px;
}

/* Base country-box — auto-resize using aspect ratio */
.country-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-width: 250px;
    margin: auto;
    border-radius: 14px;
    border: 2px solid #ddd;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: 0.25s ease;
    overflow: hidden;
}

/* Label stays clean */
.country-label {
    background: rgba(0,0,0,0.65);
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 7px 0;
    font-size: clamp(0.8rem, 1.6vw, 1rem);
    font-weight: 600;
}

/* Hover effect only on desktop */
@media (min-width: 900px) {
    .country-box:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .country-container {
        gap: 18px;
    }
}

/* Medium phones */
@media (max-width: 768px) {
    .section-subtext {
        padding-top: 100px;
    }
}

/* Small phones */
@media (max-width: 600px) {
    .section-subtext {
        padding-top: 60px;
        font-size: clamp(2.8rem, 9vw, 4.2rem);
    }
}

/* Extra-small phones */
@media (max-width: 400px) {
    .country-container {
        gap: 12px;
        font-size: clamp(2.6rem, 11vw, 3.8rem);
    }
}

/* Fix layout when phone is rotated horizontally */
@media screen and (max-width: 900px) and (orientation: landscape) {
    
    /* Reduce banner height so content fits comfortably */
    .banner-inner {
        min-height: 70vh;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Reduce heading size slightly to avoid overflow */
    .section-subtext {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        line-height: 1.2;
        padding-top: 40px;
    }

    /* Adjust grid so items fit across wide but short screens */
    .country-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 14px;
    }

    /* Slightly shrink boxes for short height */
    .country-box {
        max-width: 180px;
        aspect-ratio: 4 / 3;
    }
}





