/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    padding-top: 70px; /* Prevent navbar overlap */
}

/* Arabic RTL Support */
body[lang="ar"] {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

/* Navbar */
.navbar {
    background-color: #2c3e50;
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
}

.navbar-brand img {
    height: 40px; /* Adjust logo height */
    margin-right: 10px; /* Space between logo and text */
    vertical-align: middle;
}

body[lang="ar"] .navbar-brand img {
    margin-right: 0;
    margin-left: 10px; /* Adjust for RTL in Arabic */
}

.nav-link, .dropdown-item {
    color: white !important;
    font-size: 1.1rem;
    margin-left: 20px;
}

body[lang="ar"] .nav-link, body[lang="ar"] .dropdown-item {
    margin-left: 0;
    margin-right: 20px;
}

.nav-link:hover, .dropdown-item:hover {
    color: #1abc9c !important;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background-color: #2c3e50; /* Match navbar background */
    border: 1px solid #34495e; /* Subtle border */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    min-width: 200px; /* Ensure sufficient width */
    margin-top: 5px; /* Space below dropdown toggle */
}

.dropdown-item {
    padding: 10px 20px; /* Better spacing */
    font-size: 1rem; /* Consistent with nav links */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover transition */
}

.dropdown-item:hover {
    background-color: #34495e; /* Slightly lighter than navbar for contrast */
    color: #1abc9c !important; /* Match navbar hover color */
}

body[lang="ar"] .dropdown-menu {
    text-align: right; /* Align text right for Arabic */
}

body[lang="ar"] .dropdown-item {
    text-align: right; /* Ensure dropdown items align right in RTL */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://via.placeholder.com/1500x600?text=Agriculture');
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Section Styling */
.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

/* Cards for Products */
.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Contact Form */
#contact-form .form-control {
    border-radius: 5px;
}

#contact-form .btn {
    background-color: #1abc9c;
    border: none;
    padding: 10px 20px;
}

#contact-form .btn:hover {
    background-color: #16a085;
}

/* Footer */
footer {
    background-color: #2c3e50;
}

footer p {
    margin-bottom: 0; /* Remove default margin for slimmer appearance */
    font-size: 0.9rem; /* Slightly smaller text for better fit */
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Smaller padding for mobile */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-brand img {
        height: 30px; /* Smaller logo on mobile */
    }

    footer p {
        font-size: 0.8rem; /* Even smaller text on mobile */
    }

    /* Dropdown Menu on Mobile */
    .dropdown-menu {
        min-width: 100%; /* Full width on mobile */
        border-radius: 0; /* Remove rounded corners for mobile */
        margin-top: 0; /* No extra margin on mobile */
    }

    .dropdown-item {
        padding: 8px 15px; /* Slightly less padding on mobile */