/* ==========================================================================
   Design System, Official Typography & Theme Variables (Taif Al-Arwi Identity)
   ========================================================================== */

:root {
    --primary-bg: #FFFFFF;
    --beige-light: #FDFBF7;
    --beige-soft: #F7F3EC;
    
    --brand-dark: #0D2B1F;
    --brand-primary: #133F2E;
    --brand-light: #1C5C42;
    --brand-soft: #EBF3EF;
    
    --gold-primary: #E9B18B;
    --gold-dark: #C48A65;
    --gray-brand: #EAEAEA;
    
    --text-primary: #1A2A22;
    --text-secondary: #4D6358;
    --text-muted: #7A8E85;
    --text-white: #FFFFFF;
    
    --max-width: 1140px;
    --header-height: 85px;
    
    --font-ar: 'Decotype Naskh', 'DecoType Naskh', 'Traditional Arabic', 'Scheherazade New', 'Noto Naskh Arabic', serif;
    --font-en: 'Bahnschrift', 'DIN Alternate', 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --border-color: rgba(233, 177, 139, 0.35);
    --shadow-soft: 0 4px 20px rgba(19, 63, 46, 0.04);
}

[data-theme="dark"] {
    --primary-bg: #0D2B1F;
    --beige-light: #133F2E;
    --beige-soft: #081D15;
    
    --brand-dark: #FDFBF7;
    --brand-primary: #E9B18B;
    --brand-light: #FFFFFF;
    --brand-soft: rgba(233, 177, 139, 0.15);
    
    --text-primary: #FDFBF7;
    --text-secondary: #D1DDD6;
    --text-muted: #8AA396;
    
    --border-color: rgba(233, 177, 139, 0.25);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.85;
    text-align: right;
    overflow-x: hidden;
    font-size: 1.15rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.brand-en,
[lang="en"],
.en-text {
    font-family: var(--font-en);
    letter-spacing: 0.04em;
}

.global-fixed-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65vw;
    max-width: 550px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.global-fixed-watermark img {
    width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header Navbar */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .main-header {
    background: rgba(13, 43, 31, 0.96) !important;
    border-bottom-color: var(--border-color);
}

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

.header-right-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

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

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-dark);
    font-family: var(--font-ar);
    white-space: nowrap;
}

.brand-en {
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brand-dark);
    cursor: pointer;
}

[data-theme="dark"] .mobile-nav-toggle {
    color: #FDFBF7;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

/* Navigation Links & Hover Effect */
.nav-link {
    position: relative;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--font-ar);
    padding-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-dark));
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-link:hover, 
.nav-link.active {
    color: var(--brand-primary);
}

[data-theme="dark"] .nav-link {
    color: #D1DDD6;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--gold-primary) !important;
}

/* 🎨 زر تواصل واحصل على استشارتك (حجم متوازن + حركة سهم) */
.nav-cta-btn-styled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    min-width: 220px;
    background-color: var(--brand-primary);
    color: #FFFFFF;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-ar);
    border: none;
    cursor: pointer;
}

.nav-cta-btn-styled i {
    transition: transform 0.3s ease;
}

.nav-cta-btn-styled:hover i {
    transform: translateX(-6px);
}

.nav-cta-btn-styled:hover {
    transform: translateY(-2px);
    background-color: var(--brand-light);
    box-shadow: 0 6px 15px rgba(19, 63, 46, 0.15);
}

[data-theme="dark"] .nav-cta-btn-styled {
    background-color: var(--gold-primary);
    color: #0D2B1F;
    font-weight: 800;
}

[data-theme="dark"] .nav-cta-btn-styled:hover {
    background-color: var(--gold-dark);
}

/* Theme Switcher Button */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--brand-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--brand-soft);
    color: var(--brand-primary);
}

[data-theme="dark"] .theme-toggle-btn {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background-color: rgba(233, 177, 139, 0.15);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 190px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    display: none;
    list-style: none;
    padding: 0.5rem 0;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #133F2E !important;
    border-color: var(--border-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-ar);
}

[data-theme="dark"] .dropdown-item {
    color: #FDFBF7;
}

.dropdown-item:hover {
    background-color: var(--beige-light);
    color: var(--brand-primary);
}

/* Hero Sections */
.hero-section,
.hero-with-bg,
.services-hero-section,
.articles-hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 4.5rem);
    padding-bottom: 5rem;
    background-image: url('hero-bg.jpg') !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    position: relative;
    z-index: 2;
}

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

.verified-badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 1.35rem;
    background: rgba(13, 43, 31, 0.7);
    border: 1px solid rgba(233, 177, 139, 0.5);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: #E9B18B;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #E9B18B;
    border-radius: 50%;
    animation: pulse-ring 1.8s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.85);
        opacity: 0;
    }
}

.verified-icon {
    width: 18px;
    height: 18px;
    color: #E9B18B;
    flex-shrink: 0;
}

.badge-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    font-family: var(--font-ar);
    letter-spacing: 0.02em;
}

.hero-main-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.2rem;
    line-height: 1.45;
    font-family: var(--font-ar);
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-main-desc {
    font-size: 1.28rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 2rem;
    font-family: var(--font-ar);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2.3rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-ar);
    font-size: 1.05rem;
}

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

[data-theme="dark"] .btn-primary {
    color: #0D2B1F;
}

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

.btn-secondary {
    background-color: rgba(13, 43, 31, 0.6);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #FFFFFF;
}

/* Why Us Section */
.why-us-section {
    padding: 4rem 0;
    background-color: var(--primary-bg);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.section-title,
.section-title-start {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    font-family: var(--font-ar);
}

.why-us-description {
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.5rem;
    font-family: var(--font-ar);
}

.link-with-arrow {
    color: var(--brand-primary);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    font-family: var(--font-ar);
}

.calm-image-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.calm-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Floating Question Card Section */
.question-partner-section {
    padding: 3.5rem 0;
    background-color: var(--beige-soft);
}

.qp-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.floating-card-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 390px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bg-consultation-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-q-card {
    position: absolute;
    bottom: 25px;
    left: 25px;
    width: 320px;
    background: #F8F5F0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    text-align: center;
    border: 1px solid rgba(233, 177, 139, 0.4);
    z-index: 2;
}

[data-theme="dark"] .floating-q-card {
    background: #133F2E;
}

.q-card-header {
    background-color: #133F2E;
    color: #FFFFFF;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.q-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-ar);
}

.q-card-icon {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #E9B18B;
}

.q-card-divider {
    width: 40px;
    height: 2px;
    background-color: #E9B18B;
    margin: 0.5rem auto 0.8rem auto;
    border-radius: 2px;
}

.q-card-desc {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4D6358;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: var(--font-ar);
}

[data-theme="dark"] .q-card-desc {
    color: #D1DDD6;
}

.btn-q-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background-color: #133F2E;
    color: #FFFFFF;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s ease;
    font-family: var(--font-ar);
}

[data-theme="dark"] .btn-q-card-action {
    background-color: #E9B18B;
    color: #0D2B1F;
}

.partner-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    font-family: var(--font-ar);
}

.partner-desc {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-ar);
}

.btn-outline-green {
    border: 1.5px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
}

.btn-outline-green:hover {
    background-color: var(--brand-primary);
    color: #FFFFFF;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background-color: var(--primary-bg);
}

.services-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-ar);
    text-decoration: none;
}

.services-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--border-color);
    background-color: var(--beige-light);
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-ar);
    font-size: 1.05rem;
}

.tab-btn.active {
    background-color: var(--brand-primary);
    color: #FFFFFF;
    border-color: var(--brand-primary);
}

.services-panel {
    display: none;
}

.services-panel.active {
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--primary-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--gold-primary) !important;
}

.service-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 0.6rem;
    font-family: var(--font-ar);
}

.service-card-desc {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-ar);
}

.service-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #25D366;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    font-family: var(--font-ar);
}

/* Sectors Section */
.sectors-section {
    padding: 3.5rem 0;
    background-color: var(--beige-light);
}

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

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.sector-card {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.35rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-4px);
}

.sector-icon {
    color: var(--brand-primary);
}

.sector-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--brand-dark);
    font-family: var(--font-ar);
}

/* About Us Box */
.about-section {
    padding: 4rem 0;
    background-color: var(--primary-bg);
}

.about-box-card {
    background-color: var(--beige-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
}

.about-lead {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-dark);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-ar);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.vm-card {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}

.vm-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 0.6rem;
    font-family: var(--font-ar);
}

.vm-desc {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-ar);
}

/* Contact Cards Section */
.contact-section {
    padding: 4rem 0;
    background-color: var(--beige-soft);
}

.cta-direct-card {
    background-color: #0D2B1F;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    color: #FFFFFF;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-book-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--gold-primary);
    color: #0D2B1F;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(233, 177, 139, 0.3);
    margin-bottom: 2rem;
    transition: transform 0.25s ease;
}

.btn-book-cta:hover {
    transform: translateY(-3px);
}

.direct-channels-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(233, 177, 139, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
}

.channels-title {
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

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

.channel-icon {
    width: 48px;
    height: 48px;
    background-color: #133F2E;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.channel-info {
    display: flex;
    flex-direction: column;
}

.channel-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.channel-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
}

.social-tags a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 700;
}

.contact-details-card {
    background-color: var(--beige-light);
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem 1.5rem;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.card-header-icon {
    width: 44px;
    height: 44px;
    background-color: var(--brand-primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-row-box {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.row-icon {
    width: 42px;
    height: 42px;
    background-color: #133F2E;
    color: var(--gold-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.row-text h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 0.2rem;
}

.row-text p, .email-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
}

.social-pills-wrapper {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.social-pills-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.pills-grid {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
}

.social-pill {
    width: 46px;
    height: 46px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-pill:hover {
    background-color: var(--brand-primary);
    color: #FFFFFF;
}

/* Footer Layout Fixed One-Line */
.main-footer {
    background-color: #0D2B1F;
    color: rgba(255, 255, 255, 0.85);
    padding: 1.1rem 0;
    font-size: 0.95rem;
    font-family: var(--font-ar);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.footer-bottom-flex p {
    white-space: nowrap;
}

/* Articles & Services Pages Specific */
.articles-hero-section,
.services-hero-section {
    padding-top: calc(var(--header-height) + 3.5rem);
    padding-bottom: 3rem;
}

.articles-page-section,
.services-page-main {
    padding: 3.5rem 0 5rem 0;
    background-color: var(--primary-bg);
}

.services-tabs-center {
    justify-content: center;
    margin-bottom: 3rem;
}

.services-preview-section {
    padding: 4rem 0;
    background-color: var(--primary-bg);
}

.article-filters {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.55rem 1.35rem;
    border: 1px solid var(--border-color);
    background-color: var(--beige-light);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-ar);
    transition: all 0.25s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--brand-primary);
    color: #FFFFFF;
    border-color: var(--brand-primary);
}

.articles-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card {
    background-color: var(--primary-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--gold-primary);
}

.article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.article-tag {
    background-color: var(--brand-soft);
    color: var(--brand-primary);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-weight: 700;
}

.article-date {
    color: var(--text-muted);
    font-weight: 600;
}

.article-card-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
    line-height: 1.45;
    font-family: var(--font-ar);
}

.article-card-excerpt {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-family: var(--font-ar);
}

.article-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary);
    font-weight: 800;
    font-size: 0.98rem;
    text-decoration: none;
    font-family: var(--font-ar);
    transition: color 0.2s;
}

.article-read-link:hover {
    color: var(--gold-dark);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 📌 Dark Mode Overrides */
[data-theme="dark"] .service-card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .sector-card,
[data-theme="dark"] .info-row-box,
[data-theme="dark"] .about-box-card,
[data-theme="dark"] .vm-card,
[data-theme="dark"] .contact-details-card {
    background-color: #133F2E !important;
    border-color: rgba(233, 177, 139, 0.25) !important;
    color: #FDFBF7 !important;
}

[data-theme="dark"] .service-card-title,
[data-theme="dark"] .article-card-title,
[data-theme="dark"] .sector-title,
[data-theme="dark"] .about-lead,
[data-theme="dark"] .row-text h4,
[data-theme="dark"] .card-title-text,
[data-theme="dark"] .partner-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .section-title-start {
    color: #FDFBF7 !important;
}

[data-theme="dark"] .service-card-desc,
[data-theme="dark"] .article-card-excerpt,
[data-theme="dark"] .row-text p,
[data-theme="dark"] .partner-desc,
[data-theme="dark"] .why-us-description {
    color: #D1DDD6 !important;
}

[data-theme="dark"] .service-btn-wa {
    color: #25D366 !important;
}

[data-theme="dark"] .cta-direct-card {
    background-color: #081D15 !important;
    border: 1px solid rgba(233, 177, 139, 0.25);
}

[data-theme="dark"] .btn-book-cta {
    background-color: #E9B18B !important;
    color: #0D2B1F !important;
}

[data-theme="dark"] .channels-title,
[data-theme="dark"] .channel-value {
    color: #FFFFFF !important;
}

[data-theme="dark"] .channel-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .channel-icon,
[data-theme="dark"] .row-icon,
[data-theme="dark"] .card-header-icon {
    background-color: #0D2B1F !important;
    color: #E9B18B !important;
}

[data-theme="dark"] .tab-btn,
[data-theme="dark"] .filter-btn {
    background-color: #133F2E !important;
    color: #D1DDD6 !important;
    border-color: rgba(233, 177, 139, 0.25) !important;
}

[data-theme="dark"] .tab-btn.active,
[data-theme="dark"] .filter-btn.active {
    background-color: #E9B18B !important;
    color: #0D2B1F !important;
    font-weight: 800;
}

/* ==========================================================================
   📱 Perfect Responsive Logic For Desktop & Mobile
   ========================================================================== */

@media (min-width: 769px) {
    .header-container {
        justify-content: space-between;
    }

    .nav-menu {
        margin-right: auto;
    }

    .mobile-nav-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: auto;
        padding: 0.65rem 0;
    }

    .header-container {
        justify-content: space-between;
        position: relative;
    }

    .header-right-group {
        gap: 0.5rem;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .theme-toggle-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-bg);
        padding: 1.5rem;
        box-shadow: var(--shadow-soft);
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start;
    }

    .nav-cta-btn-styled {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }

    .brand-title {
        font-size: 0.82rem !important;
        white-space: nowrap;
    }

    .brand-en {
        font-size: 0.65rem !important;
        white-space: nowrap;
    }

    .logo-img {
        height: 40px !important;
    }

    .why-us-grid, .qp-grid, .services-grid, .sectors-grid, .vision-mission-grid, .articles-grid-full {
        grid-template-columns: 1fr;
    }

    .floating-card-container {
        height: 420px;
    }

    .floating-q-card {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        bottom: 15px;
    }

    .footer-bottom-flex {
        font-size: 0.75rem !important;
        gap: 0.5rem;
    }
}

@media (max-width: 400px) {
    .brand-title {
        font-size: 0.76rem !important;
    }
    .brand-en {
        display: none !important;
    }
    .footer-bottom-flex {
        font-size: 0.68rem !important;
    }
}
/* تصميم النافذة المنبثقة للمقالات (Modal) */
.article-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 43, 31, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.article-modal-overlay.active {
    display: flex;
}

.article-modal-content {
    background: var(--primary-bg);
    color: var(--text-primary);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 35px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    text-align: right;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--beige-light);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: 0.2s;
}

.modal-close-btn:hover {
    background: var(--brand-primary);
    color: #FFFFFF;
}

/* تنسيق محتوى المقال داخل النافذة */
.modal-article-tag {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand-primary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.modal-article-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.modal-article-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    display: block;
}

.modal-article-body {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
}
.hero-main-title {
    color: #0D2B1F !important; /* اللون الأخضر الغامق للمكتب، أو يمكنك إبداله بأي لون ترغبينه */
    text-shadow: none !important;
}

.hero-main-desc {
    color: #C48A65 !important; /* اللون الذهبي أو البرونزي، أو يمكنك جعله أسود #000000 */
    text-shadow: none !important;
}
/* الشعار الافتراضي في الوضع العادي (اللايت) يكون اللوجو الأخضر */
.brand .logo-img {
    content: url('logo-green.png');
}

/* الشعار في الوضع الداكن (الدارك) يتحول ليكون اللوجو العادي */
[data-theme="dark"] .brand .logo-img {
    content: url('logo.png');
}
/* تكبير وتثبيت مقاس الشعار الأخضر في الوضع الفاتح بالذات */
.brand .logo-img {
    height: 65px !important; /* يمكنك زيادة هذا الرقم أو تقليله حتى يضبط معكِ تماماً */
    width: auto !important;
    object-fit: contain !important;
}