/* Custom Properties */
:root {
    --primary-color: #20B2AA;
    --secondary-color: #A0522D;
    --accent-color: #FF6B35;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --gray-color: #6C757D;
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
    /* min-height: 90px; */
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* In your CSS file (e.g., style.css) */

.logo-text {
    display: flex;
    /* Make it a flex container */
    flex-direction: column;
    /* Stack its children vertically */
    justify-content: center;
    /* Center items vertically if there's extra space */
    align-items: flex-start;
    /* Align items to the start (left for LTR, right for RTL) */
}



.logo-container {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* Default logo (e.g., Arabic logo) */
.logo-container .logo-image-placeholder {
    background-color: transparent;
    width: 50px;
    height: 50px;
    background-image: url(../img/logo.png);
    /* Default logo */
    background-size: contain;
    /* Ensure the image fits within the div */
    background-repeat: no-repeat;
    background-position: center;
}

/* For English language */
/* Assuming the 'lang' attribute is on the <html> tag */
html[lang="en"] .logo-container .logo-image-placeholder {
    background-image: url(../img/logo-en.png);
    /* English logo */
}

/* You might also want to explicitly hide the Arabic brand text and show the English brand text */
html[lang="ar"] .logo-text .brand-ar {
    display: block;
}

html[lang="ar"] .logo-text .brand-en {
    display: none;
}

html[lang="en"] .logo-text .brand-ar {
    display: none;
}

html[lang="en"] .logo-text .brand-en {
    display: block;
}

/* Set a default for both for safety */
.logo-text .brand-ar,
.logo-text .brand-en {
    display: none;
    /* Hide both by default */
}

.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-right: 0 !important;
    font-size: var(--bs-navbar-brand-font-size);
    color: var(--bs-navbar-brand-color);
    text-decoration: none;
    white-space: nowrap;
}

html[lang="en"] .navbar-brand {
    margin-left: 0 !important;
}

html[lang="en"] .fa-check:before {
    content: "\f00c";
    margin-right: 0.5rem;
}

/* Global Navbar Navigation Links */
.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark-color) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}


.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Dropdown Menu Global Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.dropdown-menu .dropdown-item {
    color: var(--light-color);
    text-align: right;
}


.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    margin-right: 3px;
    width: 95%;
    color: var(--light-color);
    transition: var(--transition);
    text-decoration: underline;
}

html[lang="en"] .dropdown-menu .dropdown-item {
    text-align: left;
}

html[lang="en"] .dropdown-menu .dropdown-item:hover {

    margin-left: 3px;
}

.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Brand Text Styles */
.brand-ar {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0px;

}

.brand-en {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Custom Icon Color (for elements like Bootstrap Icons if applicable) */
.icon-custom-color {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.logo-icon {
    background: transparent;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-left: 0 !important;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 60px;
    margin-top: 76px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: 1;
}

.bg-home {
    /* background: url("../img/bg-hero-home.png"); */
    background-image: url('https://images.pexels.com/photos/1267338/pexels-photo-1267338.jpeg');
}

.bg-contact {
    background-image: url("../img/bg-contact.jpg");
}

.bg-about {
    background-image: url("../img/bg-about.jpg");
}

.bg-service {
    background-image: url("../img/service.jpg");
}

.bg-track {
    background-image: url("../img/bg-track.jpg");
}

.bg-air-shipping {
    background-image: url("../img/air-shipping.jpg");
}

.bg-land-shipping {
    background-image: url("../img/bg-land-shipping.jpg");
}

.bg-sea-shipping {
    background-image: url("../img/bg-sea-shipping.jpg");
}

.bg-warehousing {
    background-image: url("../img/bg-warehousing.jpg");
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    margin-top: 30%;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}



.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.hero-image {
    animation: fadeInRight 1s ease-out;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Sections */
.section-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.section-title.text-start::after {
    right: 186px;
    transform: none;
    /* Reset transform for text-start specific adjustments */
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.text-start {
    text-align: center !important;
    /* Ensure RTL alignment if needed */
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Detailed Service Cards */
.service-card-detailed {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

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

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card-detailed:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-content .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray-color);
}

.service-features i {
    color: var(--primary-color);
    margin-left: 0.5rem;
    /* Consider if this needs to be margin-right for RTL */
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
    margin: 0;
    flex-shrink: 0;
}

.feature-content h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--gray-color);
    margin: 0;
}

/* Stats */
.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--gray-color);
    font-weight: 600;
    margin: 0;
}

/* Vision Cards */
.vision-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.vision-card:hover {
    transform: translateY(-5px);
}

.vision-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-image {
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.team-info h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.team-info p {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.team-social a {
    background: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--secondary-color);
}

/* Achievement Cards */
.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(32, 178, 170, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    /* ADDED: For smooth transitions on hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* OPTIONAL: Add a subtle default shadow to make the lift more noticeable */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* OPTIONAL: Add some padding and background for a card-like effect */
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius, 10px);
    /* Use a custom property if defined, otherwise fallback */
}

.contact-item:hover {
    /* ADDED: Lift the item up slightly */
    transform: translateY(-5px);
    /* ADDED: Enhance the shadow on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* OPTIONAL: Slightly change background color on hover */
    background-color: #f9f9f9;
}

/* Ensure the icon's color transitions as well if desired */
.contact-item:hover .contact-icon {
    /* Example: Make the icon slightly brighter or change its background */
    filter: brightness(1.1);
    transform: scale(1.05);
    /* Optional: make icon slightly bigger */
}

/* Ensure any text color inside also transitions if desired */
.contact-item:hover h5,
.contact-item:hover p {
    color: var(--primary-color);
    /* Example: change text color to primary on hover */
}

.contact-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h5 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray-color);
    margin: 0;
}

/* Quick Contact */
.quick-contact {
    background: rgba(255, 255, 255, 0.95);
    /* Moved from inside @media */
    border-radius: 12px;
    /* Moved from inside @media */
    padding: 1.5rem;
    /* Moved from inside @media */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    /* Moved from inside @media */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Moved from inside @media */
    backdrop-filter: blur(8px);
    /* Moved from inside @media */
}

.quick-contact h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem !important;
    position: relative;
    display: inline-block;
}

.quick-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 3px;
}

.quick-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Map Container */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Projects */
.project-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-content h4 {
    font-weight: 600;
    color: var(--dark-color);
    margin: 1rem 0 0.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 1rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-buttons .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.filter-buttons .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

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

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.news-content h4 a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.news-content h4 a:hover {
    color: var(--primary-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Sidebar */
.sidebar .widget {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.sidebar .widget h4 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.recent-news .news-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recent-news .news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.news-content h6 a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

.news-content h6 a:hover {
    color: var(--primary-color);
}

.news-date {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--gray-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list span {
    background: var(--light-color);
    color: var(--gray-color);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Featured Article */
.featured-article {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.featured-article h2 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.newsletter-form .input-group {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
}

.newsletter-form .btn {
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer-section {
    background: var(--dark-color) !important;
    color: white;
}

.footer-brand .logo-container .brand-ar,
.footer-brand .logo-container {
    color: var(--primary-color)
}

.footer-brand .logo-container .footer-brand .logo-container .brand-en {
    /* This selector looks duplicated and possibly incorrect */
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-divider {
    border-color: #495057;
    margin: 2rem 0;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.3);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* Button Base Styles */
.quick-contact .btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-width: 2px;
    position: relative;
    overflow: hidden;
}

/* Primary Buttons */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.4);
    border-color: transparent;
}

/* WhatsApp Button */
.btn-success {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--primary-color);
    filter: brightness(1.05);
}

/* Button Icons */
.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* RTL Adjustments (for buttons with icons) */
.quick-contact .btn i {
    margin-left: 0.5rem;
    /* This sets space to the left of the icon, for RTL where text is usually right-aligned */
    margin-right: 0 !important;
    /* Ensure no conflicting right margin */
}

/* Accordion Styles */
/* Accordion arrow for LTR (English) */
[dir="ltr"] .accordion-button::after {
    left: auto !important;
    /* Position arrow on the right */
    right: 1rem !important;
    margin-right: 0 !important;
}

/* Accordion arrow for RTL (Arabic) */
[dir="rtl"] .accordion-button::after {
    right: auto !important;
    /* Override Bootstrap default */
    left: 1rem !important;
    /* Position arrow on the left */
    margin-right: auto !important;
    /* Equivalent to me-2 */
    margin-left: 0 !important;
}


.accordion-button:not(.collapsed) {
    color: var(--light-color) !important;
    background: var(--primary-color) !important;
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 rgba(0, 0, 0, 0.1);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: var(--border-radius);
    /* Corrected from var(--primary-color) */
    border-top-right-radius: var(--border-radius);
    /* Corrected from var(--primary-color) */
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(32, 178, 170, 0.25);
    z-index: 1;
}

.designer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.designer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    color: white;
}

/* Selection Highlight */
::selection {
    background: var(--primary-color);
    color: white;
}

/* --- Responsive Design Overrides (ONLY changes for smaller screens) --- */

@media (max-width: 992px) {
    .navbar {
        min-height: 80px;
        /* Override for mobile navbar height */
    }

    .navbar-brand img {
        max-height: 50px !important;
        /* Override for mobile logo size */
        /* Removed redundant transition here, it's global now */
    }

    .nav-link {
        padding: 0.5rem 1rem;
        /* Adjust padding for mobile nav links */
        font-size: 1.1rem;
        /* Adjust font size for mobile nav links */
    }


    .section-title.text-start::after {
        right: 186px;
        /* Specific adjustment for text-start title on smaller screens */
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 20%;
        position: absolute;

    }

    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .section-title {
        left: 0;
        font-size: 2rem;
    }

    .section-title.text-start::after {
        right: 139px;
        /* Further adjustment for text-start title on even smaller screens */
        transform: none;
    }

    .filter-buttons {
        justify-content: center;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .lead {
        text-align: center;
    }

    .sub-lead {
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .service-card {
        padding: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .featured-article {
        padding: 1.5rem;
    }

    .sidebar .widget {
        padding: 1.5rem;
    }

    .explain-service {
        text-align: center;
    }
}

.ltr-number {
    direction: ltr;
    unicode-bidi: plaintext;
    font-family: Arial, Helvetica, sans-serif;
}

.fa-phone:before {
    content: "\f095";
    margin: 3px;
}

/* --- Responsive Adjustments for Mobile/Tablet --- */
@media (max-width: 991.98px) {

    /* Bootstrap's 'lg' breakpoint is 992px, so max-width 991.98px covers 'md' and 'sm' */
    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        width: 100%;
        /* Ensure full width for stacking */
        align-items: center;
        /* Center items in the flex column */
        margin-top: 1rem;
        /* Add some space from the toggler */
    }

    .navbar-nav .nav-item {
        width: 100%;
        /* Make each nav item take full width */
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        /* Slightly more vertical padding for readability */
        display: block;
        /* Ensure the link takes full width for centering */
    }



    /* Adjust dropdown menu alignment for mobile */
    .navbar-nav .dropdown-menu {
        text-align: center;
        /* Center dropdown items */
        border: none;
        /* Remove border if desired */
        box-shadow: none;
        /* Remove shadow if desired */
        background-color: transparent;
        /* Make dropdown background transparent */
        padding: 0;
        /* Remove padding */
        position: static;
        /* Important: Make dropdown position static in mobile */
        width: 100%;
        /* Full width dropdown */
        margin-top: 0;
        /* Remove top margin */
        float: none;
        /* Override any float */
    }

    .navbar-nav .dropdown-menu li {
        width: 100%;
        /* Ensure each dropdown item takes full width */
    }

    .navbar-nav .dropdown-menu .dropdown-item {
        text-align: center;
    }


}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-color) !important;
}

/* Timeline */
.timeline {
    position: relative;
    padding-right: 30px;
}

.timeline-step {
    position: relative;
    padding-right: 45px;
    margin-bottom: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-step.completed:before {
    background: var(--primary-color);
}

.timeline-icon {
    position: absolute;
    right: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #495057;
    border: 3px solid white;
    z-index: 2;
}

.timeline-step.completed .timeline-icon {
    background: var(--primary-color);
    color: white;
}

.timeline-step.active .timeline-icon {
    background: var(--secondary-color);
    color: white;
    animation: pulse 1.5s infinite;
}

.timeline-content {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: calc(var(--bs-border-width) * -1);
    border-radius: 20px;
}

.auto-ma {
    margin-right: 5px;
}

html[lang="ar"] .auto-ma {
    margin-left: 5px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    /* Size of the button */
    height: 60px;
    /* Size of the button */
    bottom: 40px;
    /* Distance from the bottom of the viewport */
    left: 40px;
    /* Changed from 'right' to 'left' */
    background-color: #25D366;
    /* WhatsApp green color */
    color: #FFF;
    /* Icon color */
    border-radius: 50%;
    /* Makes it a perfect circle */
    text-align: center;
    font-size: 28px;
    /* Icon size */
    box-shadow: 2px 2px 3px #999;
    /* Subtle shadow */
    z-index: 1000;
    /* Ensures it stays above other content */
    display: flex;
    /* Use flexbox for perfect centering of the icon */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
    transition: background-color 0.3s ease;
    /* Smooth hover transition */
    text-decoration: none;
    /* Remove underline for the link */
}

.whatsapp-float:hover {
    background-color: #128C7E;
    /* Darker green on hover */
    color: #FFF;
    /* Ensure icon color stays white on hover */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        /* Changed from 'right' to 'left' */
        font-size: 24px;
    }
}