/* CSS Variables */
:root {
    --primary-red: #da291c;
    --dark-bg: #1a1611;
    --text-main: #333;
    --text-light: #777;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-color: #eaeaea;
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

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

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

/* Header & Hero */
.hero-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-area {
    text-align: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.main-nav {
    background-color: var(--primary-red);
    color: var(--white);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

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

.nav-links a {
    color: var(--white);
}

.nav-links a:hover {
    opacity: 0.8;
}

.search-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    filter: brightness(0) invert(1);
}

/* Typography & Sections */
.section-title {
    font-size: 20px;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

main {
    padding: 40px 0;
}

/* Featured Grid */
.featured-section {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

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

.category-tag {
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 10px;
    padding: 3px 8px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
}

.featured-card {
    height: 100%;
    min-height: 350px;
}

.featured-card h3 {
    font-size: 24px;
}

.medium-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: calc(100% - 52px);
}

.small-card-overlay {
    height: 100%;
    min-height: 165px;
}

.small-card-overlay h4 {
    font-size: 16px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

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

.list-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.list-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.list-content .date {
    font-size: 11px;
    color: var(--primary-red);
    font-weight: bold;
}

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

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.standard-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.standard-card img {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.meta .date {
    color: var(--primary-red);
    font-weight: bold;
}

.meta .author {
    color: var(--text-light);
}

.standard-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.standard-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    font-size: 12px;
    color: var(--primary-red);
}

/* Sidebar */
.widget {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 4px;
}

.widget h3 {
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.search-widget input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
}

/* Pre-Footer */
.pre-footer {
    padding: 60px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.welcome-text {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.welcome-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.welcome-text p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
}

.recommendation-box {
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid var(--primary-red);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: var(--bg-light);
}

.recommendation-box h3 {
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.sponsor-logo {
    margin-bottom: 20px;
}

.sponsor-logo img {
    max-height: 50px;
    margin: 0 auto;
}

.recommendation-box p {
    font-size: 12px;
    color: var(--text-light);
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 40px;
    position: relative;
}

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

.footer-col h3 {
    color: var(--primary-red);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.disclaimer-text {
    font-size: 12px;
    line-height: 1.8;
}

#scroll-top {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-red);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

#scroll-top img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

#scroll-top:hover {
    background-color: #b01f15;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
}

.cookie-content {
    padding: 20px;
}

.cookie-content h4 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 16px;
}

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

.btn-accept {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-accept:hover {
    background-color: #b01f15;
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-section {
        grid-template-columns: 1fr 1fr;
    }
    .featured-col.list {
        grid-column: span 2;
    }
    .content-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .disclaimer-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .featured-section {
        grid-template-columns: 1fr;
    }
    .featured-col.list {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .disclaimer-col {
        grid-column: span 1;
    }
    .nav-links {
        display: none; /* In a real scenario, implement a hamburger menu here */
    }
    .cookie-modal {
        width: calc(100% - 40px);
    }
}
/* Inner page styles */
/* ----------------------------------------
   NEW INNER PAGE STYLES (Appended to style.css)
   ---------------------------------------- */

.inner-page-main {
    padding-top: 40px;
}

/* Single Post Layout & Container */
.single-post {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

/* Article Headers & Meta */
.post-title {
    font-size: 36px;
    color: var(--dark-bg);
    margin-bottom: 15px;
    line-height: 1.25;
    font-weight: 800;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.post-meta .category {
    color: var(--primary-red);
}

/* Images */
.post-main-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}

.post-inner-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Table of Contents */
.table-of-contents {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-red);
    border-radius: 4px;
    padding: 25px 30px;
    margin-bottom: 40px;
}

.table-of-contents h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--dark-bg);
    text-transform: uppercase;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 12px;
}

.table-of-contents li:last-child {
    margin-bottom: 0;
}

.table-of-contents a {
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.table-of-contents a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

/* Typography (h1-h6, p, span) */
.post-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--dark-bg);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.post-content h3 {
    font-size: 24px;
    margin: 35px 0 15px;
    color: var(--dark-bg);
}

.post-content h4 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--dark-bg);
}

.post-content h5,
.post-content h6 {
    font-size: 18px;
    margin: 25px 0 10px;
    color: var(--dark-bg);
}

.post-content p {
    margin-bottom: 25px;
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.post-content span.highlight {
    background-color: rgba(218, 41, 28, 0.1);
    color: var(--primary-red);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Lists (ul, ol) */
.post-content ul,
.post-content ol {
    margin-bottom: 30px;
    padding-left: 25px;
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content ul li::marker,
.post-content ol li::marker {
    color: var(--primary-red);
    font-weight: bold;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin: 35px 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--white);
    font-size: 16px;
}

.post-content th,
.post-content td {
    padding: 15px 20px;
    border: 1px solid var(--border-color);
}

.post-content th {
    background-color: var(--primary-red);
    color: var(--white);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.post-content tr:nth-child(even) {
    background-color: var(--bg-light);
}

.post-content tr:hover td {
    background-color: rgba(218, 41, 28, 0.05);
}

/* Related Posts Section */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

/* Comment/Contact Form Styles */
.form-section {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

.form-section h2 {
    margin-bottom: 10px;
    font-size: 26px;
    color: var(--dark-bg);
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    font-size: 14px;
    color: var(--dark-bg);
}

.custom-form input,
.custom-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.custom-form input:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.15);
}

.custom-form textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #b01f15;
    transform: translateY(-2px);
}

/* Responsive adjustments for inner page */
@media (max-width: 768px) {
    .single-post {
        padding: 20px;
    }
    .post-title {
        font-size: 28px;
    }
    .form-section {
        padding: 25px 20px;
    }
    .form-row {
        grid-template-columns: 1fr !important;
    }
    .table-of-contents {
        padding: 20px;
    }
}