/* Base Styles & Resets */
:root {
    --primary-green: #00732e;
    --text-dark: #222;
    --text-muted: #666;
    --bg-main: #f4f4f0;
    --border-color: #d8d8d8;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-green);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background-color: #2b2b2b;
    color: #fff;
    font-size: 0.75rem;
    padding: 5px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left a {
    color: #fff;
    font-weight: 700;
    margin-right: 15px;
}

.top-bar-left .date {
    color: #bbb;
}

.top-bar-right a {
    color: #ccc;
    margin-left: 15px;
    font-size: 0.9rem;
}

.top-bar-right a:hover {
    color: #fff;
}

/* Main Header */
.main-header {
    padding: 30px 0 20px;
    text-align: center;
}

.logo .since {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    font-style: italic;
    margin-bottom: -5px;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1;
}

.logo .tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 1px;
}

/* Navigation */
.main-nav {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 20px;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav ul li {
    margin: 0 15px;
}

.main-nav ul li a {
    display: block;
    padding: 12px 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.main-nav ul li a:hover {
    color: var(--primary-green);
}

/* Ticker Bar */
.ticker-bar {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 0.8rem;
}

.ticker-bar .container {
    display: flex;
    align-items: center;
}

.ticker-label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-right: 10px;
}

.ticker-content {
    flex-grow: 1;
    color: var(--text-dark);
}

.ticker-cat {
    color: var(--primary-green);
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 5px;
}

.ticker-nav {
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* 3-Column Layout */
.main-layout {
    display: flex;
    margin-top: 30px;
    align-items: stretch;
}

.column {
    padding: 0 20px;
}

.col-left {
    width: 25%;
    border-right: 1px solid var(--border-color);
    padding-left: 0;
}

.col-mid {
    width: 50%;
    border-right: 1px solid var(--border-color);
}

.col-right {
    width: 25%;
    padding-right: 0;
}

@media (max-width: 991px) {
    .main-layout {
        flex-direction: column;
    }
    .col-left, .col-mid, .col-right {
        width: 100%;
        border-right: none;
        padding: 0;
    }
    .col-left, .col-mid {
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
}

/* Shared News Card Styles */
.category-tag {
    display: block;
    color: var(--primary-green);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 10px;
    line-height: 1.4;
}

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

.news-card:hover {
    transform: translateY(-2px);
}

.news-card a {
    display: block;
}

/* Vertical Cards (Left Column) */
.news-card.vertical {
    margin-bottom: 30px;
}

.news-card.vertical h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.2;
}

.news-card.vertical .image-wrapper {
    margin-bottom: 10px;
}

/* Featured News (Middle Column) */
.featured-news {
    margin-bottom: 40px;
}

.featured-news h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.1;
    margin: 15px 0 10px;
}

/* Top Headlines Section (Middle Column) */
.top-headlines-divider {
    border-top: 1px solid var(--text-dark);
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
}

.top-headlines-divider span {
    background-color: var(--bg-main);
    padding: 0 15px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    top: -15px;
}

.horizontal-mid {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.horizontal-mid a {
    display: flex;
    justify-content: space-between;
}

.horizontal-mid:last-child {
    border-bottom: none;
}

.horizontal-mid .content {
    flex: 1;
    padding-right: 20px;
}

.horizontal-mid h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 8px;
    font-weight: 400;
}

.horizontal-mid .meta {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.3;
}

.horizontal-mid .meta .author-caps {
    color: #5a7d8c;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.horizontal-mid .image-wrapper {
    width: 140px;
    height: 90px;
    flex-shrink: 0;
}

.horizontal-mid .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Small Horizontal (Right Column) */
.news-card.horizontal-small {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.news-card.horizontal-small:last-child {
    border-bottom: none;
}

.news-card.horizontal-small a {
    display: flex;
}

.news-card.horizontal-small .content {
    flex: 1;
    padding-right: 15px;
}

.news-card.horizontal-small h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.2;
}

.news-card.horizontal-small .image-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.news-card.horizontal-small .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Excerpt Styles */
.excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.excerpt-large {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 10px 0;
    line-height: 1.5;
}

/* =========================================
   NEW SECTIONS (Extended Homepage)
   ========================================= */

/* Section Headings */
.section-heading-wrapper {
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.section-heading-wrapper.text-center {
    text-align: center;
    border-top: 1px solid var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}
.section-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}
.category-row-header {
    border-top: 1px solid var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    margin-bottom: 20px;
}
.category-row-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}
.category-row-header h3 a {
    color: var(--primary-green);
}

/* Opinion & Editor's Choice */
.opinion-section {
    display: flex;
    gap: 30px;
    border-top: 1px solid var(--text-dark);
    padding-top: 20px;
}
.editors-choice {
    width: 30%;
    background-color: var(--bg-main);
    padding: 20px;
}
.opinion-grid-wrapper {
    width: 70%;
}
.opinion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}
.opinion-card a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.opinion-content {
    flex: 1;
    padding-right: 15px;
}
.opinion-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.opinion-meta {
    font-size: 0.8rem;
    color: #888;
}
.opinion-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #a0a0a0;
    flex-shrink: 0;
}

/* 4-Column Grid */
.four-col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.four-col-grid .news-card.vertical h3 {
    font-size: 1.1rem;
}

/* Business Section */
.business-section {
    display: flex;
    gap: 30px;
}
.business-featured {
    width: 60%;
}
.business-featured h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 15px 0 10px;
}
.read-more {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-dark);
}
.business-secondary {
    width: 40%;
}
.business-secondary .business-item a {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.business-secondary .business-item .image-wrapper {
    width: 140px;
    flex-shrink: 0;
}
.business-secondary .business-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* Videos Section */
.videos-section {
    display: flex;
    gap: 30px;
}
.video-featured {
    width: 50%;
}
.video-grid {
    width: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.video-thumbnail {
    position: relative;
    margin-bottom: 10px;
}
.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    pointer-events: none;
}
.play-icon.small {
    font-size: 2rem;
}
.video-card-large h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}
.video-card-small h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
}

@media (max-width: 991px) {
    .opinion-section, .business-section, .videos-section {
        flex-direction: column;
    }
    .editors-choice, .opinion-grid-wrapper, .business-featured, .business-secondary, .video-featured, .video-grid {
        width: 100%;
    }
    .four-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .four-col-grid, .opinion-grid, .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    border-top: 2px solid var(--text-dark);
    padding: 40px 0;
    margin-top: 50px;
}

.footer .logo h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.footer .copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}
