/* ===== خطوط فخمة عربية ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&family=Amiri:wght@400;700&family=Cairo:wght@200;300;400;600;700;900&display=swap');

/* ===== متغيرات الألوان الفخمة ===== */
:root {
    --gold-primary: #D4AF37;
    --gold-light: #F4E8C1;
    --gold-dark: #B8941E;
    --olive-dark: #1A3C34;
    --olive-deeper: #0F241E;
    --olive-light: #2A5C4F;
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --cream: #F8F6F0;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --shadow-luxury: 0 20px 60px rgba(26, 60, 52, 0.12);
    --shadow-gold: 0 10px 40px rgba(212, 175, 55, 0.25);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E8C1 100%);
    --gradient-olive: linear-gradient(135deg, #1A3C34 0%, #2A5C4F 100%);
}

/* ===== الإعدادات الأساسية ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.8;
    overflow-x: hidden;
    transition: all 0.3s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* تحسين المسافات بين الكلمات */
p, h1, h2, h3, h4, h5, h6, span, a, li {
    word-spacing: 1px;
}

/* تأثيرات الوصولية */
body.highlight-mode *:not(button):not(a):not(i) {
    background: linear-gradient(transparent 60%, rgba(212, 175, 55, 0.3) 60%) !important;
}

body.bold-mode {
    font-weight: 700 !important;
}

body.italic-mode {
    font-style: italic !important;
}

body.contrast-mode {
    background: #000 !important;
    color: #fff !important;
}

body.contrast-mode * {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

/* ===== شريط التقدم ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-gold);
    z-index: 10000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* ===== لوحة الوصول ===== */
.accessibility-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

.acc-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-gold);
    border: 3px solid var(--white);
    color: var(--olive-dark);
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-luxury);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--shadow-gold);
}

.acc-tools {
    position: absolute;
    right: 75px;
    top: 0;
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-luxury);
    border: 2px solid var(--gold-light);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.acc-tools.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.acc-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gold-light);
}

.acc-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.acc-section h4 {
    font-size: 14px;
    color: var(--olive-dark);
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acc-section button {
    padding: 10px 15px;
    margin: 5px 3px;
    background: var(--cream);
    border: 2px solid var(--gold-light);
    border-radius: 8px;
    color: var(--olive-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
}

.acc-section button:hover {
    background: var(--gold-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* ===== النافبار ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 9998;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: var(--shadow-luxury);
    background: rgba(255, 255, 255, 0.95);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 30px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-wrapper {
    padding: 12px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.3));
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 45px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 900;
    color: var(--olive-dark);
    font-family: 'Amiri', serif;
    margin: 0;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 12px;
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a i {
    font-size: 14px;
    opacity: 0.7;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-gold);
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--cream);
    border: 2px solid var(--gold-light);
    color: var(--olive-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.search-btn:hover {
    background: var(--gold-primary);
    color: var(--white);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--olive-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* نافذة البحث */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 36, 30, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 700px;
}

.search-input {
    width: 100%;
    padding: 25px 70px 25px 25px;
    background: var(--white);
    border: 3px solid var(--gold-primary);
    border-radius: 20px;
    font-size: 20px;
    font-family: 'Cairo', sans-serif;
    color: var(--olive-dark);
    box-shadow: var(--shadow-gold);
}

.search-close {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--gold-primary);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: var(--gold-dark);
    transform: translateY(-50%) scale(1.1);
}

/* ===== Page Header ===== */
.page-header {
    min-height: 50vh;
    background: var(--gradient-olive);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.page-header-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    font-family: 'Amiri', serif;
}

.page-header-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1rem;
}

.breadcrumb a {
    color: var(--gold-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-badge {
    display: inline-block;
    padding: 10px 25px;
    background: var(--gold-light);
    color: var(--olive-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--olive-dark);
    margin-bottom: 20px;
    font-family: 'Amiri', serif;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== Buttons ===== */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--gradient-gold);
    color: var(--olive-dark);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    border: none;
    cursor: pointer;
}

.btn-luxury:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.5);
}

.btn-luxury-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: transparent;
    color: var(--olive-dark);
    text-decoration: none;
    border-radius: 15px;
    border: 3px solid var(--gold-primary);
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-luxury-outline:hover {
    background: var(--gold-primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* ===== Blog Cards ===== */
.blog-full-section {
    padding: 120px 0;
    background: var(--cream);
}

.blog-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-card-luxury {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid transparent;
}

.blog-card-luxury:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-luxury);
    border-color: var(--gold-primary);
}

.blog-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.blog-image.default {
    background: var(--gradient-olive);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--gold-primary);
}

.blog-body {
    padding: 35px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.blog-card-luxury h3 {
    font-size: 1.5rem;
    color: var(--olive-dark);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.5 !important;
    word-wrap: break-word;
}

.blog-card-luxury p {
    color: var(--text-gray);
    line-height: 1.9 !important;
    margin-bottom: 25px;
    text-align: right;
    word-spacing: 2px;
    letter-spacing: 0.3px;
    word-break: normal;
    overflow-wrap: break-word;
}

.read-more-luxury {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 15px;
}

.read-more-luxury:hover {
    gap: 15px;
    color: var(--gold-dark);
}

.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    background: var(--white);
    border-radius: 30px;
    border: 3px dashed var(--gold-light);
}

.no-posts-message i {
    font-size: 80px;
    color: var(--gold-light);
    margin-bottom: 30px;
}

.no-posts-message h3 {
    font-size: 2rem;
    color: var(--olive-dark);
    margin-bottom: 15px;
}

.no-posts-message p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer-luxury {
    background: var(--olive-deeper);
    color: rgba(255, 255, 255, 0.8);
}

.footer-top {
    padding: 80px 0 40px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 50px;
}

.footer-logo h3 {
    font-size: 24px;
    color: var(--gold-primary);
    font-weight: 900;
    font-family: 'Amiri', serif;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold-primary);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--gold-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
    padding-right: 10px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: var(--gold-primary);
    font-size: 16px;
    margin-top: 3px;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ===== زر العودة للأعلى ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 15px;
    color: var(--olive-dark);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    z-index: 9997;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 30px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        gap: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gold-light);
        padding: 20px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .accessibility-panel {
        right: 10px;
    }
    
    .acc-tools {
        right: 65px;
        min-width: 250px;
    }
    
    .blog-full-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .page-header-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .blog-full-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-card-luxury p {
        font-size: 1rem;
        line-height: 1.8 !important;
    }
    
    .blog-card-luxury h3 {
        font-size: 1.3rem;
        line-height: 1.4 !important;
    }
    
    .blog-body {
        padding: 25px;
        min-height: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .search-input {
        font-size: 16px;
        padding: 20px 60px 20px 20px;
    }
    
    .accessibility-panel {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text span {
        font-size: 10px;
    }
    
    .logo-img {
        height: 40px;
    }
}