/* Custom CSS for TIS Website */

/* Root Variables */
:root {
    --primary-color: #dc3545;
    --primary-dark: #c82333;
    --primary-light: #f5c6cb;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --text-dark: #212529;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --default-color: #444444;
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
}


body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-3 {
    font-size: 3.5rem;
    font-weight: 900;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Navbar افتراضي */
.navbar {
    background-color: rgba(255, 255, 255, 0.6); /* شفاف */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 1) !important; /* صلب عند scroll */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* روابط Navbar */
.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.9); /* أبيض شبه شفاف */
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: rgba(0, 0, 0, 0.9) !important; /* أسود عند scroll */
}


.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.navbar-brand {
    font-size: 2rem !important;
    font-weight: 900;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100dvh; /* Safe viewport height for mobile */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}


.hero-section .hero-waves {
    display: block;
    width: 100%;
    height: 60px;
    position: relative;
    margin-top: 60px;
}

.hero-section .wave1 use {
    animation: move-forever1 10s linear infinite;
    animation-delay: -2s;
    fill: var(--light-gray);
    opacity: 0.6;
}

.hero-section .wave2 use {
    animation: move-forever2 8s linear infinite;
    animation-delay: -2s;
    fill: var(--light-gray);
    opacity: 0.4;
}

.hero-section .wave3 use {
    animation: move-forever3 6s linear infinite;
    animation-delay: -2s;
    fill: var(--light-gray);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('https://intshar.net/third-party/tis/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-height: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.8) 0%, rgba(220, 53, 69, 0.6) 100%);
    z-index: -1;
    max-height: 100%;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.hero-content p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.btn-danger:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color) !important;
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

/* Cards */
.team-card,
.service-card,
.project-category,
.client-card,
.contact-form {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover,
.project-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.team-icon i,
.service-icon i {
    transition: all 0.3s ease;
}

.service-icon {
    flex: 0 0 50%;
}


.team-card:hover .team-icon i,
.service-card:hover .service-icon i {
    transform: scale(1.1);
    color: var(--primary-dark) !important;
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon i {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
    color: var(--primary-dark) !important;
}

/* Difference Section */
.difference-item {
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.difference-item:hover {
    background-color: var(--light-gray);
    transform: translateX(10px);
}

.difference-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.difference-item:hover .difference-icon {
    background-color: var(--primary-color);
}

.difference-item:hover .difference-icon i {
    color: var(--white) !important;
}

.process-step {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.process-number .badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
}

.social-link {
    flex: 0 1 auto; /* Takes only needed space */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: var(--primary-color);
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link i {
    font-size: 1.5rem;
}

.social-link:hover {
    color: var(--white);
    background-color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Contact Form */
.contact-form {
    border-radius: 1rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

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


/* 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);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

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

    .hero-content p {
        font-size: 1.1rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .social-link {
        width: 36px;
        height: 36px;
        border-width: 1.5px;
    }

    .social-link i {
        font-size: 1.2rem;
    }

    .page-title h1 {
        font-size: 24px; /* أو أي حجم يناسب الهاتف */
    }

    .page-title h4 {
        font-size: 18px; /* أو أي حجم يناسب الهاتف */
    }

    .footer-writes {
        padding-bottom: 100px !important;
    }

    .client-logo-new-wide {
        width: 320px;
        height: 280px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: auto;
        padding-top: 4rem;
    }

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

    .display-4 {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .hero-content .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-content .btn:last-child {
        margin-bottom: 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-danger {
    color: var(--primary-color) !important;
}

.bg-danger {
    background-color: var(--primary-color) !important;
}

.border-danger {
    border-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

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

/* Background Patterns */
.bg-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(220, 53, 69, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(220, 53, 69, 0.1) 0%, transparent 50%);
}

/* Text Animations */
.text-animate {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon Animations */
.icon-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.2);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Floating Buttons Default (LTR) */
.floating-whatsapp-button,
.floating-call-button,
.chat-boot-button,
.floating-location-button {
    position: fixed;
    z-index: 9999;
}

.floating-whatsapp-button {
    bottom: 155px;
    left: 35px; /* LTR default */
}

.floating-call-button {
    bottom: 35px;
    right: 25px; /* LTR default */
}

.floating-location-button {
    bottom: 100px;
    left: 35px; /* LTR default */
}

.floating-whatsapp-button i,
.floating-call-button i,
.floating-location-button i {
    color: var(--primary-color);
}

/* RTL Support */
[dir="rtl"] .floating-whatsapp-button {
    left: auto;
    right: 35px;
}

[dir="rtl"] .floating-call-button {
    right: auto;
    left: 25px;
}

[dir="rtl"] .floating-location-button {
    left: auto;
    right: 35px;
}

[dir="rtl"] .chat-boot-button {
    left: auto;
    right: 30px;
}

.chat-boot-button {
    bottom: 115px;
    left: 30px; /* LTR default */
}

.floating-call-header {
    background-color: white;
    border-radius: 15px; /* For rounded corners */
    padding: 2px 5px; /* Add padding for inner spacing */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: adds a subtle shadow */
    font-weight: bold;
}

/*!* Default horizontal timeline *!*/
/*.horizontal-timeline {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: flex-start;*/
/*    position: relative;*/
/*    padding: 3rem 0;*/
/*    flex-wrap: nowrap; !* horizontal on large screens *!*/
/*    overflow-x: auto; !* scroll only on large screens *!*/
/*}*/

/*.horizontal-timeline::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 35px;*/
/*    right: 0;*/
/*    left: 0;*/
/*    height: 4px;*/
/*    background: linear-gradient(to left, #dc3545, #f08a5d);*/
/*    z-index: 0;*/
/*    border-radius: 2px;*/
/*}*/

/*.timeline-step {*/
/*    position: relative;*/
/*    text-align: center;*/
/*    flex: 0 0 auto;*/
/*    min-width: 150px;*/
/*    margin-bottom: 3rem;*/
/*    z-index: 1;*/
/*    transition: transform 0.3s;*/
/*}*/

/*!* Hover effects *!*/
/*.timeline-step:hover {*/
/*    transform: translateY(-10px);*/
/*}*/

/*.timeline-number {*/
/*    display: inline-block;*/
/*    width: 60px;*/
/*    height: 60px;*/
/*    line-height: 60px;*/
/*    border-radius: 50%;*/
/*    background: #dc3545;*/
/*    color: #fff;*/
/*    font-weight: bold;*/
/*    font-size: 1.2rem;*/
/*    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);*/
/*    transition: all 0.3s;*/
/*}*/

/*.timeline-step:hover .timeline-number {*/
/*    background: #f08a5d;*/
/*    transform: scale(1.2);*/
/*}*/

/*.timeline-step h5 {*/
/*    font-weight: 600;*/
/*}*/

/*.timeline-step p {*/
/*    font-size: 0.9rem;*/
/*    color: #666;*/
/*}*/

/*@media (max-width: 768px) {*/
/*    .horizontal-timeline {*/
/*        display: flex;*/
/*        flex-direction: column; !* vertical layout *!*/
/*        align-items: center !important; !* center all items horizontally *!*/
/*        width: 100% !important; !* full width of container *!*/
/*        overflow: hidden !important; !* remove any scroll *!*/
/*        padding: 2rem 0;*/
/*        box-sizing: border-box;*/
/*        text-align: center !important; !* center text *!*/
/*        direction: ltr !important; !* override rtl on mobile *!*/
/*    }*/

/*    .timeline-step {*/
/*        display: flex;*/
/*        flex-direction: column; !* stack number + text *!*/
/*        align-items: center; !* center all content *!*/
/*        justify-content: center; !* vertical center if needed *!*/
/*        width: 90%; !* optional max width *!*/
/*        max-width: 400px;*/
/*        margin: 0 auto 2rem auto; !* center items horizontally *!*/
/*        text-align: center; !* center text *!*/
/*    }*/

/*    .timeline-number {*/
/*        margin-bottom: 1rem; !* spacing under number *!*/
/*        margin-left: auto; !* center circle *!*/
/*        margin-right: auto;*/
/*    }*/
/*}*/


.portfolio-filters {
    padding: 0;
    margin: 0 auto 20px auto;
    list-style: none;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* spacing between items */
}

.portfolio-filters li {
    cursor: pointer;
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    background: #f2f2f2; /* optional */
}

.portfolio-filters li:hover,
.portfolio-filters li.filter-active {
    color: var(--light-gray);
    background-color: var(--primary-color);
}

.portfolio-filters li:first-child {
    margin-left: 0;
}

.portfolio-filters li:last-child {
    margin-right: 0;
}

@media (max-width: 575px) {
    .portfolio-filters li {
        font-size: 14px;
        margin: 0 0 10px 0;
    }

    section {
        padding: 2rem 1rem;
    }
}


.portfolio-item {
    position: relative;
    background-color: var(--light-gray);
    border-radius: 3%;
    padding: 15px;
    transition: box-shadow 0.3s ease-in-out;
    box-shadow: none;
    overflow: hidden; /* keep overlay inside card */
}

.portfolio-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Shadow on hover */
}

.portfolio-item img {
    height: 50px;
    width: 50px;
}

.portfolio-item .portfolio-info {
    opacity: 0;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -100%;
    z-index: 3;
    transition: all ease-in-out 0.5s;
    background: color-mix(in srgb, var(--light-gray), transparent 10%);
    padding: 15px;
}

.portfolio-item .portfolio-info {
    opacity: 0;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -100%;
    z-index: 3;
    transition: all ease-in-out 0.5s;
    background: color-mix(in srgb, var(--light-gray), transparent 10%);
    padding: 15px;
}

.portfolio-item .portfolio-info h4 {
    font-size: 18px;
    font-weight: 600;
    padding-right: 50px;
}

.portfolio-item .portfolio-info p {
    color: color-mix(in srgb, var(--primary-color), transparent 30%);
    font-size: 14px;
    margin-bottom: 0;
    padding-right: 50px;
}

.portfolio-item .portfolio-info .preview-link,
.portfolio-item .portfolio-info .details-link {
    position: absolute;
    right: 50px;
    font-size: 24px;
    top: calc(50% - 14px);
    color: color-mix(in srgb, var(--primary-color), transparent 30%);
    transition: 0.3s;
    line-height: 0;
}

.portfolio-item .portfolio-info .preview-link:hover,
.portfolio-item .portfolio-info .details-link:hover {
    color: var(--primary-color);
}

.portfolio-item .portfolio-info .details-link {
    right: 14px;
    font-size: 28px;
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
    bottom: 0;
}


.project-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}


.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}


.project-card:hover {
    border: var(--primary-color); /* primary blue border on hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    color: #fff; /* ensure white text */
    background-color: var(--primary-color);
}

.client-icon {
    width: 50px; /* set a fixed width */
    height: 50px; /* set a fixed height */
    object-fit: contain; /* keep aspect ratio */
}

.contact-map {
    width: 100%;
    height: 400px;
}

/* Floating Buttons Default (LTR on right) */
.design-project-float,
.profile-float {
    position: fixed;
    right: 0; /* LTR default on right */
    background-color: var(--primary-color);
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    z-index: 999;
    text-decoration: none;
    color: white;
    gap: 8px;
    transition: width 0.3s ease;
    overflow: hidden;
    width: 50px; /* Default size (icon only) */
    height: 35px;
    white-space: nowrap;
}

/* Button Positions */
.design-project-float {
    top: 160px;
}

.profile-float {
    top: 200px;
}

/* Hidden Text */
.design-project-float-text,
.profile-float-text {
    opacity: 0;
    margin-left: 5px;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

/* Icons */
.design-project-float-icon,
.profile-float-icon {
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

/* Hover Effect */
.design-project-float:hover,
.profile-float:hover {
    width: 190px; /* Expand on hover */
}

.design-project-float:hover .design-project-float-text,
.profile-float:hover .profile-float-text {
    opacity: 1;
}

/* ===== RTL Support (switch sides) ===== */
[dir="rtl"] .design-project-float,
[dir="rtl"] .profile-float {
    right: auto;
    left: 0; /* Move to left in RTL */
}

/* Adjust text margin for RTL */
[dir="rtl"] .design-project-float-text,
[dir="rtl"] .profile-float-text {
    margin-left: 0;
    margin-right: 5px;
}

/* Adjust border-radius for RTL */
[dir="rtl"] .design-project-float,
[dir="rtl"] .profile-float {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

/* Hover Effect */
[dir="rtl"] .design-project-float:hover,
[dir="rtl"] .profile-float:hover {
    width: 150px; /* Expand on hover */
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
    color: var(--light-gray);
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 160px 0 0 0;
    text-align: center;
    position: relative;
}

.page-title:before {
    content: "";
    background-color: color-mix(in srgb, var(--primary-color), transparent 50%);
    position: absolute;
    inset: 0;
}

.page-title h1 {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 10px;
}


.page-title .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
}

.page-title .breadcrumbs ol li + li {
    padding-left: 10px;
}

.page-title .breadcrumbs ol li + li::before {
    content: "/";
    display: inline-block;
    padding-right: 10px;
    color: color-mix(in srgb, var(--light-gray), transparent 50%);
}


.page-title .hero-waves {
    display: block;
    width: 100%;
    height: 60px;
    position: relative;
    margin-top: 60px;
}

.page-title .wave1 use {
    animation: move-forever1 10s linear infinite;
    animation-delay: -2s;
    fill: var(--light-gray);
    opacity: 0.6;
}

.page-title .wave2 use {
    animation: move-forever2 8s linear infinite;
    animation-delay: -2s;
    fill: var(--light-gray);
    opacity: 0.4;
}

.page-title .wave3 use {
    animation: move-forever3 6s linear infinite;
    animation-delay: -2s;
    fill: var(--light-gray);
}


@keyframes move-forever1 {
    0% {
        transform: translate(85px, 0%);
    }

    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever2 {
    0% {
        transform: translate(-90px, 0%);
    }

    100% {
        transform: translate(85px, 0%);
    }
}

@keyframes move-forever3 {
    0% {
        transform: translate(-90px, 0%);
    }

    100% {
        transform: translate(85px, 0%);
    }
}


/*--------------------------------------------------------------
# Recent Posts Section
--------------------------------------------------------------*/
.recent-posts article {
    background: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.recent-posts .post-img {
    max-height: 240px;
    margin: -30px -30px 15px -30px;
    overflow: hidden;
}

.recent-posts .post-category {
    font-size: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 50%);
    margin-bottom: 10px;
}

.recent-posts .title {
    font-size: 20px;
    font-weight: 700;
    padding: 0;
    margin: 0 0 20px 0;
}

.recent-posts .title a {
    color: var(--primary-color);
    transition: 0.3s;
}

.recent-posts .title a:hover {
    color: var(--primary-color);
}

.recent-posts .post-author-img {
    width: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.recent-posts .post-author {
    font-weight: 600;
    margin-bottom: 5px;
}

.recent-posts .post-date {
    font-size: 14px;
    color: color-mix(in srgb, var(--default-color), transparent 50%);
    margin-bottom: 0;
}

.client-logo-wrapper-new {
    background-color: transparent;
    transition: transform 0.4s ease;
    overflow: hidden;
    text-decoration: none; /* Remove underline */
    color: inherit; /* Keep text color */
    display: block; /* Make the entire block clickable */
    text-align: right; /* Align text to the right */
}

.client-logo-wrapper-new .blog-content {
    text-align: right; /* Ensure blog content is right-aligned */
}

.client-logo-wrapper-new:hover .client-logo-new {
    filter: grayscale(0%);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Shadow on hover */
    border-radius: 10px;
}

.client-logo-wrapper-new:hover .client-logo-new-wide {
    filter: grayscale(0%);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Shadow on hover */
    border-radius: 10px;
}


.client-logo-new {
    width: 260px;
    height: 260px;
    padding: 5px;
    object-fit: cover; /* or contain */
    filter: grayscale(100%);
    border-radius: 20px; /* optional if wrapper already clips */
    transition: all 0.4s ease;
    display: block;
    margin: 0 auto; /* ensures image is centered if text-align fails */
}

.client-logo-new-wide {
    width: 360px;
    height: 320px;
    object-fit: cover;
    padding: 5px;
    filter: grayscale(100%);
    border-radius: 20px; /* optional if wrapper already clips */
    transition: all 0.4s ease;
    display: block;
    margin: 0 auto; /* ensures image is centered if text-align fails */
}

.client-logo-title {
    text-align: center;
}

.certified-by-logo-wrapper {
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px; /* أو حدد قيمة مثل 150px */
}

.certified-by-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-image {
    padding: 5px; /* Optional: Adds spacing inside the background */
}

/* Base styles for the vertical mobile view */
.timeline-container {
    position: relative;
    padding: 60px 0 10px 0;
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 15px; /* reduced spacing */
}

.timeline-number {
    width: 40px; /* unified size */
    height: 40px; /* unified size */
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 10;
    position: relative;
    border: none; /* removed the border/line */
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15); /* lighter shadow */
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 12px; /* slightly smaller padding */
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 350px;
    margin-top: 12px; /* reduced spacing */
}

.timeline-content h5 {
    color: #dc3545;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Desktop horizontal view */
@media (min-width: 992px) {
    .timeline-container {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        padding: 60px 0; /* reduced top/bottom padding */
    }

    .timeline-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 12%; /* uniform width */
        margin: 0 5px; /* reduced horizontal spacing */
        position: relative;
        justify-content: center;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .timeline-number {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    .timeline-content {
        margin-top: 0;
        position: absolute;
        width: 100%;
        max-width: none;
    }

    /* Odd steps (top) */
    .timeline-step:nth-child(odd) .timeline-content {
        top: 0;
        transform: translateY(-100%) translateY(-10px);
    }

    /* Even steps (bottom) */
    .timeline-step:nth-child(even) .timeline-content {
        bottom: 0;
        transform: translateY(100%) translateY(10px);
    }
}


.footer {
    color: var(--default-color); /* text color */
    background-color: var(--default-color); /* text color */
    font-size: 14px;
    position: relative;
    z-index: 2; /* make footer content above waves */
}

.footer-hero-waves {
    display: block;
    width: 100%;
    height: 60px;
    position: relative;
    margin-bottom: 9px; /* slightly overlap footer */
    transform: scaleY(1); /* flip wave if needed */
    z-index: 1;
}

.footer-hero-waves .wave1 use,
.footer-hero-waves .wave2 use,
.footer-hero-waves .wave3 use {
    fill: var(--default-color); /* text color */
    opacity: 0.6; /* adjust for wave layering */
}


.footer-hero-waves .wave1 use {
    animation: move-forever1 10s linear infinite;
    animation-delay: -2s;
    fill: var(--default-color);
    opacity: 0.6;
}

.footer-hero-waves .wave2 use {
    animation: move-forever2 8s linear infinite;
    animation-delay: -2s;
    fill: var(--default-color);
    opacity: 0.4;
}

.footer-hero-waves .wave3 use {
    animation: move-forever3 6s linear infinite;
    animation-delay: -2s;
    fill: var(--default-color);
}


@keyframes move-forever1 {
    0% {
        transform: translate(85px, 0%);
    }

    100% {
        transform: translate(-90px, 0%);
    }
}

@keyframes move-forever2 {
    0% {
        transform: translate(-90px, 0%);
    }

    100% {
        transform: translate(85px, 0%);
    }
}

@keyframes move-forever3 {
    0% {
        transform: translate(-90px, 0%);
    }

    100% {
        transform: translate(85px, 0%);
    }
}

.blog-details article {
    background: whitesmoke;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.blog-details .post-img {
    width: auto;
    height: 340px;
    margin: 0 auto 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px; /* rounded container */
}

.blog-details .post-img img {
    width: 100%; /* fill container width */
    height: 100%; /* fill container height */
    object-fit: cover; /* maintain aspect ratio and cover container */
    display: block;
    border-radius: 8px; /* rounded corners for image */
}

.blog-details .post-category {
    font-size: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 50%);
    margin-bottom: 10px;
}

.blog-details .title {
    font-size: 20px;
    font-weight: 700;
    padding: 0;
    margin: 0 0 20px 0;
}

.blog-details .title a {
    color: whitesmoke;
    transition: 0.3s;
}

.blog-details .title a:hover {
    color: whitesmoke;
}

.blog-details .post-author-img {
    width: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.blog-details .post-author {
    font-weight: 600;
    margin-bottom: 5px;
}

.blog-details .post-date {
    font-size: 14px;
    color: color-mix(in srgb, var(--default-color), transparent 50%);
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
    padding-top: 60px;
    padding-bottom: 60px;
}

.testimonials .section-title {
    padding-bottom: 60px;
}

@media (max-width: 767px) {
    .testimonials .section-title {
        padding-bottom: 10px;
    }
}

.testimonials .testimonial-masonry {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2rem;
    position: relative;
}

.testimonials .testimonial-masonry::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--primary-light), transparent 95%), transparent);
    opacity: 0.5;
    z-index: -1;
}

.testimonials .testimonial-item:nth-child(3n-1) {
    margin-top: 3rem;
}

.testimonials .testimonial-item:nth-child(3n) {
    margin-top: 1.5rem;
}

.testimonials .testimonial-item.highlight .testimonial-content {
    background-color: color-mix(in srgb, var(--primary-light), transparent 92%);
    border: 1px solid color-mix(in srgb, var(--primary-light), transparent 70%);
}

.testimonials .testimonial-item.highlight .testimonial-content .quote-pattern {
    background-color: color-mix(in srgb, var(--primary-light), transparent 85%);
}

.testimonials .testimonial-item.highlight .testimonial-content .quote-pattern i {
    color: var(--primary-light);
}

.testimonials .testimonial-content {
    background-color: var(--primary-light);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.testimonials .testimonial-content:hover {
    transform: translateY(-5px);
}

.testimonials .testimonial-content p {
    font-size: 0.8rem;
    margin: 1.5rem 0;
    position: relative;
}

.testimonials .quote-pattern {
    position: absolute;
    top: -1.25rem;
    left: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.testimonials .quote-pattern i {
    font-size: 1.25rem;
    color: var(--primary-light);
}

.testimonials .client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.testimonials .client-details h3 {
    font-size: 0.825rem;
    margin-bottom: 0.25rem;
}

.testimonials .client-details .position {
    font-size: 0.875rem;
    color: color-mix(in srgb, var(--primary-color), transparent 40%);
}

@media (max-width: 1199.98px) {
    .testimonials .testimonial-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .testimonials .testimonial-item:nth-child(3n-1),
    .testimonials .testimonial-item:nth-child(3n) {
        margin-top: 0;
    }

    .testimonials .testimonial-item:nth-child(even) {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .testimonials .testimonial-masonry {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonials .testimonial-item:nth-child(even) {
        margin-top: 0;
    }

    .testimonials .testimonial-content {
        padding: 1.5rem;
    }

    .testimonials .testimonial-content p {
        font-size: 0.9375rem;
        margin: 1.25rem 0;
    }

    .testimonials .quote-pattern {
        width: 2.25rem;
        height: 2.25rem;
        top: -1.125rem;
    }

    .testimonials .quote-pattern i {
        font-size: 1.125rem;
    }

    .testimonials .client-info {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }

    .testimonials .client-image {
        width: 45px;
        height: 45px;
    }

    .testimonials .client-details h3 {
        font-size: 1rem;
    }

    .testimonials .client-details .position {
        font-size: 0.8125rem;
    }
}

.service-logo-wrapper-new {
    background-color: transparent;
    transition: transform 0.4s ease;
    overflow: hidden;
    text-decoration: none; /* Remove underline */
    color: inherit; /* Keep text color */
    display: block; /* Make the entire block clickable */
    text-align: right; /* Align text to the right */
}

.service-logo-wrapper-new:hover .service-logo-new-wide {
    filter: grayscale(0%);
    transform: scale(1.1);
    border-radius: 10px;
}

.service-logo-new-wide {
    width: 320px;
    height: 320px;
    object-fit: cover;
    padding: 5px;
    filter: grayscale(100%);
    border-radius: 20px; /* optional if wrapper already clips */
    transition: all 0.4s ease;
    display: block;
    margin: 0 auto; /* ensures image is centered if text-align fails */
}

/* Default LTR */
.about-left {
    text-align: left;
}

.about-right {
    text-align: left;
}

/* Flip AOS animations for RTL */
html[dir="rtl"] .about-left {
    text-align: right;
    data-aos: fade-left !important;
}

html[dir="rtl"] .about-right {
    text-align: right;
    data-aos: fade-right !important;
}

/* Optional: spacing adjustments for RTL */
html[dir="rtl"] .about-content {
    direction: rtl;
}

/* Default LTR */
/* Text and icons for LTR (text always left, image right) */
.difference-item .d-flex {
    flex-direction: row; /* icon left, text right */
}

.difference-icon {
    margin-right: 1rem; /* spacing between icon and text */
    margin-left: 0;
}

/* Padding between text and image */
.difference-text {
    padding-right: 2rem; /* space between text column and image */
}

/* Force text alignment */
.difference-text {
    text-align: left;
}

/* For RTL: text right, image left */
html[dir="ltr"] .difference-item .d-flex {
    flex-direction: row-reverse; /* icon right, text left */
}

html[dir="ltr"] .difference-icon {
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="ltr"] .difference-text {
    text-align: right;
    padding-left: 0; /* space between image and text */
    padding-right: 2rem;
}

/* Flip row order for RTL */
html[dir="ltr"] .row.align-items-center {
    flex-direction: row-reverse;
}

/* Force input and textarea text to left, even in RTL pages */
.force-ltr {
    direction: ltr !important;
    text-align: left !important;
}

.blog-badge {
    background-color: var(--primary-color);
    color: #fff; /* Optional: ensure text remains readable */
}

.blog-content {
    color: var(--primary-color);
}

.client-logo-wrapper-new a {
    text-decoration: none;
}