
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}


header {
    text-align: center;
    color: white;
    padding: 70px 20px 40px;
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

header h1 {
    font-size: 58px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 25px;
}


nav {
    width: 100%;            
    display: flex;
    justify-content: center;

    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.15);

    border-radius: 18px;
    padding: 10px 22px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 0 8px;
}

nav ul li a {
    color: white;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    padding: 12px 18px;
    border-radius: 12px;

    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.18);
}


.intro {
    text-align: center;
    max-width: 950px;

    margin: 70px auto 40px;
    padding: 0 25px;

    font-size: 22px;
    line-height: 1.9;

    color: #4b5563;
}
.countries {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));

    gap: 70px;

    max-width: 1900px;

    margin: auto;
    padding: 80px;
}


.country {
    position: relative;

    background: white;

    border-radius: 34px;
    overflow: hidden;

    box-shadow: 0 22px 55px rgba(0,0,0,0.12);

    transition: all 0.45s ease;
}

.country:hover {
    transform: translateY(-18px) scale(1.01);
    box-shadow: 0 35px 70px rgba(0,0,0,0.18);
}

.country a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.country img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.country:hover img {
    transform: scale(1.08);
}


.country::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.78),
        rgba(0,0,0,0.2),
        transparent 55%
    );

    opacity: 0.95;
}


.country h2 {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    padding: 38px;

    font-size: 46px;
    font-weight: 800;

    color: white;

    z-index: 2;
}


.places {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 60px;

    padding: 70px 40px;
}

.place {
    width: 560px;

    background: white;

    border-radius: 30px;
    overflow: hidden;

    box-shadow: 0 16px 40px rgba(0,0,0,0.12);

    transition: all 0.4s ease;
}

.place:hover {
    transform: translateY(-14px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.18);
}

.place a {
    text-decoration: none;
    color: inherit;
}

.place img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.place h2 {
    padding: 28px;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}


.section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 80px;

    max-width: 1450px;

    margin: 90px auto;
    padding: 55px;

    background: white;

    border-radius: 36px;

    box-shadow: 0 18px 50px rgba(0,0,0,0.10);
}

.section.reverse {
    flex-direction: row-reverse;
}

.section img {
    width: 560px;
    max-width: 100%;

    border-radius: 24px;
    object-fit: cover;

    box-shadow: 0 14px 35px rgba(0,0,0,0.16);
}

.section-text {
    max-width: 560px;
}

.section-text h2 {
    font-size: 42px;
    margin-bottom: 22px;
}

.section-text p {
    font-size: 20px;
    line-height: 1.9;
    color: #4b5563;
}


body.greece header { background: linear-gradient(135deg, #4a7bbf, #365a8c); }
body.thailand header { background: linear-gradient(135deg, #f4a261, #e76f51); }
body.ethiopia header { background: linear-gradient(135deg, #2e7d32, #1b5e20); }
body.egypt header { background: linear-gradient(135deg, #d4af37, #b8860b); }
body.costarica header { background: linear-gradient(135deg, #2ecc71, #27ae60); }
body.japan header { background: linear-gradient(135deg, #ffb6c1, #ff8fab); }
body.australia header { background: linear-gradient(135deg, #00a8cc, #0077b6); }
body.morocco header { background: linear-gradient(135deg, #c1272d, #8b0000); }
body.iceland header { background: linear-gradient(135deg, #5dade2, #2e86c1); }


@media (max-width: 1200px) {

    .countries {
        grid-template-columns: 1fr;
        padding: 50px;
    }

    .section {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {

    header h1 {
        font-size: 42px;
    }

    nav ul {
        flex-direction: column;
    }

    .country h2 {
        font-size: 34px;
    }
}
body.morocco nav,
body.iceland nav {
    margin-top: -57px;
}
