.country-box-single {
    margin-bottom: 32px;
}

.country-image {
    max-width: 1128px;
    margin: 0 auto;
    position: relative;
}

.country-image img {
    width: 100%;
    height: 458px;
    object-fit: cover;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

.country-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.10) 12.33%);
    pointer-events: none;
    border-radius: 24px;
}

.country-title-box {
    position: absolute;
    top: 25px;
    display: flex;
    justify-content: space-between;
    max-width: 1048px;
    margin: 0 auto;
    right: 4%;
    left: 4%;
    align-items: flex-start;
    z-index: 9;
}

.country-title,
.country-title-en {
    font-size: 40px;
    font-weight: 800;
    color: rgba(255, 255, 255, 1);
    margin: 0;

}

.post-title {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 10px;
}

.post-title .page-flags-country {
    background-size: auto 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    background-position: calc(var(--flag-index) * -40px) 0 !important;
}

.weather-box {
    display: flex;
    flex-direction: column;
    direction: ltr;
    font-weight: 700;
    align-items: center;
    color: #fff;
    font-size: 23px;
}

.weather-icon svg {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.sunny {
    animation: pulse 2s infinite;
}

.rainy {
    animation: bounce 1.5s infinite;
}

.cloudy {
    animation: float 3s infinite;
}

.thunder {
    animation: shake 0.5s infinite;
}

.snowy {
    animation: spin 4s infinite linear;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#weatherDetails {
    display: flex;
}

/* start g2-country-search-box */
.g2-country-search-box {
    display: flex;
    max-width: 913px;
    margin: 0 auto;
    border: 1px solid rgba(215, 218, 220, 1);
    box-shadow: 0px 118px 33px 0px rgba(0, 0, 0, 0.00), 0px 75px 30px 0px rgba(0, 0, 0, 0.01), 0px 42px 25px 0px rgba(0, 0, 0, 0.02), 0px 19px 19px 0px rgba(0, 0, 0, 0.03), 0px 5px 10px 0px rgba(0, 0, 0, 0.04), 0px 0px 0px 0px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    position: relative;
    margin-top: -60px;
    background-color: #fff;
    gap: 20px;
    padding: 19px;
    align-items: end;
}
.g2-countries-loading{
  background: url(../icon/countries/spinner.gif) no-repeat center;
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto;
}
.g2-country-search-box-logo-container {
    overflow: hidden;
    width: 93px;
    height: 68px;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 24px;
}

.g2-country-search-box-logo {
    position: absolute;
    content: url(../images/country-search-box-logo.svg);
    width: 117px;
    height: 115px;
    left: -32px;
    top: -48px;
}

.search-button-country-box {
    max-width: 125px;
    border: 1px solid rgba(230, 175, 46, 1);
    justify-content: center;
    display: flex;
    height: 36px;
    text-align: center;
    border-radius: 8px;
    align-items: center;
    font-weight: 800;
    font-size: 16px;
    color: rgba(230, 175, 46, 1);
    overflow: hidden;
    white-space: nowrap;
    z-index: 9;
    position: relative;
    padding: 16px 12px 16px 16px;
}

.search-button-country-box::after {
    content: url(../images/arrow_back.svg);
    width: 16px;
    height: 16px;
    position: relative;
    bottom: 0px;
    right:5px;
}

.g2-country-search-item,
.g2-country-search-input {
    background-color: #fff;
    border: 1px solid #F2F3F3;
    border-radius: 8px;
    padding: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 5px;
}

.g2-country-search-item-dropdown {
    position: relative;
    flex: 1;
}

.g2-country-search-input {
    align-self: flex-start;
}

.g2-country-search-item-arrow {
    background: url('../icon/countries/arrow-down.svg') no-repeat;
    width: 24px;
    height: 24px;
    position: absolute;
    z-index: 8;
    left: 3px;
    top: 30px;
    cursor: pointer;
}

.g2-country-search-delete-btn a {
    padding: 10px 15px !important;
}

.g2-country-search-item-list {
    display: none;
    background-color: #fff;
    position: absolute;
    z-index: 99;
    border: 1px solid #F5DFAB;
    border-radius: 8px 8px 40px 40px;
    max-height: 235px;
    overflow-y: scroll;
    margin-top: 9px;
    min-width: 165px;
    padding: 10px 0px;
    width: 100%;
}

.g2-country-search-item-box {
    padding: 5px 10px;
    margin: 0 10px 15px;
    width: calc(100% - 20px);
    box-sizing: border-box;
}

.g2-country-search-item-list li {
    margin-bottom: 10px;
    list-style: none;
    border-bottom: 1px solid #F2F3F3;
    padding-bottom: 13px;
    padding-right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.g2-country-search-item-list li:last-child {
    border: none;
}

.g2-country-search-item {
    text-align: center;
    align-self: flex-start;
}

.page-flags-country {
    background-size: auto 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    background-position: calc(var(--flag-index) * -18px) 0 !important;

}

/* end g2-country-search-box */
/* start country-data */
.country-data--container {
    max-width: 100%;
    display: flex;
    width: 1128px;
    min-width: 224px;
    padding: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0px;
    border-radius: 8px;
    border: 1px solid #D7DADC;
    background: #FFF;
    box-shadow: 0px 118px 33px 0px rgba(0, 0, 0, 0.00), 0px 75px 30px 0px rgba(0, 0, 0, 0.01), 0px 42px 25px 0px rgba(0, 0, 0, 0.02), 0px 19px 19px 0px rgba(0, 0, 0, 0.03), 0px 5px 10px 0px rgba(0, 0, 0, 0.04), 0px 0px 0px 0px rgba(0, 0, 0, 0.04);
}

.country-data--row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    list-style: none;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    height: 29px;
}

.country-data--row li {
    min-width: 270px;
    max-width: 380px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-start;
    margin: 0;
    position: relative;
}

.country-data--row li:nth-child(1) {
    min-width: 225px;
}

.country-data--row li:nth-child(2) {
    min-width: 290px;
}

.country-data--row li:nth-child(3) {
    min-width: 252px;
}

.country-data--row li:nth-child(4) {
    min-width: 310px;
}

.country-data--row li p {
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.country-data--row li:nth-child(1)::after,
.country-data--row li:nth-child(2)::after,
.country-data--row li:nth-child(3)::after {
    content: "";
    width: 1px;
    height: 27px;
    background: #c4c4c3;
    position: absolute;
    left: 9px;
}

.country-data--title-description {
    color: #AFB5B9;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

.country-data-hr-row {
    width: 100%;
    background: #c4c4c3;
    height: 1px !important;
}

/* end country-data */
@media (max-width: 767px) {
    .g2-country-search-box {
        flex-flow: column;
    }

    .g2-country-search-item-dropdown {
        width: 100%;
    }

    .search-button-country-box {
        width: 100%;
        max-width: unset;
    }
}


@media (max-width: 575.99px) {
    .country-image img {
        height: 264px;
        border-radius: 0;
        margin-top: 0;
    }

    .g2-country-search-box-logo-container {
        overflow: hidden;
        width: 93px;
        height: 68px;
        position: absolute;
        top: 0;
        left: 0;
    }

    .g2-country-search-box {
        margin-top: -62px;
        align-items: center;
    }

    .g2-country-search-box-logo {
        left: -28px;
        top: -63px;
    }

    .g2-country-search-box {
        width: 90%;

    }

    .country-data--container {
        width: 90%;

    }

    .country-data--row li {
        max-width: unset;
        min-width: unset;
        width: 100%;
    }

    .country-data--row {
        height: unset;
    }

    .country-data--row li:nth-child(2)::after {
        width: unset;
        height: unset;
    }

    .country-data-hr-row {
        display: none;
    }

    .country-data--row li:nth-child(1)::after,
    .country-data--row li:nth-child(2)::after,
    .country-data--row li:nth-child(3)::after {
        width: unset;
        height: unset;
    }

    .country-data--row li p {
        width: 100%;
        justify-content: space-between;
        display: flex;
        font-size: 13px;
    }

    .country-data--row li:nth-child(1),
    .country-data--row li:nth-child(2),
    .country-data--row li:nth-child(3),
    .country-data--row li:nth-child(4) {
        min-width: unset;
    }

    .country-data--row li svg {
        min-width: 20px;
    }

    .country-data--row li {
        gap: 4px;
    }

    .weather-box {
        font-size: 19px;
    }

    .country-title {
        font-size: 24px;
    }

    .post-title .page-flags-country {
        background-size: auto 32px !important;
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        background-position: calc(var(--flag-index) * -32px) 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 991.9px) {

    .g2-country-search-box {
        width: 90%;

    }

    .country-data--container {
        width: 90%;

    }

    .country-data--row li {
        max-width: unset;
        min-width: 48%;
    }

    .country-data--row {
        height: unset;
    }

    .country-data--row li:nth-child(2)::after {
        width: unset;
        height: unset;
    }

    .country-data-hr-row {
        display: none;
    }

    .country-data--row li:nth-child(1),
    .country-data--row li:nth-child(2),
    .country-data--row li:nth-child(3),
    .country-data--row li:nth-child(4) {
        min-width: 48%;
    }

    .country-data--row li p {
        font-size: 12px;
    }

    /*  End  heading part of country single page   End  */
}

@media (min-width: 576px) and (max-width: 767.99px) {
    .country-data--row {
        height: unset;
    }

    .g2-country-search-box {
        width: 90%;

    }

    .country-data--container {
        width: 90%;

    }

    .country-data--row li {
        max-width: unset;
        min-width: 48%;
    }

    .country-data--row {
        height: unset;
    }

    .country-data--row li:nth-child(2)::after {
        width: unset;
        height: unset;
    }

    .country-data-hr-row {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1199.9px) {
    .g2-country-search-box {
        width: 90%;

    }

    .country-data--container {
        width: 90%;

    }

    .country-data--row li {
        max-width: unset;
        min-width: 48%;
    }

    .country-data--row {
        height: unset;
    }

    .country-data--row li:nth-child(2)::after {
        width: unset;
        height: unset;
    }

    .country-data-hr-row {
        display: none;
    }

    .country-data--row li:nth-child(1),
    .country-data--row li:nth-child(2),
    .country-data--row li:nth-child(3),
    .country-data--row li:nth-child(4) {
        min-width: 48%;
    }

    .country-data--row li p {
        font-size: 12px;
    }

}