* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
}

body {
    margin: 0;
    /* Ensure no margin on the body */
}

/* Navbar Styles */
.navbar {
    background-color: #1e3737 !important;
    padding: 0.5rem 1rem;
    /* Adjust the padding to decrease the height */
}

.logo {
    width: 200px;
}

.nav-link {
    color: white !important;
    font-size: 1.05rem;
}

/* About Section Styles */
.container h2 {
    color: #1e3737;
    margin-bottom: 20px;
    position: relative;
    font-weight: 600;
}

.container p {
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
}

.container .img-fluid {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Info Section Styles */
.heading {
    font-size: 2.5rem;
    color: #1e3737;
}

.line {
    height: 1px;
    width: 300px;
    background-color: #acacac;
    margin-bottom: 20px;
}

iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    width: 90%;
    margin: 0 auto;
    background-color: #1e3737 !important;
    border-radius: 8px;
}

.company {
    width: 25%;
}

.main-links,
.more-links {
    width: 25%;
}

.main-links h5,
.more-links h5 {
    color: #e15a32 !important;
}

.main-links ul,
.more-links ul {
    padding-left: 0;
}

.main-links li,
.more-links li {
    margin-bottom: 8px;
    cursor: pointer;
}

.contact {
    width: 25%;
}

.contact h5,
.contact i {
    color: #e15a32 !important;
}

.contact i {
    cursor: pointer;
}

/* About Page Specific Styles */
.row {
    margin-bottom: 30px;
}

.carousel-inner {
    height: 100vh;
    /* Set the height to 100% of the viewport height */
    position: relative;
}

.carousel-item {
    height: 100vh;
    /* Ensure each carousel item takes up the full viewport height */
}

.carousel-item::before {
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.carousel-item img {
    height: 100%;
    /* Ensure the image takes up the full height of the carousel item */
    width: 100%;
    /* Ensure the image takes up the full width of the carousel item */
    object-fit: cover;
    /* Ensure the image covers the entire area */
}

.carousel-indicators button {
    margin-bottom: 10px;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding-bottom: 75px;
    color: white;
    /* Ensure text is visible */
}

.carousel-caption .carousel-logo {
    width: 80px;
    /* Adjust the size as needed */
    margin-bottom: 20px;
    /* Add some space below the logo */
}

.carousel-caption h5 {
    font-size: 5rem;
    /* Increase the font size */
    font-weight: 600;
    letter-spacing: 1px;
}

.carousel-caption h6 {
    font-size: 1.5rem;
    /* Adjust the font size for h6 */
}

.carousel-caption p {
    font-size: 1.25rem;
}

.carousel-buttons {
    margin-top: 20px;
}

.carousel-buttons .btn {
    margin: 0 10px;
    /* Add space between the buttons */
}

.carousel-buttons .btn-consultation {
    background-color: #1e3737;
    /* Use the green color from the app bar */
    border-color: #1e3737;
    color: white;
}

.navbar-toggler-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-toggler-icon i {
    font-size: 2.25rem;
}

.navbar-toggler {
    border: 2px solid black;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.heading {
    font-size: 2.5rem;
}

.line {
    height: 1px;
    width: 300px;
    background-color: #acacac;
    margin-bottom: 20px;
}

.contact {
    width: 25%;
}

.contact h5,
.contact i {
    color: #e15a32 !important;
}

footer {
    width: 90%;
    margin: 0 auto;
    background-color: #1e3737 !important;
}

.main-links h5,
.more-links h5 {
    color: #e15a32 !important;
}

.mission,
.vision {
    color: #1e3737;
}

.col-lg-12 {
    color: #1e3737;
}

/* Services Page Styles */
.services-container {
    padding: 20px 0;
}

.service-item {
    margin-bottom: 80px;
    align-items: center;
}

.service-content {
    padding: 20px;
}

.service-content h2 {
    color: #1e3737;
    margin-bottom: 20px;
    font-weight: 600;
}

.service-img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 300px;
    object-fit: cover;
}

/* Contact Page Styles */
.contact-container {
    padding: 20px 0 60px;
}

.contact-info {
    padding: 20px 0;
}

.contact-info h2 {
    color: #1e3737;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 22px;
    color: #1e3737;
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h5 {
    margin-bottom: 5px;
    color: #1e3737;
}

.info-item p {
    margin: 0;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: #1e3737;
    margin-bottom: 25px;
    font-weight: 600;
}

.form-label {
    color: #1e3737;
    font-weight: 500;
}

.btn-consultation {
    background-color: #1e3737;
    color: white;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-consultation:hover {
    background-color: #0f1c1c;
    color: white;
}

.map-container h4 {
    color: #1e3737;
    margin-bottom: 15px;
    font-weight: 500;
}

/* If you're hosting the font locally, add this @font-face declaration */
@font-face {
    font-family: 'Britanica Semi Extended';
    src: url('assets/fonts/britanica-extrabold-semi-expanded.ttf') format('truetype'),
        url('assets/fonts/britanica-extrabold-semi-expanded.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Font support for Arabic */
@font-face {
    font-family: 'Cairo';
    src: url('fonts/Cairo-Regular.woff2') format('woff2'),
        url('fonts/Cairo-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* Target the specific h5 in the carousel caption */
.carousel-caption h5 {
    font-family: 'Britanica Semi Extended', sans-serif;
    font-weight: 800;
    /* Extra Bold weight */
    font-size: 5rem;
    letter-spacing: 1px;
    text-transform: lowercase !important;
    /* Force lowercase */
}

/* RTL specific styles */
body[dir="rtl"] {
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

/* Flip margins and paddings for RTL */
body[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

body[dir="rtl"] .me-2,
body[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

/* Fix Bootstrap grid for RTL */
body[dir="rtl"] .row {
    flex-direction: row-reverse;
}

/* Fix info items */
body[dir="rtl"] .info-item {
    flex-direction: row-reverse;
}

body[dir="rtl"] .info-item i {
    margin-right: 0;
    margin-left: 15px;
}

/* Fix form alignment */
body[dir="rtl"] .form-label {
    text-align: right;
}

/* Fix footer alignment */
body[dir="rtl"] footer {
    flex-direction: row-reverse;
}

/* Language switcher button states */
body[dir="ltr"] .btn-lang-en,
body[dir="rtl"] .btn-lang-ar {
    background-color: #1e3737;
    color: white;
}

/* RTL specific styles */
html[dir="rtl"] body {
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

/* Flip margins and paddings for RTL */
html[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .me-2,
html[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

/* Fix Bootstrap grid for RTL */
html[dir="rtl"] .row {
    flex-direction: row-reverse;
}

/* Fix navbar items */
html[dir="rtl"] .navbar-nav {
    flex-direction: row-reverse;
}

html[dir="rtl"] .navbar-nav .nav-link i {
    margin-right: 0;
    margin-left: 8px;
}

/* Fix carousel content */
html[dir="rtl"] .carousel-caption {
    direction: rtl;
}

/* Active language button */
.language-switcher .btn.active {
    background-color: #1e3737;
    color: white;
}

/* Dropdown menu in RTL */
html[dir="rtl"] .dropdown-menu {
    text-align: right;
}

/* Form controls */
html[dir="rtl"] .form-control {
    text-align: right;
}

@media screen and (max-width: 770.9px) {
    .carousel-item img {
        object-fit: cover;
    }

    .carousel-indicators button {
        margin-bottom: 10px;
    }

    .carousel-caption {
        padding-bottom: 150px;
        top: 20%; /* Move text extremely high on mobile (was 30%) */
        transform: translate(-50%, -20%); /* Adjust for the new top position */
    }

    .carousel-caption h5 {
        font-size: 3.2rem !important; /* Make "true side" text even larger */
        margin-bottom: 15px;
    }

    .carousel-caption h6 {
        font-size: 1.3rem; /* Slightly larger slogan */
        margin-bottom: 15px;
    }

    .carousel-caption p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .carousel-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .carousel-buttons .btn {
        width: 200px;
        padding: 10px 15px;
    }

    /* Other mobile styles remain the same */
    footer {
        width: 100%;
        flex-wrap: wrap;
        margin: 0 auto;
    }

    .company,
    .main-links,
    .more-links,
    .contact {
        width: auto;
    }

    .service-item {
        margin-bottom: 40px;
    }

    .service-content {
        padding: 10px;
        text-align: center;
    }

    .service-img {
        height: 250px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .contact-form,
    .contact-info {
        margin-bottom: 40px;
    }

    .contact-form {
        padding: 20px;
    }

    .info-item {
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 432.9px) {
    .logo {
        width: 100px;
    }

    .carousel-inner {
        height: 70vh;
    }

    .carousel-item img {
        height: 100%;
    }

    .carousel-caption {
        padding-bottom: 35px;
        top: 15%; /* Position extremely high on very small screens (was 25%) */
        transform: translate(-50%, -15%);
    }

    .carousel-caption h5 {
        font-size: 2.8rem !important; /* Make "true side" text even larger on small screens (was 2.2rem) */
        margin-bottom: 10px;
    }

    .carousel-caption h6 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .carousel-buttons .btn {
        width: 180px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .carousel-indicators button {
        margin-bottom: 190px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        padding-bottom: 150px;
    }

    /* Other existing small screen styles remain the same */
    .about {
        margin-top: -90px !important;
    }

    .company img {
        height: 40px;
    }

    .contact {
        margin-top: 20px;
    }

    .container h2 {
        font-size: 1.8rem;
    }

    .container p {
        font-size: 1rem;
    }

    .heading {
        font-size: 1.8rem;
    }

    footer {
        flex-direction: column;
        padding: 2rem !important;
    }
}