.country-box {
  padding: 15px;
  transition: transform 0.3s ease;
  border-radius: 50%;
   background-image: url("../../image/banner/border.png");

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 200px;
  width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: -10px 10px 35px 17px rgba(0, 0, 0, 0.1);
  position: relative;
}


.inner-wrapper{
       border-radius: 50%;
       background: linear-gradient(135deg, #c0c0c0 15%,  #e6e6e6 41%,  #5b5012ed 95%, #d0cbb8a1 124%, #fff8dc 100% );
        height: 165px;
    width: 165px;
       display: flex;
    justify-content: center;
    align-items: center;
}

.country-box:hover {
    transform: rotate(-20deg) scale(1.05);
    transition: transform 0.7s;
    cursor: pointer;
}

.country-flag {
    box-shadow: #cabeb4fc -11px 23px 20px -2px;
    height: 4rem;
    width: 6rem;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.country-name {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: bold;
    overflow-x: visible;
    height: auto;
    width: 60px;
    position: absolute;
    border-radius: 50%;
    right: -13px;
    border-left: 2px solid #410808f4;
    top: 50%;
    transform: translateY(-50%);
    background-color: #E9E7E2;
    border: 15px solid #E9E7E2;
}

/* Tablet view */
@media (max-width: 900px) {
    .countries {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile view – flag top, name bottom */
@media (max-width: 500px) {
    .countries {
        grid-template-columns: 1fr;
    }

    .country-box {
        height: 160px;
        width: 160px;
    }

    .country-flag {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        display: block;
    }

    .country-name {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 8px auto 0 auto;
        display: block;
        width: fit-content;
        border: 8px solid #E9E7E2;
        font-size: 0.85rem;
    }
}

/* Tablet view */
@media (max-width: 900px) and (min-width: 501px) {
    .countries {
        grid-template-columns: repeat(2, 1fr);
    }

    .country-box {
        height: 180px;
        width: 180px;
    }

    .country-flag {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        display: block;
        height: 3.5rem;
        width: 5.5rem;
    }

    .country-name {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 8px auto 0 auto;
        display: block;
        width: fit-content;
        border: 10px solid #E9E7E2;
        font-size: 0.9rem;
    }
}