body {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

nav a h3 img {
    width: 80px;
}

nav a h3 img.logo {
    width: 130px;
}

nav h3 {
    font-size: 50px;
}

.navbar-nav {
    margin-right: auto;
}

.navbar-brand {
    margin-right: 0;
    margin-left: 170px;
}

.navbar-nav .nav-item {
    margin-left: 20px;
}

.container-fluid .font {
    font-size: 45px;
}

.footer img {
    width: 200px;
}

.footer {
    background-color: #424B5B;
}

.footer .container::before,
.footer .container::after,
.footer .container-fluid::before,
.footer .container-fluid::after {
    content: none !important;
}

.footer {
    border: none !important;
    box-shadow: none !important;
}

.footer .container {
    border: none !important;
    background: none !important;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-item {
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.px-4.pb-4 {
    flex-grow: 1;
}

.Deiaa img {
    width: 500px;
    height: 500px;
    object-fit: cover;
}

.Alaa {
    position: relative;
    background: url('../img/contactbackground/i1.jpg') no-repeat center top;
    background-size: cover;
    background-attachment: scroll;
    height: 500px;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.row {
    position: relative;
    z-index: 2;
    overflow: hidden;
    height: 100%;
    padding-top: 20px;
}

.address-details {
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.address-details h5 {
    font-size: 1.25rem;
    font-weight: bold;
}

.address-details p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-box {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.card-box:hover {
    transform: scale(1.05);
}

.card-img {
    width: 40%;
    object-fit: cover;
}

.card-content {
    width: 60%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #040F28;
}

.card-content .date {
    font-size: 14px;
    font-weight: bold;
    color: #4EADE0;
    margin-bottom: 10px;
}

.card-content ul {
    padding-left: 20px;
}

.card-content ul li {
    font-size: 14px;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .card-box {
        flex-direction: column;
    }

    .card-img {
        width: 100%;
        height: 200px;
    }

    .card-content {
        width: 100%;
    }
}

/* Card Box */
.card-box1 {
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
}

.card-box1:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Image Container */
.image-container1 {
    height: 400px;
    overflow: hidden;
    position: relative;
}

/* Image Styling */
.card-img1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.card-img1.active {
    opacity: 1;
}

/* Card Content */
.card-content1 {
    background: #fff;
    padding: 20px;
}

/* Heading Styling */
.card-content1 h4 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

/* Date Styling */
.card-content1 .date {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

/* Paragraph Styling */
.card-content1 p {
    font-size: 20px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

/* Bullet List Styling */
.card-content1 ul {
    font-size: 20px;
    color: #444;
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.card-content1 ul li {
    margin-bottom: 10px;
}

/* Button Styling */
.btn1 {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 20px;
    font-size: 18px;
    line-height: 1.5;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary1 {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.btn-primary1:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-sm1 {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

/* Text Truncation */
.text-content1 {
    font-size: 20px;
    line-height: 1.6;
    color: #444;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Carousel Control Styling */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}
.styled-header {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #444;
    padding: 20px;
    margin: 20px auto;
    background: #fff; /* Add a background to make the text stand out */
    border: 3px solid #4EADE0; /* Border color to match your theme */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1); /* Soft shadow effect */
    text-align: center; /* Center-align the text */
    line-height: 1.8; /* Improve readability */
}


