/*slider*/

#slider {
    /* z-index: -1020; */
    border-radius: 2rem;

}

#slider-img {
    width: 100%;
    object-fit: cover;
    max-height: 60vh;

    position: relative;
    z-index: -1;
    height: 60vmin;

    /* place holder start */
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 15%, #f0f0f0 50%, rgba(255, 255, 255, 0) 85%);
    background-repeat: no-repeat;
    background-size: 50%;
    -webkit-animation: test 4s infinite;
    /* Chrome, Safari, Opera */
    animation: test 4s infinite;
    /* place holder end */


}

#slider-gradiant {
    background: rgb(0, 0, 0);

    background: linear-gradient(15deg, #343434 5%, rgba(0, 0, 0, 0) 50%);
    /* linear-gradient(0deg, var(--color-sliderGradiant) 12%, rgba(255, 255, 255, 0) 59%); */
}

#slider-btn {
    visibility: hidden;
}

#slider-text {
    color: #ffffff;
    margin-left: -20px;
    /*margin-bottom: -20px;*/
    font-size: 30px;
    text-transform: uppercase;
    font-weight: bold;
}

/*svg*/


.dropdown-menu {
    display: none;
    position: absolute;
    width: 100%;
    bottom: 100%; /* Add this line */
}


.dropdown-menu.show {
    display: block;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 10px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 30px;
}

/*bar*/

.pulsating-circle {
    position: absolute;
    margin-right: -30px;
    transform: translateX(-50%) translateY(-50%);
    width: 30px;
    height: 30px;
    direction: rtl;
}

.pulsating-circle:before {
    content: "";
    position: relative;
    display: block;
    width: 300%;
    height: 300%;
    box-sizing: border-box;
    margin-top: -30px;
    margin-right: -30px;
    border-radius: 45px;
    background-color: rgba(114, 114, 114, 0.71);
    -webkit-animation: pulse-ring 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    animation: pulse-ring 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulsating-circle:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #d5a519;
    border-radius: 15px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    -webkit-animation: pulse-dot 1.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -0.4s infinite;
    animation: pulse-dot 1.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -0.4s infinite;
}

@-webkit-keyframes pulse-ring {
    0% {
        transform: scale(0.23);
    }
    80%, 100% {
        opacity: 0;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.33);
    }
    80%, 100% {
        opacity: 0;
    }
}

@-webkit-keyframes pulse-dot {
    0% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.9);
    }
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.8);
    }
}

.step-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #b7b7b7;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
}

.step.active {
    background-color: #d5a519;
}

.bar.active {
    background-color: #d5a519;
}

.bar {
    flex-grow: 1;
    height: 5px;
    background-color: #ababab;
    margin: 0 20px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .step {
        width: 30px;
        height: 30px;
    }

    .bar {
        margin: 0 10px;
    }

}

/* استایل‌های موبایل */
@media only screen and (max-width: 600px) {
    .text-content {
        max-height: 35em;
    }
}

/* استایل‌های دسکتاپ */
@media only screen and (min-width: 601px) {
    .text-content {
        max-height: 20em;
    }
}

.text-content {
    position: relative;
    overflow: hidden;
    line-height: 1.5em;
    margin-bottom: 1em;
    transition: max-height 0.5s ease;

}

.fade-effect::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.show-more-btn {
    cursor: pointer;
    width: 100px; /* Adjust width as needed */
    bottom: 50px;
}

/*country card*/
.country-card {
    display: flex;
    align-items: center;
    background: rgba(112, 146, 190, 0.08);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.country-card:hover {
    background: rgba(112, 146, 190, 0.12);
    border-color: #7092be;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(112, 146, 190, 0.15);
}

.flag-section {
    flex: 0 0 50px;
    margin-left: 12px;
}

.flag-container {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flag-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-info {
    flex: 1;
    margin-left: 12px;
    min-width: 0; /* برای جلوگیری از overflow */
}

.country-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.country-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

.special-badge {
    background: linear-gradient(135deg, #d8a81a, #b8941a);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(216, 168, 26, 0.3);
    white-space: nowrap;
}

.country-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.operator-text {
    font-size: 12px;
    color: #7092be;
    font-weight: 500;
    white-space: nowrap;
}

.desc-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    position: relative;
}
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* فاصله بین برچسب‌ها */
}

.badges-container .desc-badge {
    display: inline-block;
}

.desc-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.desc-badge.popular {
    background: linear-gradient(135deg, #d8a81a, #c49419);
    color: white;
    box-shadow: 0 2px 4px rgba(216, 168, 26, 0.3);
}

.desc-badge.popular::before {
    background: rgba(255, 255, 255, 0.8);
}

.desc-badge.guaranteed {
    background: linear-gradient(135deg, #7092be, #5a7ba8);
    color: white;
    box-shadow: 0 2px 4px rgba(112, 146, 190, 0.3);
}

.desc-badge.guaranteed::before {
    background: rgba(255, 255, 255, 0.8);
}

.count-section {
    flex: 0 0 60px;
    text-align: center;
    margin-left: 12px;
}

.count-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.count-number {
    font-size: 16px;
    font-weight: 600;
    color: #7092be;
    line-height: 1;
}

.count-label {
    font-size: 10px;
    color: #6c757d;
    margin-top: 2px;
}

.price-section {
    flex: 0 0 auto;
}

.price-btn {
    background: linear-gradient(135deg, #d8a81a, #c49419);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    box-shadow: 0 2px 6px rgba(216, 168, 26, 0.3);
}

.price-btn:hover {
    background: linear-gradient(135deg, #c49419, #b08416);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(216, 168, 26, 0.4);
}

.price-amount {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.price-currency {
    font-size: 10px;
    opacity: 0.9;
    margin-top: 1px;
}

/* Focus states for accessibility */
.country-card:focus {
    outline: 2px solid #7092be;
    outline-offset: 2px;
}

.price-btn:focus {
    outline: 2px solid #d8a81a;
    outline-offset: 2px;
}

/* Modern home experience */
:root {
    --home-primary: #146BFF;
    --home-primary-dark: #0b4dcc;
    --home-ink: #14213d;
    --home-border: rgba(20, 107, 255, .12);
}

body { background: #f5f8ff; }
.home-shell {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: clamp(.75rem, 2vw, 1.75rem);
}
.home-app-card,
.home-shell > .shadow {
    border: 1px solid var(--home-border);
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 50px rgba(23,72,145,.09) !important;
}
.home-app-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1rem,2.2vw,2rem) !important;
    border-radius: 1.5rem !important;
}
.home-app-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #146BFF, #63a4ff, #9b7bff);
}
.home-app-card > .alert {
    color: #16458f;
    background: #edf4ff;
    border: 1px solid #d9e8ff !important;
    opacity: 1 !important;
}
.home-app-card h1 {
    color: var(--home-ink);
    font-size: clamp(1.45rem,2.8vw,2.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-top: 1.25rem;
}
.home-app-card hr { border-color: var(--home-border); opacity: 1; }
.step-container { padding: 1.25rem .75rem 1.5rem; }
.step {
    background: #dbe6f8;
    box-shadow: inset 0 0 0 5px #fff, 0 4px 12px rgba(20,107,255,.12);
}
.step.active, .bar.active, .pulsating-circle:after { background-color: #146BFF; }
.bar { height: 4px; background: #e4ebf7; margin-inline: 1rem; }
.home-app-card .spa > div {
    border: 1px solid var(--home-border);
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(36,88,160,.07);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.home-app-card .spa > div:hover {
    border-color: rgba(20,107,255,.42);
    box-shadow: 0 14px 28px rgba(20,107,255,.14);
    transform: translateY(-4px);
}
.home-app-card .spa h5 { color: var(--home-ink); font-weight: 700; margin-top: .65rem; }
.home-app-card #serviceInput,
.home-app-card #myInput {
    min-height: 54px;
    border: 1px solid #dce6f6;
    border-radius: .9rem;
    background: #fbfdff;
    box-shadow: 0 6px 18px rgba(35,84,150,.05);
}
.home-app-card #serviceInput:focus,
.home-app-card #myInput:focus {
    border-color: #146BFF;
    box-shadow: 0 0 0 4px rgba(20,107,255,.12);
}
.home-app-card #serviceList {
    border: 1px solid var(--home-border);
    border-radius: .9rem;
    box-shadow: 0 16px 35px rgba(23,72,145,.14);
}
.home-app-card #countries_area { padding: .35rem !important; }
.country-card {
    background: #fff;
    border: 1px solid #e4ecf8;
    box-shadow: 0 5px 15px rgba(36,88,160,.05);
}
.country-card:hover {
    background: #f7faff;
    border-color: rgba(20,107,255,.4);
    box-shadow: 0 10px 24px rgba(20,107,255,.12);
}
.operator-text, .count-number { color: #146BFF; }
.price-btn {
    background: linear-gradient(135deg, #146BFF, #4b91ff);
    box-shadow: 0 7px 16px rgba(20,107,255,.24);
}
.price-btn:hover { background: linear-gradient(135deg, #0b4dcc, #146BFF); }
.home-shell > .shadow:not(.home-app-card) {
    border-radius: 1.25rem !important;
    padding: clamp(1rem,2vw,1.5rem) !important;
}
.home-shell > .shadow:not(.home-app-card) h3 { color: var(--home-ink); font-weight: 800; }
.home-shell .container-image { overflow: hidden; }
.home-shell .post-image { transition: transform .35s ease; }
.home-shell .rounded-4.shadow-sm:hover .post-image { transform: scale(1.05); }
.color-purple { color: #146BFF !important; }
.bg-purple { background-color: #146BFF !important; }
@media (max-width: 576px) {
    .home-app-card { border-radius: 1rem !important; }
    .home-app-card .spa > div { padding: .75rem !important; }
    .step-container { padding-inline: .2rem; }
    .bar { margin-inline: .45rem; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .country-card {
        padding: 10px;
    }

    .flag-section {
        flex: 0 0 40px;
        margin-left: 8px;
    }

    .flag-container {
        width: 35px;
        height: 35px;
    }

    .country-info {
        margin-left: 8px;
    }

    .country-details {
        gap: 6px;
    }

    .count-section {
        flex: 0 0 50px;
        margin-left: 8px;
    }

    .price-btn {
        min-width: 70px;
        padding: 6px 12px;
    }

    .price-amount {
        font-size: 12px;
    }

    .desc-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .country-name {
        font-size: 13px;
    }

    .operator-text {
        font-size: 11px;
    }

    .count-number {
        font-size: 14px;
    }

    .country-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .desc-badge {
        font-size: 11px;
        padding: 2px 10px;
    }

    .desc-badge::before {
        width: 4px;
        height: 4px;
    }
}

/* Dark mode support */
/*@media (prefers-color-scheme: dark) {*/
/*    .country-card {*/
/*        background: rgba(112, 146, 190, 0.15);*/
/*    }*/

/*    .country-card:hover {*/
/*        background: rgba(112, 146, 190, 0.25);*/
/*    }*/

/*    .country-name {*/
/*        color: #e9ecef;*/
/*    }*/

/*    .operator-text {*/
/*        color: #a8c5e8;*/
/*    }*/

/*    .count-label {*/
/*        color: #adb5bd;*/
/*    }*/
/*}*/
