﻿:root {
            --primary-brown: #3E2D30;
            --gold: #CE9D72;
            --gold-dark: #B8865A;
            --light-blue: #4FC6E0;
            --dark-teal: #234449;
            --gray: #BCBEC0;
            --medium-teal: #3B6269;
            --cream: #F8F4F0;
            --white: #FFFFFF;
            --shadow-sm: 0 2px 10px rgba(62, 45, 48, 0.08);
            --shadow-md: 0 5px 25px rgba(62, 45, 48, 0.12);
            --shadow-lg: 0 15px 50px rgba(62, 45, 48, 0.15);
            --radius: 12px;
            --radius-lg: 20px;
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

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

        body {
            font-family: 'Tajawal', sans-serif;
            background: var(--cream);
            color: var(--primary-brown);
            line-height: 1.8;
        }

        /* ===== Page Header ===== */
        .page-hero {
            background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-teal) 100%);
            padding: 60px  60px;
            position: relative;
            overflow: hidden;
            margin-top: 100px;
            
        }

        @media (max-width: 991px) {
            .page-hero {
                margin-top: 30px;
                padding: 80px 0 50px;
            }
        }

        .page-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40z' fill='none' stroke='%23CE9D72' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
            opacity: 0.5;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 30px;
            position: relative;
            z-index: 1;
        }

        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--gray);
            font-size: 14px;
            margin-bottom: 20px;
        }

        .breadcrumb a {
            color: var(--gold);
            text-decoration: none;
            transition: var(--transition);
        }

        .breadcrumb a:hover {
            color: var(--light-blue);
        }

        .breadcrumb i {
            font-size: 10px;
        }

        .page-hero .news-meta {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-bottom: 15px;
        }
        .page-hero h3 {
           color:white;
        }
        .news-category-badge {
            background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
            color: var(--white);
            padding: 6px 18px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
        }

        .news-date-hero {
            color: var(--gray);
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .news-date-hero i {
            color: var(--light-blue);
        }

        .page-hero h1 {
            font-family: 'Amiri', serif;
            font-size: clamp(1.8rem, 4vw, 2.8rem);
            color: var(--white);
            line-height: 1.5;
            max-width: 900px;
        }

        /* ===== Main Content ===== */
        .news-detail-section {
            padding: 60px 0 80px;
        }

        .news-layout {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 40px;
        }

        @media (max-width: 1024px) {
            .news-layout {
                grid-template-columns: 1fr;
            }
        }

        .news-content-wrapper {
            background: var(--white);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }

        /* ===== Gallery Section - Masonry Style ===== */
        .gallery-hero {
            padding: 25px;
            background: var(--primary-brown);
        }

        .gallery-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .gallery-title {
            color: var(--white);
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .gallery-title i {
            color: var(--gold);
        }

        .gallery-stats {
            display: flex;
            gap: 15px;
        }

        .gallery-stat {
            background: rgba(255, 255, 255, 0.1);
            padding: 6px 14px;
            border-radius: 20px;
            color: var(--white);
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .gallery-stat i {
            color: var(--gold);
        }

        /* Masonry Gallery Grid */
        .gallery-masonry {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-auto-rows: 120px;
            gap: 10px;
        }

        @media (max-width: 900px) {
            .gallery-masonry {
                grid-template-columns: repeat(3, 1fr);
                grid-auto-rows: 100px;
            }
        }

        @media (max-width: 600px) {
            .gallery-masonry {
                grid-template-columns: repeat(2, 1fr);
                grid-auto-rows: 90px;
            }
        }

        .gallery-item {
            position: relative;
            border-radius: var(--radius);
            overflow: hidden;
            cursor: pointer;
        }

        /* Different sizes for masonry effect */
        .gallery-item.large {
            grid-column: span 2;
            grid-row: span 2;
        }

        .gallery-item.tall {
            grid-row: span 2;
        }

        .gallery-item.wide {
            grid-column: span 2;
        }

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

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

        .gallery-item-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(62, 45, 48, 0.8) 0%, transparent 60%);
            opacity: 0;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 15px;
        }

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

        .gallery-item-overlay .zoom-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            width: 50px;
            height: 50px;
            background: var(--gold);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 20px;
            opacity: 0;
            transition: var(--transition);
        }

        .gallery-item:hover .zoom-icon {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        .gallery-item-overlay .caption {
            color: var(--white);
            font-size: 13px;
            font-weight: 500;
            transform: translateY(10px);
            opacity: 0;
            transition: var(--transition) 0.1s;
        }

        .gallery-item:hover .caption {
            transform: translateY(0);
            opacity: 1;
        }

        .gallery-item-overlay .number {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.5);
            color: var(--white);
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
        }

        /* Video Item in Gallery */
        .gallery-item.video-item .gallery-item-overlay {
            opacity: 1;
            background: linear-gradient(to top, rgba(62, 45, 48, 0.7) 0%, rgba(62, 45, 48, 0.3) 100%);
        }

        .gallery-item.video-item .zoom-icon {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
            background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
            box-shadow: 0 5px 25px rgba(206, 157, 114, 0.5);
        }

        .gallery-item.video-item .zoom-icon i {
            margin-right: -3px;
        }

        .gallery-item.video-item:hover .zoom-icon {
            transform: translate(-50%, -50%) scale(1.1);
        }

        .video-duration {
            position: absolute;
            bottom: 10px;
            left: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: var(--white);
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
        }

        /* View All Button */
        .gallery-item.view-all {
            background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--white);
            text-decoration: none;
            transition: var(--transition);
        }

        .gallery-item.view-all:hover {
            transform: scale(1.02);
        }

        .gallery-item.view-all i {
            font-size: 32px;
            margin-bottom: 8px;
        }

        .gallery-item.view-all span {
            font-size: 14px;
            font-weight: 600;
        }

        .gallery-item.view-all .remaining {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        /* ===== Alternative: Grid Gallery ===== */
        .gallery-grid-section {
            padding: 30px;
            background: var(--cream);
            border-radius: var(--radius-lg);
            margin: 30px;
        }

        .gallery-grid-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--gold);
        }

        .gallery-grid-title {
            font-family: 'Amiri', serif;
            font-size: 22px;
            color: var(--primary-brown);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .gallery-grid-title i {
            color: var(--gold);
        }

        .gallery-tabs {
            display: flex;
            gap: 10px;
        }

        .gallery-tab {
            padding: 8px 18px;
            border: 2px solid var(--gold);
            background: transparent;
            color: var(--primary-brown);
            border-radius: 25px;
            font-family: 'Tajawal', sans-serif;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .gallery-tab:hover,
        .gallery-tab.active {
            background: var(--gold);
            color: var(--white);
        }

        .gallery-tab .count {
            background: rgba(255, 255, 255, 0.2);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
        }

        .gallery-tab.active .count {
            background: rgba(255, 255, 255, 0.3);
        }

        /* Grid View */
        .gallery-grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }

        @media (max-width: 600px) {
            .gallery-grid-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
        }

        .gallery-grid-item {
            position: relative;
            aspect-ratio: 4/3;
            border-radius: var(--radius);
            overflow: hidden;
            cursor: pointer;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }

        .gallery-grid-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
        }

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

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

        .gallery-grid-item .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(62, 45, 48, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: var(--transition);
        }

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

        .gallery-grid-item .overlay i {
            color: var(--white);
            font-size: 28px;
            transform: scale(0.8);
            transition: var(--transition);
        }

        .gallery-grid-item:hover .overlay i {
            transform: scale(1);
        }

        .gallery-grid-item .item-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 12px;
            background: linear-gradient(to top, rgba(62, 45, 48, 0.9) 0%, transparent 100%);
            color: var(--white);
            font-size: 12px;
            transform: translateY(100%);
            transition: var(--transition);
        }

        .gallery-grid-item:hover .item-info {
            transform: translateY(0);
        }

        /* ===== Article Content ===== */
        .article-content {
            padding: 40px;
        }

        @media (max-width: 768px) {
            .article-content {
                padding: 25px;
            }
        }

        .article-intro {
            font-size: 18px;
            color: var(--medium-teal);
            line-height: 2;
            margin-bottom: 25px;
            padding-bottom: 25px;
            border-bottom: 2px solid var(--cream);
            font-weight: 500;
        }

        .article-body {
            font-size: 16px;
            line-height: 2;
            color: var(--primary-brown);
        }

        .article-body p {
            margin-bottom: 20px;
        }

        .article-body h2 {
            font-family: 'Amiri', serif;
            font-size: 24px;
            color: var(--primary-brown);
            margin: 35px 0 20px;
            padding-right: 15px;
            border-right: 4px solid var(--gold);
        }

        .article-body h3 {
            font-size: 20px;
            color: var(--dark-teal);
            margin: 30px 0 15px;
        }

        .article-body ul,
        .article-body ol {
            margin: 20px 0;
            padding-right: 25px;
        }

        .article-body li {
            margin-bottom: 10px;
        }

        .article-body ul li::marker {
            color: var(--gold);
        }

        .article-body blockquote {
            background: linear-gradient(135deg, rgba(206, 157, 114, 0.1) 0%, rgba(79, 198, 224, 0.05) 100%);
            border-right: 4px solid var(--gold);
            padding: 25px 30px;
            margin: 30px 0;
            border-radius: 0 var(--radius) var(--radius) 0;
            font-style: italic;
            color: var(--medium-teal);
        }

        .article-body blockquote cite {
            display: block;
            margin-top: 15px;
            font-style: normal;
            font-weight: 600;
            color: var(--gold);
        }

        /* ===== Tags & Share ===== */
        .article-footer {
            padding: 30px 40px;
            border-top: 1px solid var(--cream);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

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

        .tags-label {
            font-weight: 600;
            color: var(--primary-brown);
        }

        .tag {
            background: var(--cream);
            color: var(--medium-teal);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            text-decoration: none;
            transition: var(--transition);
        }

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

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

        .share-label {
            font-weight: 600;
            color: var(--primary-brown);
        }

        .share-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 16px;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: var(--transition);
        }

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

        .share-btn.twitter { background: #1DA1F2; }
        .share-btn.facebook { background: #1877F2; }
        .share-btn.whatsapp { background: #25D366; }
        .share-btn.telegram { background: #0088CC; }
        .share-btn.copy-link { background: var(--primary-brown); }

        /* ===== Navigation ===== */
        .news-navigation {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            padding: 30px 40px;
            border-top: 1px solid var(--cream);
        }

        @media (max-width: 600px) {
            .news-navigation {
                grid-template-columns: 1fr;
                padding: 25px;
            }
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: var(--cream);
            border-radius: var(--radius);
            text-decoration: none;
            transition: var(--transition);
        }

        .nav-item:hover {
            background: linear-gradient(135deg, rgba(206, 157, 114, 0.2) 0%, rgba(79, 198, 224, 0.1) 100%);
        }

        .nav-item.next {
            flex-direction: row-reverse;
            text-align: left;
        }

        .nav-thumb {
            width: 70px;
            height: 50px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
        }

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

        .nav-info span {
            font-size: 12px;
            color: var(--gold);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .nav-info h4 {
            font-size: 14px;
            color: var(--primary-brown);
            font-weight: 600;
            margin-top: 5px;
        }

        /* ===== Sidebar ===== */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .sidebar-widget {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 25px;
            box-shadow: var(--shadow-sm);
        }

        .widget-title {
            font-family: 'Amiri', serif;
            font-size: 20px;
            color: var(--primary-brown);
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--gold);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .widget-title i {
            color: var(--gold);
        }

        /* Quick Stats Widget */
        .quick-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .stat-item {
            text-align: center;
            padding: 20px 15px;
            background: var(--cream);
            border-radius: var(--radius);
        }

        .stat-item i {
            font-size: 28px;
            color: var(--gold);
            margin-bottom: 10px;
        }

        .stat-item .number {
            font-family: 'Amiri', serif;
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-brown);
        }

        .stat-item .label {
            font-size: 12px;
            color: var(--medium-teal);
        }

        /* Related News Widget */
        .related-item {
            display: flex;
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px solid var(--cream);
        }

        .related-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .related-item:first-child {
            padding-top: 0;
        }

        .related-thumb {
            width: 80px;
            height: 60px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
        }

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

        .related-info h4 {
            font-size: 14px;
            font-weight: 600;
            color: var(--primary-brown);
            margin-bottom: 5px;
            line-height: 1.5;
        }

        .related-info h4 a {
            color: inherit;
            text-decoration: none;
            transition: var(--transition);
        }

        .related-info h4 a:hover {
            color: var(--gold);
        }

        .related-info span {
            font-size: 12px;
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .related-info span i {
            color: var(--gold);
        }

        /* ===== Lightbox ===== */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(62, 45, 48, 0.98);
            z-index: 10000;
            display: none;
            flex-direction: column;
            padding: 20px;
        }

        .lightbox.active {
            display: flex;
        }

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

        .lightbox-counter {
            color: var(--white);
            font-size: 14px;
        }

        .lightbox-counter span {
            color: var(--gold);
            font-weight: 600;
        }

        .lightbox-actions {
            display: flex;
            gap: 10px;
        }

        .lightbox-btn {
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 50%;
            color: var(--white);
            font-size: 18px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-btn:hover {
            background: var(--gold);
        }

        .lightbox-btn.close-btn {
            background: var(--gold);
        }

        .lightbox-main {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .lightbox-media-container {
            max-width: 90%;
            max-height: 100%;
            position: relative;
        }

        .lightbox-media {
            max-width: 100%;
            max-height: 75vh;
            border-radius: var(--radius);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            display: block;
        }

        .lightbox-video {
            width: 90vw;
            max-width: 1000px;
            aspect-ratio: 16/9;
            border-radius: var(--radius);
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 55px;
            height: 55px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(206, 157, 114, 0.5);
            border-radius: 50%;
            color: var(--white);
            font-size: 22px;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox-nav:hover {
            background: var(--gold);
            border-color: var(--gold);
        }

        .lightbox-prev { right: 30px; }
        .lightbox-next { left: 30px; }

        @media (max-width: 768px) {
            .lightbox-prev { right: 10px; }
            .lightbox-next { left: 10px; }
            .lightbox-nav {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }
        }

        .lightbox-footer {
            padding-top: 15px;
            text-align: center;
        }

        .lightbox-caption {
            color: var(--white);
            font-size: 15px;
            margin-bottom: 15px;
        }

        /* Thumbnails in Lightbox */
        .lightbox-thumbs {
            display: flex;
            justify-content: center;
            gap: 8px;
            overflow-x: auto;
            padding: 10px 0;
            max-width: 100%;
        }

        .lightbox-thumb {
            width: 60px;
            height: 45px;
            border-radius: 6px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: var(--transition);
            flex-shrink: 0;
            opacity: 0.5;
        }

        .lightbox-thumb:hover,
        .lightbox-thumb.active {
            border-color: var(--gold);
            opacity: 1;
        }

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

        .lightbox-thumb.video-thumb {
            position: relative;
        }

        .lightbox-thumb.video-thumb::after {
            content: '\F4F4';
            font-family: 'bootstrap-icons';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: var(--white);
            font-size: 14px;
        }

        /* ===== Responsive ===== */
        @media (max-width: 768px) {
            .article-footer {
                padding: 25px;
                flex-direction: column;
                align-items: flex-start;
            }

            .gallery-header {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }

            .gallery-grid-header {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }

            .gallery-tabs {
                width: 100%;
                overflow-x: auto;
                padding-bottom: 10px;
            }
        }