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

:root {
    --primary-color: #77001B;
    --primary-dark: #470419;
    --primary-light: #9E042C;
    --secondary-color: #f5f5f5;
    --gold-color: #EAA933;
    --therd-color: #5D483A;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

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

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Border-radius ===== */
.border-radius-8 {
    border-radius: 8px;
}
.border-radius-12 {
    border-radius: 12px;
}
.border-radius-16 {
    border-radius: 16px;
}
.border-radius-20 {
    border-radius: 20px;
}
.border-radius-24 {
    border-radius: 24px;
}
.border-radius-28 {
    border-radius: 28px;
}

/* ===== Borders ===== */
.border-gold-solid-1 {
    border-color: var(--gold-color) !important;
    border-width: 1px !important;
    border-style: solid !important;
}
.border-gold-solid-2 {
    border-color: var(--gold-color) !important;
    border-width: 2px !important;
    border-style: solid !important;
}
.border-gold-solid-3 {
    border-color: var(--gold-color) !important;
    border-width: 3px !important;
    border-style: solid !important;
}
.border-gold-dashed-1 {
    border-color: var(--gold-color) !important;
    border-width: 1px !important;
    border-style: dashed !important;
}
.border-gold-dashed-2 {
    border-color: var(--gold-color) !important;
    border-width: 2px !important;
    border-style: dashed !important;
}
.border-gold-dashed-3 {
    border-color: var(--gold-color) !important;
    border-width: 3px !important;
    border-style: dashed !important;
}

.border-therd-solid-1 {
    border-color: var(--therd-color) !important;
    border-width: 1px !important;
    border-style: solid !important;
}
.border-therd-solid-2 {
    border-color: var(--therd-color) !important;
    border-width: 2px !important;
    border-style: solid !important;
}
.border-therd-solid-3 {
    border-color: var(--therd-color) !important;
    border-width: 3px !important;
    border-style: solid !important;
}
.border-therd-dashed-1 {
    border-color: var(--therd-color) !important;
    border-width: 1px !important;
    border-style: dashed !important;
}
.border-therd-dashed-2 {
    border-color: var(--therd-color) !important;
    border-width: 2px !important;
    border-style: dashed !important;
}
.border-therd-dashed-3 {
    border-color: var(--therd-color) !important;
    border-width: 3px !important;
    border-style: dashed !important;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.35s ease,
                box-shadow 0.35s ease;
}

/* Scrolled state: solid white background + shadow */
.header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.10);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 10rem;
    border-radius: 8px;
}

.header .logo {
    position: relative;
}

.header .logo img {
    transition: opacity 0.35s ease;
}

.header .logo .logo-color {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.header.scrolled .logo .logo-white {
    opacity: 0;
}

.header.scrolled .logo .logo-color {
    opacity: 1;
}

.logo span {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    transition: color 0.35s ease;
}

.header.scrolled .logo span {
    color: var(--primary-color);
}

.nav-desktop ul {
    display: flex;
    gap: 35px;
}

.nav-desktop a {
    font-size: 17px;
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding: 5px 0;
    transition: color 0.35s ease;
}

/* Dark links once scrolled */
.header.scrolled .nav-desktop a {
    color: var(--text-color);
}

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

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

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--gold-color);
}

.header-btn {
    padding: 10px 24px;
    font-size: 14px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition), background-color 0.35s ease;
}

.header.scrolled .menu-toggle span {
    background-color: var(--primary-color);
}

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

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

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

/* Mobile Navigation */
.nav-mobile {
    display: none;
    background-color: var(--white);
    padding: 20px;
    border-top: 1px solid #eee;
}

.nav-mobile.active {
    display: block;
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-mobile a {
    display: block;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-mobile a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* 2. Hero Section */
.hero { position: relative; height: 100vh; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-background img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-content { max-width: 800px; position: relative; z-index: 1; }
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.hero-content h1 span { color: var(--gold-color); }
.hero-content p { font-size: 1.2rem; margin-bottom: 35px; opacity: 0.9; line-height: 1.8; }

/* Dynamic Hero Buttons */
.hero-buttons { display: flex; gap: 20px; }
.hero-btn-1, .hero-btn-2 {
    background-color: var(--btn-bg);
    border: 2px solid var(--btn-border);
    color: var(--btn-text);
    padding: 12px 35px;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
}
.hero-btn-1:hover, .hero-btn-2:hover {
    background-color: var(--btn-hover-bg) !important;
    border-color: var(--btn-hover-border) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 3. Projects Section */
.projects { padding: 80px 0; background-color: var(--white); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.projects-grid-detailed { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.project-card-detailed {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--white);
    position: relative;
}

.project-card-detailed:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image-detailed { position: relative; overflow: hidden; height: 220px; }
.project-image-detailed img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card-detailed:hover .project-image-detailed img { transform: scale(1.08); }

.project-badge-detailed {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 2;
}

.project-info-detailed { padding: 20px 24px; }
.project-meta-detailed { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.project-meta-detailed .location { color: var(--text-light); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.project-meta-detailed .location i { color: var(--gold-color); }
.project-meta-detailed .price { color: var(--primary-color); font-weight: 700; font-size: 14px; }

.project-info-detailed h3 { font-size: 20px; color: var(--text-color); margin-bottom: 15px; font-weight: 700; }
.project-info-detailed .btn-detail {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
.project-info-detailed .btn-detail:hover {
    background: var(--primary-dark);
}
.stats {
    background-color: transparent;
    padding: 0;
    /* Use margin-top to pull the section up. 
       The grid height is roughly 110px, so -55px puts exactly half of it over the hero image */
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 80%;
    justify-self: center;
}

.stat-item {
    text-align: center;
    padding: 6px 6px 12px; /* Reduced from 30px to decrease height by 10px */
    border-left: 1px solid #eee;
}

.stat-item:last-child {
    border-left: none;
}

.stat-number {
    display: block;
    font-size: 44px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: -8px;
    margin-top: -6px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
}

/* ===== Section Styles ===== */
.page-header {
    background-color: var(--primary-color);
    padding: 180px 0 80px;
    text-align: center;
    color: var(--white);
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.page-header-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--gold-color);
}

.page-header-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ===== About Page ===== */
.about-page-intro {
    padding: 100px 0;
    background-color: var(--white);
}

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

.about-page-image-wrapper {
    position: relative;
}

.about-page-image-wrapper img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.about-exp-badge {
    position: absolute;
    bottom: -25px;
    left: -25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 16px;
    padding: 20px 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(119,0,27,0.35);
    border: 3px solid var(--gold-color);
}

.about-exp-badge .exp-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--gold-color);
    line-height: 1;
}

.about-exp-badge .exp-text {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
    display: block;
}

.about-tag {
    display: inline-block;
    background-color: rgba(119, 0, 27, 0.08);
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    border: 1px solid rgba(119,0,27,0.15);
}

.about-page-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-page-content p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--secondary-color);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.feature-icon {
    color: var(--gold-color);
    font-size: 20px;
    flex-shrink: 0;
}

/* CEO Message */
.ceo-message-section {
    padding: 100px 0;
    background-color: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.ceo-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.quote-icon {
    font-size: 40px;
    color: var(--gold-color);
    opacity: 0.3;
    margin-bottom: 20px;
    display: block;
}

.ceo-text {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.ceo-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.ceo-portrait-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.ceo-image-circle {
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    background-color: var(--white);
}

.ceo-image-circle::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed var(--gold-color);
    pointer-events: none;
}

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

.ceo-details h4 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.ceo-details p {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 20px;
}

.ceo-divider {
    width: 50px;
    height: 3px;
    background-color: var(--gold-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Vision & Mission */
.about-vm-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.vm-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    text-align: center;
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 45px rgba(0,0,0,0.1);
}

.vm-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 28px;
}

.vm-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.vm-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.9;
}

.vm-center-icon {
    font-size: 50px;
    color: var(--gold-color);
    text-align: center;
    opacity: 0.4;
}

/* Values Section */
.about-values-section {
    padding: 80px 0;
    background-color: var(--white);
}

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

.value-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background-color: var(--white);
    border-color: var(--gold-color);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(234, 169, 51, 0.1); /* light gold */
    color: var(--gold-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background-color: var(--gold-color);
    color: var(--white);
}

.value-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}
/* ===== About Page Gallery ===== */
.about-gallery { padding: 80px 0; background-color: var(--white); }
.custom-gallery-container { position: relative; overflow: hidden; padding: 30px 0; }
.custom-gallery-slider { display: flex; gap: 24px; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.custom-gallery-item { min-width: calc(33.333% - 16px); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); background: #fff; flex-shrink: 0; height: 350px; position: relative; }
.custom-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.custom-gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(119, 0, 27, 0.4); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; opacity: 0; transition: opacity 0.3s ease; }
.custom-gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-controls { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }
.gallery-btn { background: var(--primary-color); color: #fff; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(119, 0, 27, 0.3); }
.gallery-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

@media (max-width: 992px) { .custom-gallery-item { min-width: calc(50% - 12px); } }
@media (max-width: 768px) { .custom-gallery-item { min-width: 85%; } }

/* ===== CEO Message & Features ===== */
.ceo-message-section { padding: 100px 0; background: var(--white); }
.ceo-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; }
.ceo-image-circle { width: 250px; height: 250px; margin: 0 auto 30px; border-radius: 50%; overflow: hidden; border: 6px solid var(--white); box-shadow: var(--shadow-lg); }
.ceo-image-circle img { width: 100%; height: 100%; object-fit: cover; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 30px; }
.about-feature-item { display: flex; align-items: center; gap: 12px; background: var(--secondary-color); padding: 15px 20px; border-radius: 12px; font-weight: 500; }
.about-feature-item .feature-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.journey-content p {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto 50px;
}

.journey-image-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.journey-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Stats Strip */
.about-stats-strip {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.about-stat-item {
    color: var(--white);
    padding: 20px;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.about-stat-item:last-child {
    border-left: none;
}

.about-stat-item > i {
    font-size: 32px;
    color: var(--gold-color);
    margin-bottom: 12px;
    display: block;
}

.about-stat-item .stat-number {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.about-stat-item .stat-label {
    font-size: 15px;
    opacity: 0.85;
    color: var(--white);
}

/* Gallery */
.about-gallery {
    padding: 100px 0;
    background-color: var(--white);
}

.about-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 320px;
    gap: 16px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(119, 0, 27, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    color: var(--white);
    font-size: 28px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Responsive About Page */
@media screen and (max-width: 1024px) {
    .about-page-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .vm-center-icon {
        display: none;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 240px 240px;
    }

    .gallery-item--large {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-exp-badge {
        left: 10px;
        bottom: -20px;
    }

    .about-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item {
        height: 220px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Scroll to Top ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}
/* ===== Media Center ===== */
.news-section { padding: 80px 0; background-color: #f9f9f9; }
.featured-news { margin-bottom: 60px; }
.featured-news-card { background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; min-height: 450px; }
.featured-news-image { flex: 1; min-width: 350px; position: relative; height: 450px; }
.featured-news-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-news-content { flex: 1; min-width: 350px; padding: 60px; display: flex; flex-direction: column; justify-content: center; background: var(--white); }
.category-badge { position: absolute; top: 25px; right: 25px; background: var(--primary-color); color: var(--white); padding: 8px 20px; border-radius: 30px; font-weight: 700; font-size: 14px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.latest-tag { background: rgba(119, 0, 27, 0.1); color: var(--primary-color); padding: 5px 15px; border-radius: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.news-meta { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--text-light); margin-bottom: 25px; }
.featured-news-content h2 { font-size: 36px; font-weight: 800; color: var(--text-color); margin-bottom: 25px; line-height: 1.3; }

.section-divider { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.section-divider-title { font-size: 24px; font-weight: 800; color: var(--text-color); margin: 0; }
.section-divider-line { flex-grow: 1; height: 2px; background: #eee; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.news-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition); height: 100%; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.news-card-image { position: relative; overflow: hidden; height: 220px; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }
.category-badge-small { position: absolute; top: 15px; right: 15px; background: var(--primary-color); color: var(--white); padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.news-card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.news-meta-small { display: flex; align-items: center; gap: 15px; font-size: 13px; color: var(--text-light); margin-bottom: 15px; }
.news-card-body h3 { font-size: 20px; font-weight: 700; color: var(--text-color); margin-bottom: 15px; line-height: 1.4; }
.news-card-body h3 a:hover { color: var(--primary-color); }
.news-card-body p { font-size: 15px; color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }
.read-more-link { color: var(--primary-color); font-weight: 700; font-size: 14px; margin-top: auto; display: inline-block; }

.news-empty-state { grid-column: 1 / -1; text-align: center; padding: 100px 0; }
.news-empty-state i { font-size: 60px; color: #ddd; margin-bottom: 20px; }
.news-empty-state h3 { color: #888; }

.swiper-pagination-bullet-active { background: var(--primary-color) !important; }
.swiper-button-next, .swiper-button-prev { color: var(--primary-color) !important; }
/* ===== Finance Calculator ===== */
.finance-section { padding: 80px 0; background-color: var(--white); }
.finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 992px) { .finance-grid { grid-template-columns: 1fr; } }

.finance-info h2 { font-size: 32px; font-weight: 800; color: var(--text-color); margin-bottom: 20px; }
.finance-info p { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 30px; }
.finance-note-box { background: var(--secondary-color); padding: 30px; border-radius: 16px; border: 1px solid rgba(119, 0, 27, 0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.finance-note-box h4 { font-size: 18px; font-weight: 700; color: var(--primary-color); margin-bottom: 15px; }
.finance-note-box p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin: 0; }

.finance-calculator { background: var(--white); padding: 40px; border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid #eee; }
.finance-calculator h3 { font-size: 24px; font-weight: 800; color: var(--text-color); margin-bottom: 30px; text-align: center; }

.form-group-custom { margin-bottom: 25px; }
.form-group-custom label { display: block; font-weight: 700; color: var(--text-color); margin-bottom: 10px; }
.input-with-label { position: relative; }
.currency-label { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #888; font-weight: 600; }
.form-group-custom input[type="number"] { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 12px; outline: none; font-family: inherit; font-size: 16px; transition: var(--transition); }
.form-group-custom input[type="number"]:focus { border-color: var(--primary-color); }

.range-group { margin-bottom: 40px; }
.range-wrapper { display: flex; align-items: center; gap: 15px; }
.range-wrapper input[type="range"] { flex: 1; accent-color: var(--primary-color); cursor: pointer; }
.range-wrapper span { font-weight: 700; color: var(--primary-color); min-width: 80px; text-align: left; font-size: 16px; }

.btn-calc { width: 100%; padding: 15px; border-radius: 12px; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; }

.results-area { display: none; margin-top: 40px; padding-top: 30px; border-top: 2px dashed #eee; }
.results-area h4 { font-size: 18px; font-weight: 700; color: var(--text-color); margin-bottom: 20px; text-align: center; }
.result-card-main { background: rgba(212, 175, 55, 0.1); border: 1px solid var(--gold-color); padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 15px; }
.result-label { display: block; color: var(--text-color); font-weight: 600; margin-bottom: 10px; font-size: 15px; }
.result-value-wrapper { display: flex; align-items: baseline; justify-content: center; gap: 5px; }
.result-value-wrapper strong { font-size: 32px; font-weight: 800; color: var(--primary-color); }
.result-currency { font-size: 16px; font-weight: 700; color: var(--primary-color); }

.result-row { display: flex; justify-content: space-between; padding: 18px 20px; background: #f8f9fa; border-radius: 12px; margin-bottom: 20px; border: 1px solid #eee; }
.row-label { font-weight: 700; color: var(--text-color); font-size: 15px; }
.row-value { font-weight: 800; color: var(--primary-color); font-size: 16px; }

.btn-print { width: 100%; padding: 15px; border-radius: 12px; }

/* Print Styles */
@media print {
    body * { visibility: hidden; }
    .finance-calculator, .finance-calculator * { visibility: visible; }
    .finance-calculator { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none !important; border: none !important; padding: 0 !important; }
    .btn, .btn-calc, .btn-print { display: none !important; }
}

/* ===== Contact Page ===== */
.pd-hero { position: relative; min-height: 50vh; display: flex; align-items: flex-end; background-size: cover; background-position: center; background-attachment: fixed; overflow: hidden; }
.pd-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 0, 6, 0.25) 0%, rgba(20, 0, 6, 0.55) 50%, rgba(20, 0, 6, 0.88) 100%); }
.pd-hero__inner { position: relative; z-index: 2; padding-bottom: 60px; width: 100%; }
.pd-hero__cat { display: inline-flex; align-items: center; gap: 7px; padding: 6px 18px; background: rgba(234,169,51,0.18); border: 1px solid rgba(234,169,51,0.45); border-radius: 50px; color: var(--gold-color); font-size: 13px; font-weight: 700; margin-bottom: 18px; backdrop-filter: blur(6px); }
.pd-hero__title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; color: var(--white); line-height: 1.25; margin-bottom: 15px; text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.pd-hero__meta { font-size: 16px; color: rgba(255,255,255,0.8); }
.pd-hero__meta i { margin-left: 6px; color: var(--gold-color); }

.contact-page { padding: 100px 0; background-color: var(--secondary-color); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 50px; margin-bottom: 60px; align-items: flex-start; }

.contact-info-section h2 { font-size: 36px; font-weight: 800; color: var(--text-color); margin-bottom: 15px; }
.contact-info-section p { font-size: 18px; color: var(--text-light); margin-bottom: 40px; line-height: 1.8; }
.info-blocks { display: grid; gap: 20px; }
.info-block.card { background: var(--white); padding: 30px; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.03); }
.info-block h3 { font-size: 20px; color: var(--primary-color); font-weight: 700; margin-bottom: 20px; }

.contact-items-list { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-item-icon { width: 45px; height: 45px; background: rgba(119, 0, 27, 0.05); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-item-text .label { display: block; font-weight: 600; color: var(--text-color); margin-bottom: 5px; }
.contact-item-text .value { color: var(--text-light); font-size: 15px; line-height: 1.6; white-space: pre-line; }

.sales-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.sales-member { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--secondary-color); border-radius: 12px; border: 1px solid rgba(0,0,0,0.02); }
.member-icon { width: 35px; height: 35px; background: var(--primary-color); color: var(--gold-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.member-name { font-weight: 600; font-size: 14px; color: var(--text-color); }

.contact-social-links { margin-top: 40px; display: flex; gap: 15px; }
.contact-social-links .social-icon { width: 45px; height: 45px; background: var(--white); color: var(--text-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: var(--transition); }
.contact-social-links .social-icon:hover { background: var(--primary-color); color: var(--white); transform: translateY(-5px); }

.contact-form-section { background: var(--white); padding: 45px; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.05); }
.contact-form-section h3 { font-size: 28px; font-weight: 800; color: var(--text-color); margin-bottom: 12px; }
.contact-form-section p { font-size: 15px; color: var(--text-light); margin-bottom: 35px; line-height: 1.8; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }
.contact-form .form-group-custom { margin-bottom: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: 1px solid #eee; border-radius: 12px; background: #fcfcfc; outline: none; font-family: inherit; font-size: 15px; transition: var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-color); background: var(--white); }
.btn-submit { width: 100%; border-radius: 12px; padding: 16px; font-size: 18px; font-weight: 700; box-shadow: 0 10px 20px rgba(119, 0, 27, 0.2); }

/* ===== Article Single Page ===== */
.category-pill { display: inline-block; background: var(--gold-color); color: var(--white); padding: 6px 20px; border-radius: 50px; font-size: 13px; font-weight: 700; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(234,169,51,0.3); }
.article-meta-header { display: flex; align-items: center; justify-content: center; gap: 25px; color: rgba(255,255,255,0.9); font-size: 16px; margin-top: 30px; flex-wrap: wrap; }
.article-meta-header i { color: var(--gold-color); margin-left: 6px; }

.article-single-section { padding: 60px 0; background-color: var(--white); }
.article-container { max-width: 800px; }
.article-body-content { font-size: 18px; color: var(--text-color); line-height: 2; margin-bottom: 40px; }
.entry-content { margin-bottom: 30px; }

.news-gallery-section { margin: 40px 0; }
.news-gallery-section h4 { font-size: 20px; font-weight: 700; color: var(--primary-color); margin-bottom: 20px; }
.news-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.gallery-img-wrapper { border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); height: 200px; }
.gallery-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-img-wrapper:hover img { transform: scale(1.05); }

.article-share-box { display: flex; align-items: center; justify-content: space-between; padding: 25px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 50px; }
.share-title { font-weight: 700; font-size: 16px; color: var(--text-color); }
.social-share-links { display: flex; gap: 12px; }
.share-btn { width: 40px; height: 40px; color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); font-size: 16px; }
.share-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.linkedin { background: #0077B5; }

.comments-section h3 { font-size: 24px; font-weight: 800; color: var(--text-color); margin-bottom: 30px; }
.comments-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 50px; }
.comment-item { display: flex; gap: 20px; padding: 25px; background: var(--secondary-color); border-radius: 16px; border: 1px solid rgba(0,0,0,0.02); }
.comment-avatar { width: 55px; height: 55px; background: var(--primary-color); color: var(--gold-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; box-shadow: 0 5px 15px rgba(119,0,27,0.1); }
.comment-content-wrapper { flex-grow: 1; }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.author-name { font-size: 16px; font-weight: 700; color: var(--text-color); }
.comment-date { font-size: 12px; color: var(--text-light); }
.comment-text { font-size: 15px; color: var(--text-light); line-height: 1.7; }
.btn-reply { background: none; border: none; color: var(--primary-color); font-size: 14px; font-weight: 700; cursor: pointer; padding: 0; margin-top: 12px; transition: var(--transition); }
.btn-reply:hover { color: var(--gold-color); }

.reply-item { margin-right: 50px; border-right: 4px solid var(--gold-color); background: #fdfdfd; }
.avatar-admin { background: var(--white); border: 2px solid var(--primary-color); color: var(--primary-color); }
.admin-badge { background: var(--primary-color); color: var(--white); font-size: 10px; padding: 2px 8px; border-radius: 4px; margin-right: 8px; vertical-align: middle; }

.comment-form-card { background: var(--white); padding: 40px; border-radius: 24px; border: 1px solid #eee; box-shadow: 0 15px 40px rgba(0,0,0,0.05); }
.comment-form-card h3 { font-size: 22px; font-weight: 800; color: var(--text-color); margin-bottom: 25px; }
.reply-info-box { display: none; padding: 12px 20px; background: #f8f9fa; border-radius: 10px; margin-bottom: 20px; font-size: 14px; border-right: 4px solid var(--primary-color); }
.btn-cancel-reply { float: left; background: none; border: none; color: #dc3545; cursor: pointer; font-weight: 600; }
.btn-post-comment { border-radius: 12px; padding: 14px 40px; font-size: 16px; font-weight: 700; box-shadow: 0 8px 20px rgba(119,0,27,0.15); }
.no-comments { text-align: center; color: var(--text-light); padding: 40px 0; font-style: italic; }

.about {
    padding: 100px 0;
}

.about-content-layered {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 60px;
    padding-right: 1.5rem;
}

.about-image-wrapper {
    position: relative;
    z-index: 2;
}

.about-image-wrapper img {
    width: 100%;
    height: 480px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.about-gold-rect {
    position: absolute;
    bottom: -18px;
    right: -18px; /* Visible on bottom/right side */
    width: 90%;
    height: 90%;
    background-color: var(--gold-color);
    border-radius: 16px;
    z-index: -1;
}

.about-text-box {
    position: relative;
    width: 84%;
    /* Gradient background from darker green to lighter green (using theme primary colors) */
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: var(--white);
    padding: 60px 121px 60px 40px;
    border-radius: 16px;
    margin-right: -10%; /* Overlap image card */
    margin-top: -18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    text-align: right;
    z-index: 1;
}

.about-text-box h3 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold-color);
}

.about-text-box p {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--secondary-color);
    padding: 35px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 24px;
    color: var(--white);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.service-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Detailed Services (Inner Page) ===== */
.detailed-services {
    background-color: var(--white);
}

.service-row {
    padding: 100px 0;
}

/* ===== Search Results ===== */
.search-results-section { padding: 80px 0; background-color: var(--white); min-height: 50vh; }
.search-container { max-width: 900px; }
.query-highlight { color: var(--gold-color); }
.search-refine-form { margin-bottom: 40px; display: flex; gap: 15px; }
.search-refine-form input { flex: 1; padding: 15px 20px; border: 1px solid #ddd; border-radius: 12px; outline: none; font-family: inherit; font-size: 16px; transition: var(--transition); }
.search-refine-form input:focus { border-color: var(--primary-color); }
.btn-search-page { padding: 15px 30px; border-radius: 12px; font-size: 16px; display: flex; align-items: center; gap: 8px; }

.search-count { margin-bottom: 20px; color: var(--text-light); font-weight: 600; }
.search-results-list { display: flex; flex-direction: column; gap: 20px; }
.search-item { background: var(--white); border: 1px solid #eee; border-radius: 16px; padding: 25px; transition: var(--transition); box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
.search-item:hover { border-color: var(--gold-color); transform: translateY(-3px); box-shadow: var(--shadow); }
.search-item-category { display: inline-block; background: rgba(119, 0, 27, 0.05); color: var(--primary-color); padding: 5px 15px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 15px; }
.search-item-title { font-size: 22px; font-weight: 700; color: var(--text-color); margin-bottom: 10px; }
.search-item-title a { color: inherit; text-decoration: none; transition: var(--transition); }
.search-item-title a:hover { color: var(--primary-color); }
.search-item-desc { color: var(--text-light); font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.search-item-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-color); text-decoration: none; font-weight: 600; font-size: 14px; transition: var(--transition); }
.search-item-link:hover { color: var(--primary-color); }

.search-empty-state { text-align: center; padding: 60px; background: #f9f9f9; border-radius: 16px; border: 1px dashed #ddd; }
.search-empty-state i { font-size: 48px; color: #ccc; margin-bottom: 20px; display: block; }
.search-empty-state h3 { font-size: 20px; color: var(--text-light); margin-bottom: 10px; }
.search-empty-state p { color: #888; }

.service-row.bg-secondary {
    background-color: var(--secondary-color);
}

.service-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-row-grid.reverse .service-row-content {
    order: -1;
}

.service-row-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.service-icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--gold-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(119,0,27,0.2);
}

.service-row-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
}

.service-row-content p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.9;
}

/* ===== Projects Section ===== */
.projects {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

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

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

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;
    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-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-info h3 {
    font-size: 22px;
    font-weight: 700;
}

.project-info p {
    font-size: 15px;
    color: var(--text-light);
}

.project-link {
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    align-self: flex-start;
    margin-top: 10px;
}

.project-link:hover {
    background-color: var(--primary-dark);
}

.project-card.featured .project-image {
    height: 280px;
}

/* ===== Contact Section ===== */
.contact {
    padding: 80px 0;
    background-color: var(--white); /* Could be secondary if preferred */
}

.contact-card {
    display: flex;
    flex-direction: row; /* Right side content, left side map (in RTL) */
    background-color: var(--white);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-card-content {
    flex: 1;
    padding: 60px 50px;
}

.contact-card-content h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.contact-card-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(119, 0, 27, 0.05); /* Slight tint of primary color */
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-color);
    font-size: 20px;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(119, 0, 27, 0.2);
}

.contact-item span {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
}

.contact-card-map {
    flex: 1;
    position: relative;
    display: flex;
}

.contact-card-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== Pre-Footer Image ===== */
.pre-footer-image {
    width: 100%;
    height: 195px;
    background: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=1600&auto=format&fit=crop') center/cover no-repeat;
    margin-bottom: -5px; /* Prevent gap */
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col .logo img {
    height: 60px;
    width: auto;
}

.footer-col>p {
    margin-top: 15px;
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-contact-info {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    opacity: 0.9;
}

.footer-contact-info li i {
    color: var(--gold-color);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul a {
    font-size: 15px;
    opacity: 0.85;
}

.footer-col ul a:hover {
    opacity: 1;
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

/* ===== Responsive Design ===== */

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }

    .header-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-left: none;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-top: 1px solid #eee;
    }

    .about-content-layered {
        flex-direction: column;
        padding: 0;
    }

    .about-image-wrapper {
        width: 100%;
        margin-bottom: 30px; /* Added margin to separate from text box */
    }

    .about-gold-rect {
        bottom: -15px;
        right: -15px;
        width: 80%;
        height: 60%;
    }

    .about-text-box {
        width: 100%;
        margin-right: 0;
        margin-top: 0; /* Removed overlap */
        padding: 40px 30px;
    }

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

    .services-grid,
    .service-row-grid {
        grid-template-columns: 1fr;
    }

    .service-row-grid.reverse .service-row-content {
        order: 0;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card.featured {
        grid-column: span 2;
    }

    .contact-card {
        flex-direction: column-reverse; /* In RTL, putting it in reverse makes the map appear on top (since map is second in HTML) */
    }

    .contact-card-map {
        min-height: 350px;
    }

    .contact-card-content {
        padding: 40px 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles (max-width: 768px) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .stats {
        margin-top: -55px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .about,
    .services,
    .projects,
    .contact {
        padding: 60px 0;
    }

    .projects-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .project-card.featured .project-image {
        height: 200px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col .logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media screen and (max-width: 480px) {
    .logo span {
        font-size: 20px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-left: none;
        border-bottom: 1px solid #eee;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-top: none;
    }

    .service-card {
        padding: 25px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-right {
    transform: translateX(50px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-up {
    transform: translateY(50px);
}

.zoom-in {
    transform: scale(0.9);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ─── Filter Bar ─── */
.pf-bar {
    position: sticky;
    top: 70px;
    z-index: 99;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 14px 0;
}

.pf-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pf-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid #e0e0e0;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Tajawal', sans-serif;
}

.pf-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pf-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(119,0,27,0.28);
}

.pf-search {
    position: relative;
    min-width: 260px;
}

.pf-search input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border-radius: 50px;
    border: 1.5px solid #e0e0e0;
    font-size: 14px;
    outline: none;
    font-family: 'Tajawal', sans-serif;
    transition: border-color 0.2s;
    background: #fafafa;
}

.pf-search input:focus {
    border-color: var(--primary-color);
    background: #fff;
}

.pf-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

/* ─── Section ─── */
.proj-section {
    padding: 52px 0 80px;
    background: #f7f4f0;
}

/* ─── Results bar ─── */
.proj-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.proj-count-text {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

.proj-count-text span {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 18px;
}

.pf-select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    background: #fff;
    color: var(--text-color);
    outline: none;
    cursor: pointer;
}

/* ─── Grid ─── */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .proj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .proj-grid { grid-template-columns: 1fr; }
    .pf-search { min-width: 100%; }
    .pf-bar-inner { flex-direction: column; align-items: stretch; }
}

/* ─── Product Card ─── */
.pcard {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1),
                box-shadow 0.35s cubic-bezier(0.25,0.8,0.25,1);
}

.pcard:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 52px rgba(0,0,0,0.13);
}

/* ── Image zone ── */
.pcard-img-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.pcard:hover .pcard-img {
    transform: scale(1.08);
}

.pcard-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(40,0,10,0.55) 0%, transparent 55%);
    pointer-events: none;
}

/* ── Badges top ── */
.pcard-top {
    position: absolute;
    top: 14px;
    right: 14px;
    left: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Status badge */
.pcard-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Status colour variants */
.status-new {
    background: rgba(234,169,51,0.92);
    color: #3d2800;
}
.status-new .status-dot { background: #3d2800; }

.status-progress {
    background: rgba(30,100,200,0.88);
    color: #fff;
}
.status-progress .status-dot { background: #c9e0ff; }

.status-done {
    background: rgba(22,160,80,0.9);
    color: #fff;
}
.status-done .status-dot { background: #aaffcc; }

/* Default fallback */
.pcard-status:not(.status-new):not(.status-progress):not(.status-done) {
    background: rgba(119,0,27,0.88);
    color: #fff;
}
.pcard-status:not(.status-new):not(.status-progress):not(.status-done) .status-dot {
    background: var(--gold-color);
}

/* Fav button */
.pcard-fav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    transition: all 0.25s;
}

.pcard-fav:hover {
    background: #fff;
    color: #e02020;
    transform: scale(1.15);
}

.pcard-fav.saved {
    color: #e02020;
}
.pcard-fav.saved i { font-weight: 900; }

/* ── Hover CTA overlay ── */
.pcard-hover-cta {
    position: absolute;
    inset: 0;
    background: rgba(119,0,27,0.68);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.pcard:hover .pcard-hover-cta { opacity: 1; }

.pcard-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.pcard-detail-btn:hover {
    background: var(--gold-color);
    color: #3d2800;
    transform: scale(1.05);
}

/* ── Card body ── */
.pcard-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pcard-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pcard-cat {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pcard-loc {
    font-size: 12px;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pcard-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.4;
}

.pcard-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

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

.pcard-desc {
    font-size: 13.5px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

/* ── Amenities ── */
.pcard-amenities {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.amenity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f7f4f0;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    color: #666;
}

.amenity i {
    color: var(--gold-color);
    font-size: 11px;
}

.pcard-divider {
    height: 1px;
    background: linear-gradient(to left, transparent, #eee 30%, #eee 70%, transparent);
    margin-bottom: 16px;
}

/* ── Footer ── */
.pcard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pcard-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 2px;
}

.price-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
}

.price-inquiry {
    font-size: 13px;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.price-inquiry i {
    color: var(--gold-color);
}

.pcard-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
}

.pcard-cta:hover {
    background: var(--primary-dark);
    transform: translateX(-3px);
    color: #fff;
}

.pcard-cta i {
    transition: transform 0.25s;
}

.pcard-cta:hover i {
    transform: translateX(-4px);
}

/* ─── Hidden card ─── */
.pcard.hidden {
    display: none;
}

/* ─── Empty state ─── */
.proj-empty {
    text-align: center;
    padding: 80px 20px;
}

.proj-empty-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #bbb;
}

.proj-empty h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.proj-empty p {
    color: var(--text-light);
    font-size: 15px;
}

/* ─── CTA Banner ─── */
.proj-cta-banner {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.06);
}

.proj-cta-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 24px;
    padding: 44px 48px;
    flex-wrap: wrap;
}

.proj-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--gold-color);
    flex-shrink: 0;
}

.proj-cta-text {
    flex: 1;
    min-width: 200px;
}

.proj-cta-text h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.proj-cta-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.78);
}

@media (max-width: 768px) {
    .proj-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 36px 28px;
    }
    .proj-cta-inner .btn { width: 100%; justify-content: center; }
}
