/*
Theme Name: Master Gypsum
Description: Ultra-light, bilingual WordPress theme optimized for SEO and speed. Arabic/English support.
Author: Javed Iqbal
Version: 1.0
Text Domain: dammam-gypsum
*/

/* ===== MAIN STYLES ===== */
/* style.css - Optimized for both LTR and RTL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
    color: #333;
    background: #f8f9fa;
    line-height: 1.6;
}

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

/* ===== HEADER & NAVIGATION ===== */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

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

.logo-text {
    font-size: 1.33rem;
    font-weight: 700;
    color: #2c3e50;
}

.logo-text span {
    color: #e67e22;
}
.logo-text a {
    text-decoration: none; /* removes underline */
    color: inherit; /* optional: keeps the text color same as parent */
}

.logo-text a:hover {
    text-decoration: none; /* prevents underline on hover */
}
.tagline {
    font-size: 1rem;
    font-weight: bold;
    color: #7f8c8d;
    margin-top: 3px;
    font-style: italic;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: #e67e22;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.phone-number i {
    color: #e67e22;
}
.phone-number a {
    color: #333;
    text-decoration: none; /* remove underline */
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Phone icon */
.phone-number a i {
    margin-right: 8px;
    font-size: 1.2rem;
    color: #0073e6; /* accent color */
}
.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    color: #2c3e50;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #f3f3f3;
}

.social-icons a:hover {
    background: #e67e22;
    color: white;
    transform: translateY(-2px);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: #2c3e50;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, rgba(249,249,249,0.92) 0%, rgba(240,240,240,0.92) 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 50%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-icon {
    width: 70px;
    height: 70px;
    background: #e67e22;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
    flex-shrink: 0;
}

.hero-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.hero h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: #34495e;
}

.cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    align-self: flex-start;
}

.cta-button:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

/* Features Section */
.features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.feature i {
    color: #e67e22;
    font-size: 1.2rem;
}

/* Hero Gallery */
.hero-gallery {
    position: absolute;
    right: 12%;
    top: 55%;
    transform: translateY(-50%);
    width: 42%;
    max-width: 500px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.gallery-item.active {
    opacity: 1;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
    position: fixed;
    bottom: calc(15px + env(safe-area-inset-bottom));
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp {
    background: #25D366;
}

.call {
    background: #3498db;
}

.language {
    background: #2c3e50;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    bottom: 110px;
    right: 30px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lang-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    background: green;
    border: none;
}

.lang-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* ===== DECORATIVE ELEMENTS ===== */
.decoration {
    position: absolute;
    z-index: 0;
}

.decoration-1 {
    width: 250px;
    height: 250px;
    border: 20px solid rgba(231, 76, 60, 0.15);
    border-radius: 50%;
    top: 15%;
    right: 25%;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    background: rgba(52, 152, 219, 0.1);
    bottom: 20%;
    right: 30%;
    border-radius: 30px;
    transform: rotate(45deg);
}

.decoration-3 {
    width: 100px;
    height: 100px;
    border-top: 15px solid rgba(241, 196, 15, 0.2);
    border-right: 15px solid rgba(241, 196, 15, 0.1);
    border-bottom: 15px solid rgba(241, 196, 15, 0.2);
    border-left: 15px solid rgba(241, 196, 15, 0.1);
    border-radius: 50%;
    top: 30%;
    left: 15%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* ===== SECTION STYLES ===== */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-title p {
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SERVICES SECTION ===== */
.inp { 
    padding: 20px 0;
}
.services { 
    padding: 20px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.service-img {
    height: 100px;
    background: #e67e22;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.service-content p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* Service Icon Fallback */
.service-icon-fallback {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #e67e22, #f39c12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    border-radius: 8px;
}

/* ===== PORTFOLIO SECTION ENHANCEMENTS ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    height: 250px; /* Fixed height for grid */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

/* Portfolio Image Container */
.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Portfolio Image Styles */
.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures proper cropping */
    transition: transform 0.5s ease;
    opacity: 0;
}

.portfolio-img.loaded {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.85);
    padding: 15px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Portfolio Placeholder */
.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #e67e22, #f39c12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.portfolio-placeholder span {
    font-size: 1rem;
    margin-top: 10px;
    font-weight: 500;
}

/* ===== SINGLE PORTFOLIO POST STYLES ===== */
.single-portfolio .inner-content {
    max-width: 100%;
}

.portfolio-featured-image {
    width: 100%;
    height: 500px; /* Larger height for single post */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.portfolio-content {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.portfolio-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.meta-item i {
    color: #e67e22;
}

.portfolio-description {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Portfolio Gallery */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    //height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

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

/* Project Details */
.project-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
}

.project-details h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-item h4 {
    color: #e67e22;
    margin-bottom: 8px;
    font-size: 1rem;
}

.detail-item p {
    color: #2c3e50;
    font-weight: 500;
    margin: 0;
}

/* Navigation Between Projects */
.portfolio-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 50px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.nav-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.nav-btn.prev {
    margin-right: auto;
}

.nav-btn.next {
    margin-left: auto;
}

/* Back to Portfolio Button */
.back-to-portfolio {
    text-align: center;
    margin-top: 40px;
}

/* ===== RESPONSIVE DESIGN FOR PORTFOLIO ===== */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .portfolio-featured-image {
        height: 400px;
    }
    
    .portfolio-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .portfolio-item {
        height: 220px;
    }
    
    .portfolio-featured-image {
        height: 300px;
    }
    
    .portfolio-content {
        padding: 20px;
    }
    
    .portfolio-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .portfolio-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .portfolio-featured-image {
        height: 250px;
    }
    
    .gallery-item {
       // height: 150px;
    }
    
    .project-details {
        padding: 20px;
    }
}
@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== WHY CHOOSE US ===== */
.why-choose-us {
    background: white;
}

.reasons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.reason {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

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

.reason i {
    font-size: 2.5rem;
    color: #e67e50;
    margin-bottom: 15px;
}

.reason h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* ===== AREAS WE SERVE ===== */
.areas {
    background: #f8f9fa;
}

.cities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.city {
    background: white;
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.city:hover {
    background: #e67e22;
    color: white;
    transform: translateY(-3px);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #34495e;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e67e22;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.author-details h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-details p {
    color: #7f8c8d;
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.author-details small {
    color: #95a5a6;
    font-size: 0.8rem;
}

/* ===== BLOG SECTION ===== */
.blog {
    background: #f8f9fa;
}

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

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.blog-image {
    /*height: 130px;*/
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    color: #e67e22;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.blog-content p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* ===== FOOTER ===== */
footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #e67e22;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #e67e22;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.footer-social a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #e67e22;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* ===== INNER PAGE STYLES ===== */
.inner-page {
    padding: 120px 0 60px;
    background: #f8f9fa;
    min-height: 100vh;
}

.inner-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.inner-content {
    padding-right: 40px;
    border-right: 1px solid #e2e8f0;
}

/* Post Items */
.post-item {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.post-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.post-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.post-text {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
}

.post-features {
    list-style: none;
    padding: 0;
}

.post-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.post-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #e67e22;
    font-weight: bold;
}

/* Sidebar */
.inner-sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e67e22;
}

/* Sidebar Lists */
.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-list a {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.sidebar-list a:hover,
.sidebar-list a.active {
    background: #e67e22;
    color: white;
    border-color: #e67e22;
}

/* Contact Widget */
.contact-button {
    display: inline-block;
    padding: 12px 24px;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.contact-button:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* ===== ABOUT PAGE STYLES ===== */
.about-page {
    padding: 120px 0 60px;
    background: #f8f9fa;
    min-height: 100vh;
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.about-hero h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 5px auto;
}

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

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-text h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 5px;
     text-align:inherit;
}
.about-text h3, h4 {
    text-align:inherit;
}
.about-text p {
    text-align:justify;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: inherit;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 10px;
}

.stat-label {
    color: #2c3e50;
    font-weight: 600;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-page {
    padding: 120px 0 60px;
    background: #f8f9fa;
    min-height: 100vh;
}

.contact-hero {
    text-align: center;
    margin-bottom: 60px;
}

.contact-hero h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: fit-content;
}

.contact-info h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
}

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

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

.contact-item i {
    font-size: 1.5rem;
    color: #e67e22;
    margin-top: 5px;
    min-width: 30px;
    text-align: center;
}

.contact-item-content h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-item-content p {
    color: #4a5568;
    line-height: 1.6;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 500px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Business Hours Section */
.business-hours {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-top: 50px;
}

.business-hours h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.hour-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.hour-item.day-active {
    background: #e67e22;
    color: white;
}

.hour-item.day-active .day {
    color: white;
}

.day {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.time {
    color: #4a5568;
    font-size: 1.1rem;
}

/* ===== ARCHIVE PAGE STYLES ===== */
.archive-page {
    padding: 120px 0 60px;
    background: #f8f9fa;
    min-height: 100vh;
}

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

.archive-header {
    text-align: center;
    margin-bottom: 60px;
}

.archive-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.archive-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
}

/* Portfolio Filter Styles */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: #e67e22;
    border-color: #e67e22;
    color: white;
    transform: translateY(-2px);
}

/* Archive Grid Layouts */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* No Content States */
.no-content {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    background: #f8f9fa;
    border-radius: 10px;
    color: #7f8c8d;
}

.no-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Pagination Styles */
.pagination {
    margin: 60px 0 40px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 10px 18px;
    border: 2px solid #e67e22;
    border-radius: 5px;
    text-decoration: none;
    color: #e67e22;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #e67e22;
    color: white;
    transform: translateY(-2px);
}

.pagination .page-numbers.dots {
    border-color: #bdc3c7;
    color: #7f8c8d;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    color: #7f8c8d;
    transform: none;
}

/* Archive Call to Action */
.archive-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
}

.archive-cta h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.archive-cta p {
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== RTL SUPPORT ===== */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .hero-title {
    flex-direction: row;
}

/* RTL Support for Hero Section */
body.rtl .hero-content {
    text-align: right;
    margin-right: 0;
    margin-left: auto;
}

body.rtl .hero-gallery {
    right: auto;
    left: 12%;
}

body.rtl .features {
   flex-direction: row-reverse;
}

body.rtl .cta-button {
    align-self: flex-end;
}

body.rtl .header-container {
    flex-direction: row;
}

body.rtl .header-contact {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl nav ul {
   flex-direction: row;
}

body.rtl .testimonial-author {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    direction: rtl;
}

body.rtl .floating-buttons {
    right: auto;
    left: 30px;
}

body.rtl .lang-switcher {
    right: auto;
    left: 30px;
}

/* RTL-specific decoration positions */
body.rtl .decoration-1 {
    right: auto;
    left: 25%;
}

body.rtl .decoration-2 {
    right: auto;
    left: 30%;
}

body.rtl .decoration-3 {
    left: auto;
    right: 15%;
}
/* English pages */
body.ltr .about-text {
    text-align: left !important;
}

body.rtl .about-text h2,
body.rtl .about-text h3,
body.rtl .about-text h4 {
    text-align: right !important;
}

body.rtl .about-text p {
    text-align: justify; /* looks best for Arabic */
    direction: rtl;
}

body.rtl .about-hero h1,
body.rtl .about-hero p {
    text-align: center; /* keep hero centered */
    direction: rtl;
}

body.rtl .contact-item i {
    margin-left: 0;
    margin-right: 0;
}

body.rtl .contact-item-content {
    text-align: right;
}

body.rtl .hours-grid {
    direction: rtl;
}
body.rtl .about-text h2 {
    text-align: right !important;
}

/* Force RTL headings in About Page */
body.rtl .about-text h2,
body.rtl .about-text h3,
body.rtl .about-text h4 {
    text-align: right !important; /* Force right alignment for Arabic */
}
/* RTL Support for new pages */
body.rtl .inner-content {
    padding-right: 0;
    padding-left: 40px;
    border-right: none;
    border-left: 1px solid #e2e8f0;
}

body.rtl .post-features li {
    padding-left: 0;
    padding-right: 25px;
}

body.rtl .post-features li:before {
    left: auto;
    right: 0;
}

body.rtl .contact-item {
    flex-direction: row;
}

/* RTL Support for Archive Pages */
body.rtl .pagination .nav-links {
    direction: rtl;
}

body.rtl .portfolio-filter {
    direction: rtl;
}

body.rtl .testimonial-author {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .archive-cta {
    direction: rtl;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1100px) {
    .hero-gallery {
        width: 45%;
        height: 450px;
    }
    
    .hero-content {
        max-width: 50%;
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .header-contact {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .hero-gallery {
        width: 45%;
        height: 400px;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero-content {
        max-width: 50%;
    }
    
    .inner-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .inner-content {
        padding-right: 0;
        border-right: none;
    }
    
    .inner-sidebar {
        position: static;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-map {
        height: 400px;
        order: -1;
    }
    
    .contact-info {
        order: 1;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .archive-title {
        font-size: 2.2rem;
    }
    
    .archive-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 868px) {
    .menu-toggle {
        display: flex;
    }
    .logo {
        margin-right: 15px;
    }
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        background: white;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    nav.active {
        left: 0;
    }
    
    /* RTL mobile nav */
    body.rtl nav {
        left: auto;
        right: -100%;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }
    
    body.rtl nav.active {
        right: 0;
        left: auto;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        width: 100%;
    }
    
    nav a {
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .hero-gallery {
        position: relative;
        width: 100%;
        height: 400px;
        margin-top: 40px;
        right: 0;
        top: 0;
        transform: none;
    }
    
    /* RTL mobile gallery */
    body.rtl .hero-gallery {
        left: 0;
        right: auto;
    }
    
    .hero-content {
        max-width: 100%;
        width: 100%;
    }
    
    .hero {
        flex-direction: column;
        padding-top: 140px;
        padding-bottom: 5px;
    }
    
    /* FIXED: Hero title stays in one line on mobile */
    .hero-title {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .hero-icon {
        width: 60px;
        height: 60px;
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    /* RTL mobile hero icon */
    body.rtl .hero-icon {
        margin-right: 0;
        margin-left: 15px;
    }
    
    .hero-icon img {
        width: 30px;
        height: 30px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        white-space: normal;
    }
    
    .decoration-1, .decoration-2 {
        display: none;
    }
    
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .business-hours {
        padding: 20px;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    /* Archive Page Mobile */
    .archive-page {
        padding: 100px 0 40px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-description {
        font-size: 1.1rem;
    }
    
    .portfolio-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .pagination .page-numbers {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-cta h3 {
        font-size: 1.5rem;
    }
    
    /* Horizontal menu for larger mobile screens */
    @media (min-width: 481px) and (max-width: 868px) {
                
        nav a {
            border-bottom: none;
            padding: 8px 15px;
            background: #f8f9fa;
            border-radius: 20px;
            white-space: nowrap;
        }
        
        nav a:hover {
            background: #e67e22;
            color: white;
        }
    }
}

@media (max-width: 768px) {
.logo {
        margin-right: 15px;
    }    
nav ul {
        flex-direction: column !important;
        padding: 10px !important;
        gap: 10px !important;
    }

    nav a {
        border-bottom: 1px solid #eee;
        padding: 10px 0;
        background: none !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 576px) {
    .logo {
        margin-right: 15px;
    }
    .logo-text {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 0.95rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero-icon {
        width: 50px;
        height: 50px;
    }
    
    .hero-icon img {
        width: 25px;
        height: 25px;
    }
    
    .features {
        flex-direction: column;
        gap: 15px;
    }
    
    .phone-number span {
        font-size: 0.9rem;
    }
    
    .social-icons a {
        width: 30px;
        height: 30px;
    }
    
    .hero-gallery {
        height: 350px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-hero h1,
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    body.rtl .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-top: 0;
    }
    
    /* Archive Page Small Mobile */
    .archive-title {
        font-size: 1.8rem;
    }
    
    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    .pagination .nav-links {
        gap: 5px;
    }
    
    .pagination .page-numbers {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .archive-cta {
        padding: 30px 0;
    }
    
    .archive-cta h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
        
    nav a {
        border-bottom: none;
        padding: 8px 15px;
        background: #f8f9fa;
        border-radius: 20px;
        white-space: nowrap;
        font-size: 0.95rem;
    }
    
    nav a:hover {
        background: #e67e22;
        color: white;
    }
    
    .contact-info,
    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero-icon {
        width: 45px;
        height: 45px;
    }
    
    .hero-icon img {
        width: 22px;
        height: 22px;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Adjust menu for very small screens */
    nav ul {
        gap: 8px;
    }
    
    nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    /* Archive Page Extra Small */
    .archive-container {
        padding: 0 15px;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-btn {
        width: 180px;
        font-size: 0.85rem;
    }
}

/* WordPress RTL Gallery Fix */
body.rtl .hero-gallery,
.rtl .hero-gallery,
[dir="rtl"] .hero-gallery {
    right: auto !important;
    left: 12% !important;
}

/* WordPress RTL Body Detection */
body.rtl,
.rtl,
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body.rtl .hero-content,
.rtl .hero-content,
[dir="rtl"] .hero-content {
    text-align: right;
    margin-right: 0;
    margin-left: auto;
}
/* Mobile responsive for all screens */
@media (max-width: 768px) {
  body.rtl .hero-gallery, 
  .rtl .hero-gallery, 
  [dir="rtl"] .hero-gallery,
  .hero-gallery {
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  body.rtl .hero-gallery, 
  .rtl .hero-gallery, 
  [dir="rtl"] .hero-gallery,
  .hero-gallery {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    transform: none !important;
  }
}
/* Force RTL for Arabic language */
html[lang="ar"] .hero-gallery,
html[lang="ar"] body .hero-gallery {
    right: auto !important;
    left: 12% !important;
}
.fa-flag-sa::before {
    content: "🇸🇦";
    font-size:48px;
}
.fa-flag-uk::before {
    content: "🇬🇧";
    font-size:48px;
}