@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #b08d57;
    --text-main: #333333;
    --text-light: #777777;
    --bg-main: #ffffff;
    --bg-alt: #f9f9f9;
    --border-color: #eaeaea;
    --footer-bg: #111111;
    --footer-text: #999999;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

body.dark-mode {
    --primary-color: #cda871;
    --text-main: #f0f0f0;
    --text-light: #aaaaaa;
    --bg-main: #1a1a1a;
    --bg-alt: #2a2a2a;
    --border-color: #333333;
}

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

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

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

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-main);
}

.header-top {
    padding: 20px 0;
}

.header-top .spacer, .header-top .header-icons {
    flex: 1;
}

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

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

.logo {
    max-height: 60px;
    width: auto;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn img {
    width: 20px;
    height: 20px;
    filter: invert(0);
    transition: var(--transition);
}

body.dark-mode .icon-btn img {
    filter: invert(1);
}

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

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

.nav-list a {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-list a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero */
.hero {
    margin: 40px auto;
}

.hero-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    touch-action: pan-y;
}

.hero-slider:active {
    cursor: grabbing;
}

.hero-slides-container {
    display: flex;
    width: 100%;
    will-change: transform;
}

.hero-slide {
    display: flex;
    flex: 1 0 100%;
    gap: 40px;
    align-items: center;
    user-select: none;
}

.hero-image-wrapper {
    flex: 1.2;
}

.hero-image {
    width: 100%;
    border-radius: 4px;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    pointer-events: none;
}

.hero-text {
    flex: 1;
}

.meta {
    margin-bottom: 15px;
}

.category {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 10px;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

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

body.dark-mode .small-icon {
    filter: invert(1);
}

/* Missed Grid */
.missed {
    margin: 60px auto;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

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

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

.card-cat {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 5px;
    display: block;
}

.card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Welcome Text */
.welcome {
    margin: 60px auto;
    max-width: 1000px;
}

.welcome h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

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

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

/* Recommendation */
.recommendation {
    margin: 60px auto;
}

.rec-box {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.rec-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rec-logos {
    margin-bottom: 20px;
}

.rec-logos img {
    max-height: 50px;
}

.rec-text {
    color: var(--text-light);
    font-size: 14px;
    max-width: 800px;
    margin: 0 auto;
}

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

.footer-top {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    max-height: 80px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.disclaimer {
    max-width: 800px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 13px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--footer-text);
}

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

/* Cookie Modal (Right Side) */
.cookie-modal {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(120%);
    width: 320px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
}

.cookie-modal.show {
    transform: translateY(-50%) translateX(0);
    visibility: visible;
}

.cookie-content {
    padding: 25px;
}

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

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

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

.btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.btn-primary {
    background-color: #1a73e8;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1557b0;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--bg-alt);
}

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

#back-to-top img {
    width: 20px;
    filter: invert(1);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-slide {
        flex-direction: column;
    }
    
    .flex-between {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .header-top .flex-between {
        flex-direction: row;
    }
}

@media (max-width: 600px) {
    .cookie-modal {
        right: 10px;
        left: 10px;
        width: auto;
        top: auto;
        bottom: 10px;
        transform: translateY(120%);
    }
    .cookie-modal.show {
        transform: translateY(0);
    }
}

/* Inner page styles */
/* ---------------------------------------------------
   INNER PAGE STYLES (Appended to existing style.css)
   --------------------------------------------------- */

/* Article Header Layout */
.single-article {
    margin-top: 40px;
}

.article-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

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

.article-header .post-info {
    justify-content: center;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Article Images Styling */
.article-hero-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.inline-img {
    margin: 30px 0 10px;
}

.img-caption {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
}

/* Article Body Layout */
.article-body {
    max-width: 800px;
    margin: 0 auto;
}

/* Table of Contents (TOC) */
.toc {
    background-color: var(--bg-alt);
    border-left: 4px solid var(--primary-color);
    padding: 25px 30px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

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

.toc-header h4 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

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

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

.toc-list li:last-child {
    margin-bottom: 0;
}

.toc-list a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.toc-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Typography & Tags within Article Content */
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 {
    margin: 40px 0 20px;
    color: var(--text-main);
    line-height: 1.3;
}

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

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

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

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-main);
}

.article-content span {
    background-color: rgba(176, 141, 87, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Lists within Article */
.article-content ul, 
.article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.article-content ul {
    list-style-type: none;
}

.article-content ul li::before {
    content: "\2022";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.article-content ol {
    list-style-type: decimal;
    padding-left: 25px;
}

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

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background-color: var(--bg-main);
}

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

.article-content th {
    background-color: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.article-content tbody tr:nth-of-type(even) {
    background-color: var(--bg-alt);
}

.article-content tbody tr:hover {
    background-color: rgba(176, 141, 87, 0.05);
}

/* Forms Section (Contact & Comments) */
.forms-container {
    max-width: 900px;
    margin: 60px auto;
}

.forms-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

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

.section-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.medium-icon {
    width: 28px;
    height: 28px;
}

body.dark-mode .medium-icon,
body.dark-mode .small-icon {
    filter: invert(1);
}

.form-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.styled-form {
    background-color: var(--bg-alt);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--primary-color);
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    cursor: pointer;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.btn-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

/* Responsive Design for Inner Page */
@media (max-width: 768px) {
    .article-title {
        font-size: 2.2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .toc {
        padding: 20px;
    }
}
.article-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 14px;
    object-fit: contain;
}

.article-content figure {
    width: 100%;
    max-width: 100%;
    margin: 32px 0;
}

.article-content figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.article-content figcaption,
.article-content .img-caption {
    display: block;
    margin: -14px auto 28px;
    font-size: 14px;
    line-height: 1.5;
    color: #777;
    text-align: center;
}

.article-content .responsive-img,
.article-content .inline-img,
.article-content .wp-post-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.article-content p img {
    margin-top: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .article-content img {
        margin-top: 22px;
        margin-bottom: 22px;
        border-radius: 10px;
    }

    .article-content figcaption,
    .article-content .img-caption {
        margin-bottom: 22px;
        font-size: 13px;
    }
}