/* The Olive Guide - Premium Olive Oil Blog */
/* Color Palette: Deep Olive #3D4F2F, Olive #556B2F, Gold #C5A55A, Cream #FAF8F0, Dark #1A1A1A */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --olive-deep: #3D4F2F;
    --olive: #556B2F;
    --olive-light: #7A8B5A;
    --gold: #C5A55A;
    --gold-light: #D4B96A;
    --cream: #FAF8F0;
    --cream-dark: #F0EDE0;
    --dark: #1A1A1A;
    --gray: #6B6B6B;
    --gray-light: #A0A0A0;
    --white: #FFFFFF;
    --shadow: 0 2px 20px rgba(61, 79, 47, 0.08);
    --shadow-hover: 0 8px 32px rgba(61, 79, 47, 0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)
}

@font-face {
    font-display: swap
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--dark);
    background: var(--cream);
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
    -webkit-font-smoothing: antialiased
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

a {
    color: var(--olive);
    text-decoration: none;
    transition: var(--transition)
}

a:hover {
    color: var(--gold)
}

h1,
h2,
h3,
h4 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark)
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--cream-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95)
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none
}

.logo img {
    height: 60px;
    width: auto
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--olive-deep);
    letter-spacing: -0.5px
}

.logo-text span {
    color: var(--gold);
    font-style: italic
}

/* Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 300;
    position: relative
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: var(--transition);
    transform-origin: center
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
}

.main-nav>ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center
}

.main-nav a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--dark);
    transition: var(--transition);
    letter-spacing: 0.3px
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--olive);
    color: var(--white)
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--olive-deep) 0%, var(--olive) 50%, var(--olive-light) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(197, 165, 90, 0.08);
    pointer-events: none
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    letter-spacing: -1px;
    position: relative
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative
}

.hero-accent {
    color: var(--gold-light)
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

/* Section */
.section {
    padding: 60px 0
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--olive), var(--gold));
    border-radius: 2px
}

/* Post Cards Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(61, 79, 47, 0.06)
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover)
}

.post-card-img {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10
}

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)
}

.post-card:hover .post-card-img img {
    transform: scale(1.05)
}

.post-card-body {
    padding: 24px
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 12px
}

.post-card-meta .author {
    color: var(--olive);
    font-weight: 600
}

.post-card-meta .divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gray-light)
}

.post-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4
}

.post-card h3 a {
    color: var(--dark)
}

.post-card h3 a:hover {
    color: var(--olive)
}

.post-card p {
    color: var(--gray);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase
}

.read-more:hover {
    color: var(--olive);
    gap: 10px
}

.read-more::after {
    content: '→';
    transition: var(--transition)
}

/* Article Page */
.article-header {
    background: linear-gradient(135deg, var(--olive-deep), var(--olive));
    color: var(--white);
    padding: 60px 20px 40px;
    text-align: center
}

.article-header h1 {
    font-size: 2.4rem;
    max-width: 800px;
    margin: 0 auto 16px;
    letter-spacing: -0.5px;
    color: var(--white)
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.9rem;
    opacity: 0.85;
    flex-wrap: wrap
}

.article-meta .author {
    font-weight: 600;
    color: var(--gold-light)
}

.article-hero-img {
    max-width: 900px;
    margin: -30px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2
}

.article-hero-img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    width: 100%
}

.article-content {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 40px 0 16px;
    color: var(--olive-deep);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cream-dark)
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 12px;
    color: var(--olive)
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #333
}

.article-content ul,
.article-content ol {
    margin: 16px 0 24px 24px;
    color: #333
}

.article-content li {
    margin-bottom: 8px;
    font-size: 1.02rem
}

.article-content strong {
    color: var(--olive-deep)
}

.article-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--cream-dark);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray)
}

/* Visible article/page links */
.article-content a,
.page-content a {
    color: #2D5016;
    text-decoration: underline;
    text-decoration-color: rgba(45, 80, 22, 0.3);
    text-underline-offset: 2px;
    font-weight: 600;
    transition: var(--transition)
}

/* Inline article media */
.article-inline-img,
.article-inline-video {
    margin: 32px 0;
    text-align: center
}

.article-inline-img img {
    width: 100%;
    max-width: 760px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
    margin: 0 auto
}

.article-inline-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.article-inline-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius)
}

.article-inline-img figcaption,
.article-inline-video figcaption {
    font-size: 0.82rem;
    color: var(--gray-light);
    margin-top: 10px;
    font-style: italic;
    line-height: 1.5
}

.article-content a:hover,
.page-content a:hover {
    color: var(--gold);
    text-decoration-color: var(--gold)
}

.article-content a[target="_blank"]::after {
    content: ' ↗';
    font-size: 0.75em;
    vertical-align: super;
    text-decoration: none
}

/* Related Articles */
.related-articles {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px
}

.related-articles h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--olive-deep);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cream-dark)
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.related-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(61, 79, 47, 0.06);
    text-decoration: none
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover)
}

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover
}

.related-card-body {
    padding: 12px
}

.related-card-body h4 {
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 4px
}

.related-card-body span {
    font-size: 0.72rem;
    color: var(--gray)
}

@media(max-width:768px) {
    .related-grid {
        grid-template-columns: 1fr
    }
}

/* Sidebar Author Box */
.author-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(61, 79, 47, 0.06);
    margin: 40px auto;
    max-width: 760px
}

.author-box h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--olive-deep)
}

.author-box p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7
}

/* Static Pages */
.page-header {
    background: linear-gradient(135deg, var(--olive-deep), var(--olive));
    color: var(--white);
    padding: 60px 20px;
    text-align: center
}

.page-header h1 {
    font-size: 2.2rem
}

.page-content {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px
}

.page-content h2 {
    font-size: 1.4rem;
    margin: 30px 0 12px;
    color: var(--olive-deep)
}

.page-content p {
    margin-bottom: 16px;
    font-size: 1.02rem;
    color: #333
}

.page-content ul {
    margin: 12px 0 20px 24px
}

.page-content li {
    margin-bottom: 6px
}

/* Contact Form */
.contact-form {
    max-width: 560px;
    margin: 0 auto
}

.form-group {
    margin-bottom: 20px
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--olive-deep);
    margin-bottom: 6px
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
    color: var(--dark)
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.1)
}

.form-group textarea {
    min-height: 140px;
    resize: vertical
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--olive), var(--olive-deep));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--olive-deep), var(--olive))
}

/* Footer */
.site-footer {
    background: var(--olive-deep);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 20px 30px
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 12px
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.75;
    max-width: 300px
}

.footer-links h4 {
    font-size: 0.95rem;
    color: var(--gold-light);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600
}

.footer-links ul {
    list-style: none
}

.footer-links li {
    margin-bottom: 8px
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem
}

.footer-links a:hover {
    color: var(--gold-light)
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    opacity: 0.6
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--olive);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 99
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible
}

.back-to-top:hover {
    background: var(--gold);
    transform: translateY(-2px)
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap
}

.pagination button {
    padding: 10px 16px;
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    background: var(--white);
    color: var(--dark);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition)
}

.pagination button:hover {
    background: var(--olive);
    color: var(--white);
    border-color: var(--olive)
}

.pagination button.active {
    background: var(--olive);
    color: var(--white);
    border-color: var(--olive)
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed
}

/* Breadcrumb */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75)
}

.breadcrumb a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 2px
}

.breadcrumb a:hover {
    color: var(--white)
}

.breadcrumb span {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.5)
}

/* Responsive */
@media(max-width:768px) {
    .header-inner {
        padding: 12px 16px
    }

    .logo img {
        height: 36px
    }

    .logo-text {
        font-size: 1.15rem
    }

    .nav-toggle {
        display: block
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        overflow-y: auto;
        background: var(--white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        z-index: 200;
        padding: 70px 24px 24px;
        transform: translateX(100%);
        visibility: hidden
    }

    .main-nav.open {
        transform: translateX(0);
        visibility: visible
    }

    .main-nav>ul {
        flex-direction: column;
        gap: 4px
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 199
    }

    .nav-overlay.open {
        display: block
    }

    .hero {
        padding: 50px 16px
    }

    .hero h1 {
        font-size: 1.9rem
    }

    .hero p {
        font-size: 1rem
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .section {
        padding: 40px 0
    }

    .section-title {
        font-size: 1.6rem
    }

    .article-header h1 {
        font-size: 1.7rem
    }

    .article-content h2 {
        font-size: 1.3rem
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center
    }

    .footer-brand p {
        max-width: 100%;
        margin: 0 auto
    }
}

@media(max-width:480px) {
    .hero h1 {
        font-size: 1.6rem
    }

    .post-card-body {
        padding: 18px
    }

    .article-header {
        padding: 40px 16px 30px
    }
}

/* Pillar Navigation Dropdown */
.nav-dropdown {
    position: relative
}

.nav-dropdown>a {
    cursor: pointer
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    min-width: 280px;
    padding: 8px 0;
    z-index: 200;
    list-style: none
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block
}

.nav-dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--dark);
    border-radius: 0;
    white-space: nowrap
}

.nav-dropdown-menu li a:hover {
    background: var(--cream-dark);
    color: var(--olive-deep)
}

/* Pillar Spoke Grid */
.spoke-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px
}

.spoke-section h2 {
    font-size: 1.5rem;
    text-align: center;
    color: var(--olive-deep);
    margin-bottom: 8px
}

.spoke-section p.spoke-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 24px
}

.spoke-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.spoke-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(61, 79, 47, 0.06);
    text-decoration: none
}

.spoke-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover)
}

.spoke-card img {
    width: 100%;
    height: 100px;
    object-fit: cover
}

.spoke-card-body {
    padding: 10px 12px
}

.spoke-card-body h4 {
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--dark);
    margin: 0
}

.spoke-card-body span {
    font-size: 0.7rem;
    color: var(--gray-light);
    display: block;
    margin-top: 4px
}

/* Pillar badge */
.pillar-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--olive) 0%, var(--olive-deep) 100%);
    color: var(--white);
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px
}

/* Pillar interlinking box */
.pillar-links {
    max-width: 760px;
    margin: 30px auto;
    padding: 24px;
    background: var(--cream-dark);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0
}

.pillar-links h3 {
    font-size: 1.1rem;
    color: var(--olive-deep);
    margin-bottom: 12px
}

.pillar-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px
}

.pillar-links ul li a {
    font-size: 0.9rem;
    color: #2D5016;
    text-decoration: underline;
    text-decoration-color: rgba(45, 80, 22, 0.3);
    font-weight: 600
}

.pillar-links ul li a:hover {
    color: var(--gold)
}

@media (max-width: 768px) {
    .spoke-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .pillar-links ul {
        grid-template-columns: 1fr
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        min-width: auto;
        padding: 0 0 0 16px;
        display: none
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none
    }

    .nav-dropdown .nav-dropdown-menu.open {
        display: block !important
    }
}

@media (max-width: 480px) {
    .spoke-grid {
        grid-template-columns: 1fr 1fr
    }
}

/* Print */
@media print {

    .site-header,
    .site-footer,
    .back-to-top,
    .nav-toggle {
        display: none
    }

    body {
        background: #fff
    }
}