/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
    animation: fadeIn 1.5s ease-in-out;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* General Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #0167b0;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease-in-out;
}

header .logo img {
    height: 70px;
    transition: transform 0.5s ease-in-out;
}

header .logo img:hover {
    transform: rotate(360deg);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    color: #e65734;
    transform: scale(1.1);
}

/* Language Switch */
.language-switch button {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.language-switch button:hover {
    background-color: #fff;
    color: #0167b0;
    transform: scale(1.1);
}

/* Mobile Menu Button */
.menu-btn {
    display: none; /* Hide by default */
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: absolute;
    top: 20px;
    right: 30px;
}

.menu-btn:hover {
    transform: scale(1.1);
}

/* Responsive Styles for Mobile */
@media (max-width: 367px) {
    .language-switch {
        right: 30%;
    }
}
@media (max-width: 768px) {
    [dir="ltr"] header .logo {
        margin-left: -30px;
    }

    [dir="rtl"] header .logo {
        margin-right: -20px;
    }
    nav ul {
        display: none; /* Hide menu by default */
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 90px;
        right: 20px;
        background: #e65734;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        height: 210px;
        width: 200px;
    }
    
    nav ul.show {
        display:inline-block ; /* Show menu when toggled */
    }
    nav a:hover {
        color: #0167b0;
        transform: scale(1.1);
    }
    .menu-btn {
        margin-top: 25px;
        display: block; /* Show menu button on mobile */
    }

    .language-switch {
        position: absolute;
        top: 35%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .language-switch button{
        margin-top: 5px;
    }
}




/* Main Content Styles */
main {
    padding: 40px;
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-in-out;
}
main p {
    font-size: larger;
    font-weight: 700;
}
h1, h2 {
    color: #0167b0;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

h1::after, h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e65734;
    margin: 10px auto 0;
    border-radius: 2px;
}

section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

section:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

section ul {
    list-style-type: none;
    padding: 10px;
}

ul li {
    margin: 15px 0;
    font-size: 1.1rem;
    color: #555;
    transition: color 0.3s ease;
}

ul li:hover {
    color: #e65734;
}

a i {
    margin-right: 10px;
    font-size: 22px;
    transition: transform 0.3s ease, color 0.3s ease;
}

a:hover i {
    transform: scale(1.2);
    color: #e65734;
}
#location {
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    animation: fadeIn 1.5s ease-in-out;
}

#location h2 {
    margin-bottom: 40px;
    color: #0167b0;
    text-align: center;
}

.location-details {
    text-align: center;
    margin-bottom: 30px;
}

.location-details p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.view-map {
    color: #0167b0;
    font-size: 1rem;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.view-map:hover {
    color: #004b87;
}

.map-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.map-container iframe {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive styles for the map */
@media (max-width: 768px) {
    .map-container iframe {
        width: 100%;
        height: 350px;
    }
}

/* Footer Styles */
footer {
    direction: ltr;
    background: #0167b0;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease-in-out;
}



footer .social-links a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-links a:hover {
    color: #e65734;
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    main {
        padding: 25px;
    }

    .language-switch {
        margin-top: 20px;
    }
    .language-switch button.active {
        background-color: #fff;
        color: #0167b0;
        border: 2px solid #0167b0;
    }
    [dir="rtl"] .menu-btn {
        right: auto;
        left: 30px;
    }
        
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        gap: 10px;
    }

    .logo img {
        height: 50px;
    }

    h1, h2 {
        font-size: 1.5rem;
    }
}

/* Services Section */
#services {
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    animation: fadeIn 1.5s ease-in-out;
}

#services h2 {
    margin-bottom: 40px;
    color: #0167b0;
    text-align: center;
}

/* Services Container */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

/* Service Card Styles */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0;
}

/* Service Card Icon */
.service-card i {
    font-size: 3rem;
    color: #0167b0;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

/* Service Card Title */
.service-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Service Card Description */
.service-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    #services h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 20px;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }
}
/*contact*/
#contact {
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    animation: fadeIn 1.5s ease-in-out;
    text-align: center;
}
#contact a {
    color: #000000; /* Change this to your desired color */
    text-decoration: none; /* Removes the underline */
    font-weight: bold; /* Optional: makes the text bold */
    transition: color 0.3s ease; /* Smooth color change on hover */
}

#contact a:hover {
    color: #e65734; /* Change this to your desired hover color */
}
#contact h2 {
    margin-bottom: 40px;
    color: #0167b0;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.contact-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 250px; /* Fixed width */
    height: 300px; /* Fixed height */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


.contact-card i {
    font-size: 2.5rem;
    color: #0167b0;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-card a {
    color: #0167b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #e65734;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-card h3 {
        font-size: 1rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }

    #contact h2 {
        font-size: 1.6rem;
    }
}
