/* ========================================
   VISA & IMMIGRATION SERVICES WORLDWIDE
   ======================================== */

.countries-services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.countries-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.countries-services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.countries-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

/* Country Service Card */
.country-service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.country-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.country-service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(30, 64, 175, 0.2);
    border-color: #3b82f6;
}

/* Featured Card */
.country-service-card.featured {
    border: 3px solid #fbbf24;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    position: relative;
}

.country-service-card.featured::before {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

/* Featured Ribbon */
.featured-ribbon-corner {
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    padding: 5px 45px;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    z-index: 10;
}

/* Country Card Header */
.country-card-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 40px 30px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.country-service-card.featured .country-card-header {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* Country Flag Circle */
.country-flag-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    transition: all 0.4s ease;
    background: white;
}

.country-service-card:hover .country-flag-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.country-flag-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges */
.popular-badge,
.trending-badge,
.featured-badge-country,
.new-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.popular-badge {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.trending-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: white;
}

.featured-badge-country {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.new-badge {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    color: white;
}

/* Country Card Body */
.country-card-body {
    padding: 35px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.country-card-body h3 {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
}

.country-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    text-align: center;
    margin-bottom: 25px;
    min-height: 65px;
}

/* Services List */
.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.service-tag {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #bfdbfe;
    transition: all 0.3s ease;
}

.service-tag:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    transform: translateX(5px);
}

.service-tag i {
    font-size: 14px;
    color: #3b82f6;
}

.country-service-card.featured .service-tag {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
    color: #92400e;
}

.country-service-card.featured .service-tag i {
    color: #d97706;
}

/* Country Highlights */
.country-highlights {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    margin-top: auto;
}

.highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

.highlight i {
    font-size: 20px;
    color: #3b82f6;
}

.country-service-card.featured .highlight i {
    color: #f59e0b;
}

/* Country Card Footer */
.country-card-footer {
    padding: 0 30px 30px;
}

.btn-country {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-country::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-country:hover::before {
    width: 300px;
    height: 300px;
}

.btn-country:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-country i {
    transition: transform 0.3s ease;
}

.btn-country:hover i {
    transform: translateX(5px);
}

.country-service-card.featured .btn-country {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    color: #1f2937;
}

.country-service-card.featured .btn-country:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Call to Action */
.countries-cta {
    margin-top: 60px;
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.3);
    position: relative;
    z-index: 1;
}

.countries-cta::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #1e40af, #3b82f6, #60a5fa, #3b82f6, #1e40af);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

.countries-cta:hover::before {
    opacity: 1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.countries-cta h3 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.countries-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.countries-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.countries-cta .btn i {
    transition: transform 0.3s ease;
}

.countries-cta .btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .countries-services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .countries-services-section {
        padding: 60px 0;
    }

    .countries-services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .country-card-header {
        padding: 30px 20px 20px;
    }

    .country-flag-circle {
        width: 100px;
        height: 100px;
    }

    .country-card-body {
        padding: 25px 20px;
    }

    .country-card-body h3 {
        font-size: 24px;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .country-highlights {
        flex-direction: column;
        gap: 12px;
    }

    .countries-cta {
        padding: 35px 25px;
    }

    .countries-cta h3 {
        font-size: 26px;
    }

    .countries-cta p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .country-service-card {
        border-radius: 15px;
    }

    .country-card-body h3 {
        font-size: 22px;
    }

    .country-desc {
        font-size: 14px;
        min-height: auto;
    }

    .service-tag {
        font-size: 12px;
        padding: 8px 10px;
    }

    .btn-country {
        padding: 14px;
        font-size: 14px;
    }

    .featured-ribbon-corner {
        font-size: 10px;
        padding: 4px 40px;
    }
}
