/* ============================================= */
/* == News and Updates Page Specific Styles   == */
/* ============================================= */

:root {
    --news-primary-color: #0f3a65; /* Deeper, richer blue */
    --news-secondary-color: #e67e22; /* Warmer, more vibrant orange */
    --news-accent-color: #3498db; /* Accent blue for highlights */
    --news-light-bg: #f8fafc;
    --news-ultra-light: #ffffff;
    --news-dark-bg: #1e293b;
    --news-text-color: #334155;
    --news-meta-color: #64748b;
    --news-border-color: #e2e8f0;
    --glass-bg-light: rgba(255, 255, 255, 0.85);
    --glass-bg-dark: rgba(15, 58, 101, 0.75); /* Based on primary */
    --glass-blur: 12px;
    --glass-border-color: rgba(255, 255, 255, 0.15);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
    --card-border-radius: 12px;
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- General Page Structure --- */
.news-content .container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.news-content .content-section {
    margin-bottom: 50px;
    /* Sections within main area might not need default padding/bg */
}

/* Glass Effects */
.news-content .glass-effect,
.news-content .glass-effect-light {
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--card-shadow);
    position: relative;
    border-radius: var(--card-border-radius);
    padding: 25px; /* Add padding to glass sections */
    margin-bottom: 25px; /* Spacing for glass sections */
}

.news-content .glass-effect {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.news-content .glass-effect-light {
    background: rgba(244, 246, 248, 0.8); /* Based on light bg */
    backdrop-filter: blur(calc(var(--glass-blur) / 1.5));
    -webkit-backdrop-filter: blur(calc(var(--glass-blur) / 1.5));
}


.news-content h2 {
    color: var(--news-primary-color);
    margin-bottom: 30px;
    padding-bottom: 12px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.news-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--news-secondary-color) 0%, var(--news-accent-color) 100%);
    border-radius: 3px;
}

.news-content h2 i {
    font-size: 0.8em;
    color: var(--news-secondary-color);
}

.news-content h3 {
    color: var(--news-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.4em;
}

.news-content h3 a {
    color: inherit;
    text-decoration: none;
}
.news-content h3 a:hover {
    color: var(--news-secondary-color);
}


.news-content p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--news-text-color);
}

.news-content .btn-primary {
    background-color: var(--news-primary-color);
    border-color: var(--news-primary-color);
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(15, 58, 101, 0.2);
    transition: var(--transition-standard);
}
.news-content .btn-primary:hover {
    background-color: #0a2845; /* Darker shade */
    border-color: #0a2845;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 58, 101, 0.3);
}
.news-content .btn-secondary {
    background-color: var(--news-secondary-color);
    border-color: var(--news-secondary-color);
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(230, 126, 34, 0.2);
    transition: var(--transition-standard);
}
.news-content .btn-secondary:hover {
    background-color: #d35400; /* Darker shade */
    border-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 126, 34, 0.3);
}
.news-content .btn-outline-primary {
    color: var(--news-primary-color);
    border: 2px solid var(--news-primary-color);
    background-color: transparent;
    padding: 0.55rem 1.4rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition-standard);
}
.news-content .btn-outline-primary:hover {
    background-color: var(--news-primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 58, 101, 0.2);
}
.news-content .btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85em;
    border-radius: 5px;
}
.news-content .btn-block {
    display: block;
    width: 100%;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem !important; } /* Utility */

/* --- Hero Section --- */
.news-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/news-bg.jpg');
    padding: 5rem 0;
}

.news-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.news-hero .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-outline-light {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: transparent;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition-standard);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-2px);
}

/* --- News Layout (Main + Sidebar) --- */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin: 2rem 0;
}

/* --- Main News Area --- */
.main-news-area .content-section {
    margin-bottom: 40px;
    padding: 0; /* Remove default padding if sections are just containers */
    background: none;
    box-shadow: none;
    border-radius: 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-glass);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--primary);
}

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

.news-card-meta span {
    display: flex;
    align-items: center;
}

.news-card-meta i {
    margin-right: 0.25rem;
}

.news-card-summary {
    margin-bottom: 1.25rem;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-btn, .gallery-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 5px;
}

.share-btn:hover, .gallery-btn:hover {
    color: var(--primary);
}

.news-card-content .btn {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start; /* Align button left */
}

/* Pagination */
.pagination-container {
    margin-top: 50px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: inline-flex;
    padding-left: 0;
    list-style: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-item .page-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.9rem;
    margin-left: -1px;
    line-height: 1;
    color: var(--news-primary-color);
    background-color: var(--news-ultra-light);
    border: 1px solid var(--news-border-color);
    font-weight: 500;
    transition: var(--transition-standard);
}

.page-item:first-child .page-link { 
    margin-left: 0; 
    border-top-left-radius: 8px; 
    border-bottom-left-radius: 8px; 
}

.page-item:last-child .page-link { 
    border-top-right-radius: 8px; 
    border-bottom-right-radius: 8px; 
}

.page-item.active .page-link { 
    z-index: 3; 
    color: #fff; 
    background-color: var(--news-primary-color); 
    border-color: var(--news-primary-color); 
    box-shadow: 0 2px 8px rgba(15, 58, 101, 0.2);
}

.page-item.disabled .page-link { 
    color: var(--news-meta-color); 
    pointer-events: none; 
    cursor: auto; 
    background-color: var(--news-ultra-light); 
    border-color: var(--news-border-color); 
    opacity: 0.7;
}

.page-link:hover { 
    z-index: 2; 
    color: #fff; 
    text-decoration: none; 
    background-color: var(--news-accent-color); 
    border-color: var(--news-accent-color); 
}


/* Recent Judgments */
.judgment-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.judgment-item {
    padding: 25px;
    border-radius: var(--card-border-radius);
    position: relative;
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
    border: 1px solid var(--news-border-color);
}

.judgment-item:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.judgment-badge {
    position: absolute;
    top: -15px;
    right: 25px;
    background-color: var(--news-secondary-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.3);
    z-index: 1;
}

.judgment-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.judgment-header h3 {
    font-size: 1.1em;
    margin: 0;
    color: var(--news-primary-color);
    line-height: 1.4;
    flex: 1;
    min-width: 300px;
}

.court-type {
    background-color: var(--news-ultra-light);
    color: var(--news-primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
}

.judgment-meta {
    font-size: 0.85em;
    color: var(--news-meta-color);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-weight: 500;
}

.judgment-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.judgment-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.judgment-actions .btn i {
    font-size: 0.9em;
}

/* Section header with filter buttons */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

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

.news-filter-btn {
    background: none;
    border: 1px solid var(--news-border-color);
    padding: 6px 15px;
    border-radius: 20px;
    color: var(--news-text-color);
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-standard);
}

.news-filter-btn:hover {
    background-color: rgba(15, 58, 101, 0.05);
    border-color: var(--news-primary-color);
    color: var(--news-primary-color);
}

.news-filter-btn.active {
    background-color: var(--news-primary-color);
    color: white;
    border-color: var(--news-primary-color);
}

/* Speeches List */
.speech-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.speech-item {
    padding: 20px;
    border-radius: var(--card-border-radius);
}
.speech-item h3 { font-size: 1.2em; margin-bottom: 8px; }
.speech-meta { font-size: 0.85em; color: var(--news-meta-color); margin-bottom: 10px; }
.speech-meta i { margin-right: 5px; }


/* --- Sidebar Area --- */
.sidebar-area .sidebar-widget {
    margin-bottom: 35px;
    padding: 30px;
    background-color: var(--news-ultra-light);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--news-border-color);
    transition: var(--transition-standard);
}

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

.sidebar-area .sidebar-widget.glass-effect {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-color);
}

.widget-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--news-border-color);
    text-align: right;
}

.more-link {
    color: var(--news-primary-color);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--transition-standard);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.more-link i {
    transition: transform 0.3s ease;
}

.more-link:hover {
    color: var(--news-secondary-color);
}

.more-link:hover i {
    transform: translateX(3px);
}

.sidebar-widget .widget-title {
    font-size: 1.4em;
    color: var(--news-primary-color);
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--news-border-color);
    font-weight: 700;
    position: relative;
    letter-spacing: -0.01em;
}

.sidebar-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--news-secondary-color);
}

/* Category Widget */
.category-list { list-style: none; padding-left: 0; }
.category-list li { margin-bottom: 8px; }
.category-filter-btn {
    background: none;
    border: none;
    padding: 10px 0;
    text-align: left;
    width: 100%;
    color: var(--news-text-color);
    font-size: 0.95em;
    cursor: pointer;
    transition: var(--transition-standard);
    position: relative;
    padding-left: 30px;
    border-radius: 4px;
}

.category-filter-btn::before {
    content: '\f0da'; /* chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--news-secondary-color);
    transition: var(--transition-standard);
}

.category-filter-btn:hover {
    background-color: rgba(230, 126, 34, 0.08);
    color: var(--news-secondary-color);
    font-weight: 500;
    padding-left: 35px;
}

.category-filter-btn.active {
    background-color: rgba(230, 126, 34, 0.12);
    color: var(--news-secondary-color);
    font-weight: 600;
    padding-left: 35px;
}

.category-filter-btn:hover::before,
.category-filter-btn.active::before {
    left: 15px;
    transform: translateY(-50%) rotate(90deg);
}


/* Archive Widget */
#archive-search-form .form-group { margin-bottom: 15px; }
#archive-search-form label { display: block; font-size: 0.9em; margin-bottom: 5px; font-weight: 500; color: #555; }
#archive-search-form input[type="search"],
#archive-search-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.95em;
}

/* Calendar, Notices, Publications Widgets */
.calendar-list, .notice-list, .publication-list {
    list-style: none;
    padding-left: 0;
}
.calendar-list li, .notice-list li, .publication-list li {
    margin-bottom: 10px;
}
.calendar-list a, .notice-list a, .publication-list a {
    color: var(--news-text-color);
    text-decoration: none;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
.calendar-list a i, .notice-list a i, .publication-list a i {
    color: var(--news-secondary-color);
    width: 15px; /* Align icons */
    text-align: center;
}
.calendar-list a:hover, .notice-list a:hover, .publication-list a:hover {
    color: var(--news-secondary-color);
}

/* Subscribe Widget */
.subscribe-widget p { font-size: 0.9em; margin-bottom: 15px; }
#subscribe-form .form-group { margin-bottom: 10px; }
#subscribe-form input[type="email"] { width: 100%; padding: 10px 12px; border: 1px solid #ced4da; border-radius: 5px; font-size: 0.95em; }
#subscribe-form .privacy-policy { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
#subscribe-form .privacy-policy input[type="checkbox"] { width: auto; }
#subscribe-form .privacy-policy label { font-size: 0.85em; margin-bottom: 0; font-weight: 400; }
#subscribe-form .error-message { color: var(--contact-error-color); font-size: 0.8em; margin-top: 3px; display: none; }
#subscribe-form input.invalid + .error-message,
#subscribe-form input.invalid + label + .error-message { display: block; }
#subscribe-status { margin-top: 10px; font-size: 0.9em; display: none; }
#subscribe-status.success { color: var(--contact-success-color); }
#subscribe-status.error { color: var(--contact-error-color); }


/* Media Contacts Widget */
.media-contacts-widget p { font-size: 0.95em; line-height: 1.6; }
.media-contacts-widget strong { display: block; margin-bottom: 3px; }


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-area {
        margin-top: 40px;
    }
    .news-hero h1 {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .news-hero { padding: 50px 15px; }
    .news-hero h1 { font-size: 2.1em; }
    .news-content h2 { font-size: 1.6em; }
    .news-grid { grid-template-columns: 1fr; } /* Stack news cards */
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .news-hero h1 { font-size: 1.9em; }
    .news-hero .subtitle { font-size: 1em; }
    .news-content h2 { font-size: 1.5em; }
    .news-content h3 { font-size: 1.2em; }
    .news-card-content { padding: 15px; }
    .judgment-item, .speech-item { padding: 15px; }
    .sidebar-area .sidebar-widget { padding: 20px; }
}

/* News Article Styles - Modern and Sleek Design */

/* Hero Section */
.article-hero {
    padding: 8rem 0 5rem;
    position: relative;
}

.article-meta {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.article-category {
    background-color: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-date, .article-gallery-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.article-date i {
    margin-right: 0.25rem;
}

.article-title {
    font-size: 2.75rem;
    margin: 0 0 1rem;
    color: #fff;
}

.article-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.article-author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.article-author i {
    margin-right: 0.25rem;
}

/* Main Content Layout */
.page-content {
    padding: 2rem 0;
    background-color: #f5f7fa;
}

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

/* Main Article Area */
.main-article-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    padding: 40px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #1a1a2e;
}

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

.article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

/* Share buttons */
.article-actions {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

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

.share-buttons span {
    font-weight: 600;
    color: #555;
    margin-right: 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.facebook {
    background-color: #3b5998;
}

.twitter {
    background-color: #1da1f2;
}

.email {
    background-color: #ea4335;
}

.print {
    background-color: #34495e;
}

/* Related Articles */
.related-articles {
    margin-top: 20px;
}

.section-heading {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 10px;
}

.section-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

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

.related-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

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

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 15px;
}

.related-content h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-content h4 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.related-content h4 a:hover {
    color: #3498db;
}

.related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: #777;
}

.related-category {
    color: #3498db;
    font-weight: 600;
}

.related-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-nav {
    margin-top: 10px;
}

/* Sidebar Styles */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 25px;
    overflow: hidden;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 10px;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.category-list a:hover {
    color: #3498db;
    transform: translateX(5px);
}

.category-list i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: #3498db;
}

/* Recent News Widget */
.recent-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-news-list li {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.recent-news-list li:last-child {
    border-bottom: none;
}

.recent-news-list a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    transition: all 0.2s;
}

.recent-news-list a:hover .recent-title {
    color: #3498db;
}

.recent-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.recent-date {
    color: #888;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Subscribe Widget */
.subscribe-widget {
    background: linear-gradient(45deg, #2c3e50, #1a1a2e);
    color: #fff;
}

.subscribe-widget .widget-title:after {
    background-color: #fff;
}

.news-subscribe-form {
    margin-top: 15px;
}

.news-subscribe-form .form-group {
    margin-bottom: 15px;
}

.news-subscribe-form input[type="email"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 5px;
}

.news-subscribe-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.7);
}

.input-group {
    display: flex;
    position: relative;
}

.input-group-prepend {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
}

.news-subscribe-form input[type="email"] {
    padding-left: 40px;
}

.privacy-policy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
}

.privacy-policy label {
    line-height: 1.4;
}

.privacy-policy a {
    color: #3498db;
    text-decoration: none;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Error messages */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Subscribe status */
#subscribe-status {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .content-section {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 80px 0 60px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Error Page Styles */
.error-hero {
    text-align: center;
    padding: 100px 0 80px;
}

.error-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.error-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.error-content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 40px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.error-content h2 {
    color: #1a1a2e;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.error-options {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.error-options li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-options i {
    color: #3498db;
    font-size: 1.1rem;
}

.error-options a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.error-options a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Recent Speeches Styles */
.recent-speeches {
    margin: 2rem 0;
}

.speech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.speech-item {
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.speech-item:hover {
    transform: translateY(-5px);
}

.speech-header {
    margin-bottom: 1rem;
}

.speech-header h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.speech-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.speech-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.speaker {
    font-weight: 600;
    color: var(--primary-color);
}

.topic {
    color: var(--text-muted);
}

.speech-summary {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

.speech-actions {
    display: flex;
    justify-content: flex-end;
}

.no-speeches {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .speech-list {
        grid-template-columns: 1fr;
    }
    
    .speech-item {
        padding: 1rem;
    }
    
    .speech-header h3 {
        font-size: 1.1rem;
    }
}

/* Speech Display Styles */
.speech-content {
    margin: 2rem 0;
    line-height: 1.6;
    font-size: 1.1em;
}

.speech-download {
    margin: 2rem 0;
    text-align: center;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.download-button:hover {
    background-color: #c82333;
}

.download-button i {
    font-size: 1.2em;
}

.speech-footer {
    margin-top: 3rem;
    text-align: center;
}

.back-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #5a6268;
}

/* ============================================= */
/* == News and Updates Page Specific Styles   == */
/* ============================================= */

:root {
    --news-primary-color: #0f3a65; /* Deeper, richer blue */
    --news-secondary-color: #e67e22; /* Warmer, more vibrant orange */
    --news-accent-color: #3498db; /* Accent blue for highlights */
    --news-light-bg: #f8fafc;
    --news-ultra-light: #ffffff;
    --news-dark-bg: #1e293b;
    --news-text-color: #334155;
    --news-meta-color: #64748b;
    --news-border-color: #e2e8f0;
    --glass-bg-light: rgba(255, 255, 255, 0.9);
    --glass-bg-dark: rgba(15, 58, 101, 0.85); /* Based on primary */
    --glass-blur: 15px;
    --glass-border-color: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --card-border-radius: 16px;
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- General Page Structure --- */
.news-content .container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.news-content .content-section {
    margin-bottom: 50px;
    /* Sections within main area might not need default padding/bg */
}

/* Glass Effects */
.news-content .glass-effect,
.news-content .glass-effect-light {
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--card-shadow);
    position: relative;
    border-radius: var(--card-border-radius);
    padding: 25px; /* Add padding to glass sections */
    margin-bottom: 25px; /* Spacing for glass sections */
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: var(--transition-bounce);
}

.news-content .glass-effect {
    background: var(--glass-bg-light);
}

.news-content .glass-effect-light {
    background: rgba(244, 246, 248, 0.9);
    backdrop-filter: blur(calc(var(--glass-blur) / 1.5));
    -webkit-backdrop-filter: blur(calc(var(--glass-blur) / 1.5));
}

.news-content .glass-effect:hover,
.news-content .glass-effect-light:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.news-content h2 {
    color: var(--news-primary-color);
    margin-bottom: 30px;
    padding-bottom: 12px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.news-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--news-secondary-color) 0%, var(--news-accent-color) 100%);
    border-radius: 3px;
}

.news-content h2 i {
    font-size: 0.8em;
    color: var(--news-secondary-color);
}

.news-content h3 {
    color: var(--news-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.4em;
}

.news-content h3 a {
    color: inherit;
    text-decoration: none;
}
.news-content h3 a:hover {
    color: var(--news-secondary-color);
}


.news-content p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--news-text-color);
}

.news-content .btn-primary {
    background: linear-gradient(135deg, var(--news-primary-color), #0a2845);
    border-color: var(--news-primary-color);
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(15, 58, 101, 0.3);
    transition: var(--transition-standard);
}

.news-content .btn-primary:hover {
    background: linear-gradient(135deg, #0a2845, var(--news-primary-color));
    border-color: #0a2845;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 58, 101, 0.4);
}

.news-content .btn-secondary {
    background: linear-gradient(135deg, var(--news-secondary-color), #d35400);
    border-color: var(--news-secondary-color);
    color: #fff;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    transition: var(--transition-standard);
}

.news-content .btn-secondary:hover {
    background: linear-gradient(135deg, #d35400, var(--news-secondary-color));
    border-color: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.news-content .btn-outline-primary {
    color: var(--news-primary-color);
    border: 2px solid var(--news-primary-color);
    background-color: transparent;
    padding: 0.55rem 1.4rem;
    font-weight: 500;
    border-radius: 30px;
    transition: var(--transition-standard);
}

.news-content .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--news-primary-color), #0a2845);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 58, 101, 0.3);
}

.news-content .btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85em;
    border-radius: 20px;
}

.news-content .btn-block {
    display: block;
    width: 100%;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem !important; } /* Utility */

/* --- Hero Section --- */
.news-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/news-bg.jpg');
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

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

.news-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.news-hero .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-outline-light {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: transparent;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 30px;
    transition: var(--transition-standard);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* --- News Layout (Main + Sidebar) --- */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin: 2rem 0;
}

/* --- Main News Area --- */
.main-news-area .content-section {
    margin-bottom: 40px;
    padding: 0; /* Remove default padding if sections are just containers */
    background: none;
    box-shadow: none;
    border-radius: 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(15, 58, 101, 0.3);
}

.news-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--news-primary-color), var(--news-secondary-color));
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.news-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--news-primary-color);
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--news-secondary-color);
}

.news-card-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--news-meta-color);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-summary {
    margin-bottom: 20px;
    color: var(--news-text-color);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.card-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.share-btn, .gallery-btn {
    background: none;
    border: none;
    color: var(--news-meta-color);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover, .gallery-btn:hover {
    color: var(--news-primary-color);
    background: rgba(15, 58, 101, 0.1);
    transform: translateY(-2px);
}

.news-card-content .btn {
    margin-top: auto;
    align-self: flex-start;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news-card-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Pagination */
.pagination-container {
    margin-top: 50px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: inline-flex;
    padding-left: 0;
    list-style: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-item .page-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.9rem;
    margin-left: -1px;
    line-height: 1;
    color: var(--news-primary-color);
    background-color: var(--news-ultra-light);
    border: 1px solid var(--news-border-color);
    font-weight: 500;
    transition: var(--transition-standard);
}

.page-item:first-child .page-link { 
    margin-left: 0; 
    border-top-left-radius: 8px; 
    border-bottom-left-radius: 8px; 
}

.page-item:last-child .page-link { 
    border-top-right-radius: 8px; 
    border-bottom-right-radius: 8px; 
}

.page-item.active .page-link { 
    z-index: 3; 
    color: #fff; 
    background: linear-gradient(135deg, var(--news-primary-color), #0a2845);
    border-color: var(--news-primary-color); 
    box-shadow: 0 2px 8px rgba(15, 58, 101, 0.2);
}

.page-item.disabled .page-link { 
    color: var(--news-meta-color); 
    pointer-events: none; 
    cursor: auto; 
    background-color: var(--news-ultra-light); 
    border-color: var(--news-border-color); 
    opacity: 0.7;
}

.page-link:hover { 
    z-index: 2; 
    color: #fff; 
    text-decoration: none; 
    background: linear-gradient(135deg, var(--news-accent-color), var(--news-primary-color));
    border-color: var(--news-accent-color); 
}


/* Recent Judgments */
.judgment-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.judgment-item {
    padding: 25px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.judgment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(15, 58, 101, 0.3);
}

.judgment-badge {
    position: absolute;
    top: -20px;
    right: 25px;
    background: linear-gradient(135deg, var(--news-secondary-color), #e67e22);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
    z-index: 1;
    border: 3px solid #fff;
}

.judgment-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.judgment-header h3 {
    font-size: 1.15em;
    margin: 0;
    color: var(--news-primary-color);
    line-height: 1.5;
    flex: 1;
    min-width: 300px;
}

.court-type {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(230, 126, 34, 0.2));
    color: var(--news-secondary-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.judgment-meta {
    font-size: 0.9em;
    color: var(--news-meta-color);
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-weight: 500;
}

.judgment-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.judgment-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.judgment-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 30px;
    padding: 8px 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.judgment-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section header with filter buttons */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

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

.news-filter-btn {
    background: none;
    border: 1px solid var(--news-border-color);
    padding: 6px 15px;
    border-radius: 20px;
    color: var(--news-text-color);
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-standard);
}

.news-filter-btn:hover {
    background-color: rgba(15, 58, 101, 0.05);
    border-color: var(--news-primary-color);
    color: var(--news-primary-color);
}

.news-filter-btn.active {
    background: linear-gradient(135deg, var(--news-primary-color), #0a2845);
    color: white;
    border-color: var(--news-primary-color);
}

/* Speeches List */
.speech-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.speech-item {
    padding: 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.speech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(15, 58, 101, 0.3);
}
.speech-item h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--news-primary-color); }
.speech-date { color: var(--news-meta-color); font-size: 0.95rem; margin-bottom: 15px; display: block; }
.speech-meta { display: flex; gap: 20px; margin-bottom: 15px; font-size: 0.95rem; color: var(--news-meta-color); flex-wrap: wrap; }
.speaker { font-weight: 600; color: var(--news-primary-color); }
.topic { color: var(--news-meta-color); }
.speech-summary { margin-bottom: 20px; line-height: 1.7; color: var(--news-text-color); }
.speech-actions .btn { border-radius: 30px; padding: 10px 25px; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); }
.speech-actions .btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }


/* --- Sidebar Area --- */
.sidebar-area .sidebar-widget {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sidebar-area .sidebar-widget:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.sidebar-area .sidebar-widget.glass-effect {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-color);
}

.widget-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--news-border-color);
    text-align: right;
}

.more-link {
    color: var(--news-primary-color);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--transition-standard);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.more-link i {
    transition: transform 0.3s ease;
}

.more-link:hover {
    color: var(--news-secondary-color);
}

.more-link:hover i {
    transform: translateX(3px);
}

.sidebar-widget .widget-title {
    font-size: 1.4em;
    color: var(--news-primary-color);
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--news-border-color);
    font-weight: 700;
    position: relative;
    letter-spacing: -0.01em;
}

.sidebar-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, var(--news-primary-color), var(--news-secondary-color));
}

/* Category Widget */
.category-list { list-style: none; padding-left: 0; }
.category-list li { margin-bottom: 8px; }
.category-filter-btn {
    background: none;
    border: none;
    padding: 12px 0;
    text-align: left;
    width: 100%;
    color: var(--news-text-color);
    font-size: 0.95em;
    cursor: pointer;
    transition: var(--transition-standard);
    position: relative;
    padding-left: 30px;
    border-radius: 4px;
}

.category-filter-btn::before {
    content: '\f0da'; /* chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--news-secondary-color);
    transition: var(--transition-standard);
}

.category-filter-btn:hover {
    background-color: rgba(230, 126, 34, 0.08);
    color: var(--news-secondary-color);
    font-weight: 500;
    padding-left: 35px;
}

.category-filter-btn.active {
    background-color: rgba(230, 126, 34, 0.12);
    color: var(--news-secondary-color);
    font-weight: 600;
    padding-left: 35px;
}

.category-filter-btn:hover::before,
.category-filter-btn.active::before {
    left: 15px;
    transform: translateY(-50%) rotate(90deg);
}


/* Archive Widget */
#archive-search-form .form-group { margin-bottom: 15px; }
#archive-search-form label { display: block; font-size: 0.9em; margin-bottom: 5px; font-weight: 500; color: #555; }
#archive-search-form input[type="search"],
#archive-search-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
}

#archive-search-form input[type="search"]:focus,
#archive-search-form select:focus {
    border-color: var(--news-primary-color);
    box-shadow: 0 0 0 3px rgba(15, 58, 101, 0.2);
    outline: none;
    background: #fff;
}

/* Calendar, Notices, Publications Widgets */
.calendar-list, .notice-list, .publication-list {
    list-style: none;
    padding-left: 0;
}
.calendar-list li, .notice-list li, .publication-list li {
    margin-bottom: 10px;
}
.calendar-list a, .notice-list a, .publication-list a {
    color: var(--news-text-color);
    text-decoration: none;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
.calendar-list a i, .notice-list a i, .publication-list a i {
    color: var(--news-secondary-color);
    width: 15px; /* Align icons */
    text-align: center;
}
.calendar-list a:hover, .notice-list a:hover, .publication-list a:hover {
    color: var(--news-secondary-color);
}

/* Subscribe Widget */
.subscribe-widget p { font-size: 0.9em; margin-bottom: 15px; }
#subscribe-form .form-group { margin-bottom: 10px; }
#subscribe-form input[type="email"] { width: 100%; padding: 12px 15px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; font-size: 0.95em; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.7); }
#subscribe-form input[type="email"]:focus { border-color: var(--news-primary-color); box-shadow: 0 0 0 3px rgba(15, 58, 101, 0.2); outline: none; background: #fff; }
#subscribe-form .privacy-policy { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; font-size: 0.85rem; }
#subscribe-form .privacy-policy input[type="checkbox"] { width: auto; margin-top: 3px; }
#subscribe-form .privacy-policy label { line-height: 1.5; }
#subscribe-form .error-message { color: #e74c3c; font-size: 0.85rem; margin-top: 5px; display: none; }
#subscribe-form input.invalid + .error-message,
#subscribe-form input.invalid + label + .error-message { display: block; }
#subscribe-status { margin-top: 10px; font-size: 0.9rem; display: none; padding: 10px; border-radius: 8px; }
#subscribe-status.success { color: #27ae60; background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.3); }
#subscribe-status.error { color: #e74c3c; background: rgba(231, 76, 60, 0.1); border: 1px solid rgba(231, 76, 60, 0.3); }


/* Media Contacts Widget */
.media-contacts-widget p { font-size: 0.95em; line-height: 1.6; }
.media-contacts-widget strong { display: block; margin-bottom: 3px; }


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-area {
        margin-top: 40px;
    }
    .news-hero h1 {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .news-hero { padding: 50px 15px; }
    .news-hero h1 { font-size: 2.1em; }
    .news-content h2 { font-size: 1.6em; }
    .news-grid { grid-template-columns: 1fr; } /* Stack news cards */
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .judgment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .judgment-header h3 {
        min-width: 100%;
        margin-bottom: 15px;
    }
    
    .judgment-actions {
        flex-direction: column;
    }
    
    .judgment-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .news-hero h1 { font-size: 1.9em; }
    .news-hero .subtitle { font-size: 1em; }
    .news-content h2 { font-size: 1.5em; }
    .news-content h3 { font-size: 1.2em; }
    .news-card-content { padding: 15px; }
    .judgment-item, .speech-item { padding: 15px; }
    .sidebar-area .sidebar-widget { padding: 20px; }
    
    .news-card-image {
        height: 200px;
    }
    
    .speech-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* News Article Styles - Modern and Sleek Design */

/* Hero Section */
.article-hero {
    padding: 8rem 0 5rem;
    position: relative;
}

.article-meta {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.article-category {
    background: linear-gradient(135deg, var(--news-primary-color), var(--news-secondary-color));
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.article-date, .article-gallery-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.article-date i {
    margin-right: 0.25rem;
}

.article-title {
    font-size: 2.75rem;
    margin: 0 0 1rem;
    color: #fff;
}

.article-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.article-author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.article-author i {
    margin-right: 0.25rem;
}

/* Main Content Layout */
.page-content {
    padding: 2rem 0;
    background-color: #f5f7fa;
}

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

/* Main Article Area */
.main-article-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-section {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #1a1a2e;
}

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

.article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

/* Share buttons */
.article-actions {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

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

.share-buttons span {
    font-weight: 600;
    color: #555;
    margin-right: 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.facebook {
    background-color: #3b5998;
}

.twitter {
    background-color: #1da1f2;
}

.email {
    background-color: #ea4335;
}

.print {
    background-color: #34495e;
}

/* Related Articles */
.related-articles {
    margin-top: 20px;
}

.section-heading {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 10px;
}

.section-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--news-primary-color), var(--news-secondary-color));
}

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

.related-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

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

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 15px;
}

.related-content h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-content h4 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.related-content h4 a:hover {
    color: var(--news-primary-color);
}

.related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: #777;
}

.related-category {
    color: var(--news-primary-color);
    font-weight: 600;
}

.related-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-nav {
    margin-top: 10px;
}

/* Sidebar Styles */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 25px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 10px;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, var(--news-primary-color), var(--news-secondary-color));
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.category-list a:hover {
    color: var(--news-primary-color);
    transform: translateX(5px);
}

.category-list i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: var(--news-primary-color);
}

/* Recent News Widget */
.recent-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-news-list li {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.recent-news-list li:last-child {
    border-bottom: none;
}

.recent-news-list a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    transition: all 0.2s;
}

.recent-news-list a:hover .recent-title {
    color: var(--news-primary-color);
}

.recent-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.recent-date {
    color: #888;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Subscribe Widget */
.subscribe-widget {
    background: linear-gradient(45deg, #2c3e50, #1a1a2e);
    color: #fff;
}

.subscribe-widget .widget-title:after {
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
}

.news-subscribe-form {
    margin-top: 15px;
}

.news-subscribe-form .form-group {
    margin-bottom: 15px;
}

.news-subscribe-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-subscribe-form input[type="email"]:focus {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    outline: none;
}

.news-subscribe-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.7);
}

.input-group {
    display: flex;
    position: relative;
}

.input-group-prepend {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
}

.news-subscribe-form input[type="email"] {
    padding-left: 40px;
}

.privacy-policy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
}

.privacy-policy label {
    line-height: 1.4;
}

.privacy-policy a {
    color: var(--news-accent-color);
    text-decoration: none;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--news-primary-color), #0a2845);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a2845, var(--news-primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 58, 101, 0.3);
}

/* Error messages */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Subscribe status */
#subscribe-status {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .content-section {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 80px 0 60px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .judgment-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .speech-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* Error Page Styles */
.error-hero {
    text-align: center;
    padding: 100px 0 80px;
}

.error-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.error-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.error-content {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 40px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-content h2 {
    color: #1a1a2e;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.error-options {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.error-options li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-options i {
    color: var(--news-primary-color);
    font-size: 1.1rem;
}

.error-options a {
    color: var(--news-primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.error-options a:hover {
    color: #0a2845;
    text-decoration: underline;
}

/* Recent Speeches Styles */
.recent-speeches {
    margin: 2rem 0;
}

.speech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.speech-item {
    padding: 1.5rem;
    border-radius: 16px;
    transition: transform 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.speech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(15, 58, 101, 0.3);
}

.speech-header {
    margin-bottom: 1rem;
}

.speech-header h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--news-primary-color);
}

.speech-date {
    font-size: 0.9rem;
    color: var(--news-meta-color);
}

.speech-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.speaker {
    font-weight: 600;
    color: var(--news-primary-color);
}

.topic {
    color: var(--news-meta-color);
}

.speech-summary {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--news-text-color);
}

.speech-actions {
    display: flex;
    justify-content: flex-end;
}

.no-speeches {
    text-align: center;
    padding: 2rem;
    color: var(--news-meta-color);
}

@media (max-width: 768px) {
    .speech-list {
        grid-template-columns: 1fr;
    }
    
    .speech-item {
        padding: 1rem;
    }
    
    .speech-header h3 {
        font-size: 1.1rem;
    }
}

/* Speech Display Styles */
.speech-content {
    margin: 2rem 0;
    line-height: 1.6;
    font-size: 1.1em;
}

.speech-download {
    margin: 2rem 0;
    text-align: center;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.download-button:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.download-button i {
    font-size: 1.2em;
}

.speech-footer {
    margin-top: 3rem;
    text-align: center;
}

.back-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.back-button:hover {
    background: linear-gradient(135deg, #5a6268, #6c757d);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Recent Speeches Section */
.recent-speeches {
    margin: 3rem 0;
}

.speech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.speech-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.speech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(15, 58, 101, 0.3);
}

.speech-header {
    margin-bottom: 1rem;
}

.speech-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--news-primary-color);
}

.speech-date {
    color: var(--news-meta-color);
    font-size: 0.9em;
    margin-top: 0.5rem;
}

.speech-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9em;
    color: var(--news-text-color);
}

.speaker {
    font-weight: 500;
}

.topic {
    color: var(--news-meta-color);
}

.speech-summary {
    margin: 1rem 0;
    color: var(--news-text-color);
    line-height: 1.5;
}

.speech-actions {
    margin-top: 1.5rem;
    text-align: right;
}

.speech-actions a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--news-primary-color), #0a2845);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 58, 101, 0.3);
}

.speech-actions a:hover {
    background: linear-gradient(135deg, #0a2845, var(--news-primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 58, 101, 0.4);
}

.no-speeches {
    text-align: center;
    padding: 2rem;
    color: var(--news-meta-color);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .speech-list {
        grid-template-columns: 1fr;
    }
    
    .speech-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .speech-content {
        font-size: 1em;
    }
}

/* Speech Page Styles */
.speech-hero {
    padding: 4rem 0;
    margin-bottom: 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/court-building.jpg') center/cover;
}

.speech-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.speech-meta {
    display: flex;
    gap: 2rem;
    color: #fff;
    font-size: 1.1rem;
}

.speech-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.speech-meta i {
    color: var(--news-secondary-color);
}

.speech-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.speech-detail {
    padding: 2rem;
}

.speech-summary {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.speech-summary h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.speech-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.speech-body {
    margin-bottom: 2rem;
}

.speech-body h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.speech-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.speech-download {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 16px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.download-button:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.speech-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #333, #444);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.3);
}

.back-button:hover {
    background: linear-gradient(135deg, #444, #333);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 51, 51, 0.4);
}

/* Sidebar Styles */
.related-speeches {
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.widget-title {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--news-secondary-color);
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.related-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-list a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.related-list a:hover {
    color: var(--news-secondary-color);
}

.related-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.related-date {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

/* Share Widget Styles */
.share-widget {
    padding: 1.5rem;
}

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

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267B2;
}

.share-btn.email {
    background: #dc3545;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .speech-layout {
        grid-template-columns: 1fr;
    }

    .speech-hero {
        padding: 3rem 0;
    }

    .speech-hero h1 {
        font-size: 2rem;
    }

    .speech-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .speech-detail {
        padding: 1.5rem;
    }

    .speech-text {
        font-size: 1rem;
    }
}

/* News Page Styles */

/* Hero Section */
.news-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/news-bg.jpg');
    padding: 5rem 0;
}

.news-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.news-hero .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* News Layout */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin: 2rem 0;
}

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

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.news-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(15, 58, 101, 0.3);
}

.news-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--news-primary-color), var(--news-secondary-color));
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.news-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--news-primary-color);
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--news-secondary-color);
}

.news-card-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--news-meta-color);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-summary {
    margin-bottom: 20px;
    color: var(--news-text-color);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.card-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.share-btn, .gallery-btn {
    background: none;
    border: none;
    color: var(--news-meta-color);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover, .gallery-btn:hover {
    color: var(--news-primary-color);
    background: rgba(15, 58, 101, 0.1);
    transform: translateY(-2px);
}

.news-card-content .btn {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start; /* Align button left */
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news-card-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Judgments List */
.judgment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.judgment-item {
    position: relative;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.5rem 3.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.judgment-badge {
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    font-size: 1.25rem;
    color: var(--news-primary-color);
}

.judgment-header {
    margin-bottom: 0.75rem;
}

.judgment-header h3 {
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
    color: var(--news-primary-color);
}

.court-type {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--news-meta-color);
    display: block;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(230, 126, 34, 0.2));
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(230, 126, 34, 0.3);
    width: fit-content;
}

.judgment-meta {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--news-meta-color);
}

.judgment-actions {
    display: flex;
    gap: 0.75rem;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--news-primary-color);
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--news-primary-color), var(--news-secondary-color));
}

/* Category Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a, .category-filter-btn {
    display: block;
    padding: 0.75rem 0;
    color: var(--news-text-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 0.95rem;
    border-radius: 4px;
}

.category-list a:hover, .category-filter-btn:hover {
    color: var(--news-primary-color);
    transform: translateX(5px);
    background-color: rgba(15, 58, 101, 0.05);
}

.category-filter-btn {
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

/* Subscribe Widget */
.subscribe-widget form {
    margin-top: 1rem;
}

.privacy-policy {
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* Article Page Styles */
.article-hero {
    padding: 8rem 0 5rem;
    position: relative;
}

.article-meta {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.article-category {
    background: linear-gradient(135deg, var(--news-primary-color), var(--news-secondary-color));
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.article-date, .article-gallery-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.article-date i {
    margin-right: 0.25rem;
}

.article-title {
    font-size: 2.75rem;
    margin: 0 0 1rem;
    color: #fff;
}

.article-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.article-author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.article-author i {
    margin-right: 0.25rem;
}

/* Article Content */
.article-content {
    padding: 2rem 0;
}

.article-featured-image {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.image-overlay i {
    color: #fff;
    font-size: 2rem;
}

.article-featured-image:hover .image-overlay,
.gallery-item:hover .image-overlay,
.featured-image-container:hover .image-overlay {
    opacity: 1;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    max-width: none;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Rich text content styling */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: var(--news-primary-color);
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
}

.article-body h1 {
    font-size: 2.5rem;
    margin-top: 3rem;
    border-bottom: 3px solid var(--news-secondary-color);
    padding-bottom: 0.5rem;
}

.article-body h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    position: relative;
    padding-left: 20px;
    color: var(--news-primary-color);
}

.article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--news-primary-color), var(--news-secondary-color));
    border-radius: 2px;
}

.article-body h3 {
    font-size: 1.6rem;
    margin-top: 2rem;
    color: var(--news-secondary-color);
}

.article-body h4 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
}

.article-body h5 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.article-body h6 {
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}

.article-body p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--news-text-color);
    margin-bottom: 2rem;
}

/* Rich text formatting */
.article-body strong,
.article-body b {
    font-weight: 700;
    color: var(--news-primary-color);
}

.article-body em,
.article-body i {
    font-style: italic;
    color: var(--news-text-color);
}

.article-body u {
    text-decoration: underline;
    text-decoration-color: var(--news-secondary-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Lists styling */
.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body ul {
    list-style: none;
}

.article-body ul li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
}

.article-body ul li::before {
    content: '\2022';
    color: var(--news-secondary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.1rem;
}

.article-body ol {
    counter-reset: article-counter;
}

.article-body ol li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    counter-increment: article-counter;
}

.article-body ol li::before {
    content: counter(article-counter) '.';
    color: var(--news-primary-color);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

/* Links styling */
.article-body a {
    color: var(--news-primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.article-body a:hover {
    color: var(--news-secondary-color);
    border-bottom-color: var(--news-secondary-color);
}

/* Blockquotes */
.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(15, 58, 101, 0.05), rgba(230, 126, 34, 0.05));
    border-left: 5px solid var(--news-secondary-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
}

.article-body blockquote::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--news-secondary-color);
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: serif;
}

/* Images in content */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-body img:hover {
    transform: scale(1.02);
}

/* Tables */
.article-body table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-body table th,
.article-body table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.article-body table th {
    background: linear-gradient(135deg, var(--news-primary-color), #1e40af);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.article-body table tr:nth-child(even) {
    background-color: #f8fafc;
}

.article-body table tr:hover {
    background-color: rgba(15, 58, 101, 0.05);
}

/* Code styling */
.article-body code {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    color: var(--news-primary-color);
}

.article-body pre {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    overflow-x: auto;
    font-family: 'Courier New', Consolas, monospace;
    line-height: 1.5;
}

.article-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

/* Horizontal rules */
.article-body hr {
    margin: 3rem 0;
    border: none;
    height: 3px;
    background: linear-gradient(90deg, var(--news-primary-color), var(--news-secondary-color));
    border-radius: 3px;
}

/* Responsive adjustments for article content */
@media (max-width: 768px) {
    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-body h1 {
        font-size: 2rem;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
    }
    
    .article-body h3 {
        font-size: 1.4rem;
    }
    
    .article-body p:first-of-type {
        font-size: 1.1rem;
    }
    
    .article-body ul,
    .article-body ol {
        padding-left: 1.5rem;
    }
    
    .article-body blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .article-body table {
        font-size: 0.9rem;
    }
    
    .article-body table th,
    .article-body table td {
        padding: 0.75rem;
    }
}

.article-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--news-border-color);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-buttons span {
    font-weight: 600;
    color: var(--news-primary-color);
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icons a, .social-icons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(15, 58, 101, 0.1);
    color: var(--news-primary-color);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-icons a:hover, .social-icons button:hover {
    background: linear-gradient(135deg, var(--news-primary-color), #0a2845);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(15, 58, 101, 0.3);
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--news-border-color);
}

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

.related-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    background-color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.related-image {
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 1rem;
}

.related-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.related-content h4 a {
    color: var(--news-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: var(--news-secondary-color);
}

.related-meta {
    font-size: 0.85rem;
    color: var(--news-meta-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.related-category {
    font-weight: 600;
}

/* Article Navigation */
.article-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--news-border-color);
    display: flex;
    justify-content: space-between;
}

/* Image Gallery Styles - News Listing Page */
.news-card-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .gallery-main img {
    transform: scale(1.1);
}

.gallery-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnails {
    display: flex;
    gap: 5px;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.05);
}

.gallery-thumb {
    width: calc(25% - 4px);
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.gallery-thumb:hover {
    transform: translateY(-3px);
}

.more-images {
    width: calc(25% - 4px);
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hidden-gallery-link {
    display: none;
}

/* Image Gallery Styles - Article Page */
.article-gallery {
    margin-bottom: 2rem;
}

.featured-image-container {
    margin-bottom: 0.5rem;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 150px;
}

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

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Lightbox Custom Styles */
.lb-data .lb-caption {
    font-size: 1rem;
    font-weight: 600;
}

.lb-data .lb-number {
    font-size: 0.9rem;
}

/* Lightbox Theme Overrides - Judiciary Aesthetic */
.lightboxOverlay {
    background-color: rgba(0, 0, 0, 0.85) !important;
}

.lb-outerContainer {
    border-radius: 12px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}

.lb-data {
    color: var(--text-color, #222) !important;
    font-family: var(--font-family, 'Segoe UI', Tahoma, sans-serif) !important;
}

.lb-data .lb-caption {
    color: var(--text-color, #222) !important;
}

.lb-data .lb-number {
    color: rgba(0,0,0,0.6) !important;
}

.lb-data .lb-close {
    filter: opacity(0.9) !important;
}

@media (max-width: 768px) {
    .lb-outerContainer {
        width: 92% !important;
    }
}

/* Lightbox Controls Override: use inline SVG icons to avoid PNG assets and match site aesthetic */
.lb-nav a.lb-prev, .lb-nav a.lb-next {
    filter: none !important;
    opacity: 1 !important;
}
.lb-nav a.lb-prev {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='white'><path d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z'/></svg>") left 50% no-repeat !important;
    background-size: 28px 28px !important;
}
.lb-nav a.lb-next {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='white'><path d='M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z'/></svg>") right 50% no-repeat !important;
    background-size: 28px 28px !important;
}
.lb-data .lb-close {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24' fill='black'><path d='M18.3 5.71 12 12l6.3 6.29-1.41 1.42L10.59 13.41 4.29 19.71 2.88 18.3 9.17 12 2.88 5.71 4.29 4.29 10.59 10.59 16.89 4.29z'/></svg>") top right no-repeat !important;
    background-size: 24px 24px !important;
}

/* Lightbox Loader Override: CSS spinner instead of GIF */
.lb-cancel {
    background: none !important;
    width: 40px !important;
    height: 40px !important;
    border: 4px solid rgba(255,255,255,0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: lbSpin 0.8s linear infinite !important;
}
@keyframes lbSpin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .lb-nav a.lb-prev, .lb-nav a.lb-next {
        background-size: 24px 24px !important;
    }
}

/* Lightbox Lite styles (fallback) */
.lb-overlay-lite{position:fixed;inset:0;background:rgba(0,0,0,0.9);display:none;z-index:9999;}
.lb-overlay-lite.open{display:block}
.lb-lite-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:90vw;max-height:80vh;color:#fff;}
.lb-lite-img{display:block;max-width:90vw;max-height:65vh;margin:0 auto;border-radius:6px;transition:opacity .25s ease}
.lb-lite-caption{margin-top:10px;text-align:center;font-size:.95rem}
.lb-lite-count{position:absolute;top:-28px;left:0;color:#fff;opacity:.8}
.lb-lite-close{position:absolute;top:-38px;right:0;background:none;border:none;color:#fff;font-size:28px;cursor:pointer}
.lb-lite-prev,.lb-lite-next{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:none;background:rgba(255,255,255,.1);cursor:pointer;border-radius:50%}
.lb-lite-prev{left:-56px}
.lb-lite-next{right:-56px}
@media(max-width:768px){
  .lb-lite-stage{max-width:96vw}
  .lb-lite-img{max-width:96vw;max-height:60vh}
  .lb-lite-prev{left:8px}
  .lb-lite-next{right:8px}
  .lb-lite-close{top:8px;right:8px}
  .lb-lite-count{top:8px;left:12px}
}

/* Speech Page Styles */
.speech-hero {
    padding: 4rem 0;
    margin-bottom: 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/court-building.jpg') center/cover;
}

.speech-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.speech-meta {
    display: flex;
    gap: 2rem;
    color: #fff;
    font-size: 1.1rem;
}

.speech-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.speech-meta i {
    color: #ff4d4d;
}

.speech-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.speech-detail {
    padding: 2rem;
}

.speech-summary {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.speech-summary h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.speech-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.speech-body {
    margin-bottom: 2rem;
}

.speech-body h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.speech-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.speech-download {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 8px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #ff4d4d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: #ff3333;
    transform: translateY(-2px);
}

.speech-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #444;
    transform: translateY(-2px);
}

/* Sidebar Styles */
.related-speeches {
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.widget-title {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ff4d4d;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.related-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-list a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.related-list a:hover {
    color: #ff4d4d;
}

.related-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.related-date {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

/* Share Widget Styles */
.share-widget {
    padding: 1.5rem;
}

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

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267B2;
}

.share-btn.email {
    background: #ff4d4d;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .speech-layout {
        grid-template-columns: 1fr;
    }

    .speech-hero {
        padding: 3rem 0;
    }

    .speech-hero h1 {
        font-size: 2rem;
    }

    .speech-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .speech-detail {
        padding: 1.5rem;
    }

    .speech-text {
        font-size: 1rem;
    }
}

/* News Page Styles */

/* Hero Section */
.news-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/news-bg.jpg');
    padding: 5rem 0;
}

.news-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.news-hero .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* News Layout */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin: 2rem 0;
}

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

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.news-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-glass);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--primary);
}

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

.news-card-meta span {
    display: flex;
    align-items: center;
}

.news-card-meta i {
    margin-right: 0.25rem;
}

.news-card-summary {
    margin-bottom: 1.25rem;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-btn, .gallery-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 5px;
}

.share-btn:hover, .gallery-btn:hover {
    color: var(--primary);
}

.news-card-content .btn {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start; /* Align button left */
}

/* Judgments List */
.judgment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.judgment-item {
    position: relative;
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1.5rem 3.5rem;
}

.judgment-badge {
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    font-size: 1.25rem;
    color: var(--primary);
}

.judgment-header {
    margin-bottom: 0.75rem;
}

.judgment-header h3 {
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.court-type {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
}

.judgment-meta {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.judgment-actions {
    display: flex;
    gap: 0.75rem;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    padding: 1.5rem;
}

.widget-title {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

/* Category Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a, .category-filter-btn {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 0.95rem;
}

.category-list a:hover, .category-filter-btn:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.category-filter-btn {
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

/* Subscribe Widget */
.subscribe-widget form {
    margin-top: 1rem;
}

.privacy-policy {
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* Article Page Styles */
.article-hero {
    padding: 8rem 0 5rem;
    position: relative;
}

.article-meta {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.article-category {
    background-color: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-date, .article-gallery-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.article-date i {
    margin-right: 0.25rem;
}

.article-title {
    font-size: 2.75rem;
    margin: 0 0 1rem;
    color: #fff;
}

.article-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.article-author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.article-author i {
    margin-right: 0.25rem;
}

/* Article Content */
.article-content {
    padding: 2rem 0;
}

.article-featured-image {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.image-overlay i {
    color: #fff;
    font-size: 2rem;
}

.article-featured-image:hover .image-overlay,
.gallery-item:hover .image-overlay,
.featured-image-container:hover .image-overlay {
    opacity: 1;
}

.article-body {
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 2rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2, 
.article-body h3, 
.article-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-buttons span {
    font-weight: 600;
    color: var(--text-dark);
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icons a, .social-icons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-body);
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.social-icons a:hover, .social-icons button:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.related-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: var(--bg-light);
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 1rem;
}

.related-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.related-content h4 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: var(--primary);
}

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

.related-category {
    font-weight: 600;
}

/* Article Navigation */
.article-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

/* Image Gallery Styles - News Listing Page */
.news-card-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.news-card:hover .gallery-main img {
    transform: scale(1.05);
}

.gallery-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.gallery-thumbnails {
    display: flex;
    gap: 5px;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.05);
}

.gallery-thumb {
    width: calc(25% - 4px);
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.gallery-thumb:hover {
    transform: translateY(-3px);
}

.more-images {
    width: calc(25% - 4px);
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hidden-gallery-link {
    display: none;
}

/* Image Gallery Styles - Article Page */
.article-gallery {
    margin-bottom: 2rem;
}

.featured-image-container {
    margin-bottom: 0.5rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.main-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 150px;
}

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

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Lightbox Custom Styles */
.lb-data .lb-caption {
    font-size: 1rem;
    font-weight: 600;
}

.lb-data .lb-number {
    font-size: 0.9rem;
}