:root {
    --bg-color: #f6f5f1;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --accent-color: #000;
    --white: #fff;
    --border-color: #e0ded8;
    --font-sans: 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Georgia', Times, serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 400;
    line-height: 1.2;
}

.category-tag, .category {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

/* Header */
.site-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem 0;
    text-align: center;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

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

.ui-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    padding-bottom: 1rem;
}

.main-nav a {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #888;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
}

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

.hero-text-box {
    position: absolute;
    bottom: -30px;
    left: 5%;
    background: var(--bg-color);
    padding: 2rem;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-text-box h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.hero-text-box .subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 5px;
    margin: 4rem 0 2rem;
    text-transform: uppercase;
    font-weight: 300;
}

/* Trending Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card .img-container {
    overflow: hidden;
    margin-bottom: 1rem;
}

.article-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.author {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

/* The Latest Section */
.latest-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.main-latest img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 1rem;
}

.main-latest h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.side-latest {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.side-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.side-card img {
    aspect-ratio: 1/1;
    object-fit: cover;
}

.side-card h4 {
    font-size: 1.1rem;
}

/* Pre-footer */
.pre-footer {
    background-color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.pre-footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.pre-footer h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
}

.pre-footer p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons img {
    width: 20px;
    height: 20px;
    filter: invert(1);
    cursor: pointer;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-column a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
    transition: color 0.3s;
}

.link-column a:hover {
    color: var(--white);
}

.footer-newsletter h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
    border-bottom: 1px solid var(--white);
    padding-bottom: 0.5rem;
}

.newsletter-form input {
    background: none;
    border: none;
    color: var(--white);
    flex-grow: 1;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #888;
}

.newsletter-form button {
    background: none;
    border: none;
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
}

/* Disclaimer inside footer */
.footer-disclaimer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    font-size: 0.8rem;
    color: #999;
    text-align: justify;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: #666;
}

/* Cookie Modal - Right Side */
.cookie-modal {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-modal.show {
    transform: translateX(0);
}

.cookie-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

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

.cookie-buttons button {
    flex: 1;
    padding: 0.6rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-accept {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-decline {
    background-color: #eee;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .latest-layout {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    .logo {
        position: static;
        transform: none;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        margin-bottom: 0;
        padding-bottom: 1rem;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        padding-top: 1rem;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .hero-text-box {
        position: relative;
        bottom: 0;
        left: 0;
        max-width: 100%;
        box-shadow: none;
        padding: 2rem 0 0;
    }
    .hero {
        flex-direction: column;
    }
    .side-card {
        grid-template-columns: 1fr;
    }
    .cookie-modal {
        right: 15px;
        bottom: 15px;
        width: calc(100% - 30px);
    }
}
/* Inner page styles */
/* ----------------------------------------
   NEW STYLES FOR INTERNAL ARTICLE PAGE 
---------------------------------------- */

.article-main {
    padding-top: 4rem;
}

.single-article {
    max-width: 900px;
    margin: 0 auto;
}

/* Article Header Typography */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-header .category-tag {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.article-meta .author {
    font-weight: 600;
    color: var(--accent-color);
    margin-right: 15px;
}

/* Responsive Images */
.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.article-featured-image {
    margin-bottom: 4rem;
}

.in-article-image {
    margin: 3rem 0;
}

.in-article-image figcaption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Article Content Styling */
.article-content {
    max-width: 760px;
    margin: 0 auto;
}

.article-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

.text-highlight {
    font-weight: bold;
    color: var(--accent-color);
    background-color: rgba(224, 222, 216, 0.3);
    padding: 0 4px;
}

/* Heading Tags h1-h6 inside content */
.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

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

.article-content h3 {
    font-size: 1.8rem;
}

.article-content h4 {
    font-size: 1.5rem;
}

.article-content h5 {
    font-size: 1.3rem;
}

.article-content h6 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-sans);
}

/* Table of Contents */
.table-of-contents {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 3rem;
    border-left: 4px solid var(--accent-color);
}

.table-of-contents h4 {
    margin-top: 0;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

.table-of-contents li {
    margin-bottom: 0.8rem;
}

.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Lists Styling */
.custom-ul, .custom-ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.custom-ul li, .custom-ol li {
    margin-bottom: 1rem;
}

.custom-ul {
    list-style-type: square;
}

.custom-ul li::marker {
    color: var(--text-secondary);
}

/* Table Styling */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    font-size: 1.05rem;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.custom-table th, 
.custom-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.custom-table th {
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.custom-table tr:hover td {
    background-color: #faf9f6;
}

/* Forms Section (Comments & Contact) */
.interaction-section {
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    padding-top: 4rem;
}

.forms-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}

.interaction-section h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.custom-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.custom-form input, 
.custom-form select, 
.custom-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.custom-form input:focus, 
.custom-form select:focus, 
.custom-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.custom-form textarea {
    resize: vertical;
}

.btn-submit {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #333;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.related-articles {
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive adjustments for internal page */
@media (max-width: 992px) {
    .forms-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .article-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .custom-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .table-of-contents {
        padding: 1.5rem;
    }
    
    .custom-table th, .custom-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}