:root {
    --bg-primary: #FFFBF5;
    --bg-secondary: #F0EBE3;
    --bg-accent: #EDE7DC;
    --text-main: #3D3D3D;
    --text-muted: #7A7A7A;
    --gold: #C9A961;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: sans-serif; }

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.5;
}

.news-sec-container {
    min-width:65%;
    max-width:75rem;
    margin: 0 auto;
    padding: 90px 0;
}

.header-section { text-align: center; margin-bottom: 50px; }
.header-section h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 15px; }
.header-section p { color: var(--text-muted); font-size: clamp(1rem, 3vw, 1.5rem); }

/* Grid Layout */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 1024px) {
    .news-grid { grid-template-columns: 2fr 1fr; }
}

/* News Cards */
.news-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}
.news-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

.badge { background: var(--bg-accent); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; }
.meta { display: flex; align-items: center; gap: 10px; color: var(--text-muted); margin-bottom: 15px; }
.gold-icon { color: var(--gold); width: 18px; }

/* Archive Sidebar */
.archive-sidebar { background: var(--bg-accent); padding: 25px; border-radius: 12px; position: sticky; top: 20px; }
.archive-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: var(--bg-primary);
    font-size: 1.1rem;
    cursor: pointer;
}
.archive-btn.active { background: var(--gold); color: white; }

.archive-content { display: none; padding: 10px 0 0 10px; }
.archive-content.show { display: block; }

.archive-item {
    display: block;
    background: var(--bg-primary);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

/* Detail View Styles */
.hidden { display: none !important; }
.back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-bottom: 30px;
    text-decoration: underline;
}

.detail-article { background: var(--bg-secondary); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.featured-img-frame { width: 100%; height: 400px; }
.featured-img { width: 100%; height: 100%; object-fit: cover; }
.detail-body-wrapper { padding: clamp(20px, 5vw, 50px); }
.lead-text { font-size: 1.4rem; margin-bottom: 25px; color: var(--text-main); }

.img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 30px 0; }
.grid-img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; }

/* ... keep your existing root and body styles ... */

/* Detailed View Content Spacing */
#detail-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 40px; /* SPACE BETWEEN TITLE AND FIRST LINE */
    color: var(--text-main);
}

.prose p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Pinned Icon & Badge */
.pin-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    transform: rotate(45deg);
}

.pinned-badge {
    display: inline-flex;
    align-items: center;
    background: var(--gold);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 12px;
}

/* Archive Items in Sidebar */
.archive-item {
    display: block;
    background: var(--bg-primary);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.archive-item:hover {
    background: var(--bg-secondary);
}

/* ... keep the rest of your grid and layout styles ... */

.news-card .read-more {
    transition: transform 0.2s ease;
}

.news-card:hover .read-more {
    transform: translateX(5px); /* Gentle nudge to the right on hover */
}

/* Optional: If the screen is too narrow, you might want it to wrap */
@media (max-width: 480px) {
    .news-card div[style*="flex"] {
        flex-direction: column;
    }
    .news-card .read-more {
        margin-top: 10px;
        align-self: flex-end;
    }
    #detail-title {
        font-size: 1.75rem;
    }
}
.news-image:hover {
    opacity: 0.9;
    transform: scale(1.01);
}