/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #f8f9fa, #e3e6ec);
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: #007BFF;
    padding: 20px 0;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #ffdd57;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

main {
    padding: 40px;
    text-align: center;
    background: white;
    margin: 20px auto;
    width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
}

h2 {
    font-size: 2.5rem;
    color: #0056b3;
}

h3 {
    font-size: 1.8rem;
    color: #007BFF;
}

p {
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

.responsive-img {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.responsive-img:hover {
    transform: scale(1.05);
}

footer {
    background: #007BFF;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

body[lang="fa"] {
    font-family: "Vazir", sans-serif;
    direction: rtl;
    text-align: right;
}

.language-switch {
    position: absolute;
    top: 10px;
    right: 20px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.language-switch a {
    text-decoration: none;
    color: white;
    background: blue;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Vazir', sans-serif;
    transition: background 0.3s ease-in-out;
}

.language-switch a:hover {
    background: darkblue;
}