/* Base Styles & Resets */
:root {
    --primary-green: #00732e;
    --text-dark: #222;
    --text-muted: #666;
    --bg-main: #f4f4f0;
    --border-color: #d8d8d8;
    --font-heading: 'YD Gothic 100 130', 'Domine', serif;
    --font-body: 'Poppins', sans-serif;
    --nav-bg: #fff;
    --card-bg: transparent;
}

[data-theme="dark"] {
    --primary-green: #00a642;
    --text-dark: #f4f4f0;
    --text-muted: #aaa;
    --bg-main: #121212;
    --border-color: #333;
    --nav-bg: #1e1e1e;
    --card-bg: #1e1e1e;
}

* {
    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);
    
    /* Prevent text selection and copying */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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;
}

/* Global Image Wrapper for Aspect Ratio */
.image-wrapper {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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: #000;
    color: #fff;
    font-size: 0.75rem;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.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: #fff;
}

/* Language Dropdown */
.lang-dropdown {
    display: inline-block;
    position: relative;
    margin-left: 20px;
}
.lang-dropbtn {
    background: none;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    padding: 0;
}
.lang-dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 80px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
    left: 0;
}
.lang-dropdown-content a {
    color: var(--text-dark) !important;
    padding: 8px 12px;
    text-decoration: none !important;
    display: block;
    font-weight: normal;
    text-align: left;
    margin: 0 !important;
}
.lang-dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-green) !important;
}
.lang-dropdown:hover .lang-dropdown-content {
    display: block;
}

/* Hide Google Translate UI */
.goog-te-banner-frame.skiptranslate, 
.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.skiptranslate > iframe.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
}
body {
    top: 0px !important; 
    position: static !important;
}
#goog-gt-tt {
    display: none !important;
    visibility: hidden !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

.top-bar-right a {
    color: #fff;
    margin-left: 15px;
    font-size: 0.9rem;
}

.top-bar-right a:hover {
    color: #fff;
}

/* Main Header */
.main-header {
    padding: 10px 0 5px;
    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;
}

.site-logo {
    max-height: 100px;
    width: auto;
    margin: 0 auto 0px auto;
    display: block;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .site-logo {
    filter: invert(1) brightness(2);
}

.logo .tagline {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-style: italic;
    letter-spacing: 0.5px;
    margin-top: -2px;
    text-align: center;
    padding-left: 0;
    font-weight: 500;
}

/* Navigation */
.main-nav {
    border-top: 3px double var(--border-color);
    border-bottom: 3px double var(--border-color);
    margin-top: 5px;
}

.main-nav .nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.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);
}

.nav-search {
    position: absolute;
    right: 0;
}

.nav-search form {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    background: var(--nav-bg);
}

.nav-search input {
    border: none;
    padding: 5px 15px;
    font-size: 0.85rem;
    outline: none;
    width: 140px;
    font-family: var(--font-body);
    background: var(--nav-bg);
    color: var(--text-dark);
}

.nav-search button {
    background: none;
    border: none;
    padding: 5px 15px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.nav-search button:hover {
    color: var(--primary-green);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 991px) {
    .main-nav .nav-container {
        flex-direction: column;
    }
    .nav-search {
        position: static;
        margin-top: -5px;
        margin-bottom: 5px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .nav-search form {
        width: 100%;
    }
    .nav-search input {
        width: 100%;
        flex: 1;
    }
}

/* Ticker Bar */
.ticker-bar {
    border-bottom: 3px double 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;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-content {
    flex-grow: 1;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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: 15px;
    align-items: stretch;
}

.column {
    padding: 0 20px;
}

.col-left {
    width: 25%;
    border-right: 3px double var(--border-color);
    padding-left: 0;
}

.col-mid {
    width: 50%;
    border-right: 3px double 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-mid {
        order: 1;
        border-bottom: 3px double var(--border-color);
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    .col-left {
        order: 2;
        border-bottom: 3px double var(--border-color);
        margin-bottom: 30px;
        padding-bottom: 30px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .col-right {
        order: 3;
    }
}

/* 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: 5px;
    line-height: 1.4;
}

.news-card {
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-card a {
    display: block;
}

.image-wrapper {
    border-radius: 6px;
    overflow: hidden;
}
.image-wrapper img {
    border-radius: 6px;
    transition: transform 0.3s ease;
}
a:hover .image-wrapper img {
    transform: scale(1.05);
}

/* Vertical Cards (Left Column & Grids) */
.news-card.vertical {
    margin-bottom: 15px;
}

.news-card.vertical h3 {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    line-height: 1.2;
    margin-top: 5px;
}

.news-card.vertical .image-wrapper {
    margin-bottom: 10px;
    aspect-ratio: 16/9;
}

/* Featured News (Middle Column) */
.featured-news {
    margin-bottom: 20px;
}

.featured-news h2 {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    line-height: 1.2;
    margin: 5px 0;
}

.featured-news .category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 0.5px;
}

/* Top Headlines Section (Middle Column) */
.top-headlines-divider {
    border-top: 3px double var(--text-dark);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
    position: relative;
}

.top-headlines-divider span {
    background-color: var(--bg-main);
    padding: 0 15px;
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    position: relative;
    top: -15px;
}

.horizontal-mid {
    margin-bottom: 20px;
    border-bottom: 3px double 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.0rem;
    line-height: 1.25;
    margin-bottom: 8px;
    font-weight: 700;
}

.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;
    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: 15px;
    padding-bottom: 15px;
    border-bottom: 3px double 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: 0.8rem;
    line-height: 1.2;
}

.news-card.horizontal-small .image-wrapper {
    width: 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;
    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: 3px double var(--text-dark);
    border-bottom: 3px double var(--border-color);
    padding: 10px 0;
}
.section-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}
.category-row-header {
    border-top: 4px double var(--text-dark);
    border-bottom: 3px double var(--border-color);
    padding: 10px 0;
    margin-bottom: 20px;
}
.category-row-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}
.category-row-header h3 a {
    color: var(--primary-green);
}

/* Opinion & Editor's Choice */
.opinion-section {
    display: flex;
    gap: 30px;
    border-top: 3px double var(--text-dark);
    padding-top: 20px;
}
.editors-choice {
    width: 30%;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 5px;
}
.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: 3px double var(--border-color);
    padding-bottom: 15px;
}
.opinion-content {
    flex: 1;
    padding-right: 15px;
}
.opinion-content h3 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    line-height: 1.2;
    margin-bottom: 8px;
    font-weight: 700;
}
.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;
}

/* 6-Column Grid */
.four-col-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.four-col-grid .news-card {
    min-width: 0;
}
.four-col-grid .news-card.vertical h3 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    line-height: 1.2;
    margin-top: 5px;
}

/* Business Section */
.business-section {
    display: flex;
    gap: 30px;
}
.business-featured {
    width: 60%;
}
.business-featured img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.business-featured h3 {
    font-family: var(--font-heading);
    font-size: 1.44rem;
    line-height: 1.2;
    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: 3px double var(--border-color);
    padding-bottom: 20px;
}
.business-secondary .business-item .image-wrapper {
    width: 140px;
    flex-shrink: 0;
}
.business-secondary .business-item .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.business-secondary .business-item h3 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    line-height: 1.2;
}

/* 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;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    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.2rem;
}
.video-card-small h3 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
}

@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(3, 1fr);
    }
}

.btn-read-more {
    display: inline-block;
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
    text-decoration: underline;
    transition: all 0.2s ease;
    border: none;
    background: none;
    padding: 0;
}
.btn-read-more:hover {
    color: var(--text-dark);
}

/* 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;
}

/* Footer Styles */
.site-footer {
    background-color: #111;
    color: #eee;
    padding: 60px 0 20px;
    font-family: var(--font-body);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-green);
}

.footer-col p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #222;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: var(--primary-green);
}

.links-col ul {
    list-style: none;
    padding: 0;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: #aaa;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.links-col ul li a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background-color: #222;
    color: #fff;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-form button {
    padding: 10px 20px;
    background-color: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #008a37;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 3px double #333;
    color: #888;
    font-size: 0.85rem;
}

.footer-bottom-links a {
    color: #888;
    margin-left: 20px;
}

.footer-bottom-links a:hover {
    color: #fff;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    /* Top Bar */
    .top-bar-inner { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; }
    .top-bar-left { text-align: left; flex: 1; }
    .top-bar-left > a { display: block; }
    .top-bar-left .date { display: inline-block; font-size: 0.75rem; margin-top: 2px; }
    .lang-dropdown { margin-left: 10px; margin-top: 2px; text-align: left; display: inline-block; }
    .top-bar-right { text-align: right; margin-top: 0; flex-shrink: 0; }
    .top-bar-right a { margin-left: 8px; font-size: 0.9rem; }
    
    /* Header */
    .main-header { padding: 10px 0 5px; }
    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .mobile-toggle { display: block; }
    .logo h1 { font-size: 2.8rem; }
    .site-logo { max-height: 45px; margin-bottom: 0px; width: 90%; max-width: 350px; }
    .logo .tagline { margin-top: 2px; font-size: 0.75rem; text-align: center; padding-left: 0; }
    
    /* Nav (Mobile Collapse) */
    .main-nav {
        display: none;
        padding-top: 15px;
    }
    .main-nav.active {
        display: block;
    }
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 0px;
        width: 100%;
    }
    .main-nav ul li { 
        width: 100%;
        margin: 0; 
        padding: 10px 20px; 
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0; 
    }
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    .mobile-break { display: none !important; }
    .nav-search {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }
    
    /* Typography & Cards */
    .featured-news h2 { font-size: 1.04rem; }
    .news-card.vertical h3 { font-size: 0.88rem; }
    .horizontal-mid h3 { font-size: 0.88rem; }
    .horizontal-mid .image-wrapper { width: 100px; }
    .news-card.horizontal-small .image-wrapper { width: 70px; }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom-links {
        margin-top: 15px;
    }
    .footer-bottom-links a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .four-col-grid { grid-template-columns: repeat(2, 1fr); }
    .opinion-grid, .video-grid { grid-template-columns: 1fr; }
    .logo h1 { font-size: 2.2rem; }
    .site-logo { max-height: 50px; }
    .top-bar-right a { font-size: 0.95rem; margin-left: 5px; }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
#preloader .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
