/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    direction: rtl;
}
body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header Styles */
.topHeader {
    background-color: #207c4b;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.topHeader .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    gap: 30px;
    align-items: center;
}

.top-contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-contact-info a {
    color: white;
    text-decoration: none;
}

.top-contact-info a:hover {
    text-decoration: underline;
}

.top-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-social-links {
    display: flex;
    gap: 10px;
}

.top-social-links a {
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-size: 12px;
}

.top-social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-selector select {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 12px;
}

.language-selector select option {
    background-color: #2e7d32;
    color: white;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.logo-and-toggle {
    display: flex;
    align-items: center;
    order: 1;
    flex-shrink: 0;
    flex-direction: row-reverse;
}

.logo img {
    height: 48px;
    width: auto;
    max-width: 100%;
}

.navigation {
    order: 2;
    flex-grow: 1;
    margin: 0 15px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 15px;
}
.parent-a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    transition: width 0.3s ease;
}

.parent-a:hover::before {
    width: 100%;
}

.header-actions {
    order: 3;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    margin-right: 0;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Dropdown Styles */
/* Navigation Dropdown Styles */
.navigation ul li {
    position: relative;
    display: inline-block;
}

.navigation ul li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1000;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.dropdown-content a {
    color: #333 !important;
    padding: 15px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #28a745 !important;
    padding-left: 25px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease-out;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Animation for dropdown */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 10px;
    }
}

@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
        padding: 10px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .navigation.active {
        display: block;
        order: 4;
        width: 100%;
        margin: 10px 0 0 0;
    }

    .navigation.active .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .navigation.active .nav-menu li {
        width: 100%;
        text-align: right;
        padding: 10px 0;
    }

    /* Mobile dropdown adjustments */
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        display: none;
        padding-right: 20px;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 30px;
    }

    .request-quote-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.search-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}

.request-quote-btn {
    background-color: #207c4b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.request-quote-btn:hover {
    background-color: #45a049;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: fit-content; /* Adjust based on your needs */
}

.hero-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    direction: ltr; /* Force LTR inside the slider */
    margin-left: 0; /* Reset any RTL margins */
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 576px) {
    .hero-section {
        position: relative;
        width: 100%;
        overflow: hidden;
        height: 30vh; /* Adjust based on your needs */
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: inherit;
    }
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}
/* ________________________________________________________________________________________ */
/* Why Choose Us Section */
.why-choose-us-section {
    padding: 60px 0;
    background-color: #fff;
}

.why-choose-us-section .container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.why-choose-us-section h2 {
    background-color: #e8f3c8;
    border: 2px solid #8cbd23;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    height: fit-content;
    width: fit-content;
}

.why-choose-us-section .features {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 30px;
}

.why-choose-us-section .feature {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    flex: 1;
    width: 100%;
}
.why-choose-us-section .feature .feature-title {
    display: flex;
    width: 25%;
    margin-bottom: 10px;
    align-items: center;
}
.why-choose-us-section .feature .feature-name {
    text-align: justify;
}

.why-choose-us-section .feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
}

.why-choose-us-section .feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.why-choose-us-section .feature-content {
    width: 75%;
}
.why-choose-us-section .feature-content h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.why-choose-us-section .feature-content p {
    color: #666;
    line-height: 1.6;
    text-align: right;
}

@media (max-width: 1200px) {
    .why-choose-us-section .container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }
    .why-choose-us-section .container .title {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
@media (max-width: 767px) {
    .why-choose-us-section .feature {
        display: flex;
        flex-direction: column;
    }
    .why-choose-us-section .feature .feature-title {
        width: 100%;
    }
}
/* ________________________________________________________________________________________ */

/* Targeted Sectors Section - Base Styles */
.targeted-sectors-section {
    background-color: white;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.targeted-sectors-section h2 {
    text-align: start;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
    margin-left: -10px;
}

.sectors-content {
    display: flex;
    width: 22%;
}

.sectors-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.sectors-grid {
    width: 78%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.sector-item {
    border-radius: 25px;
    border: solid 1px #8cbd23;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    line-height: 0;
    height: fit-content;
}

.sector-item:hover {
    transform: translateY(-5px);
}

.sector-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.sector-item h3 {
    padding: 10px;
    text-align: center;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    background-color: #e8f3c8;
    line-height: normal;
}

/* Grid Positioning */
.sector-1 {
    grid-row: 1;
    grid-column: 2;
}

.sector-2 {
    grid-row: 1;
    grid-column: 4;
}

.sector-3 {
    grid-row: 2;
    grid-column: 1;
}

.sector-4 {
    grid-row: 2;
    grid-column: 3;
}

/* Media Queries */

/* For screens up to 1200px */
@media (max-width: 1200px) {
    .targeted-sectors-section {
        flex-direction: column;
        padding: 60px 20px;
    }

    .sectors-content {
        width: 100%;
        margin-bottom: 30px;
        text-align: center;
    }

    .targeted-sectors-section h2 {
        text-align: center;
        margin-left: 0;
    }

    .sectors-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 15px;
    }

    /* Reset grid positioning for medium screens */
    .sector-1,
    .sector-2,
    .sector-3,
    .sector-4 {
        grid-row: auto;
        grid-column: auto;
    }

    /* Alternate layout for 2x2 grid */
    .sector-1 {
        grid-row: 1;
        grid-column: 1;
    }

    .sector-2 {
        grid-row: 1;
        grid-column: 2;
    }

    .sector-3 {
        grid-row: 2;
        grid-column: 1;
    }

    .sector-4 {
        grid-row: 2;
        grid-column: 2;
    }
}

/* For tablets (768px and below) */
@media (max-width: 768px) {
    .targeted-sectors-section {
        padding: 50px 20px;
    }

    .targeted-sectors-section h2 {
        font-size: 1.8rem;
    }

    .sectors-text p {
        font-size: 1rem;
    }

    .sector-item img {
        height: 120px;
    }
}

/* For mobile devices (576px and below) */
@media (max-width: 576px) {
    .targeted-sectors-section {
        padding: 40px 15px;
    }

    .targeted-sectors-section h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .sectors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Stack all items vertically on mobile */
    .sector-1,
    .sector-2,
    .sector-3,
    .sector-4 {
        grid-row: auto;
        grid-column: auto;
    }

    .sector-item img {
        height: 150px;
    }

    .sector-item h3 {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* Our Services Section */
/* Our Services Section */
.our-services-section {
    background-color: white;
    padding: 80px 20px;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.our-services-section h2 {
    text-align: start;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
    margin-left: -10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: solid 1px #8cbd23;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item img {
    width: 100%;
    height: 40vh;
    object-fit: cover;
}

.service-item h3 {
    padding: 20px 20px 10px;
    color: #333;
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
}
.read-more-cont {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 20px;
}
.read-more-btn {
    background-color: #207c4b;
    color: white;
    border: none;
    padding: 7px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.read-more-btn:hover {
    background-color: #45a049;
}

/* ____________________________________________________________________________ */

/* Our Projects Section */
.our-projects-section {
    background-color: white;
    padding: 0 20px;
    padding-bottom: 80px;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.our-projects-section h2 {
    text-align: start;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}
.project-hr {
    border: 0;
    height: 1px;
    background-color: #8cbd23;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    padding: 20px;
}

/* Footer Styles */
.footer {
    background-color: #207c4b;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social span {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-social span:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .topHeader .container {
        gap: 10px;
        padding: 10px 20px;
    }

    .top-left,
    .top-right {
        flex-direction: column;
        gap: 10px;
    }

    .top-contact-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .header .container {
        gap: 20px;
    }

    .navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .sectors-content {
        grid-template-columns: 1fr;
    }

    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

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