/* Countries Listing Page Styles */

.countries-hero {
    background: linear-gradient(135deg, #0a3b5c 0%, #036 100%);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countries-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.countries-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.countries-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.countries-hero .subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.countries-hero .cta-text {
    font-size: 16px;
    margin-bottom: 30px;
    color: #ffcc00;
    font-weight: 600;
}

/* Countries Grid */
.countries-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.countries-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.countries-section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0a3b5c;
    margin-bottom: 15px;
}

.countries-section-title p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.country-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.country-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.country-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a3b5c, #036);
}

.country-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.country-card:hover .country-card-image img {
    transform: scale(1.05);
}

.country-flag {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    background-size: cover;
    background-position: center;
}

/* Flag backgrounds using external API */
.flag-uz { background-image: url('https://flagcdn.com/w80/uz.png'); }
.flag-ru { background-image: url('https://flagcdn.com/w80/ru.png'); }
.flag-tj { background-image: url('https://flagcdn.com/w80/tj.png'); }
.flag-ge { background-image: url('https://flagcdn.com/w80/ge.png'); }
.flag-bd { background-image: url('https://flagcdn.com/w80/bd.png'); }
.flag-kz { background-image: url('https://flagcdn.com/w80/kz.png'); }
.flag-kg { background-image: url('https://flagcdn.com/w80/kg.png'); }
.flag-ir { background-image: url('https://flagcdn.com/w80/ir.png'); }
.flag-eg { background-image: url('https://flagcdn.com/w80/eg.png'); }
.flag-am { background-image: url('https://flagcdn.com/w80/am.png'); }

.country-card-content {
    padding: 25px;
}

.country-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0a3b5c;
    margin-bottom: 15px;
}

.country-card-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.country-highlights {
    margin-bottom: 25px;
}

.country-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.country-highlights li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.country-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.country-card-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-primary {
    background: #0073e6;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-primary:hover {
    background: #005bb5;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #0073e6;
    padding: 12px 20px;
    border: 2px solid #0073e6;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-secondary:hover {
    background: #0073e6;
    color: white;
}

/* Featured Countries Section */
.featured-countries {
    margin-bottom: 60px;
}

.featured-countries .countries-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.featured-countries .country-card {
    border: 2px solid #ffcc00;
    position: relative;
}

.featured-countries .country-card::before {
    content: 'POPULAR';
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffcc00;
    color: #0a3b5c;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

/* CTA Section */
.countries-cta {
    background: linear-gradient(135deg, #0a3b5c 0%, #036 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.countries-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.countries-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.countries-cta .btn-cta {
    background: #ffcc00;
    color: #0a3b5c;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.countries-cta .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .countries-hero h1 {
        font-size: 36px;
    }
    
    .countries-hero .subtitle {
        font-size: 18px;
    }
    
    .countries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-countries .countries-grid {
        grid-template-columns: 1fr;
    }
    
    .country-card-cta {
        flex-direction: column;
    }
    
    .countries-section-title h2 {
        font-size: 28px;
    }
    
    .countries-cta h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .countries-container {
        padding: 40px 15px;
    }
    
    .country-card-content {
        padding: 20px;
    }
    
    .countries-hero {
        padding: 60px 0 40px;
    }
}
