/* Base Variables & Reset */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
    --accent-color: #A88B69; /* Bronze/Brown from references */
    --accent-hover: #8f7454;
    --footer-bg: #111111;
    --footer-text: #cccccc;
    --border-color: #e5e5e5;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --text-light: #aaaaaa;
    --border-color: #333333;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.logo {
    text-align: center;
    flex-grow: 1;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    display: block;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.icon-btn:hover {
    opacity: 1;
}

/* Invert icons in dark mode */
body.dark-mode .icon-btn img {
    filter: invert(1);
}

.main-nav {
    border-top: 1px solid var(--border-color);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

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

/* Featured Article */
.featured-article {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.featured-image {
    flex: 1;
}

.featured-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.featured-content {
    flex: 1;
}

.meta-tags {
    margin-bottom: 15px;
}

.tag {
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 10px;
    letter-spacing: 0.5px;
}

.featured-content h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.meta-info {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    gap: 15px;
}

/* Layout: Content & Sidebar */
.content-sidebar-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    margin-bottom: 60px;
}

/* Standard Article Item */
.post-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.post-img {
    flex: 0 0 45%;
}

.post-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.post-text h2 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-text .excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 15px;
}

/* Sidebar */
.widget-title {
    font-size: 18px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.search-form {
    display: flex;
}

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

.search-form button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.search-form button:hover {
    background-color: var(--accent-hover);
}

/* Missed Section */
.missed-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 18px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

.missed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.missed-item {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 16/9;
}

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

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

.missed-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.missed-overlay .tag {
    color: #fff;
    font-size: 11px;
}

.missed-overlay h4 {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.3;
}

/* Pre-Footer Welcome Box */
.pre-footer {
    margin-bottom: 60px;
}

.welcome-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(168, 139, 105, 0.05);
}

.welcome-box h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

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

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-col.disclaimer p {
    font-size: 14px;
    line-height: 1.8;
    color: #999;
}

.footer-col.service-links h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

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

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

.footer-col.service-links a {
    color: #999;
    transition: color 0.3s;
}

.footer-col.service-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 13px;
    color: #666;
}

/* Cookie Modal (Right side) */
.cookie-modal {
    position: fixed;
    bottom: 30px;
    right: -400px; /* Hidden initially */
    width: 350px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-modal.show {
    right: 30px;
}

body.dark-mode .cookie-modal {
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cookie-content {
    padding: 25px;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.cookie-icon {
    width: 24px;
    height: 24px;
}

.cookie-content h3 {
    font-size: 18px;
}

.cookie-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

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

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-color);
}

.btn-primary:hover, .btn-secondary:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-sidebar-wrapper {
        grid-template-columns: 1fr;
    }
    
    .featured-article {
        flex-direction: column;
    }
    
    .missed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    .cookie-modal {
        width: calc(100% - 40px);
        right: -100%;
    }
    
    .cookie-modal.show {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .missed-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
}
/* Inner page styles */
/* =========================================
   NEW STYLES FOR INTERNAL ARTICLE PAGE
   ========================================= */

/* Single Article Container */
.single-article {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-title {
    font-size: 42px;
    line-height: 1.2;
    margin: 15px 0;
    color: var(--text-color);
}

.article-header .meta-info {
    justify-content: center;
    font-size: 15px;
}

/* Images */
.article-hero {
    margin-bottom: 40px;
}

.article-hero-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-inline-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Table of Contents */
.table-of-contents {
    background-color: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    padding: 25px 30px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

body.dark-mode .table-of-contents {
    background-color: #222222;
}

.toc-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

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

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

.toc-list a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Text Tags Styles (h1-h6, p, span) */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content .lead {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    color: var(--text-color);
    margin-top: 45px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 24px;
}

.article-content h4 {
    font-size: 20px;
}

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

.article-content span {
    background-color: rgba(168, 139, 105, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-color);
    font-weight: 600;
}

/* Lists (ul, ol) */
.article-content ul, 
.article-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.article-content ul li, 
.article-content ol li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.article-content ul li::marker {
    color: var(--accent-color);
}

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

.article-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}

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

.article-table th {
    background-color: #f1f1f1;
    font-weight: bold;
    color: var(--text-color);
}

body.dark-mode .article-table th {
    background-color: #333;
}

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

body.dark-mode .article-table tr:nth-child(even) {
    background-color: rgba(255,255,255,0.02);
}

/* Interlinking Section */
.related-articles-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.related-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.related-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

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

.related-info {
    padding: 15px;
}

.related-info h4 {
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.4;
    color: var(--text-color);
}

/* Forms Generic (Contact & Comments) */
.contact-section, 
.comments-section {
    margin-top: 60px;
    padding: 40px;
    background-color: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

body.dark-mode .contact-section,
body.dark-mode .comments-section {
    background-color: #1e1e1e;
}

.contact-desc {
    margin-bottom: 25px;
    color: var(--text-light);
}

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

.contact-form input, 
.contact-form textarea,
.comment-form input, 
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus,
.comment-form input:focus, 
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(168, 139, 105, 0.1);
}

.contact-form textarea,
.comment-form textarea {
    margin-bottom: 20px;
    resize: vertical;
}

.contact-form > input {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
}

/* Responsive Adjustments for Internal Page */
@media (max-width: 768px) {
    .article-title {
        font-size: 32px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-section, 
    .comments-section {
        padding: 25px 20px;
    }
}