:root {
    --primary-blue: #0033a0;
    --accent-yellow: #ffcc00;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-body: #f4f6f8;
    --bg-white: #ffffff;
    --bg-dark: #222222;
    --border-color: #eaeaea;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Georgia', serif; /* Or a strong sans-serif if preferred, using serif to match typical news sites */
}

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

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

body.dark-mode {
    --bg-body: #121212;
    --bg-white: #1e1e1e;
    --text-dark: #f0f0f0;
    --text-light: #aaaaaa;
    --border-color: #333333;
}

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

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

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

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

/* Top Bar */
.top-bar {
    background-color: var(--bg-dark);
    color: #fff;
    font-size: 12px;
    padding: 5px 0;
    text-align: center;
}

/* Header */
.site-header {
    background-color: var(--bg-white);
    padding: 20px 0;
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 60px;
}

/* Navigation */
.main-nav {
    background-color: var(--primary-blue);
    color: #fff;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    font-weight: bold;
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.btn-subscribe {
    background-color: var(--accent-yellow);
    color: #000;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Ticker */
.ticker-section {
    background-color: var(--bg-white);
    display: flex;
    align-items: stretch;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ticker-label {
    background-color: #ff3333;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    flex-grow: 1;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.ticker-item img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
}

/* Typography & Titles */
.section-title {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 18px;
    position: relative;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-yellow);
}

.section-title.center h3::after {
    left: 50%;
    transform: translateX(-50%);
}

.meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.meta-icon {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.tags {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--accent-yellow);
    color: #000;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.hero-overlay h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-overlay .meta {
    color: #ddd;
}

.hero-overlay .meta-icon {
    filter: brightness(0) invert(1);
}

.controls {
    display: flex;
    gap: 5px;
}

.nav-arrow {
    background: white;
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow img {
    width: 12px;
}

.trend-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.trend-item:last-child {
    border-bottom: none;
}

.trend-img-wrapper {
    position: relative;
    width: 80px;
    flex-shrink: 0;
}

.trend-img-wrapper img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.trend-number {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--accent-yellow);
    color: #000;
    font-weight: bold;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.trend-content h4 {
    font-size: 15px;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Cards */
.card-overlay {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.card-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.card-content .meta {
    color: #ccc;
}

.list-card {
    display: flex;
    gap: 15px;
    background: var(--bg-white);
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.list-card img {
    width: 100px;
    height: 80px;
    object-fit: cover;
}

.card-text h4 {
    font-size: 15px;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

/* Main Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.feed-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feed-img-wrapper {
    width: 40%;
    position: relative;
    flex-shrink: 0;
}

.feed-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-img-wrapper .tags {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
}

.feed-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feed-content h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 10px;
}

.feed-content p {
    color: var(--text-light);
    font-size: 14px;
    margin: 15px 0;
}

/* Buttons */
.btn-outline {
    display: inline-block;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    align-self: flex-start;
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-solid {
    background-color: var(--accent-yellow);
    color: #000;
    border: none;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* Sidebar Widgets */
.widget {
    background: var(--bg-white);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-form {
    display: flex;
}

.search-form input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    padding: 10px;
    outline: none;
}

.text-list {
    list-style: none;
}

.text-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.text-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.text-list a {
    color: var(--text-light);
    font-size: 15px;
}

/* Welcome Section */
.welcome-section {
    background-color: var(--bg-white);
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.welcome-section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-yellow);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: underline;
}

.footer-bottom {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
}

.disclaimer-text {
    margin-bottom: 15px;
    color: #888;
    font-size: 11px;
    line-height: 1.4;
}

.copyright {
    color: #aaa;
}

/* Cookie Modal (Right side fixed) */
.cookie-modal {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 320px;
    background-color: var(--bg-white);
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-left: 4px solid var(--accent-yellow);
    z-index: 9999;
    display: none; /* Controlled by JS */
}

.cookie-modal h4 {
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.cookie-modal p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-actions button {
    flex: 1;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-layout,
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .feed-card {
        flex-direction: column;
    }
    
    .feed-img-wrapper,
    .feed-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .grid-3,
    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-img {
        height: 300px;
    }
}

/* Inner page styles */

/* =========================================
   INTERNAL PAGE STYLES (Articles)
   ========================================= */

.inner-page {
    padding-top: 20px;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs a {
    color: var(--primary-blue);
    font-weight: 500;
}

.article-header {
    margin-bottom: 25px;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    line-height: 1.2;
    margin: 15px 0;
    color: var(--text-dark);
}

/* Image Styling */
.article-main-figure {
    margin-bottom: 30px;
}

.article-main-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-main-figure figcaption {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.article-inline-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border: 1px solid var(--border-color);
    padding: 5px;
    background: var(--bg-white);
    border-radius: 4px;
}

/* Table of Contents */
.toc {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-yellow);
    padding: 20px 25px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.toc h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc ul li {
    margin-bottom: 10px;
}

.toc ul li::before {
    content: '▪';
    color: var(--primary-blue);
    display: inline-block;
    width: 15px;
}

.toc ul li a {
    font-weight: 500;
    color: var(--text-dark);
}

.toc ul li a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Text Tags inside Article */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content span.highlight-text {
    background-color: rgba(255, 204, 0, 0.2);
    padding: 2px 5px;
    font-weight: bold;
    border-radius: 2px;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--primary-blue);
    margin: 40px 0 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 30px 0 15px;
}

.article-content h4 {
    font-size: 20px;
    margin: 25px 0 15px;
}

.article-content h5 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--text-light);
}

.article-content h6 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0 10px;
}

/* Lists within Article */
.article-content ul,
.article-content ol {
    margin: 0 0 25px 20px;
    padding-left: 20px;
    background: var(--bg-white);
    padding: 20px 20px 20px 40px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 10px;
}

.article-content ul li::marker {
    color: var(--primary-blue);
    font-size: 1.2em;
}

.article-content ol li::marker {
    color: var(--primary-blue);
    font-weight: bold;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
    background-color: var(--bg-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.article-content table th,
.article-content table td {
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: left;
}

.article-content table th {
    background-color: var(--primary-blue);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: normal;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.article-content table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.article-content table tr:hover td {
    background-color: rgba(255, 204, 0, 0.1);
}

/* Related Articles Section */
.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

/* Forms (Comments & Contact) */
.custom-form-container {
    margin-top: 50px;
    padding: 30px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.form-note {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.styled-form .form-row {
    display: flex;
    gap: 20px;
}

.styled-form .form-group {
    margin-bottom: 20px;
    width: 100%;
}

.styled-form .form-group.half {
    flex: 1;
}

.styled-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.styled-form input,
.styled-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-body);
    color: var(--text-dark);
    font-family: var(--font-main);
    font-size: 15px;
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
}

.styled-form input:focus,
.styled-form textarea:focus {
    border-color: var(--primary-blue);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.1);
}

.contact-widget .styled-form input {
    padding: 10px;
    font-size: 14px;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 26px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }

    .styled-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
