/* Countries List Redesign - Modern Card Layout */
.countries-page {
    min-height: 100vh;
    padding: 2rem 0;
    padding-top: 0;
}

.countries-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}
.countries-container .social-media.social-links i, .social-media.social-share i{
    color: black;
    margin-top: 20px;
    margin-left: 10px;
}

.countries-title {
    font-size: 2.5rem;
    font-weight: 700;
    /* background: linear-gradient(45deg, #667eea, #764ba2); */
    background-clip: text;
    margin-bottom: 1rem;
    text-align: center;
    color: rgb(0, 0, 0);
}

.countries-subtitle {
    color: #3c3c3c;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}
.country-card .country-name {
    color: white !important;
}
.country-card {
    background: #00bdf7;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d5dcff, #c3b6d1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.country-card:hover::before {
    transform: scaleX(1);
}

.country-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    background: #0183ab;
}

.country-flag-wrapper {
    display: flex
    ;
        align-items: center;
        justify-content: center;
        width: 78px;
        height: 78px;
        margin: 0 auto 1rem;
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        border-radius: 15px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.country-flag {
    width: 73px;
    height: 69px;
    object-fit: cover;
    /* border-radius: 50%; */
    transition: transform 0.3s ease;
}

.country-card:hover .country-flag {
    transform: scale(1.1);
}

.country-name {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.country-card:hover .country-name {
    color: #667eea;
}

.country-name:hover {
    text-decoration: none;
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .country-card {
        padding: 1.25rem;
    }
    
    .countries-title {
        font-size: 2rem;
    }
    
    .countries-container {
        margin-top: 0px;
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .country-card {
        padding: 1rem;
    }
    
    .country-flag-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .country-flag {
        width: 40px;
        height: 40px;
    }
}

/* Animation for page load */
.country-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.country-card:nth-child(1) { animation-delay: 0.1s; }
.country-card:nth-child(2) { animation-delay: 0.15s; }
.country-card:nth-child(3) { animation-delay: 0.2s; }
.country-card:nth-child(4) { animation-delay: 0.25s; }
.country-card:nth-child(5) { animation-delay: 0.3s; }
.country-card:nth-child(6) { animation-delay: 0.35s; }
.country-card:nth-child(7) { animation-delay: 0.4s; }
.country-card:nth-child(8) { animation-delay: 0.45s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.countries-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced title styling */
.title-section {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.title-section::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d5dcff, #c3b6d1);
    border-radius: 2px;
}

/* Search functionality enhancement */
.countries-search {
    max-width: 400px;
    margin: 0 auto 2rem;
    position: relative;
}

.countries-search input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.countries-search input:focus {
    outline: none;
    border-color: #667eea;
}

/* No countries found message */
.no-countries {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.no-countries i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* Additional enhancements for better visual appeal */
.countries-page .main-container {
    background: transparent;
    padding: 0;
}

/* Flag fallback styling */
.flag-fallback {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Better hover transitions */
.country-card {
    cursor: pointer;
}

.country-card:hover {
    cursor: default;
}

.country-card a.country-name:hover {
    cursor: pointer;
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
    .countries-container {
         
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #e9ecef;
    }
    
    .country-card {
        background: #2d3748;
        color: #e9ecef;
    }
    
    .country-name {
        color: #e9ecef;
    }
    
    .country-card:hover .country-name {
        color: #9f7aea;
    }
    
    .countries-subtitle {
        color: #a0aec0;
    }
} */

/* Print styles */
@media print {
    .countries-page {
        background: white !important;
        padding: 0;
    }
    
    .countries-container {
        box-shadow: none;
        background: white;
    }
    
    .country-card {
        break-inside: avoid;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
}


li.flag-menu.country-flag.d-md-block.d-sm-none.d-none.nav-item{
    width: 121px;
}



#live-support-container{
    direction: ltr;
}