:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
    --accent-color: #b08d6a;
    --accent-hover: #967656;
    --footer-bg: #111111;
    --footer-text: #a0a0a0;
    --border-color: #eaeaea;
    --font-heading: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 15px;
}

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

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

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

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

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

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

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

.logo-img {
    height: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

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

.header-icons button {
    background: none;
    border: none;
    cursor: pointer;
}

.icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.header-icons button:hover .icon {
    opacity: 1;
}

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

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

.main-nav a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Layout */
.layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Post Cards */
.post-card {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.post-image {
    flex: 1;
    min-width: 300px;
}

.post-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-info {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category {
    color: var(--accent-color);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.post-info h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 15px;
}

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

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-small {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

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

.search-form {
    display: flex;
    height: 45px;
}

.search-form input {
    flex: 1;
    border: 1px solid var(--border-color);
    padding: 0 15px;
    font-family: var(--font-body);
    outline: none;
}

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

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

/* Missed Posts Grid */
.section-title {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

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

.grid-item {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: block;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.grid-cat {
    font-size: 11px;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.grid-overlay h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 1.4;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 25px;
}

.welcome-content p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

.welcome-content strong {
    color: var(--text-color);
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 50px;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

.footer-left {
    flex: 2;
}

.disclaimer-text {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text-footer {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #fff;
}

.footer-right {
    flex: 1;
}

.footer-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

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

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

.footer-links a {
    font-size: 14px;
    color: var(--accent-color);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
}

/* Back to top */
#back-to-top {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0;
    visibility: hidden;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--accent-hover);
}

#back-to-top img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    bottom: 20px;
    right: -400px;
    width: 350px;
    background-color: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    border-left: 4px solid var(--accent-color);
    padding: 25px;
    z-index: 9999;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

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

.btn-accept {
    width: 100%;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

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

/* Responsive */
@media (max-width: 992px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .post-card {
        flex-direction: column;
    }
    .post-image img {
        height: auto;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .cookie-modal {
        width: calc(100% - 40px);
    }
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
}
/* Inner page styles */

/* Single Article Header */
.single-article {
    margin-bottom: 50px;
}

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

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

.article-main-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Table of Contents (TOC) */
.toc {
    background-color: #fcfbf9;
    border-left: 4px solid var(--accent-color);
    padding: 25px 30px;
    margin-bottom: 40px;
    border-radius: 0 6px 6px 0;
}

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

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

.toc li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.toc li::before {
    content: '\2022';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.toc a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid transparent;
}

.toc a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Article Content Typography & Elements */
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin: 40px 0 20px;
    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: 26px; }
.article-content h4 { font-size: 22px; }
.article-content h5 { font-size: 18px; }
.article-content h6 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); }

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content span {
    font-weight: 700;
    color: var(--accent-color);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Article Lists */
.article-content ul,
.article-content ol {
    margin: 0 0 25px 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.article-content ul {
    list-style-type: square;
    color: var(--accent-color);
}

.article-content ul li span {
    color: var(--text-color);
    font-weight: normal;
}

.article-content ol {
    list-style-type: decimal;
    font-weight: 700;
    color: var(--text-color);
}

.article-content ol li span {
    font-weight: normal;
}

/* Article Table */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
    font-size: 15px;
}

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

.article-content th {
    background-color: #fcfbf9;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.article-content tr:nth-child(even) {
    background-color: #fafafa;
}

.article-content tr:hover {
    background-color: #f5f5f5;
}

/* Forms (Comments & Contact) */
.form-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 25px;
}

.custom-form {
    display: grid;
    gap: 20px;
}

.custom-form.grid-form {
    grid-template-columns: 1fr 1fr;
}

.custom-form.sidebar-form {
    grid-template-columns: 1fr;
}

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

.full-width {
    grid-column: 1 / -1;
}

.custom-form input,
.custom-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    background-color: #fdfdfd;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    border-radius: 4px;
}

.custom-form input:focus,
.custom-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(176, 141, 106, 0.2);
}

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

.custom-form button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    align-self: start;
}

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

.widget.contact-widget {
    margin-top: 40px;
}

/* Interlinking Block */
.interlinking-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.interlinking-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 30px;
    display: inline-block;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}

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

.related-card a {
    display: block;
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: opacity 0.3s;
}

.related-card:hover img {
    opacity: 0.85;
}

.related-card h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.4;
    color: var(--text-color);
    transition: color 0.3s;
}

.related-card:hover h4 {
    color: var(--accent-color);
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 28px;
    }
    .custom-form.grid-form {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
