/* ===== Travels Styles ===== */
/* intro Section */
.travels-intro {
    padding: 0 50px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.intro-image {
    flex: 0 0 400px;
    border-radius: 8px;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ccc;
}

/* Content Section */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.countries-section {
    padding: 60px 0;
}

.countries-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.countries-section h2 i {
    color: var(--primary-color);
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.country-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    aspect-ratio: 3.5/4;
    
}

.country-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.country-flag {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.country-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.country-card:hover .country-overlay {
    opacity: 1;
}

.country-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.country-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.country-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #ddd;
}

.country-info i {
    color: var(--primary-color);
}

/* Travel Gallery Section */
.travel-gallery {
    padding: 60px 0;
    background-color: rgba(20, 20, 20, 0.5);
}

.travel-gallery h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.travel-gallery h2 i {
    color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(229, 9, 20, 0);
    transition: background-color 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.gallery-item:hover::after {
    background-color: rgba(229, 9, 20, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .intro-content {
        flex-direction: column;
    }
    
    .intro-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 600px;
    }

    .country-card {
        flex-direction: column;
    }
}

@media (max-width: 768px) {    
    .container {
        padding: 0 20px;
    }

    .intro-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 600px;
    }

    .country-card {
        aspect-ratio: 4/3; 
    }
    
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .country-overlay h3 {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .travel-gallery h2,
    .countries-section h2 {
        font-size: 1.5rem;
    }
}