/* ===== متغيرات أساسية – ألوان نقية مع تأثيرات Vision Pro ===== */
        :root {
            --bg-primary: #ffffff;
            --bg-secondary: #f2f2f5;
            --text-primary: #1d1d1f;
            --text-secondary: #4a4a4e;
            --text-muted: #86868b;
            --accent: #9a836a;        /* لون ترابي هادئ */
            --accent-light: #d6c6b6;
            --accent-glow: rgba(154, 131, 106, 0.3);
            --border-light: rgba(0, 0, 0, 0.05);
            --card-bg: rgba(255, 255, 255, 0.6);
            --glass-bg: rgba(255, 255, 255, 0.3);
            --glass-border: rgba(255, 255, 255, 0.4);
            --shadow-sm: 0 20px 40px -20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
            --shadow-hover: 0 40px 60px -20px rgba(0, 0, 0, 0.25), 0 0 0 2px var(--accent-light) inset, 0 0 30px var(--accent-glow);
            --transition-liquid: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            --content-width: min(1400px, 90vw);
            --header-height: 85px;
            --radius-sm: 30px;
            --radius-md: 45px;
            --radius-lg: 60px;
            --radius-xl: 80px;
            --radius-full: 1000px;
        }

        [data-theme="dark"] {
            --bg-primary: #0c0c0e;
            --bg-secondary: #1a1a1e;
            --text-primary: #f5f5f7;
            --text-secondary: #d1d1d6;
            --text-muted: #8e8e93;
            --accent: #cbb8a4;
            --accent-light: #9a836a;
            --accent-glow: rgba(203, 184, 164, 0.3);
            --border-light: rgba(255, 255, 255, 0.1);
            --card-bg: rgba(30, 30, 35, 0.6);
            --glass-bg: rgba(20, 20, 25, 0.3);
            --glass-border: rgba(255, 255, 255, 0.1);
            --shadow-sm: 0 20px 40px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
            --shadow-hover: 0 40px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 2px var(--accent-light) inset, 0 0 40px var(--accent-glow);
        }

        /* ===== تحسين الأداء وإعادة الضبط ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-primary);
            font-family: 'Inter', 'Tajawal', sans-serif;
            font-weight: 300;
            line-height: 1.6;
            direction: rtl;
            -webkit-font-smoothing: antialiased;
            transition: background-color 0.4s, color 0.4s;
            position: relative;
            overflow-x: hidden;
        }

        /* خلفية متحركة سائلة (فقاعات خفيفة) */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background: radial-gradient(circle at 30% 30%, var(--accent-glow) 0%, transparent 30%),
                        radial-gradient(circle at 80% 70%, rgba(154, 131, 106, 0.1) 0%, transparent 35%),
                        repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 6px);
            pointer-events: none;
            z-index: -1;
            opacity: 0.8;
            animation: none;
            will-change: transform, filter;
        }

        @keyframes liquidMove {
            0% { transform: scale(1) translate(0, 0); filter: blur(0px); }
            100% { transform: scale(1.05) translate(-2%, -1%); filter: blur(2px); }
        }

        .container {
            max-width: var(--content-width);
            margin: 0 auto;
            padding: 0 2rem;
            position: relative;
            z-index: 2;
        }

        /* ===== الخطوط ===== */
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Amiri', serif;
            font-weight: 500;
            line-height: 1.2;
            color: var(--text-primary);
        }

        p, .text-secondary {
            font-family: 'Inter', 'Tajawal', sans-serif;
            color: var(--text-secondary);
        }

        /* ===== روابط وأزرار سائلة ===== */
        a {
            text-decoration: none;
            color: inherit;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.7rem;
            padding: 1rem 2.5rem;
            background: var(--accent);
            color: white;
            border-radius: var(--radius-full);
            font-weight: 500;
            font-size: 1rem;
            border: none;
            cursor: pointer;
            transition: all var(--transition-liquid);
            box-shadow: 0 4px 20px var(--accent-glow);
            backdrop-filter: blur(15px);
            position: relative;
            overflow: hidden;
            will-change: transform, box-shadow;
        }

        .btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s;
        }

        .btn:hover::before {
            transform: translateX(100%);
        }

        .btn:hover {
            background: var(--accent-light);
            transform: scale(1.02) translateY(-2px);
            box-shadow: 0 15px 40px var(--accent-glow);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.4);
            color: white;
            backdrop-filter: blur(20px);
        }

        .btn-outline:hover {
            background: rgba(255,255,255,0.2);
            border-color: white;
            color: white;
        }

        .btn-sm {
            padding: 0.5rem 1.5rem;
            font-size: 0.95rem;
            background: var(--accent);
            color: white;
            border-radius: var(--radius-full);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s;
        }

        .btn-sm:hover {
            background: var(--accent-light);
            gap: 0.8rem;
        }

        /* ===== هيدر زجاجي فائق مع تأثير سائل ===== */
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.8rem 2rem;
            background: var(--glass-bg);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-full);
            margin: 1.5rem 0 2rem;
            box-shadow: var(--shadow-sm);
            position: sticky;
            top: 1.5rem;
            z-index: 100;
            height: var(--header-height);
            transition: all 0.4s;
            will-change: backdrop-filter, box-shadow;
        }

        .header.scrolled {
            background: var(--card-bg);
            backdrop-filter: blur(40px);
            box-shadow: 0 15px 40px -15px rgba(0,0,0,0.2);
        }

        .logo {
            font-family: 'Amiri', serif;
            font-size: 2.2rem;
            font-weight: 600;
            background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            transition: all 0.3s;
        }

        .nav-links {
            display: flex;
            gap: 3rem;
        }

        .nav-links a {
            font-size: 1rem;
            color: var(--text-secondary);
            position: relative;
            padding-bottom: 0.25rem;
            transition: color 0.3s;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
        }

        .nav-links a:hover {
            color: var(--text-primary);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-links a.active {
            color: var(--accent);
        }

        .nav-links a.active::after {
            width: 100%;
        }

        .header-actions {
            display: flex;
            gap: 0.8rem;
        }

        .header-actions button,
        .header-actions a {
            background: var(--card-bg);
            border: 1px solid var(--glass-border);
            color: var(--text-secondary);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s;
            backdrop-filter: blur(10px);
            cursor: pointer;
            font-size: 1.2rem;
            will-change: transform, background;
        }

        .header-actions button:hover,
        .header-actions a:hover {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
            transform: scale(1.1) rotate(5deg);
        }

        /* ===== هيرو تفصيلي ===== */
        .gallery-detail-hero {
            margin: 2rem 0 4rem;
            border-radius: var(--radius-xl);
            overflow: hidden;
            position: relative;
            min-height: 500px;
            display: flex;
            align-items: center;
            background-size: cover;
            background-position: center;
            box-shadow: var(--shadow-sm);
            transition: box-shadow var(--transition-liquid);
            will-change: box-shadow;
        }

        .gallery-detail-hero:hover {
            box-shadow: var(--shadow-hover);
        }

        .gallery-detail-hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.3) 0%, rgba(0,0,0,0.4) 100%);
            z-index: 1;
            mix-blend-mode: overlay;
        }

        .hero-content {
            padding: 4rem;
            color: white;
            max-width: 700px;
            position: relative;
            z-index: 2;
            text-shadow: 0 4px 30px rgba(0,0,0,0.5);
            backdrop-filter: blur(10px);
            background: rgba(0,0,0,0.1);
            border-radius: var(--radius-lg);
            margin: 3rem;
            border: 1px solid rgba(255,255,255,0.2);
        }

        .hero-badge {
            display: inline-block;
            background: var(--accent);
            color: white;
            padding: 0.4rem 1.5rem;
            border-radius: var(--radius-full);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .hero-badge-breaking {
            background: linear-gradient(90deg, #dc2626, #ef4444);
            margin-top: 10px;
        }

        .asset-caption {
            margin-top: 10px;
        }

        .hero-content h1 {
            font-size: clamp(2rem, 5vw, 3rem);
            margin-bottom: 0.5rem;
        }

        .hero-content p {
            font-size: 1.2rem;
            color: rgba(255,255,255,0.9);
        }

        /* ===== Breadcrumbs ===== */
        .breadcrumbs {
            padding: 1.5rem 0;
            margin: 1rem 0;
            border-bottom: 1px solid var(--border-light);
        }

        .breadcrumbs ol {
            display: flex;
            align-items: center;
            list-style: none;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        .breadcrumbs li {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            color: var(--text-secondary);
        }

        .breadcrumbs a {
            color: var(--text-secondary);
            transition: color 0.3s;
        }

        .breadcrumbs a:hover {
            color: var(--accent);
        }

        .breadcrumbs .separator {
            color: var(--border-light);
            font-size: 0.8rem;
        }

        .breadcrumbs .current {
            color: var(--accent);
            font-weight: 600;
            background: rgba(193, 154, 107, 0.1);
            padding: 0.4rem 1rem;
            border-radius: var(--radius-full);
        }

        /* ===== تخطيط التفاصيل ===== */
        .gallery-detail-layout {
            display: grid;
            grid-template-columns: 1fr 340px;
            gap: 2.5rem;
            margin-top: 2rem;
        }

        .gallery-detail-main {
            background: var(--card-bg);
            backdrop-filter: blur(15px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            padding: 2.5rem;
            box-shadow: var(--shadow-sm);
            transition: box-shadow 0.4s;
            will-change: box-shadow;
        }

        .gallery-detail-main:hover {
            box-shadow: var(--shadow-hover);
        }

        .gallery-media-container {
            position: relative;
            margin-bottom: 2rem;
            border-radius: var(--radius-lg);
            overflow: hidden;
            background: var(--tertiary-bg);
        }

        .gallery-image {
            width: 100%;
            height: auto;
            display: block;
            max-height: 600px;
            object-fit: contain;
        }

        .video-wrapper {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%; /* 16:9 */
            height: 0;
        }

        .video-wrapper iframe,
        .video-wrapper video {
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        .gallery-news-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: var(--radius-lg);
            margin-bottom: 1.5rem;
        }

        .media-controls {
            position: absolute;
            bottom: 1rem;
            right: 1rem;
            display: flex;
            gap: 0.5rem;
            z-index: 10;
        }

        .media-btn {
            width: 45px;
            height: 45px;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 50%;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .media-btn:hover {
            background: var(--accent);
            transform: scale(1.1);
        }

        .gallery-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            padding: 1rem 0;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-light);
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        .meta-item i {
            color: var(--accent);
        }

        .gallery-content {
            margin-bottom: 2rem;
        }

        .gallery-content h2 {
            color: var(--accent);
            margin-bottom: 1rem;
            font-size: 1.8rem;
        }

        .gallery-content p {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
        }

        .category-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .category-tag {
            background: rgba(154, 131, 106, 0.1);
            color: var(--accent);
            padding: 0.4rem 1rem;
            border-radius: var(--radius-full);
            font-size: 0.85rem;
            transition: all 0.3s;
        }

        .category-tag:hover {
            background: var(--accent);
            color: white;
        }

        .tags {
            margin-top: 30px;
        }

        /* مشاركة */
        .social-share {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            padding: 1.5rem 0;
            border-top: 1px solid var(--border-light);
            border-bottom: 1px solid var(--border-light);
            margin: 1.5rem 0;
            flex-wrap: wrap;
        }

        .share-label {
            color: var(--text-secondary);
            font-weight: 500;
        }

        .share-buttons {
            display: flex;
            gap: 0.8rem;
        }

        .share-btn {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--card-bg);
            border: 1px solid var(--glass-border);
            color: var(--text-secondary);
            transition: all 0.3s;
        }

        .share-btn:hover {
            transform: translateY(-3px);
            color: white;
        }
        .share-btn.facebook:hover { background: #1877F2; }
        .share-btn.twitter:hover { background: #1DA1F2; }
        .share-btn.linkedin:hover { background: #0077B5; }
        .share-btn.whatsapp:hover { background: #25D366; }

        /* خيارات التحميل */
        .download-options {
            margin: 2rem 0;
        }

        .download-btn {
            width: 100%;
            justify-content: center;
            margin-bottom: 0.5rem;
        }

        /* عناصر ذات صلة */
        .related-items {
            margin-top: 3rem;
        }

        .section-title {
            font-size: 2rem;
            color: var(--accent);
            margin-bottom: 1.5rem;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .related-item {
            background: var(--card-bg);
            backdrop-filter: blur(15px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            overflow: hidden;
            transition: all 0.4s;
            will-change: transform, box-shadow;
        }

        .related-item:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
        }

        .related-thumb {
            height: 180px;
            overflow: hidden;
        }

        .related-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s;
        }

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

        .related-content {
            padding: 1.5rem;
        }

        .related-content h4 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }

        .related-meta {
            display: flex;
            gap: 1rem;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .ad-slot {
            border: 1px dashed var(--accent-light);
            border-radius: var(--radius-md);
            background: linear-gradient(135deg, rgba(154, 131, 106, 0.08), rgba(154, 131, 106, 0.02));
            padding: 1rem;
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .ad-slot-label {
            display: inline-block;
            margin-bottom: 0.4rem;
            padding: 0.2rem 0.6rem;
            border-radius: 999px;
            background: rgba(154, 131, 106, 0.15);
            color: var(--accent);
            font-size: 0.72rem;
            letter-spacing: 0.06em;
            font-weight: 600;
        }

        .ad-slot-wide {
            margin: 1rem 0 1.6rem;
        }

        .detail-nav-grid {
            margin-top: 1.4rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 0.8rem;
        }

        .detail-nav-card {
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            padding: 0.9rem;
            background: var(--card-bg);
            color: var(--text-primary);
            text-decoration: none;
        }

        .detail-nav-card small {
            display: block;
            color: var(--text-muted);
            margin-bottom: 0.25rem;
        }

        .detail-nav-card:hover {
            border-color: var(--accent);
        }

        /* ===== الشريط الجانبي ===== */
        .gallery-sidebar {
            position: sticky;
            top: 120px;
            align-self: start;
        }

        .sidebar-widget {
            background: var(--card-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            padding: 1.8rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-sm);
            transition: box-shadow 0.4s;
            will-change: box-shadow;
        }

        .sidebar-widget:hover {
            box-shadow: var(--shadow-hover);
        }

        .widget-title {
            font-size: 1.4rem;
            color: var(--accent);
            margin-bottom: 1.2rem;
            font-family: 'Amiri', serif;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .widget-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50px;
            height: 2px;
            background: var(--accent);
        }

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

        .author-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin: 0 auto 1rem;
            overflow: hidden;
            border: 3px solid var(--accent);
        }

        .author-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .author-fallback-avatar {
            width: 100%;
            height: 100%;
            background: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
        }

        .author-name {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .author-bio {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        .author-team-fallback {
            text-align: center;
        }

        .muted-empty-text {
            text-align: center;
            color: var(--text-muted);
        }

        .popular-items {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .popular-item {
            display: flex;
            gap: 1rem;
            padding: 0.8rem;
            border-radius: var(--radius-md);
            transition: all 0.3s;
            border: 1px solid transparent;
            background: var(--tertiary-bg);
            text-decoration: none;
            color: inherit;
        }

        .popular-item:hover {
            background: rgba(154, 131, 106, 0.05);
            border-color: var(--border-light);
            transform: translateX(-5px);
        }

        .popular-thumb {
            width: 70px;
            height: 70px;
            border-radius: var(--radius-sm);
            overflow: hidden;
            flex-shrink: 0;
        }

        .popular-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .popular-content h4 {
            font-size: 0.95rem;
            margin-bottom: 0.3rem;
            font-weight: 600;
        }

        .popular-meta {
            display: flex;
            gap: 0.8rem;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .newsletter-widget .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .newsletter-description {
            margin-bottom: 1rem;
            color: var(--text-muted);
        }

        .newsletter-submit {
            width: 100%;
            justify-content: center;
        }

        .newsletter-widget input {
            width: 100%;
            padding: 1rem 1.5rem;
            background: var(--tertiary-bg);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-full);
            color: var(--text-primary);
            font-family: inherit;
            transition: all 0.3s;
        }

        .newsletter-widget input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

        /* ===== Lightbox ===== */
        .lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .lightbox.active {
            display: flex;
            opacity: 1;
        }

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

        .lightbox-content img {
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
        }

        .lightbox-close {
            position: absolute;
            top: -50px;
            left: 0;
            background: var(--accent);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
        }

        .lightbox-close:hover {
            background: var(--accent-light);
            transform: scale(1.1);
        }

        /* ===== Scroll Progress ===== */
        .scroll-progress {
            position: fixed;
            top: 0;
            right: 0;
            width: 0%;
            height: 3px;
            background: linear-gradient(to left, var(--accent), var(--accent-light));
            z-index: 1001;
            transition: width 0.1s ease;
        }

        /* ===== Loading Screen ===== */
        .loading-screen {
            position: fixed;
            inset: 0;
            background: var(--bg-primary);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .loading-screen.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader {
            width: 50px;
            height: 50px;
            border: 3px solid var(--border-light);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 1rem;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* ===== Back to Top ===== */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            left: 30px;
            width: 50px;
            height: 50px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all var(--transition-liquid);
            z-index: 999;
            box-shadow: 0 5px 20px var(--accent-glow);
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .back-to-top:hover {
            background: var(--accent-light);
            transform: translateY(-5px);
            box-shadow: 0 8px 30px var(--accent-glow);
        }

        /* ===== Footer متطور ===== */
        .footer {
            margin-top: 5rem;
            padding: 4rem 0 2rem;
            border-top: 1px solid var(--border-light);
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 2.5rem;
        }

        .footer-col h4 {
            font-size: 1.5rem;
            margin-bottom: 1.2rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .footer-col p, .footer-col a {
            color: var(--text-muted);
            line-height: 2;
            display: block;
            transition: all 0.3s;
        }

        .footer-col a:hover {
            color: var(--accent);
            transform: translateX(-5px);
        }

        .social-links {
            display: flex;
            gap: 1.2rem;
            margin-top: 1.5rem;
        }

        .social-links a {
            background: var(--card-bg);
            border: 1px solid var(--glass-border);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            color: var(--text-muted);
            transition: all 0.4s;
            will-change: transform, background;
        }

        .social-links a:hover {
            background: var(--accent);
            color: white;
            transform: translateY(-5px) scale(1.1);
            border-color: var(--accent);
        }

        .copyright {
            grid-column: 1 / -1;
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid var(--border-light);
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        .news-content,
        .additional-details {
            overflow-wrap: anywhere;
        }

        .news-content img,
        .additional-details img,
        .news-content video,
        .additional-details video,
        .news-content iframe,
        .additional-details iframe {
            max-width: 100%;
            height: auto;
            border-radius: var(--radius-md);
        }

        .news-content table,
        .additional-details table {
            display: block;
            width: 100%;
            max-width: 100%;
            overflow-x: auto;
            white-space: nowrap;
        }

        /* ===== تحسينات للشاشات الصغيرة ===== */
        @media (max-width: 1200px) {
            .gallery-detail-layout {
                grid-template-columns: 1fr;
            }
            .gallery-sidebar {
                position: static;
            }
        }

        @media (max-width: 992px) {
            .header {
                flex-wrap: wrap;
                height: auto;
                padding: 0.8rem 1rem;
                border-radius: 50px;
            }
            .nav-links {
                order: 3;
                width: 100%;
                justify-content: center;
                margin-top: 1rem;
                gap: 1.2rem;
            }
            .hero-content {
                padding: 2rem;
                margin: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .container { padding: 0 1rem; }
            .gallery-detail-hero {
                min-height: 400px;
            }
            .hero-content h1 {
                font-size: 1.8rem;
            }
            .gallery-detail-main {
                padding: 1.5rem;
            }
            .related-grid {
                grid-template-columns: 1fr;
            }
            .footer {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .social-links {
                justify-content: center;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }
