/*
Theme Name: فكرتك
Theme URI: https://fekritk.com/
Author: ماجد غبور
Author URI: https://fekritk.com/
Description: قالب ووردبريس مخصص مبني بواسطة ماجد غبور.
Version: 1.0
Text Domain: fekritk
*/

/* Modern CSS Reset & Setup */
@font-face {
    font-family: 'ITF Laureen Pro Arabic';
    src: url('fonts/itfLaureenproArabic-Light.otf') format('opentype');
    font-weight: 300;
    /* Light */
    font-style: normal;
}

:root {
    --bg-color: #ffffff;
    --text-color: #0e1e2e;
    --text-muted: #6c757d;
    --primary-color: #8c785c;
    --primary-hover: #756249;
    --border-color: rgba(14, 30, 46, 0.1);
    --font-family: 'ITF Laureen Pro Arabic', 'Tajawal', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    /* Slightly more rounded as in image */
    padding: 14px 40px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    /* Rounded rectangle as in image */
    font-weight: 500;
    padding: 10px 28px;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Main Header */
.main-header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 30px 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    max-height: 70px;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.9;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.header-action {
    display: block;
}

.header-action-mobile {
    display: none;
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-color: #0e1e2e;
    padding-top: 180px;
    /* Space for the absolute header */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    /* The bottom white part */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    /* The dark blue part covers almost everything except the bottom 80px */
    background-color: #0e1e2e;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
    /* Keep content above the background pseudo-element */
}

/* Hero Content (Right column) */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 15px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 580px;
}

.hero-actions {
    margin-bottom: 45px;
}

/* Hero Statistics */
.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 35px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-family);
    direction: ltr;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Hero Image Container (Left column) */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    transform: translateY(60px);
    /* Push the image down into the white area */
}

.hero-image-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

/* Responsive Design */
@media (max-width: 991px) {
    .main-header {
        padding: 20px 0;
    }

    .hero-section {
        padding-top: 140px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        order: 1;
        /* Text on top */
        text-align: center;
        align-items: center;
        padding-top: 7rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
        width: 100%;
        gap: 30px;
    }

    .hero-image-wrapper {
        order: 2;
        /* Image below */
    }

    .hero-image-card {
        max-width: 480px;
    }
}

@media (max-width: 768px) {

    /* Mobile Nav Styles */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: var(--bg-color);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1050;
        padding: 100px 40px;
        transition: right 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }

    .nav-link {
        font-size: 1.3rem;
    }

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

    /* Toggle states for menu icon */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

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

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

    .header-action {
        display: none;
        /* Hide login button on small screens inside header, could be moved to sidebar */
    }

    .nav-menu .header-action-mobile {
        display: block;
        margin-top: 40px;
        width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-item {
        flex: 1 1 40%;
        align-items: center;
    }
}

/* About Us Section Styles */
.about-section {
    background-color: transparent;
    color: #0e1e2e;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.about-container {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 80px 50px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    position: relative;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
}

/* Vertical line on the right of the text content */
.about-content::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 0;
    width: 1.5px;
    height: calc(100% - 15px);
    background-color: var(--primary-color);
    opacity: 0.45;
}

.about-tag {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.about-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0e1e2e;
    margin-bottom: 25px;
    position: relative;
}

/* Horizontal line under subtitle */
.about-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -40px;
    /* extends to touch the vertical line */
    left: 0;
    height: 1.5px;
    background-color: var(--primary-color);
    opacity: 0.45;
}

.about-description {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.85;
    margin-top: 35px;
    margin-bottom: 30px;
}

.about-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0e1e2e;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 14px;
    height: 14px;
}

.feature-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0e1e2e;
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-card {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1.05 / 1;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive updates for About Section */
@media (max-width: 991px) {
    section {
        padding: 20px 0 !important;
    }
    .about-section {
        padding: 20px 0;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-content {
        padding-right: 0;
        order: 1;
        /* Text on top */
    }

    .about-image-wrapper {
        order: 2;
        /* Image below */
    }

    .about-content::before,
    .about-title::after {
        display: none;
        /* Hide decorative lines on mobile */
    }

    .about-title {
        margin-bottom: 15px;
        font-size: 2rem;
    }

    .about-description {
        margin-top: 15px;
    }
}

/* Services Section Styles */
.services-section {
    background-color: transparent;
    color: #0e1e2e;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.services-container {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 80px 50px;
    position: relative;
}

.services-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0e1e2e;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.services-desc {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.6;
    margin-top: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.service-card {
    background-color: #ffffff;
    border: 1.5px solid rgba(14, 30, 46, 0.12);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(14, 30, 46, 0.08);
    border-color: var(--primary-color);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0e1e2e;
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 1.05rem;
    color: #718096;
    line-height: 1.6;
    max-width: 250px;
}

.services-action {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.btn-dark {
    background-color: #0e1e2e;
    color: #ffffff;
    border: 1px solid #0e1e2e;
    border-radius: 8px;
    padding: 14px 40px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

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

/* Decorative grid lines and crosshairs */
.decor-grid {
    position: absolute;
    width: 80px;
    height: 80px;
    pointer-events: none;
    opacity: 0.65;
    z-index: 1;
}

.decor-top-right {
    top: 60px;
    right: 4%;
}

.decor-top-right::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: #cbd5e1;
}

.decor-top-right::after {
    content: '';
    position: absolute;
    top: 0;
    right: 40px;
    width: 1px;
    height: 100%;
    background-color: #cbd5e1;
}

.decor-bottom-left {
    bottom: 60px;
    left: 4%;
}

.decor-bottom-left::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #cbd5e1;
}

.decor-bottom-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 1px;
    height: 100%;
    background-color: #cbd5e1;
}

/* Responsive updates for Services Section */
@media (max-width: 991px) {
    .services-section {
        padding: 70px 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .decor-grid {
        display: none;
        /* Hide decorative crosshairs on tablet/mobile */
    }
}

}

/* How We Work Section Styles */
.how-we-work-section {
    background-color: transparent;
    color: #0e1e2e;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.work-container {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 80px 50px;
    position: relative;
}

.work-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.work-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0e1e2e;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.work-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.work-desc {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.6;
    margin-top: 15px;
}

/* ── Blog Section ── */
.blog-section {
    background-color: #ffffff;
    padding: 60px 0;
    position: relative;
}

.blog-container {
    padding: 0 24px;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.blog-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0e1e2e;
    position: relative;
    padding-bottom: 15px;
}

.blog-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: #f6f6f6;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.blog-image-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.blog-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
    text-align: center;
}

@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-title {
        font-size: 1.8rem;
    }
}

/* ── Branches Section ── */
.branches-section {
    background-color: #ffffff;
    padding: 60px 0;
    position: relative;
}

.branches-container {
    padding: 0 24px;
}

.branches-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.branches-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0e1e2e;
    position: relative;
    padding-bottom: 15px;
}

.branches-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.branch-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

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

.branch-map-wrapper {
    width: 100%;
    height: 100%;
}

.branch-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 20%, rgba(255, 255, 255, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    /* So the map is still interactive */
}

.branch-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0e1e2e;
    margin: 0;
}

.branch-icon {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    /* Clickable */
    transition: var(--transition);
}

.branch-icon:hover {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .branches-grid {
        grid-template-columns: 1fr;
    }

    .branches-title {
        font-size: 1.8rem;
    }
}

/* ── Accredited Section ── */
.accredited-section {
    background-color: #ffffff;
    padding: 60px 0;
    position: relative;
}

.accredited-container {
    padding: 0 24px;
}

.accredited-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.accredited-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0e1e2e;
    position: relative;
    padding-bottom: 15px;
}

.accredited-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.accredited-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1050px;
    margin: 0 auto;
}

.accredited-card {
    background-color: #ffffff;
    border: 1px solid rgba(14, 30, 46, 0.15);
    border-radius: 8px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 235px;
    height: 90px;
    transition: var(--transition);
}

.accredited-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.accredited-swiper-wrapper {
    display: none;
}
@media (max-width: 991px) {
    .accredited-desktop {
        display: none !important;
    }
    .accredited-swiper-wrapper {
        display: block !important;
    }
    .accredited-card {
        flex: 0 1 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .accredited-card {
        flex: 0 1 calc(50% - 20px);
    }

    .accredited-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .accredited-card {
        flex: 0 1 100%;
    }
}

/* ── FAQ Section ── */
.faq-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0e1e2e;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.faq-desc {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.7;
    max-width: 600px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid rgba(14, 30, 46, 0.15);
}

.faq-item:first-child {
    border-top: 1px solid rgba(14, 30, 46, 0.15);
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover .faq-text {
    color: var(--primary-color);
}

.faq-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0e1e2e;
    margin-left: 20px;
    font-family: var(--font-family);
}

.faq-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0e1e2e;
    flex: 1;
    transition: var(--transition);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(-90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 45px 25px 0;
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 1.8rem;
    }

    .faq-text {
        font-size: 1.1rem;
    }

    .faq-number {
        font-size: 1.2rem;
        margin-left: 15px;
    }

    .faq-answer p {
        padding: 0 30px 20px 0;
    }
}

/* ── Testimonials Section ── */
.testimonials-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.testimonials-container {
    max-width: 1100px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.testimonials-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0e1e2e;
    position: relative;
    padding-bottom: 15px;
}

.testimonials-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background-color: #ffffff;
    border: 1px solid rgba(14, 30, 46, 0.2);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.testimonial-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.testimonial-quote-icon {
    opacity: 0.8;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align to right since it's RTL */
}

.client-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0e1e2e;
    margin-bottom: 5px;
}

.client-stars {
    display: flex;
    gap: 2px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background-color: #c4c4c4;
    border-radius: 50%;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    text-align: center;
}

@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ── CTA Section ── */
.cta-section {
    background-color: transparent;
    padding: 60px 0;
}

.cta-card {
    background-image: url('assets/cta.png');
    background-size: cover;
    background-position: center center;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
}

/* Dark overlay on top of the background image */
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 30, 46, 0.72);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.85;
    margin-bottom: 36px;
    max-width: 80%;
}

.cta-btn {
    padding: 14px 38px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .cta-card {
        min-height: 420px;
        background-position: left center;
    }

    .cta-card::before {
        background: rgba(14, 30, 46, 0.82);
    }

    .cta-content {
        padding: 40px 24px;
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

/* ── New Timeline (tl-*) ── */
.tl-wrapper {
    direction: rtl;
    margin-top: 50px;
}

/* Top & bottom rows: 4 equal columns */
.tl-top-row,
.tl-bottom-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Top slots: card sits at the bottom of its slot (flush against the line) */
.tl-top-row .tl-slot {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Bottom slots: card sits at the top of its slot (flush against the line) */
.tl-bottom-row .tl-slot {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

/* The line row */
.tl-line-row {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
    margin: 0;
}

.tl-line-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background-color: #0e1e2e;
    z-index: 1;
}

/* 4 pin columns sitting on top of the line */
.tl-pins {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    z-index: 2;
}

.tl-pin-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Downward triangle pin (▼) */
.tl-pin-down {
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 14px solid #0e1e2e;
}

/* Card shared style */
.timeline-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px 28px 24px;
    border: 1px solid rgba(14, 30, 46, 0.08);
    position: relative;
    text-align: right;
    transition: var(--transition);
    margin-bottom: 14px;
    /* gap between card bottom and the line for top row */
}

.tl-bottom-row .timeline-card {
    margin-bottom: 0;
    margin-top: 0;
}

.timeline-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

/* Badge: dark circle at top-right of the card */
.timeline-badge {
    position: absolute;
    top: -18px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: #0e1e2e;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.timeline-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0e1e2e;
    margin-bottom: 10px;
    font-family: var(--font-family);
}

.timeline-card-desc {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.65;
    text-align: center;
}

/* ── Responsive: stack vertically on mobile ── */
@media (max-width: 768px) {

    .tl-top-row,
    .tl-bottom-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .tl-slot.tl-empty {
        display: none;
    }

    .tl-line-row {
        display: none;
    }

    .tl-top-row .tl-slot,
    .tl-bottom-row .tl-slot {
        justify-content: flex-start;
        padding-top: 0;
    }

    .timeline-card {
        margin-bottom: 0;
    }

    .tl-bottom-row {
        margin-top: 30px;
    }

    .about-container,
    .services-container,
    .work-container {
        padding: 40px 20px;
        border-radius: 16px;
    }
}


.timeline-wrapper {
    position: relative;
    padding: 100px 0;
    margin: 40px 0;
    direction: ltr;
    /* Force LTR on desktop to layout cards left-to-right */
}

/* Horizontal line in the middle */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #0e1e2e;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 450px;
    z-index: 2;
}

.timeline-col {
    position: relative;
    height: 450px;
    width: 25%;
    display: flex;
    justify-content: center;
}

/* Desktop layout order: 01 (above) -> 03 (below) -> 02 (above) -> 04 (below) */
.col-01 {
    order: 1;
}

.col-03 {
    order: 2;
}

.col-02 {
    order: 3;
}

.col-04 {
    order: 4;
}

/* Pin positioned exactly centered vertically on the line */
.timeline-pin-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.timeline-pin {
    display: block;
}

/* Cards wrappers */
.timeline-card-wrapper {
    position: absolute;
    width: 90%;
    max-width: 280px;
    direction: rtl;
    /* Reset direction to RTL for text content inside cards */
}

/* Card placement above line */
.col-up .timeline-card-wrapper {
    bottom: calc(50% + 22px);
}

/* Card placement below line */
.col-down .timeline-card-wrapper {
    top: calc(50% + 22px);
}

.timeline-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(14, 30, 46, 0.05);
    position: relative;
    text-align: right;
    transition: var(--transition);
}

.timeline-card:hover {
    box-shadow: 0 15px 35px rgba(14, 30, 46, 0.08);
    border-color: var(--primary-color);
}

/* Smooth float direction depending on above/below position */
.col-up .timeline-card:hover {
    transform: translateY(-5px);
}

.col-down .timeline-card:hover {
    transform: translateY(5px);
}

/* Badge styled as circle sitting at top-right of the card */
.timeline-badge {
    position: absolute;
    top: -16px;
    right: 24px;
    width: 32px;
    height: 32px;
    background-color: #0e1e2e;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(14, 30, 46, 0.2);
}

.timeline-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0e1e2e;
    margin-bottom: 12px;
    font-family: var(--font-family);
}

.timeline-card-desc {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
}

/* Responsive updates for Timeline */
@media (max-width: 991px) {
    .timeline-container {
        height: auto;
        gap: 30px;
    }

    .timeline-col {
        height: auto;
    }

    .timeline-card {
        padding: 24px 20px;
    }
}

@media (max-width: 768px) {
    .timeline-wrapper {
        direction: rtl;
        /* Switch back to RTL vertical timeline on mobile */
        padding: 50px 0;
        margin: 20px 0;
    }

    .timeline-line {
        top: 0;
        bottom: 0;
        left: auto;
        right: 30px;
        /* vertical line on right side */
        width: 4px;
        height: 100%;
        transform: none;
    }

    .timeline-container {
        flex-direction: column;
        height: auto;
        gap: 40px;
        padding-right: 60px;
        /* space for vertical line */
        align-items: flex-start;
    }

    .timeline-col {
        width: 100%;
        height: auto;
        display: block;
        /* Reset desktop order back to chronological */
        order: 0 !important;
    }

    .timeline-card-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        top: auto !important;
        bottom: auto !important;
    }

    .timeline-pin-wrapper {
        top: 50px;
        /* align with vertical center of card */
        left: auto;
        right: -42px;
        /* center it on the vertical line */
        transform: translate(50%, -50%);
    }

    .timeline-pin {
        transform: rotate(-90deg);
        /* point left towards the card on mobile */
    }

    .work-title {
        font-size: 2rem;
    }

    .about-container,
    .services-container,
    .work-container {
        padding: 40px 20px;
        border-radius: 16px;
    }
}

/* ── Footer Section ── */
.main-footer {
    background: linear-gradient(135deg, #0e1e2e 0%, #152b43 100%);
    padding: 80px 0 0;
    color: #ffffff;
    position: relative;
    border-top: 3px solid var(--primary-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* RTL alignment */
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Links Column (Right) */
.footer-links-col {
    text-align: right;
    align-items: flex-start;
}

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

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '←';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Center Column (Logo & Hours) */
.footer-center-col {
    text-align: center;
    align-items: center;
}

.footer-logo {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.02);
    padding: 25px 45px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.footer-logo:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    max-width: 320px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.footer-center-col .footer-title::after {
    right: 50%;
    transform: translateX(50%);
}

.footer-hours p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Contact Column (Left) */
.footer-contact-col {
    align-items: flex-start;
    /* flex-start is right in RTL */
    text-align: right;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.mt-3 {
    margin-top: 20px;
}

.contact-text {
    font-size: 1.15rem;
    margin-right: 12px;
    color: #ffffff;
    font-weight: 600;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(140, 120, 92, 0.15);
    /* primary color with low opacity */
    border-radius: 10px;
    color: var(--primary-color);
}

.contact-icon svg {
    stroke: var(--primary-color);
}

.contact-detail {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 5px;
    text-align: right;
    width: 100%;
    padding-right: 48px;
    /* align with text, bypassing icon */
    direction: ltr;
    /* keep phone/email ltr */
    display: flex;
    justify-content: flex-end;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    width: 100%;
    justify-content: flex-start;
    /* Align right in RTL */
}

.social-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .footer-center-col {
        order: -1;
    }

    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-links-col,
    .footer-contact-col {
        align-items: center;
        text-align: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .contact-item,
    .social-links {
        justify-content: center;
    }

    .contact-text {
        margin-left: 5px;
        margin-right: 5px;
    }

    .contact-detail {
        padding-right: 0;
        justify-content: center;
    }

    .footer-bottom-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

/* Mobile CSS-Only Sliders for Blog and Testimonials */
@media (max-width: 991px) {
    .blog-grid, .testimonials-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 15px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
    }
    .blog-grid::-webkit-scrollbar, .testimonials-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    
    .blog-grid .blog-card, .testimonials-grid .testimonial-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        margin-bottom: 0; /* Override any grid margin */
    }
}