/* Global Styles */
/* Remove existing font imports and add the new font-face declarations */

/* Montserrat Font Family */
@font-face {
    font-family: 'Montserrat';
    src: url('../assets/Montserrat/static/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/Montserrat/static/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/Montserrat/static/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

/* Neo Sans Arabic Font Family */
@font-face {
    font-family: 'Neo Sans Arabic';
    src: url('../assets/neo-sans-arabic-cufonfonts/Neo Sans Arabic Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Neo Sans Arabic';
    src: url('../assets/neo-sans-arabic-cufonfonts/NeoSansArabicBlack.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

:root {
    /* Primary colors - Legacy Gold (normal to high focus) */
    --primary-color: #BF9368;
    --primary-darker: #AF7842; 
    --primary-lighter: #CFAE8E;
    --primary-lightest: #DFC9B3;
    --primary-faintest: #EFE4D9;
    
    /* Secondary colors - Heritage Bloodline (medium to high focus) */
    --secondary-color: #774551;
    --secondary-darker: #551726;
    --secondary-lighter: #99747D;
    --secondary-lightest: #BBA2A8;
    --secondary-faintest: #DDD1D4;
    
    /* Accent colors - Ancient Canopy (minimal focus) */
    --accent-color: #37A139;
    --accent-darker: #255426;
    --accent-medium: #29782B;
    --accent-lighter: #87C688;
    --accent-lightest: #D7ECD7;
    
    /* Base colors */
    --light-color: #f9f9f9;
    --dark-color: #2d2926;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Montserrat', sans-serif;
    --arabic-font: 'Neo Sans Arabic', sans-serif;
    --transition: all 0.3s ease;
    
    /* Performance settings */
    --animation-duration: 0.8s;
    --animation-delay-increment: 0.1s;
    --render-hint: geometricPrecision;    --smooth-scroll-behavior: smooth;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

body {
    font-family: var(--body-font);
    font-weight: 300; /* Light weight for body text */
    color: var(--secondary-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 900; /* Black weight for headings */
    color: var(--dark-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 1px solid var(--primary-color);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.section-footer {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0;
    font-style: italic;
}

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

.mt-50 {
    margin-top: 50px;
}

/* Header Styles */
header {
    background-color: var(--light-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    flex: 0 0 auto;
}

.logo h1 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 2px;
}

#main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

#main-nav ul {
    display: flex;
}

#main-nav ul li {
    margin: 0 15px;
}

#main-nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 5px 8px;
    color: var(--secondary-color);
}

#main-nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

#main-nav ul li a:hover:after,
#main-nav ul li a.active:after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.language-selector {
    display: flex;
    margin-right: 20px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
    color: var(--secondary-color);
}

.lang-btn.active, .lang-btn:focus {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: var(--primary-faintest);
}

.lang-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    background: var(--dark-color);
    position: absolute;
    left: 0;
    width: 100%;
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 20px;
}

/* Hero Section - Fix vertical positioning */
.hero {
    height: 100vh;
    min-height: 600px;
    padding: 0;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-swiper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.hero-content {
    max-width: 700px;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
    /* Ensure text is truly centered by positioning it absolutely */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 100%;     /* Use full available width */
    line-height: 1.2;    /* Tighten line height for better appearance */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Make button text white when transparent on hover */
.hero-content .btn-primary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* Animation classes for scroll effects */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--animation-duration) ease, transform var(--animation-duration) ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Delay variations for elements */
.delay-100 { transition-delay: var(--animation-delay-increment); }
.delay-200 { transition-delay: calc(var(--animation-delay-increment) * 2); }
.delay-300 { transition-delay: calc(var(--animation-delay-increment) * 3); }
.delay-400 { transition-delay: calc(var(--animation-delay-increment) * 4); }
.delay-500 { transition-delay: calc(var(--animation-delay-increment) * 5); }

/* Counter animation styling */
.stat-number {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color); /* Changed from var(--accent-color) to goldish brown */
    visibility: hidden;
    width: 100%;
    text-align: center;
    min-height: 4.2rem; /* Ensure consistent height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-number.counting {
    visibility: visible;
}

.stat-item {
    text-align: center;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-text {
    font-size: 1rem;
    line-height: 1.4;
    max-width: 200px; /* Limit width to prevent overflow */
}

.swiper-button-prev, 
.swiper-button-next {
    color: var(--secondary-color) !important; /* Wine color */
}

.swiper-pagination-bullet {
    background: var(--secondary-color) !important; /* Wine color */
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important; /* Goldish brown for active */
    opacity: 1;
}

/* Featured Properties */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.property-image {
    height: 200px;
    overflow: hidden;
}

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

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

.property-details {
    padding: 20px;
}

.property-details h3 {
    margin-bottom: 10px;
}

.property-details p {
    margin-bottom: 20px;
}

/* About Preview */
.about-preview {
    background-color: var(--primary-faintest);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 30px;
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Heritage Stewardship Section */
.heritage-stewardship {
    background-color: #f8f9fa;
    padding: 100px 0;
}

.heritage-stewardship .section-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: 2px;
}

.heritage-stewardship .section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.stewardship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.stewardship-item {
    background: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.stewardship-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stewardship-number {
    background: var(--primary-color);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.stewardship-title {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.stewardship-description {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Responsive adjustments for Heritage Stewardship */
@media (max-width: 768px) {
    .stewardship-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stewardship-item {
        padding: 20px 15px;
    }
    
    .heritage-stewardship {
        padding: 60px 0;
    }
}

/* Accomplishments Section */
.accomplishments {
    background-color: var(--secondary-darker);
    color: var(--light-color);
    padding: 100px 0;
}

.accomplishments .section-title {
    color: var(--light-color);
}

.accomplishments .section-title:after {
    margin: 10px auto;
}

/* Stats Carousel */
.stats-carousel {
    margin: 60px 0;
    position: relative;
}

.stats-swiper {
    padding: 20px 0;
    overflow: hidden;
}

.stats-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 250px;
}

.stat-number {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    visibility: hidden;
}

.stat-number.counting {
    visibility: visible;
}

.stat-text {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 15px;
}

/* Stats Swiper Navigation - Hidden */
.stats-swiper .swiper-button-next,
.stats-swiper .swiper-button-prev {
    display: none !important;
}

/* Stats Swiper Pagination - Hidden */
.stats-swiper .swiper-pagination {
    display: none !important;
}

/* Partners Section */
.partners {
    background-color: #fff;
    padding: 80px 0;
}

.partners-swiper {
    height: 150px;
    margin-top: 50px;
}

.partner-slide {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo {
    height: 100px;
    width: 180px;
    background-color: var(--primary-faintest);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
}

.partner-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo:hover .partner-img {
    transform: scale(1.05);
}

/* Contact CTA Section */
.contact-cta {
    background-color: var(--primary-lighter);
    padding: 80px 0;
    color: var(--dark-color);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content h3 {
    margin-top: 30px;
    font-size: 1.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cta-buttons .btn-secondary {
    background-color: var(--dark-color);
    color: var(--light-color);
    border-color: var(--dark-color);
}

.cta-buttons .btn-secondary:hover {
    background-color: transparent;
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--light-color);
    margin-bottom: 10px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--primary-lighter);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page Hero Section */
.page-hero {
    height: 40vh;
    min-height: 300px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/1.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 90px;
    padding-top: 80px;
}

.page-hero, .blog-loading.full-page {
    margin-top: 90px; /* Push hero below navbar */
}

.page-hero h1 {
    color: var(--light-color);
    font-size: 3.5rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* About Page Sections */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 40px 0;
}

.section-grid.reverse {
    grid-template-columns: 1fr 1fr;
}

.section-grid.reverse .section-image {
    order: 2;
}

.section-grid.reverse .section-content {
    order: 1;
}

.section-content h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.section-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.section-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.section-image .image-container {
    height: 400px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

/* Team Section */
.about-team {
    background-color: var(--light-color);
    padding: 80px 0;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto;
}

.team-intro p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.team-cta {
    margin-top: 15px;
    font-style: italic;
}

/* Client Portfolio */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.client-logo {
    height: 120px;
    background-color: #f5f5f5;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-weight: bold;
    transition: var(--transition);
}

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

/* Features Grid for Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    height: 80px;
    width: 80px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.conclusion {
    margin-top: 60px;
    font-size: 1.2rem;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Page Specific Sections */
.about-intro {
    padding: 80px 0;
    background-color: #fff;
}

.about-vision-mission {
    background-color: var(--light-color);
    padding: 80px 0;
}

.about-clients {
    padding: 80px 0;
    background-color: #fff;
}

.about-why-us {
    padding: 80px 0;
    background-color: var(--light-color);
}

/* Services Page Styles */
.service-intro {
    background-color: #fff;
    padding: 80px 0;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.large-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.service-categories {
    background-color: var(--light-color);
    padding: 80px 0;
}

.service-item {
    margin-bottom: 100px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.service-item.alt-layout .service-grid {
    direction: rtl;
}

.service-item.alt-layout .service-content {
    direction: ltr;
}

.service-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-lightest);
    color: var(--primary-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-content p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.service-image {
    height: 100%;
    min-height: 400px;
}

.service-image .image-container {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.service-cta {
    background-color: var(--primary-faintest);
    padding: 80px 0;
    color: var(--dark-color);
}

.service-cta .cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.service-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-secondary i {
    margin-left: 8px;
    transition: var(--transition);
}

.btn-secondary:hover i {
    transform: translateX(5px);
}

/* Team Page Styles */
.team-intro-section {
    background-color: #fff;
    padding: 80px 0;
}

.team-members {
    background-color: var(--light-color);
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Enhanced Team Profile Images - Circular Design */
.team-image {
    height: 280px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 30px !important;
    background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--light-color) 100%) !important;
}

.member-img {
    width: 220px !important;
    height: 220px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center top !important;
    transition: var(--transition) !important;
    border: 4px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    background-color: var(--light-color) !important;
}

.team-card:hover .member-img {
    transform: scale(1.08) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
}

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

.member-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    transition: var(--transition);
}

.team-card:hover .member-img {
    transform: scale(1.05);
}

.team-details {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-details h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-details h4 {
    font-family: var(--body-font);
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 2px 8px;
    background-color: rgba(119, 69, 81, 0.1);
    border-radius: 3px;
}

.team-contact {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: var(--light-color);
    color: var(--secondary-color);
    border-radius: 3px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-link i {
    margin-right: 5px;
    color: var(--primary-color);
}

.contact-link:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.contact-link:hover i {
    color: var(--light-color);
}

/* Team Member LinkedIn Link Styles */
.team-name-container {
    position: relative;
    display: inline-block;
}

.linkedin-link {
    margin-left: 10px;
    opacity: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0077B5;
    transition: opacity 0.3s ease;
    vertical-align: middle;
    font-size: 18px;
}

.team-name-container:hover .linkedin-link {
    opacity: 1;
}

.linkedin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: #0077B5;
    color: white;
    transition: all 0.3s ease;
}

.linkedin-link:hover .linkedin-icon {
    background-color: #00669c;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* LinkedIn icon styling for team members */
.team-name-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.linkedin-link {
    display: inline-flex;
    margin-left: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    top: -1px;
}

.linkedin-icon {
    background-color: #0077b5;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-details:hover .linkedin-link {
    opacity: 1;
}

.linkedin-link:hover .linkedin-icon {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Join Team Section */
.join-team {
    background-color: #fff;
    padding: 80px 0;
}

.career-form-container {
    max-width: 700px;
    margin: 50px auto 0;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(191, 147, 104, 0.2);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.file-upload {
    display: flex;
    flex-direction: column;
}

.file-upload label {
    margin-bottom: 10px;
    font-weight: 500;
}

.file-upload input[type="file"] {
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px dashed #e0e0e0;
    cursor: pointer;
}

.contact-form button {
    padding: 15px 30px;
    font-size: 1rem;
    width: max-content;
    justify-self: center;
}

/* Contact Page Styles */
.contact-info {
    background-color: #fff;
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    background-color: var(--light-color);
    border-radius: 5px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: left;
}

.contact-card h2:after {
    margin-left: 0;
}

.contact-card p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.address-details h3,
.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var (--primary-color);
}

.placeholder-text {
    color: #999;
    font-style: italic;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item a {
    color: var(--secondary-color);
}

.contact-item a:hover {
    color: var(--primary-darker);
}

/* Map Section */
.map-section {
    padding: 0;
    position: relative;
}

#contact-map {
    height: 450px;
    width: 100%;
    z-index: 1;
}

/* Contact Form */
.contact-form-section {
    background-color: #fff;
    padding: 80px 0;
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(191, 147, 104, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    padding: 15px 40px;
    font-size: 1rem;
    margin-top: 20px;
}

/* Contact Form Validation Styles */
.contact-form input.error,
.contact-form textarea.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.success-message {
    background-color: #27ae60;
    color: white;
    padding: 25px;
    border-radius: 5px;
    text-align: center;
    margin-top: 30px;
}

.success-message h3 {
    color: white;
    margin-bottom: 10px;
}

/* Social Connection */
.social-connection {
    background-color: var(--light-color);
    padding: 80px 0;
}

.social-content {
    max-width: 700px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    color: var(--dark-color);
}

/* Add RTL support for Arabic */
html[dir="rtl"] body {
    font-family: var(--arabic-font);
    font-weight: 400; /* Regular weight for Arabic */
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: var(--arabic-font);
    font-weight: 900; /* Black weight for Arabic headings */
}

html[dir="rtl"] strong,
html[dir="rtl"] b {
    font-weight: 900; /* Black weight for bold text in Arabic */
}

/* RTL layout adjustments */
html[dir="rtl"] .header-inner,
html[dir="rtl"] #main-nav ul,
html[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] #main-nav ul li a:after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .footer-contact i {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .social-icons a {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 15px;
}

/* Projects Page Styles */
.projects-filter {
    background-color: #fff;
    padding: 30px 0;
}

.filter-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.search-filter {
    flex: 2;
}

.category-filter, .location-filter {
    flex: 1;
}

.filter-input, .filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.filter-input:focus, .filter-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(191, 147, 104, 0.1);
}

.projects-grid {
    background-color: var(--light-color);
    padding: 50px 0 80px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-image {
    height: 200px;
    overflow: hidden;
}

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

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

.project-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

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

.project-meta i {
    margin-right: 5px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-category {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-description {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.view-project {
    margin-top: auto;
    align-self: flex-start;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover, .pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var (--primary-color);
}

/* Project Detail Page Styles - Updated Design */
.project-detail-section {
    padding-top: 0;
    padding-bottom: 60px;
    background-color: var(--light-color);
}

.project-hero {
    margin-bottom: 40px;
    width: 100%;
    padding-top: 80px; /* Add padding to push content below the navbar */
}

.project-hero-image {
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}

.project-hero-content {
    color: white;
    position: relative;
    padding: 40px 0;
    max-width: 800px;
}

.project-category-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-hero .project-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-hero .project-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 0;
}

.project-hero .meta-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.project-hero .meta-item i {
    margin-right: 10px;
    color: var(--primary-lighter);
    font-size: 1.2rem;
}

.project-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.project-body {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.project-summary-box {
    padding: 30px;
    background-color: var(--primary-faintest);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-summary-box h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var (--secondary-darker);
}

.project-summary-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--secondary-color);
}

.project-content-main {
    padding: 40px;
}

.project-content-main h2 {
    font-size: 2rem;
    margin: 30px 0 20px;
    color: var(--secondary-darker);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-faintest);
}

.project-content-main h2:first-child {
    margin-top: 0;
}

.project-content-main h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--secondary-color);
}

.project-content-main p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.project-content-main ul, 
.project-content-main ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.project-content-main ul li, 
.project-content-main ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.project-content-main img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--primary-faintest);
}

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

.sidebar-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-list i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.sidebar-list li div {
    flex: 1;
}

.sidebar-list li strong {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-darker);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-list li span {
    color: var(--secondary-color);
    font-size: 1.05rem;
}

.sidebar-cta {
    background-color: var(--primary-faintest);
    text-align: center;
}

.sidebar-cta p {
    margin-bottom: 20px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.project-gallery-section {
    padding: 60px 0;
    background-color: white;
    margin-bottom: 40px;
}

.gallery-swiper {
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.gallery-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: zoom-in;
}

.gallery-slide-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
}

.gallery-slide-zoom:hover {
    opacity: 1;
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

.gallery-thumbnail {
    width: 100px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 3px solid transparent;
    transition: var(--transition);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnail-more {
    width: 100px;
    height: 70px;
    border-radius: 5px;
    background-color: var(--primary-lighter);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-thumbnail-more:hover {
    background-color: var(--primary-color);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 5px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.related-projects-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.related-projects-section .section-title {
    margin-bottom: 50px;
}

.related-projects-section .projects-container {
    margin-bottom: 40px;
}

/* Accomplishments Section */
.accomplishments {
    background-color: var(--secondary-darker);
    color: var(--light-color);
    padding: 100px 0;
}

.accomplishments .section-title {
    color: var(--light-color);
}

.accomplishments .section-title:after {
    margin: 10px auto;
}

/* Stats Carousel */
.stats-carousel {
    margin: 60px 0;
    position: relative;
}

.stats-swiper {
    padding: 20px 0;
    overflow: hidden;
}

.stats-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 250px;
}

.stat-number {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    visibility: hidden;
}

.stat-number.counting {
    visibility: visible;
}

.stat-text {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 15px;
}

/* Stats Swiper Navigation - Hidden */
.stats-swiper .swiper-button-next,
.stats-swiper .swiper-button-prev {
    display: none !important;
}

/* Stats Swiper Pagination - Hidden */
.stats-swiper .swiper-pagination {
    display: none !important;
}

/* Partners Section */
.partners {
    background-color: #fff;
    padding: 80px 0;
}

.partners-swiper {
    height: 150px;
    margin-top: 50px;
}

.partner-slide {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo {
    height: 100px;
    width: 180px;
    background-color: var(--primary-faintest);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
}

.partner-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo:hover .partner-img {
    transform: scale(1.05);
}

/* Contact CTA Section */
.contact-cta {
    background-color: var(--primary-lighter);
    padding: 80px 0;
    color: var(--dark-color);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content h3 {
    margin-top: 30px;
    font-size: 1.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.cta-buttons .btn-secondary {
    background-color: var(--dark-color);
    color: var(--light-color);
    border-color: var(--dark-color);
}

.cta-buttons .btn-secondary:hover {
    background-color: transparent;
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--light-color);
    margin-bottom: 10px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--primary-lighter);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page Hero Section */
.page-hero {
    height: 40vh;
    min-height: 300px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/1.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 90px;
    padding-top: 80px;
}

.page-hero, .blog-loading.full-page {
    margin-top: 90px; /* Push hero below navbar */
}

.page-hero h1 {
    color: var(--light-color);
    font-size: 3.5rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* About Page Sections */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 40px 0;
}

.section-grid.reverse {
    grid-template-columns: 1fr 1fr;
}

.section-grid.reverse .section-image {
    order: 2;
}

.section-grid.reverse .section-content {
    order: 1;
}

.section-content h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.section-content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.section-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.section-image .image-container {
    height: 400px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

/* Team Section */
.about-team {
    background-color: var(--light-color);
    padding: 80px 0;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto;
}

.team-intro p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.team-cta {
    margin-top: 15px;
    font-style: italic;
}

/* Client Portfolio */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.client-logo {
    height: 120px;
    background-color: #f5f5f5;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-weight: bold;
    transition: var(--transition);
}

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

/* Features Grid for Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    height: 80px;
    width: 80px;
    margin: 0 auto 20px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.conclusion {
    margin-top: 60px;
    font-size: 1.2rem;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Page Specific Sections */
.about-intro {
    padding: 80px 0;
    background-color: #fff;
}

.about-vision-mission {
    background-color: var(--light-color);
    padding: 80px 0;
}

.about-clients {
    padding: 80px 0;
    background-color: #fff;
}

.about-why-us {
    padding: 80px 0;
    background-color: var(--light-color);
}

/* Services Page Styles */
.service-intro {
    background-color: #fff;
    padding: 80px 0;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.large-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.service-categories {
    background-color: var(--light-color);
    padding: 80px 0;
}

.service-item {
    margin-bottom: 100px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.service-item.alt-layout .service-grid {
    direction: rtl;
}

.service-item.alt-layout .service-content {
    direction: ltr;
}

.service-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-lightest);
    color: var(--primary-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-content p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.service-image {
    height: 100%;
    min-height: 400px;
}

.service-image .image-container {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.service-cta {
    background-color: var(--primary-faintest);
    padding: 80px 0;
    color: var(--dark-color);
}

.service-cta .cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.service-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-secondary i {
    margin-left: 8px;
    transition: var(--transition);
}

.btn-secondary:hover i {
    transform: translateX(5px);
}

/* Team Page Styles */
.team-intro-section {
    background-color: #fff;
    padding: 80px 0;
}

.team-members {
    background-color: var(--light-color);
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Enhanced Team Profile Images - Circular Design */
.team-image {
    height: 280px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 30px !important;
    background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--light-color) 100%) !important;
}

.member-img {
    width: 220px !important;
    height: 220px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center top !important;
    transition: var(--transition) !important;
    border: 4px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    background-color: var(--light-color) !important;
}

.team-card:hover .member-img {
    transform: scale(1.08) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
}

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

.member-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    transition: var(--transition);
}

.team-card:hover .member-img {
    transform: scale(1.05);
}

.team-details {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-details h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-details h4 {
    font-family: var(--body-font);
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 2px 8px;
    background-color: rgba(119, 69, 81, 0.1);
    border-radius: 3px;
}

.team-contact {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: var(--light-color);
    color: var(--secondary-color);
    border-radius: 3px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-link i {
    margin-right: 5px;
    color: var(--primary-color);
}

.contact-link:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.contact-link:hover i {
    color: var(--light-color);
}

/* Team Member LinkedIn Link Styles */
.team-name-container {
    position: relative;
    display: inline-block;
}

.linkedin-link {
    margin-left: 10px;
    opacity: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0077B5;
    transition: opacity 0.3s ease;
    vertical-align: middle;
    font-size: 18px;
}

.team-name-container:hover .linkedin-link {
    opacity: 1;
}

.linkedin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: #0077B5;
    color: white;
    transition: all 0.3s ease;
}

.linkedin-link:hover .linkedin-icon {
    background-color: #00669c;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* LinkedIn icon styling for team members */
.team-name-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.linkedin-link {
    display: inline-flex;
    margin-left: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    top: -1px;
}

.linkedin-icon {
    background-color: #0077b5;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-details:hover .linkedin-link {
    opacity: 1;
}

.linkedin-link:hover .linkedin-icon {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Join Team Section */
.join-team {
    background-color: #fff;
    padding: 80px 0;
}

.career-form-container {
    max-width: 700px;
    margin: 50px auto 0;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(191, 147, 104, 0.2);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.file-upload {
    display: flex;
    flex-direction: column;
}

.file-upload label {
    margin-bottom: 10px;
    font-weight: 500;
}

.file-upload input[type="file"] {
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px dashed #e0e0e0;
    cursor: pointer;
}

.contact-form button {
    padding: 15px 30px;
    font-size: 1rem;
    width: max-content;
    justify-self: center;
}

/* Contact Page Styles */
.contact-info {
    background-color: #fff;
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    background-color: var(--light-color);
    border-radius: 5px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: left;
}

.contact-card h2:after {
    margin-left: 0;
}

.contact-card p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.address-details h3,
.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var (--primary-color);
}

.placeholder-text {
    color: #999;
    font-style: italic;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item a {
    color: var(--secondary-color);
}

.contact-item a:hover {
    color: var(--primary-darker);
}

/* Map Section */
.map-section {
    padding: 0;
    position: relative;
}

#contact-map {
    height: 450px;
    width: 100%;
    z-index: 1;
}

/* Contact Form */
.contact-form-section {
    background-color: #fff;
    padding: 80px 0;
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(191, 147, 104, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    padding: 15px 40px;
    font-size: 1rem;
    margin-top: 20px;
}

/* Contact Form Validation Styles */
.contact-form input.error,
.contact-form textarea.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.success-message {
    background-color: #27ae60;
    color: white;
    padding: 25px;
    border-radius: 5px;
    text-align: center;
    margin-top: 30px;
}

.success-message h3 {
    color: white;
    margin-bottom: 10px;
}

/* Social Connection */
.social-connection {
    background-color: var(--light-color);
    padding: 80px 0;
}

.social-content {
    max-width: 700px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    color: var(--dark-color);
}

/* Add RTL support for Arabic */
html[dir="rtl"] body {
    font-family: var(--arabic-font);
    font-weight: 400; /* Regular weight for Arabic */
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: var(--arabic-font);
    font-weight: 900; /* Black weight for Arabic headings */
}

html[dir="rtl"] strong,
html[dir="rtl"] b {
    font-weight: 900; /* Black weight for bold text in Arabic */
}

/* RTL layout adjustments */
html[dir="rtl"] .header-inner,
html[dir="rtl"] #main-nav ul,
html[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] #main-nav ul li a:after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .footer-contact i {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .social-icons a {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 15px;
}

/* Projects Page Styles */
.projects-filter {
    background-color: #fff;
    padding: 30px 0;
}

.filter-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.search-filter {
    flex: 2;
}

.category-filter, .location-filter {
    flex: 1;
}

.filter-input, .filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.filter-input:focus, .filter-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(191, 147, 104, 0.1);
}

.projects-grid {
    background-color: var(--light-color);
    padding: 50px 0 80px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-image {
    height: 200px;
    overflow: hidden;
}

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

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

.project-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

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

.project-meta i {
    margin-right: 5px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-category {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-description {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.view-project {
    margin-top: auto;
    align-self: flex-start;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover, .pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var (--primary-color);
}

/* Project Detail Page Styles - Updated Design */
.project-detail-section {
    padding-top: 0;
    padding-bottom: 60px;
    background-color: var(--light-color);
}

.project-hero {
    margin-bottom: 40px;
    width: 100%;
    padding-top: 80px; /* Add padding to push content below the navbar */
}

.project-hero-image {
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}

.project-hero-content {
    color: white;
    position: relative;
    padding: 40px 0;
    max-width: 800px;
}

.project-category-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-hero .project-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-hero .project-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 0;
}

.project-hero .meta-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.project-hero .meta-item i {
    margin-right: 10px;
    color: var(--primary-lighter);
    font-size: 1.2rem;
}

.project-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.project-body {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.project-summary-box {
    padding: 30px;
    background-color: var(--primary-faintest);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-summary-box h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var (--secondary-darker);
}

.project-summary-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--secondary-color);
}

.project-content-main {
    padding: 40px;
}

.project-content-main h2 {
    font-size: 2rem;
    margin: 30px 0 20px;
    color: var(--secondary-darker);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-faintest);
}

.project-content-main h2:first-child {
    margin-top: 0;
}

.project-content-main h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--secondary-color);
}

.project-content-main p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.project-content-main ul, 
.project-content-main ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.project-content-main ul li, 
.project-content-main ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.project-content-main img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--primary-faintest);
}

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

.sidebar-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-list i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.sidebar-list li div {
    flex: 1;
}

.sidebar-list li strong {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-darker);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-list li span {
    color: var(--secondary-color);
    font-size: 1.05rem;
}

.sidebar-cta {
    background-color: var(--primary-faintest);
    text-align: center;
}

.sidebar-cta p {
    margin-bottom: 20px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.project-gallery-section {
    padding: 60px 0;
    background-color: white;
    margin-bottom: 40px;
}

.gallery-swiper {
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.gallery-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: zoom-in;
}

.gallery-slide-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
}

.gallery-slide-zoom:hover {
    opacity: 1;
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

.gallery-thumbnail {
    width: 100px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 3px solid transparent;
    transition: var(--transition);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnail-more {
    width: 100px;
    height: 70px;
    border-radius: 5px;
    background-color: var(--primary-lighter);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-thumbnail-more:hover {
    background-color: var(--primary-color);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 5px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.related-projects-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.related-projects-section .section-title {
    margin-bottom: 50px;
}

.related-projects-section .projects-container {
    margin-bottom: 40px;
}