/* =====================================================
   WinnsboroSC.com – Modern Local News Theme
   ===================================================== */

:root {
    --navy: #0d1b2a;
    --navy-light: #1b2838;
    --gold: #c9a227;
    --gold-light: #e0bc4a;
    --cream: #f8f5f0;
    --text: #2c2c2c;
    --muted: #6c757d;
    --accent: #1a4a6e;
}

body {
    font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: #f4f2ee;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, .logo-main, .footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Top bar */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.site-logo .logo-main {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.site-logo .logo-main em {
    font-style: normal;
    color: var(--gold);
}
.site-logo .logo-tagline {
    font-size: 0.8rem;
    color: var(--muted);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Navigation */
.main-nav {
    background: var(--navy);
    padding: 0;
}
.main-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.1rem !important;
    letter-spacing: 0.02em;
    transition: color 0.2s, background 0.2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--gold) !important;
    background: rgba(255,255,255,0.05);
}
.navbar-toggler {
    color: var(--navy);
}

/* Main content */
.site-main {
    min-height: 60vh;
    padding: 2rem 0 3rem;
}

/* Hero / Featured */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.hero-section .hero-content {
    padding: 2.5rem;
}
.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

/* Cards */
.news-card {
    background: #fff;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.news-card .card-img-top {
    height: 180px;
    object-fit: cover;
    background: #e9ecef;
}
.news-card .card-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, #e8e4dc, #d4cfc4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.news-card .category-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gold);
}
.news-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}
.news-card .card-title a {
    color: var(--navy);
    text-decoration: none;
}
.news-card .card-title a:hover {
    color: var(--accent);
}

/* Article single */
.article-header {
    margin-bottom: 1.5rem;
}
.article-meta {
    color: var(--muted);
    font-size: 0.9rem;
}
.article-content {
    font-size: 1.1rem;
    line-height: 1.75;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.article-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.article-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

/* Events */
.event-card {
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}
.event-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.event-date {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Places */
.place-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    height: 100%;
    transition: transform 0.2s;
}
.place-card:hover {
    transform: translateY(-2px);
}
.place-card .place-img {
    height: 160px;
    background: linear-gradient(135deg, #e8e4dc, #d4cfc4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.place-card .place-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar */
.sidebar-widget .widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
.ad-placeholder {
    background: #e9ecef;
    min-height: 120px;
    border: 1px dashed #adb5bd;
}
.event-teaser a:hover strong {
    color: var(--accent) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--navy);
    border-color: var(--navy);
}
.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}
.btn-outline-primary {
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-primary:hover {
    background-color: var(--navy);
    border-color: var(--navy);
}

/* Page headers */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}
.page-header h1 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
}
.footer-brand {
    font-size: 1.4rem;
    color: #fff;
}
.footer-brand em {
    font-style: normal;
    color: var(--gold);
}
.footer-heading {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}
.footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--gold);
}
.footer-divider {
    border-color: rgba(255,255,255,0.15);
}

/* Admin styles */
.admin-body {
    background: #f0f2f5;
}
.admin-sidebar {
    background: var(--navy);
    min-height: 100vh;
    color: #fff;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    border-radius: 6px;
    margin-bottom: 2px;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: var(--gold);
}
.admin-content {
    padding: 1.5rem;
}
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Forms */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .main-nav .navbar-collapse {
        background: var(--navy);
        padding: 0.5rem 0;
    }
    .hero-section h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 575.98px) {
    .site-logo .logo-main {
        font-size: 1.5rem;
    }
}