/* news-show.css — extracted from news/show.blade.php inline <style>.
   Base styles for the news detail page (article, gallery, videos, comments, sidebar).
   Design-system polish layer appended at the end. */
    body {
        background: #f8fafc;
    }

    /* News Like Button Styles */
    .news-like-section {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .news-like-btn {
        background: linear-gradient(135deg, #428177 0%, #b9a779 100%);
        border: none;
        border-radius: 50px;
        padding: 0.75rem 1.5rem;
        color: white;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 15px rgba(66, 129, 119, 0.2);
    }

    .news-like-btn:hover {
        background: linear-gradient(135deg, #b9a779 0%, #428177 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(66, 129, 119, 0.3);
    }

    .news-like-btn:active {
        transform: translateY(0);
    }

    .news-like-btn .fa-heart {
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

    .news-like-btn .fa-heart.liked {
        color: #ff4757;
        animation: heartBeat 0.6s ease;
    }

    .news-like-btn .news-like-count {
        font-weight: 700;
        font-size: 1.1rem;
        min-width: 20px;
        text-align: center;
    }

    .news-like-btn .like-text {
        font-weight: 500;
    }

    @keyframes heartBeat {
        0% {
            transform: scale(1);
        }

        25% {
            transform: scale(1.1);
        }

        50% {
            transform: scale(1.2);
        }

        75% {
            transform: scale(1.1);
        }

        100% {
            transform: scale(1);
        }
    }

    /* Urgent Announcement Effects */
    /* Government Banner */
    .government-banner {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        padding: 1.5rem 0;
        margin-bottom: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 2rem 2rem
    }

    .breadcrumb-nav .breadcrumb {
        background: transparent;
        margin: 0;
        padding: 0;
    }

    .breadcrumb-nav .breadcrumb-item a {
        color: rgba(255, 255, 255, 0.8) !important;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .breadcrumb-nav .breadcrumb-item a:hover {
        color: #fff !important;
    }

    .official-stamp {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 25px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* News Article */
    .government-article {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .news-category-badge {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .news-title {
        font-size: 2.5rem;
        font-weight: 800;
        color: #28a745;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        text-align: center;
        border-bottom: 3px solid #e9ecef;
        padding-bottom: 1rem;
    }

    .news-meta {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #007bff;
    }

    .meta-label {
        font-weight: 600;
        color: #495057;
    }

    .meta-value {
        color: #28a745;
        font-weight: 700;
    }

    /* News Gallery */
    .news-gallery-container {
        position: relative;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .main-gallery-display {
        padding: 1.5rem;
    }

    .current-image-container {
        position: relative;
    }

    .image-wrapper {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        max-width: 1200px;
        height: 627px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
        margin: 0 auto;
    }

    @media (max-width: 1200px) {
        .image-wrapper {
            height: auto;
            max-height: 627px;
            aspect-ratio: 1200/627;
        }
    }

    .current-image {
        width: 100%;
        height: 627px;
        max-width: 1200px;
        object-fit: cover;
        transition: all 0.3s ease;
        display: block;
        margin: 0 auto;
    }

    @media (max-width: 1200px) {
        .current-image {
            height: auto;
            max-height: 627px;
            aspect-ratio: 1200/627;
        }
    }

    .gallery-nav-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 30px;
        pointer-events: none;
        z-index: 10;
    }

    .gallery-nav-btn {
        background: rgba(255, 255, 255, 0.95);
        color: #333;
        border: none;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: auto;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.4);
        position: relative;
        overflow: hidden;
    }

    .gallery-nav-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 50%;
    }

    .gallery-nav-btn:hover {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
        color: #007bff;
        border-color: rgba(0, 123, 255, 0.3);
    }

    .gallery-nav-btn:hover::before {
        opacity: 1;
    }

    .gallery-nav-btn:active {
        transform: scale(0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }



    .image-counter {
        position: absolute;
        bottom: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .image-info {
        background: #f8f9fa;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .primary-indicator .badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .thumbnail-strip {
        background: #f8f9fa;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .thumbnail-container {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        padding: 0.5rem 0;
        scrollbar-width: thin;
        scrollbar-color: #007bff #f1f1f1;
    }

    .thumbnail-container::-webkit-scrollbar {
        height: 6px;
    }

    .thumbnail-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .thumbnail-container::-webkit-scrollbar-thumb {
        background: #007bff;
        border-radius: 3px;
    }

    .thumbnail-item {
        position: relative;
        flex-shrink: 0;
        width: 80px;
        height: 80px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 3px solid transparent;
    }

    .thumbnail-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .thumbnail-item.active {
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .primary-badge {
        position: absolute;
        top: 4px;
        right: 4px;
        background: #ffc107;
        color: #000;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
    }



    .news-image-wrapper {
        position: relative;
        overflow: hidden;
    }

    .government-image {
        width: 100%;
        height: auto;
        transition: transform 0.3s ease;
    }

    .news-image-wrapper:hover .government-image {
        transform: scale(1.05);
    }

    .image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(40, 167, 69, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .news-image-wrapper:hover .image-overlay {
        opacity: 1;
    }

    .overlay-content {
        text-align: center;
        color: white;
    }

    .image-caption {
        background: #f8f9fa;
        padding: 0.5rem;
        border-radius: 0 0 12px 12px;
        border-top: 1px solid #e9ecef;
    }

    /* News Content */
    .government-content {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #2c3e50;
    }

    .content-wrapper {
        background: #f8f9fa;
        padding: 2rem;
        border-radius: 8px;
        border-left: 4px solid #28a745;
    }

    .government-content h2,
    .government-content h3,
    .government-content h4 {
        color: #28a745;
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .government-content p {
        margin-bottom: 1.5rem;
        text-align: justify;
    }

    .government-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 1rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .government-content blockquote {
        border-left: 4px solid #28a745;
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
        font-style: italic;
        color: #495057;
        background: #f8f9fa;
        border-radius: 0 8px 8px 0;
    }

    /* News Footer */
    .news-footer {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 2rem;
        border: 1px solid #e9ecef;
    }

    .footer-content {
        max-width: 100%;
    }

    .official-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem;
        background: white;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .info-label {
        font-weight: 600;
        color: #495057;
    }

    .info-value {
        color: #28a745;
        font-weight: 700;
    }

    .section-title {
        color: #28a745;
        font-weight: 700;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #e9ecef;
        font-size: 1.1rem;
    }



    .share-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .share-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem;
        border: none;
        border-radius: 8px;
        background: #f8f9fa;
        color: #495057;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
    }

    .share-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        text-decoration: none;
        color: #495057;
    }

    .share-facebook:hover {
        background: #1877f2;
        color: white;
    }

    .share-twitter:hover {
        background: #000000;
        /* لون X الجديد */
        color: white;
    }

    .share-whatsapp:hover {
        background: #25d366;
        color: white;
        color: white;
    }

    .share-telegram:hover {
        background: #0088cc;
        color: white;
    }

    .share-email:hover {
        background: #ea4335;
        color: white;
    }

    /* Sidebar Widgets */
    .sidebar-widget {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
        margin-bottom: 2rem;
        overflow: hidden;
    }

    .widget-header {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .widget-title {
        color: white;
        font-weight: 700;
        margin: 0;
    }

    .widget-content {
        padding: 1.5rem;
    }



    /* Related News Widget */
    .related-news-item {
        display: flex;
        gap: 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid #f1f3f4;
        transition: all 0.3s ease;
    }

    .related-news-item:hover {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 1rem;
        margin: 0 -1rem;
    }

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

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

    .news-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .placeholder-thumbnail {
        width: 100%;
        height: 100%;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e9ecef;
    }

    .news-details {
        flex: 1;
    }

    .news-details .news-title {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        border: none;
        padding: 0;
        text-align: right;
    }

    .news-details .news-title a {
        color: #28a745;
        font-weight: 600;
    }

    .news-details .news-title a:hover {
        color: #007bff;
    }

    .news-meta {
        display: flex;
        gap: 1rem;
        font-size: 0.8rem;
        color: #6c757d;
    }

    /* Latest News Widget */
    .latest-news-item {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid #f1f3f4;
        transition: all 0.3s ease;
    }

    .latest-news-item:hover {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 1rem;
        margin: 0 -1rem;
    }

    .latest-news-item:last-child {
        border-bottom: none;
    }

    .news-bullet {
        margin-top: 0.5rem;
        flex-shrink: 0;
    }

    .news-content {
        flex: 1;
    }

    .news-content .news-title {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        border: none;
        padding: 0;
        text-align: right;
    }

    .news-content .news-title a {
        color: #28a745;
        font-weight: 600;
    }

    .news-content .news-title a:hover {
        color: #007bff;
    }





    /* News Videos Styles */
    .news-videos-container {
        background: #fff;
        border-radius: 15px;
        padding: 25px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        margin-bottom: 30px;
    }

    .videos-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid #f8f9fa;
    }

    .videos-title {
        font-size: 1.4rem;
        font-weight: 600;
        color: #333;
        margin: 0;
    }

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

    .video-item {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .video-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .video-thumbnail {
        position: relative;
        height: auto;
        min-height: 200px;
        overflow: hidden;
    }

    .video-thumbnail img,
    .video-thumbnail video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Inline Video Container */
    .inline-video-container {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
        background: #000;
        border-radius: 8px;
    }

    .inline-video-container.video-loaded {
        padding-bottom: 0;
        height: auto;
    }

    .inline-video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 8px;
    }

    .inline-video-container .video-thumbnail-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.3s ease;
    }

    .inline-video-container.video-loaded .video-thumbnail-img {
        display: none;
    }

    .play-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        opacity: 0.9;
    }
    
    .play-overlay::before {
        content: '';
        position: absolute;
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 50%;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }
    
    .play-overlay i {
        position: relative;
        font-size: 2rem;
        color: #ff4444;
        margin-left: 5px;
        z-index: 1;
        transition: all 0.3s ease;
    }

    .play-overlay:hover {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
        opacity: 1;
    }
    
    .play-overlay:hover::before {
        transform: scale(1.1);
        box-shadow: 0 8px 35px rgba(255, 68, 68, 0.4);
    }
    
    .play-overlay:hover i {
        color: #ff6666;
        transform: scale(1.1);
    }
    
    .video-item {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .video-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .video-item:hover .video-thumbnail img {
        transform: scale(1.05);
    }
    
    .video-thumbnail {
        position: relative;
        height: 200px;
        overflow: hidden;
        border-radius: 12px;
    }
    
    .video-thumbnail img {
        transition: transform 0.5s ease;
    }

    .primary-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #ffc107;
        color: #000;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .duration-badge {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 4px 8px;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 500;
    }

    .video-info {
        padding: 20px;
    }

    .video-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .video-description {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .video-meta {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .video-meta small {
        display: flex;
        align-items: center;
        font-size: 0.8rem;
    }

    /* Video Modal Styles - Fixed Viewport Centering */
    .video-modal {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.7);
    }

    .video-modal .modal-dialog {
        position: relative;
        width: 70%;
        max-width: 900px;
        margin: 0;
        transform: none;
    }

    @media (max-width: 992px) {
        .video-modal .modal-dialog {
            width: 90%;
        }
    }

    @media (max-width: 576px) {
        .video-modal .modal-dialog {
            width: 95%;
        }
    }

    .video-modal-content {
        border: none;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        width: 100%;
        height: auto;
    }

    .video-modal-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        padding: 1.5rem;
        color: white;
    }

    .video-modal-title {
        color: white;
        font-weight: 600;
        margin: 0;
        font-size: 1.2rem;
    }

    .video-modal-close {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        color: white;
        opacity: 1;
        transition: all 0.3s ease;
    }

    .video-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .video-modal-body {
        padding: 0;
        background: #1a1a1a;
    }

    .video-container {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        background: #000;
        border-radius: 0;
        overflow: hidden;
    }

    .video-player {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
    }

    .video-description {
        padding: 1.5rem;
        background: #2d2d2d;
        color: #e0e0e0;
    }

    .video-description p {
        margin: 0;
        line-height: 1.6;
    }

    /* Animation for modal appearance */
    .video-modal.fade {
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }

    .video-modal.show {
        opacity: 1;
    }

    .video-modal.fade .modal-dialog {
        transform: scale(0.8);
        transition: transform 0.3s ease-out;
    }

    .video-modal.show .modal-dialog {
        transform: scale(1);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .video-modal .modal-dialog {
            width: 90%;
            max-width: none;
        }

        .video-modal-content {
            border-radius: 15px;
        }

        .video-modal-header {
            padding: 1rem;
        }

        .video-modal-title {
            font-size: 1rem;
        }

        .video-description {
            padding: 1rem;
        }

        .news-title {
            font-size: 2rem;
            text-align: center;
        }

        .news-meta {
            grid-template-columns: 1fr;
        }

        .meta-item {
            text-align: center;
            justify-content: center;
        }

        .government-article {
            padding: 1rem;
        }

        .content-wrapper {
            padding: 1rem;
        }

        .share-buttons {
            grid-template-columns: repeat(2, 1fr);
        }

        .official-info {
            grid-template-columns: 1fr;
        }

        .breadcrumb-nav {
            text-align: center;
        }

        .official-stamp {
            text-align: center;
            margin-top: 1rem;
        }
    }

    @media (max-width: 576px) {
        .news-title {
            font-size: 1.5rem;
        }

        .government-banner {
            padding: 1rem 0;
        }

        .share-buttons {
            grid-template-columns: 1fr;
        }
    }

    /* Share Notifications */
    .share-notification {
        position: fixed;
        top: 20px;
        right: 20px;
        background: white;
        border: 1px solid #28a745;
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        animation: slideInRight 0.3s ease;
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .notification-content {
        display: flex;
        align-items: center;
        color: #28a745;
        font-weight: 600;
    }

    /* Reading Progress Bar */
    .reading-progress {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: #e9ecef;
        z-index: 9998;
    }

    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
        width: 0%;
        transition: width 0.3s ease;
    }

    /* Print Styles */
    @media print {

        .government-banner,
        .sidebar-widget,
        .news-footer,
        .reading-progress {
            display: none !important;
        }

        .government-article {
            box-shadow: none;
            border: 1px solid #000;
        }

        .news-title {
            color: #000 !important;
            border-bottom: 2px solid #000 !important;
        }

        .content-wrapper {
            background: white !important;
            border: none !important;
        }
    }

    /* Enhanced Hover Effects */
    .government-article:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
        transition: all 0.3s ease;
    }

    .sidebar-widget:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
        transition: all 0.3s ease;
    }

    /* Loading States */
    .loading {
        opacity: 0.6;
        pointer-events: none;
    }

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #1e3c72;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

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

    /* Accessibility Improvements */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* Focus States */
    .share-btn:focus,
    .news-details .news-title a:focus {
        outline: 2px solid #28a745;
        outline-offset: 2px;
    }

    /* High Contrast Mode Support */
    @media (prefers-contrast: high) {
        .government-banner {
            background: #000;
        }

        .news-title {
            color: #000;
        }

        .sidebar-widget {
            border: 2px solid #000;
        }
    }

    /* Reduced Motion Support */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Government Comments Section */
    .government-comments {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
        padding: 2rem;
        margin-top: 2rem;
        border: 1px solid #e9ecef;
    }

    .comments-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #f8f9fa;
    }

    .header-content {
        flex: 1;
    }

    .comments-title {
        color: #28a745;
        font-weight: 700;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }

    .comments-stats {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .stat-item {
        background: #f8f9fa;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        color: #495057;
        border: 1px solid #e9ecef;
    }

    .comments-policy {
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        color: #856404;
        font-size: 0.9rem;
        max-width: 300px;
    }

    /* Comment Form */
    .comment-form-container {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 2rem;
        margin-bottom: 2rem;
        border: 1px solid #e9ecef;
    }

    .form-header {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .comment-form-title {
        color: #28a745;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .form-guidelines {
        color: #6c757d;
        font-size: 0.9rem;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-group {
        display: flex;
        flex-direction: column;
    }

    .form-label {
        font-weight: 600;
        color: #495057;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
    }

    .government-input,
    .government-textarea {
        border: 2px solid #e9ecef;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: white;
    }

    .government-input:focus,
    .government-textarea:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
        outline: none;
    }

    .government-textarea {
        resize: vertical;
        min-height: 120px;
    }

    .form-help {
        margin-top: 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .help-item {
        display: flex;
        align-items: center;
        font-size: 0.85rem;
        color: #6c757d;
    }

    .form-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .government-btn {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 1rem 2rem;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .government-btn:hover {
        background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
        color: white;
    }

    .btn-loading {
        display: none;
    }

    .government-btn.loading .btn-loading {
        display: inline;
    }

    .government-btn.loading .btn-text {
        display: none;
    }

    .government-btn.loading {
        background: #6c757d !important;
        cursor: not-allowed;
        transform: none !important;
    }

    .government-btn.loading:hover {
        background: #6c757d !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .form-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        max-width: 300px;
    }

    .form-info .info-item {
        display: flex;
        align-items: center;
        font-size: 0.85rem;
        color: #6c757d;
    }

    /* Responsive Comments */
    @media (max-width: 768px) {
        .form-row {
            grid-template-columns: 1fr;
        }

        .comments-header {
            flex-direction: column;
            gap: 1rem;
        }

        .comments-policy {
            max-width: 100%;
        }

        .form-actions {
            flex-direction: column;
            align-items: stretch;
        }

        .government-btn {
            width: 100%;
            justify-content: center;
        }
    }

    /* Comment Alert Styles */
    .comment-alert-area {
        margin-bottom: 1.5rem;
        animation: slideDown 0.4s ease-out;
        position: relative;
        z-index: 10;
    }

    .comment-alert-area .alert {
        border-radius: 8px;
        border: none;
        padding: 1rem 1.5rem;
        margin: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .comment-alert-area .alert-success {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        color: #155724;
        border-left: 4px solid #28a745;
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    }

    .comment-alert-area .alert-danger {
        background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
        color: #721c24;
        border-left: 4px solid #dc3545;
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
    }

    .comment-alert-area .alert-info {
        background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
        color: #0c5460;
        border-left: 4px solid #17a2b8;
        box-shadow: 0 4px 15px rgba(23, 162, 184, 0.2);
    }

    .comment-alert-area .alert-warning {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
        color: #856404;
        border-left: 4px solid #ffc107;
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
    }

    .comment-alert-area .alert-content {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .comment-alert-area .alert-icon {
        font-size: 1.3rem;
        flex-shrink: 0;
        min-width: 24px;
        text-align: center;
    }

    .comment-alert-area .alert-success .alert-icon {
        color: #28a745;
    }

    .comment-alert-area .alert-danger .alert-icon {
        color: #dc3545;
    }

    .comment-alert-area .alert-info .alert-icon {
        color: #17a2b8;
    }

    .comment-alert-area .alert-warning .alert-icon {
        color: #ffc107;
    }

    .comment-alert-area .alert-message {
        font-weight: 600;
        flex: 1;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .comment-alert-area .btn-close {
        background: none;
        border: none;
        font-size: 1.1rem;
        color: inherit;
        opacity: 0.6;
        cursor: pointer;
        padding: 0;
        margin-left: 1rem;
        transition: all 0.2s ease;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .comment-alert-area .btn-close:hover {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.1);
        transform: scale(1.1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Comment Notifications */
    .comment-notification {
        position: fixed;
        top: 20px;
        right: 20px;
        background: white;
        border-radius: 12px;
        padding: 1.25rem 1.75rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        animation: slideInRight 0.4s ease, notificationPulse 0.6s ease 0.4s;
        max-width: 450px;
        border: 1px solid #e9ecef;
        backdrop-filter: blur(10px);
    }

    .comment-notification.success {
        border-left: 5px solid #28a745;
        background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
    }

    .comment-notification.error {
        border-left: 5px solid #dc3545;
        background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    }

    .comment-notification .notification-content {
        display: flex;
        align-items: center;
        font-weight: 600;
        font-size: 0.95rem;
        color: #495057;
    }

    .comment-notification.success .notification-content i {
        color: #28a745;
        font-size: 1.1rem;
    }

    .comment-notification.error .notification-content i {
        color: #dc3545;
        font-size: 1.1rem;
    }

    /* Notification Animations */
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes notificationPulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.02);
        }

        100% {
            transform: scale(1);
        }
    }

    @keyframes slideOutRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }

        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }

    @keyframes shake {

        0%,
        100% {
            transform: translateX(0);
        }

        10%,
        30%,
        50%,
        70%,
        90% {
            transform: translateX(-5px);
        }

        20%,
        40%,
        60%,
        80% {
            transform: translateX(5px);
        }
    }

    /* Character Counter */
    .char-counter {
        text-align: left;
        font-size: 0.85rem;
        color: #6c757d;
        margin-top: 0.5rem;
    }

    /* Form Validation States */
    .government-input.is-valid,
    .government-textarea.is-valid {
        border-color: #28a745;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    }

    .government-input.is-invalid,
    .government-textarea.is-invalid {
        border-color: #dc3545;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    }

    /* Modern Comment Items */
    .government-comment {
        background: white;
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        border: 1px solid #e9ecef;
        transition: all 0.3s ease;
    }

    .government-comment:hover {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .comment-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .comment-author {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .avatar-circle {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1.2rem;
        box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
    }

    .avatar-circle.small {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .comment-author-info {
        flex: 1;
    }

    .comment-author-name {
        color: #28a745;
        font-weight: 700;
        margin-bottom: 0.25rem;
        font-size: 1.1rem;
    }

    .comment-meta-info {
        display: flex;
        gap: 1rem;
        align-items: center;
        flex-wrap: wrap;
    }

    .comment-date {
        color: #6c757d;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
    }





    .comment-status-badge {
        background: #e8f5e8;
        color: #28a745;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        display: flex;
        align-items: center;
    }

    .comment-content {
        margin: 1rem 0;
    }

    .content-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #2c3e50;
        text-align: justify;
    }

    .comment-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f1f3f4;
    }

    .comment-actions-row {
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .comment-action-btn {
        background: none;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        color: #6c757d;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .comment-action-btn:hover {
        background: #f8f9fa;
        color: #28a745;
        transform: translateY(-1px);
    }

    .like-btn .fa-heart.liked {
        color: #dc3545;
        animation: heartBeat 0.6s ease;
    }

    .like-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

    .like-btn:disabled:hover {
        transform: none;
        background: none;
    }

    .like-notification {
        top: 80px;
        right: 20px;
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        border: none;
    }

    .like-notification .notification-content {
        color: white;
    }

    .like-count {
        font-weight: 600;
        color: #495057;
    }



    .time-ago {
        color: #6c757d;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
    }



    /* Empty Comments State */
    .comments-empty {
        text-align: center;
        padding: 3rem 2rem;
        background: #f8f9fa;
        border-radius: 12px;
        border: 2px dashed #dee2e6;
    }

    .comments-empty-icon {
        font-size: 3rem;
        color: #6c757d;
        margin-bottom: 1rem;
    }

    .comments-empty-title {
        color: #495057;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .comments-empty-text {
        color: #6c757d;
        font-size: 1rem;
    }

    /* Comment Notifications */
    .comment-notification {
        position: fixed;
        top: 20px;
        right: 20px;
        background: white;
        border-radius: 8px;
        padding: 1rem 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        animation: slideInRight 0.3s ease;
        max-width: 400px;
    }

    .comment-notification.success {
        border-left: 4px solid #28a745;
    }

    .comment-notification.error {
        border-left: 4px solid #dc3545;
    }

    .comment-notification .notification-content {
        display: flex;
        align-items: center;
        font-weight: 600;
    }

    /* Animations */
    @keyframes heartBeat {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.2);
        }

        100% {
            transform: scale(1);
        }
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes shake {

        0%,
        100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-5px);
        }

        75% {
            transform: translateX(5px);
        }
    }

    @keyframes successPulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.02);
        }

        100% {
            transform: scale(1);
        }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Responsive Comments */
    @media (max-width: 768px) {
        .comment-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }

        .comment-meta-info {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
        }

        .comment-footer {
            flex-direction: column;
            align-items: stretch;
            gap: 1rem;
        }

        .comment-actions-row {
            justify-content: center;
        }

    }

    /* Full Width Content Styles */
    .col-lg-12 .news-article {
        max-width: 100%;
    }

    .col-lg-12 .news-content {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Center content when full width */
    @media (min-width: 992px) {
        .col-lg-12 .news-article {
            padding: 0 2rem;
        }

        .col-lg-12 .news-body {
            font-size: 1.1rem;
            line-height: 1.9;
        }

        .col-lg-12 .news-images-container {
            max-width: 100%;
        }
    }

/* =====================================================================
   DESIGN-SYSTEM POLISH (teal + gold) — appended 2026-06.
   Brings the news detail page onto the same system as news/faq/contact.
   These rules intentionally override the base styles above.
   Tokens (--ip-*) come from inner-pages.css, loaded before this file.
   ===================================================================== */

/* ── Hero (uses the unified .news-page-header treatment) ───────────── */
.news-detail-hero { text-align: center; }
.news-detail-hero .container { max-width: 920px; }

.news-detail-hero .breadcrumb {
    justify-content: center;
    background: transparent;
    margin: 0 0 1.15rem;
    padding: 0;
    font-size: .9rem;
}
.news-detail-hero .breadcrumb a { color: rgba(255,255,255,.82) !important; text-decoration: none; transition: color .2s; }
.news-detail-hero .breadcrumb a:hover { color: #fff !important; }
.news-detail-hero .breadcrumb-item.active { color: rgba(255,255,255,.95) !important; }
.news-detail-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.45); }

.news-detail-hero .hero-badges { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.1rem; flex-wrap: wrap; }
.news-detail-hero .hero-badge {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .42rem 1rem; border-radius: 999px;
    font-size: .82rem; font-weight: 700; letter-spacing: .2px;
    background: rgba(255,255,255,.12); color: #fff;
    border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(4px);
}
.news-detail-hero .hero-badge.is-featured {
    background: linear-gradient(135deg, var(--ip-gold2), var(--ip-gold));
    color: #2a2300; border-color: transparent;
}

.news-detail-hero h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    line-height: 1.35; font-weight: 800 !important;
    margin: 0 auto .35rem; max-width: 22ch; color: #fff !important;
    text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.news-detail-hero .hero-rule {
    width: 78px; height: 4px; border-radius: 4px; margin: 1.1rem auto 1.25rem;
    background: linear-gradient(90deg, var(--ip-gold2), var(--ip-gold));
}

.news-detail-hero .hero-meta {
    display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center;
}
.news-detail-hero .hero-meta .chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border-radius: 12px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.92); font-size: .88rem; font-weight: 600;
}
.news-detail-hero .hero-meta .chip i { color: var(--ip-gold); }

/* ── Article card ─────────────────────────────────────────────────── */
.container.mt-4 { margin-top: 2.4rem !important; }
.news-article.government-article {
    background: #fff;
    border: 1px solid var(--ip-line);
    border-radius: 20px;
    box-shadow: var(--ip-sh);
    padding: clamp(1.25rem, 3vw, 2.4rem);
    overflow: hidden;
}

/* ── Article content typography ───────────────────────────────────── */
.news-content.government-content .content-wrapper {
    color: var(--ip-ink); font-size: 1.075rem; line-height: 2.05; font-weight: 400;
}
.news-content .content-wrapper p { margin-bottom: 1.15rem; }
.news-content .content-wrapper h2,
.news-content .content-wrapper h3,
.news-content .content-wrapper h4 { color: var(--ip-t700); font-weight: 800; margin: 1.8rem 0 .8rem; }
.news-content .content-wrapper a { color: var(--ip-t600); font-weight: 600; text-underline-offset: 3px; }
.news-content .content-wrapper img { border-radius: 14px; box-shadow: var(--ip-sh); margin: 1rem 0; }
.news-content .content-wrapper blockquote {
    border-inline-start: 4px solid var(--ip-gold);
    background: var(--ip-tint); border-radius: 0 12px 12px 0;
    padding: 1rem 1.25rem; margin: 1.4rem 0; color: var(--ip-ink);
}

/* ── Footer: official info + share ────────────────────────────────── */
.news-footer { border-top: 1px solid var(--ip-line) !important; }
.official-info { display: flex; flex-wrap: wrap; gap: .65rem; }
.official-info .info-item {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--ip-tint); border: 1px solid var(--ip-line);
    border-radius: 12px; padding: .6rem 1rem; font-size: .92rem;
}
.official-info .info-label { color: var(--ip-muted); }
.official-info .info-value { color: var(--ip-ink); font-weight: 700; }

.share-section .section-title { color: var(--ip-t700); font-weight: 800; margin-bottom: 1rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.share-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .58rem 1.05rem; border-radius: 11px; border: 0; cursor: pointer;
    font-weight: 600; font-size: .9rem; color: #fff;
    transition: transform .2s var(--ip-ease), box-shadow .2s var(--ip-ease), filter .2s;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 8px 18px rgba(4,48,42,.18); }
.share-btn.share-facebook { background: #1877f2; }
.share-btn.share-twitter  { background: #111; }
.share-btn.share-whatsapp { background: #25d366; }
.share-btn.share-telegram { background: #2aabee; }
.share-btn.share-email    { background: var(--ip-t600); }

.news-like-btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .58rem 1.2rem; border-radius: 11px; cursor: pointer;
    background: #fff; border: 1.6px solid var(--ip-line); color: var(--ip-ink);
    font-weight: 700; transition: all .22s var(--ip-ease);
}
.news-like-btn:hover { border-color: #ef4444; color: #ef4444; transform: translateY(-2px); }
.news-like-btn .fa-heart.liked, .news-like-btn[data-liked="true"] .fa-heart { color: #ef4444; }

/* ── Sidebar widgets ──────────────────────────────────────────────── */
.sidebar-widget {
    background: #fff; border: 1px solid var(--ip-line); border-radius: 18px;
    box-shadow: var(--ip-sh); overflow: hidden;
}
.sidebar-widget .widget-header {
    display: flex; align-items: center; gap: .5rem;
    background: linear-gradient(135deg, var(--ip-t700), var(--ip-t600));
    color: #fff; padding: .95rem 1.15rem; margin: 0;
}
.sidebar-widget .widget-header i, .sidebar-widget .widget-title { color: #fff !important; }
.sidebar-widget .widget-title { font-size: 1.02rem; font-weight: 700; }
.sidebar-widget .widget-content { padding: .5rem 1.15rem 1rem; }

.related-news-item { display: flex; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--ip-line); }
.related-news-item:last-child { border-bottom: 0; }
.related-news-item .news-thumbnail img,
.related-news-item .placeholder-thumbnail {
    width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: 0 0 72px;
}
.related-news-item .placeholder-thumbnail { display: grid; place-items: center; background: var(--ip-tint); }
.related-news-item .news-title a { color: var(--ip-ink); font-weight: 700; font-size: .94rem; line-height: 1.5; }
.related-news-item .news-title a:hover { color: var(--ip-t600); }
.related-news-item .news-meta { color: var(--ip-muted); font-size: .8rem; display: flex; gap: .8rem; margin-top: .35rem; }

.latest-news-item { display: flex; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--ip-line); }
.latest-news-item:last-child { border-bottom: 0; }
.latest-news-item .news-bullet i { font-size: .5rem; color: var(--ip-gold) !important; margin-top: .5rem; }
.latest-news-item .news-title a { color: var(--ip-ink); font-weight: 600; font-size: .9rem; line-height: 1.55; }
.latest-news-item .news-title a:hover { color: var(--ip-t600); }
.latest-news-item .news-meta { color: var(--ip-muted); font-size: .78rem; margin-top: .25rem; }

/* ── Gallery + videos refinement ──────────────────────────────────── */
.news-gallery-container .image-wrapper { border-radius: 16px; overflow: hidden; box-shadow: var(--ip-sh); }
.news-gallery-container .current-image { border-radius: 16px; }
.gallery-nav-btn {
    background: rgba(4,48,42,.55); color: #fff; border: 0; width: 44px; height: 44px;
    border-radius: 50%; backdrop-filter: blur(4px); transition: background .2s;
}
.gallery-nav-btn:hover { background: var(--ip-t600); }
.image-counter { background: rgba(4,48,42,.7); color: #fff; border-radius: 999px; padding: .25rem .8rem; font-size: .82rem; }
.thumbnail-item { border-radius: 10px; overflow: hidden; border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.thumbnail-item.active { border-color: var(--ip-gold); }
.thumbnail-item:hover { transform: translateY(-2px); }
.primary-badge { background: linear-gradient(135deg, var(--ip-gold2), var(--ip-gold)); color: #2a2300; }

.news-videos-container .videos-title { color: var(--ip-t700); font-weight: 800; }
.video-item { background: #fff; border: 1px solid var(--ip-line); border-radius: 14px; overflow: hidden; box-shadow: var(--ip-sh); }
.video-item .video-title { color: var(--ip-ink); font-weight: 700; }
.video-item .play-overlay { background: rgba(4,48,42,.45); }
.video-item .play-overlay i { background: var(--ip-t600); }

/* ── Comments section: light design-system touch ──────────────────── */
.government-comments, .comments-section .card, .comment-form-container {
    border-radius: 16px !important; border-color: var(--ip-line) !important;
}
.comments-title, .comment-form-title { color: var(--ip-t700) !important; font-weight: 800 !important; }
.government-input, .government-textarea, .comment-form .form-control {
    border-radius: 11px !important; border: 1.5px solid var(--ip-line) !important;
}
.government-input:focus, .government-textarea:focus, .comment-form .form-control:focus {
    border-color: var(--ip-t500) !important; box-shadow: 0 0 0 3px rgba(66,129,119,.15) !important;
}
.comment-submit-btn, .government-btn.btn-primary, .comment-form .btn-primary {
    background: linear-gradient(135deg, var(--ip-t600), var(--ip-t500)) !important;
    border: 0 !important; border-radius: 11px !important; font-weight: 700 !important;
}
.comment-item { border-radius: 14px !important; }
.comment-author-avatar .avatar-circle, .avatar-circle {
    background: linear-gradient(135deg, var(--ip-t700), var(--ip-t500)) !important; color: #fff !important;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .news-detail-hero h1 { max-width: 100%; }
    .sidebar-widget { margin-top: 1.5rem; }
}
@media (max-width: 575.98px) {
    .news-article.government-article { border-radius: 16px; padding: 1.1rem; }
    .share-btn span { display: none; }
    .share-btn { padding: .6rem .8rem; }
    .news-detail-hero .hero-meta .chip { font-size: .8rem; padding: .42rem .8rem; }
}

/* Clean reading surface: drop the legacy grey box + bootstrap-green accent on the body */
.news-content.government-content .content-wrapper {
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
}
.government-content blockquote { border-left: 0 !important; }
/* (success-green on comment notifications/alerts is semantic and kept as-is) */

/* ════════════════════════════════════════════════════════════════════
   إصلاح حجم الفيديو المرفوع + دعم تنسيق محرّر المحتوى (Quill)
   ════════════════════════════════════════════════════════════════════ */

/* الفيديو المرفوع: كان يُقصّ إلى ارتفاع 200px ثابت (object-fit:cover) فيظهر ضيقاً
   ومشوّه الأبعاد. نعرضه بعرض كامل مع الحفاظ على نسبته الصحيحة. */
.news-videos-container .video-thumbnail.is-upload {
    height: auto;
    min-height: 0;
    background: #000;
    border-radius: 12px;
}
.news-videos-container .video-thumbnail.is-upload video {
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    background: #000;
}
/* فيديو واحد فقط → عرض كامل (نُبقي الشبكة عند تعدّد الفيديوهات) */
.news-videos-container .videos-grid:has(.video-item:only-child) {
    grid-template-columns: 1fr;
}
.news-videos-container .video-item.is-upload-item:hover {
    transform: none;            /* لا رفع/تكبير لمشغّل الفيديو */
}

/* ── تنسيق المحتوى الغني القادم من المحرّر (قوائم، محاذاة، إزاحة) ── */
.news-content .content-wrapper ul,
.news-content .content-wrapper ol { margin: 0 0 1.15rem; padding-inline-start: 2rem; }
.news-content .content-wrapper ul { list-style: disc; }
.news-content .content-wrapper ol { list-style: decimal; }
.news-content .content-wrapper li { margin-bottom: .4rem; }
.news-content .content-wrapper h1 { color: var(--ip-t700); font-weight: 800; margin: 1.8rem 0 .8rem; font-size: 1.55rem; }
.news-content .content-wrapper strong,
.news-content .content-wrapper b { font-weight: 800; }
.news-content .content-wrapper em,
.news-content .content-wrapper i { font-style: italic; }
.news-content .content-wrapper u { text-decoration: underline; }
/* أصناف Quill للمحاذاة والإزاحة */
.news-content .content-wrapper .ql-align-center  { text-align: center; }
.news-content .content-wrapper .ql-align-right   { text-align: right; }
.news-content .content-wrapper .ql-align-left    { text-align: left; }
.news-content .content-wrapper .ql-align-justify { text-align: justify; }
.news-content .content-wrapper .ql-indent-1 { padding-inline-start: 3em; }
.news-content .content-wrapper .ql-indent-2 { padding-inline-start: 6em; }
.news-content .content-wrapper .ql-indent-3 { padding-inline-start: 9em; }
.news-content .content-wrapper .ql-indent-4 { padding-inline-start: 12em; }

/* ════════════════════════════════════════════════════════════════════
   تنسيق نصّ الخبر — قراءة مريحة واحترافية (teal+gold)
   ════════════════════════════════════════════════════════════════════ */
.news-content.government-content .content-wrapper {
    font-size: 1.15rem;
    line-height: 2.1;
    color: #1f2d28;
    font-weight: 400;
}
/* فقرة استهلالية بارزة (أول فقرة) */
.news-content.government-content .content-wrapper > p:first-of-type {
    font-size: 1.26rem;
    line-height: 1.95;
    color: var(--ip-t700);
    font-weight: 500;
    margin-bottom: 1.6rem;
}
.news-content.government-content .content-wrapper p {
    margin-bottom: 1.4rem;
    text-align: justify;
    text-justify: inter-word;
}
/* العناوين داخل النص: شريط ذهبي صغير + تدرّج هرمي واضح */
.news-content.government-content .content-wrapper h2,
.news-content.government-content .content-wrapper h3,
.news-content.government-content .content-wrapper h4 {
    color: var(--ip-t700);
    font-weight: 800;
    line-height: 1.5;
    margin: 2rem 0 .9rem;
    position: relative;
    padding-inline-start: .9rem;
}
.news-content.government-content .content-wrapper h2::before,
.news-content.government-content .content-wrapper h3::before,
.news-content.government-content .content-wrapper h4::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .18em;
    width: 4px;
    height: 1em;
    background: var(--ip-gold);
    border-radius: 3px;
}
.news-content.government-content .content-wrapper h2 { font-size: 1.5rem; }
.news-content.government-content .content-wrapper h3 { font-size: 1.3rem; }
.news-content.government-content .content-wrapper h4 { font-size: 1.15rem; }
.news-content.government-content .content-wrapper li { margin-bottom: .55rem; line-height: 1.95; }
.news-content.government-content .content-wrapper blockquote {
    font-size: 1.15rem;
    color: var(--ip-t700);
    font-weight: 500;
}
@media (max-width: 576px) {
    .news-content.government-content .content-wrapper { font-size: 1.08rem; line-height: 2; }
    .news-content.government-content .content-wrapper > p:first-of-type { font-size: 1.18rem; }
}
