/* News Mobile Styles (< 768px) */
:root {
    --bg-light: #fdfcfb;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-gold: #cba174;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: 'Noto Sans SC', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* Hero Section */
.news-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 0 60px;
    /* Reduced padding for mobile */
    text-align: center;
    position: relative;
    color: white;
}

.news-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.news-hero p {
    font-size: 1rem;
    color: #cbd5e1;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.news-hero .container {
    margin: 0 20px !important;
    width: auto !important;
    max-width: none !important;
    padding: 0;
}

/* Main Container */
.main-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px 60px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    min-height: 85vh;
}

/* Sidebar - Stacked for Mobile */
.filter-sidebar {
    position: static;
    height: auto;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--card-shadow);
    width: 100%;
    box-sizing: border-box;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 25px;
}

.filter-group h3 {
    font-family: 'Playfair Display', serif;
    /* Premium Font */
    font-size: 1.25rem;
    /* Consistent large size */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-gold);
    letter-spacing: 0.5px;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping */
    gap: 16px;
    /* Increased gap */
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.05rem;
    /* Larger font */
    color: var(--text-secondary);
    padding: 5px 0;
    transition: color 0.2s;
}

.filter-option:hover {
    color: var(--accent-gold);
}

.filter-option input[type="checkbox"] {
    accent-color: var(--accent-gold);
    width: 18px;
    /* Larger checkbox */
    height: 18px;
    cursor: pointer;
}

/* Pagination Styles - Mobile Row Redesign */
.pagination {
    display: flex;
    flex-direction: row;
    /* Force row layout */
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: nowrap;
    /* Prevent stacking */
    width: 100%;
}

.page-btn {
    width: 36px !important;
    /* Force fixed width */
    height: 36px !important;
    flex: 0 0 auto;
    /* Do not grow or shrink */
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

.page-btn.active {
    background: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
    box-shadow: 0 2px 8px rgba(203, 161, 116, 0.3);
}

.page-btn:hover:not(.active):not(:disabled) {
    background: #f8f9fa;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

/* Floating Filter Button (Creative Enhanced) */
.filter-trigger {
    display: flex;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #1e293b;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 2000;
    font-weight: 600;
    font-size: 0.95rem;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Gradient Border/Glow Effect */
.filter-trigger::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(45deg, var(--accent-gold), transparent, var(--accent-gold));
    border-radius: 50px;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.filter-trigger:active {
    transform: translateX(-50%) scale(0.95);
}

.filter-trigger.hide-trigger {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.filter-trigger svg {
    display: block;
}


/* Overlay */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 2050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar Drawer - Mobile Styles */
.filter-sidebar {
    position: fixed;
    top: 56px !important;
    left: 0;
    bottom: 0;
    width: 85%;
    /* Slightly wider on mobile */
    max-width: 320px;
    height: calc(100vh - 56px) !important;

    /* Premium Glassmorphism */
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    z-index: 10000;
    /* Max Z-Index */
    padding: 25px !important;
    overflow-y: auto;

    /* Slide Logic */
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    /* Deep Shadow & Subtle Inner Light */
    box-shadow: 20px 0 50px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-left: none;
    border-radius: 0 16px 16px 0;
    margin-bottom: 0;
    display: block;
}

.filter-sidebar.active {
    transform: translateX(0);
}

.sidebar-header-mobile {
    display: none !important;
}

.sidebar-header-mobile h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.close-filter {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #64748b;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

/* Ensure stacks correctly */
.filter-options {
    flex-direction: column;
    gap: 12px;
}

/* News Content */
.news-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Featured News - Mobile Stacked */
.featured-news {
    display: none !important;
}

.featured-image {
    min-height: 250px;
    background-size: cover;
    background-position: center;
}

.featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-tag {
    display: inline-block;
    background: rgba(203, 161, 116, 0.1);
    color: var(--accent-gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    width: fit-content;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-meta {
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.featured-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-read-featured {
    background: var(--accent-gold);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
}

/* Section Header */
.section-header {
    margin-bottom: 30px;
    text-align: center;
    /* Match screenshot centered look */
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    /* Added decoration font */
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* News Grid - Mobile 1 Column */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* News Card */
.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: auto;
    text-decoration: none !important;
    /* Remove underline */
    color: inherit;
    /* Ensure text color is inherited */
}

.news-card h3,
.news-card p,
.news-card span {
    text-decoration: none !important;
    /* Force remove underline on children */
}

.news-image {
    height: 180px;
    position: relative;
}

.news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.news-body {
    padding: 20px;
}

.news-meta {
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.news-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

.read-more {
    color: var(--accent-gold);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Toast Notification - Premium Transparent Glass */
.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(15, 23, 42, 0.6);
    /* High transparency dark blue */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    padding: 18px 32px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.15);
    /* Frosted border */
    border: none;
    /* Using shadow for border */
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.toast-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Fix for persistent underline on news cards */
.news-card,
.news-card h3,
.news-card p,
.news-card span,
.news-card div {
    text-decoration: none !important;
    color: inherit;
}

/* Ensure read-more link has no underline unless desired */
.read-more {
    text-decoration: none !important;
}

/* Hide Filter Sidebar Header on Mobile */
.sidebar-header-mobile {
    display: none !important;
}

/* Center Section Header */
.section-header {
    text-align: center !important;
}