@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

/* ── RESET ───────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Lora', serif;
}

/* ── BASE ────────────────────────────────────────────────────── */
html {
    font-size: 62.5%;
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: #6c99c3;
    color: white;
}

/* ── HEADER ──────────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    margin-top: 20px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    z-index: 100;
}

.logo {
    max-width: 150px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.1);
}

nav {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
}

nav a {
    font-size: 1.5rem;
    color: white;
    margin-left: 2rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

.search-icon {
    color: white;
    font-size: 1.8rem;
    margin-left: 2rem;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: #b74b4b;
}

/* ── HAMBURGER BUTTON ────────────────────────────────────────── */
.menu-btn {
    display: none;
    background: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: white;
}

/* ── HERO ────────────────────────────────────────────────────── */
.home_content {
    position: relative;
    display: block;
    width: 100%;
}

.home_content img {
    display: block;
    width: 100%;
    height: auto;
}

.home_content .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    font-size: clamp(1.4rem, 3vw, 4rem);
    white-space: nowrap;
}

.title-main {
    font-family: Lora;
    font-style: italic;
}

.overlay-text h1 {
    font-size: clamp(2rem, 6vw, 8rem);
    margin-bottom: 0.4em;
}

.overlay-text .slogan {
    font-size: clamp(1rem, 2vw, 2.4rem);
    font-weight: 400;
    font-style: italic;
}

.overlay-text p {
    font-size: clamp(0.9rem, 1.5vw, 1.8rem);
    margin-top: 0.4em;
}

/* ── RECENT POSTS ────────────────────────────────────────────── */
.recent-posts-section {
    padding: 60px 40px;
    margin: 0 auto;
}

.recent-posts-section h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    color: white;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(5, 220px);
    gap: 24px;
    justify-content: center;
}

.post {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.post-content {
    padding: 16px;
    flex: 1;
}

.post-content h3 {
    margin-bottom: 8px;
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    color: #222;
}

.post-content p {
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    color: #666;
    line-height: 1.5;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
    background: #16344c;
    width: 100%;
    padding: 32px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 1.4rem;
}

.footer-policies {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-policies a {
    color: #ccc;
    font-size: 1.3rem;
    transition: color 0.2s;
}

.footer-policies a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    color: #aaa;
    font-size: 1.3rem;
}

.footer-bottom .social-icons {
    display: flex;
    gap: 14px;
}

.footer-bottom .social-icons a {
    color: #ccc;
    font-size: 1.8rem;
    transition: color 0.2s, transform 0.2s;
}

.footer-bottom .social-icons a:hover {
    color: white;
    transform: scale(1.15);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 220px);
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #333;
        padding: 20px;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 10px 0;
        margin-left: 0;
    }

    .posts-grid {
        grid-template-columns: repeat(3, 220px);
    }
}

@media (max-width: 800px) {
    .posts-grid {
        grid-template-columns: 220px;
    }

    .home_content .overlay-text {
        white-space: normal;
        width: 90%;
        text-align: center;
    }
}

@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

/* ── RESET ───────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Lora', serif;
}

/* ── BASE ────────────────────────────────────────────────────── */
html {
    font-size: 62.5%;
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: cadetblue;
    color: white;
}

/* ── HEADER ──────────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    margin-top: 20px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    max-width: 30%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

/* ── HAMBURGER BUTTON ────────────────────────────────────────── */
.menu-btn {
    display: none;
    background: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: white;
}

/* ── HERO ────────────────────────────────────────────────────── */
.home_content {
    position: relative;
    display: block;
    width: 100%;
}

.home_content img {
    display: block;
    width: 100%;
    height: auto;
}

.home_content .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    font-size: clamp(1.4rem, 3vw, 4rem);
    white-space: nowrap;
}

.title-main {
    font-family: Lora;
    font-style: italic;
}

.overlay-text h1 {
    font-size: clamp(2rem, 5vw, 6rem);
    margin-bottom: 0.4em;
}

.overlay-text .slogan {
    font-size: clamp(1rem, 2vw, 2.4rem);
    font-weight: 400;
    font-style: italic;
}

.overlay-text p {
    font-size: clamp(0.9rem, 1.5vw, 1.8rem);
    margin-top: 0.4em;
}

/* ── RECENT POSTS ────────────────────────────────────────────── */
.recent-posts-section {
    padding: 60px 40px;
    margin: 0 auto;
}

.recent-posts-section h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    color: white;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(5, 220px);
    gap: 24px;
    justify-content: center;
}

.post {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.post-content {
    padding: 16px;
    flex: 1;
}

.post-content h3 {
    margin-bottom: 8px;
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    color: #222;
}

.post-content p {
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    color: #666;
    line-height: 1.5;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
    background: #1a1a2e;
    width: 100%;
    padding: 32px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 1.4rem;
}

.footer-policies {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-policies a {
    color: #ccc;
    font-size: 1.3rem;
    transition: color 0.2s;
}

.footer-policies a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    color: #aaa;
    font-size: 1.3rem;
}

.footer-bottom .social-icons {
    display: flex;
    gap: 14px;
}

.footer-bottom .social-icons a {
    color: #ccc;
    font-size: 1.8rem;
    transition: color 0.2s, transform 0.2s;
}

.footer-bottom .social-icons a:hover {
    color: white;
    transform: scale(1.15);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 220px);
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #333;
        padding: 20px;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 10px 0;
        margin-left: 0;
    }

    .posts-grid {
        grid-template-columns: repeat(3, 220px);
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 220px;
    }

    .home_content .overlay-text {
        white-space: normal;
        width: 90%;
        text-align: center;
    }
}

/* ── POST PAGE ───────────────────────────────────────────────── */

/* Give header a solid background on the post page */
.post-page header {
    background-color: #2e6b6b;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Push content below the fixed header */
.post-page body {
    padding-top: 80px;
}

.post-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px; /* main content | right sidebar */
    gap: 40px;
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 40px;
    align-items: start;
}

/* ── MAIN POST CONTENT ───────────────────────────────────────── */
.post-main {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    color: #333;
}

.post-main .post-hero-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.post-main-body {
    padding: 40px 48px;
}

.post-main-body .post-category {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b74b4b;
    margin-bottom: 12px;
}

.post-main-body h1 {
    font-size: clamp(2.4rem, 3vw, 4rem);
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.post-body {
    font-size: 1.7rem;
    line-height: 1.85;
    color: #444;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin: 36px 0 16px;
}

/* ── RIGHT SIDEBAR ───────────────────────────────────────────── */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-card {
    background-color: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    color: #333;
}

.sidebar-card h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #b74b4b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Similar posts list */
.similar-post {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.similar-post:last-child {
    margin-bottom: 0;
}

.similar-post img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.similar-post-info h4 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.4;
}

.similar-post-info span {
    font-size: 1.1rem;
    color: #999;
}

.similar-post-info h4 a {
    color: #222;
    transition: color 0.2s;
}

.similar-post-info h4 a:hover {
    color: #b74b4b;
}

/* About the author */
.author-card {
    text-align: center;
}

.author-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    border: 3px solid #b74b4b;
}

.author-card .author-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.author-card .author-bio {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.6;
}

/* ── POST PAGE RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
    .post-page-wrapper {
        grid-template-columns: 1fr;
        margin-top: 80px;
        padding: 0 20px;
    }

    .post-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 240px;
    }
}

@media (max-width: 480px) {
    .post-main-body {
        padding: 24px 20px;
    }

    .post-sidebar {
        flex-direction: column;
    }
}

/* ── SEARCH PAGE ─────────────────────────────────────────────── */
.search-page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 140px 40px 80px;
}

.search-page-wrapper h1 {
    font-size: clamp(2.8rem, 4vw, 5rem);
    font-style: italic;
    text-align: center;
    margin-bottom: 12px;
    color: white;
}

.search-page-wrapper .search-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
    font-style: italic;
}

.search-bar-wrap {
    position: relative;
    margin-bottom: 32px;
}

.search-bar-wrap input {
    width: 100%;
    padding: 16px 56px 16px 24px;
    border-radius: 50px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: white;
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    transition: border 0.3s, background 0.3s;
}

.search-bar-wrap input::placeholder {
    color: rgba(255,255,255,0.55);
}

.search-bar-wrap input:focus {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.7);
}

.search-bar-wrap .search-submit {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.search-bar-wrap .search-submit:hover {
    opacity: 1;
}

.filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.filter-label {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.7);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.category-filters input[type="checkbox"] {
    display: none;
}

.category-filters label {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.45);
    color: rgba(255,255,255,0.85);
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    user-select: none;
}

.category-filters label:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

.category-filters input[type="checkbox"]:checked + label {
    background: #b74b4b;
    border-color: #b74b4b;
    color: white;
}

.clear-filters-btn {
    background: none;
    color: rgba(255,255,255,0.6);
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s;
}

.clear-filters-btn:hover {
    color: white;
}

.results-count {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
    font-style: italic;
}

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

.result-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    color: #333;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.result-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #ddd;
}

.result-card-body {
    padding: 18px 20px 20px;
}

.result-card-category {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b74b4b;
    margin-bottom: 6px;
}

.result-card-body h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.result-card-body p {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.55;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.65);
    font-size: 1.6rem;
    font-style: italic;
    display: none;
}

/* ── ABOUT PAGE ──────────────────────────────────────────────── */
.about-page-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 140px 40px 100px;
}

.about-heading {
    text-align: center;
    margin-bottom: 56px;
}

.about-heading h1 {
    font-size: clamp(3rem, 5vw, 6rem);
    font-style: italic;
    color: white;
    margin-bottom: 10px;
}

.about-rule {
    width: 48px;
    height: 2px;
    background: #b74b4b;
    margin: 0 auto;
}

.about-story {
    text-align: center;
    color: rgba(255,255,255,0.92);
    font-size: clamp(1.5rem, 1.8vw, 1.85rem);
    line-height: 1.95;
    font-style: italic;
}

.about-story p {
    margin-bottom: 2.4rem;
}

.about-story p:last-child {
    margin-bottom: 0;
}

.about-story > p:first-child::first-letter {
    font-size: 4.5rem;
    float: left;
    line-height: 0.75;
    margin: 6px 10px 0 0;
    color: #b74b4b;
    font-style: normal;
    font-weight: 700;
}

.about-divider {
    width: 32px;
    height: 1px;
    background: rgba(255,255,255,0.35);
    margin: 48px auto;
}

/* ── SEARCH & ABOUT RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .search-page-wrapper,
    .about-page-wrapper {
        padding: 120px 24px 70px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .about-story > p:first-child::first-letter {
        font-size: 3.5rem;
    }
}

@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

/* ── RESET ───────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Lora', serif;
}

/* ── BASE ────────────────────────────────────────────────────── */
html {
    font-size: 62.5%;
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: cadetblue;
    color: white;
}

/* ── HEADER ──────────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    margin-top: 20px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    max-width: 30%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

/* ── HAMBURGER BUTTON ────────────────────────────────────────── */
.menu-btn {
    display: none;
    background: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: white;
}

/* ── HERO ────────────────────────────────────────────────────── */
.home_content {
    position: relative;
    display: block;
    width: 100%;
}

.home_content img {
    display: block;
    width: 100%;
    height: auto;
}

.home_content .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    font-size: clamp(1.4rem, 3vw, 4rem);
    white-space: nowrap;
}

.title-main {
    font-family: Lora;
    font-style: italic;
}

.overlay-text h1 {
    font-size: clamp(2rem, 5vw, 6rem);
    margin-bottom: 0.4em;
}

.overlay-text .slogan {
    font-size: clamp(1rem, 2vw, 2.4rem);
    font-weight: 400;
    font-style: italic;
}

.overlay-text p {
    font-size: clamp(0.9rem, 1.5vw, 1.8rem);
    margin-top: 0.4em;
}

/* ── RECENT POSTS ────────────────────────────────────────────── */
.recent-posts-section {
    padding: 60px 40px;
    margin: 0 auto;
}

.recent-posts-section h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    color: white;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    text-align: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(5, 220px);
    gap: 24px;
    justify-content: center;
}

.post {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.post-content {
    padding: 16px;
    flex: 1;
}

.post-content h3 {
    margin-bottom: 8px;
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    color: #222;
}

.post-content p {
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    color: #666;
    line-height: 1.5;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
    background: #1a1a2e;
    width: 100%;
    padding: 32px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 1.4rem;
}

.footer-policies {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-policies a {
    color: #ccc;
    font-size: 1.3rem;
    transition: color 0.2s;
}

.footer-policies a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    color: #aaa;
    font-size: 1.3rem;
}

.footer-bottom .social-icons {
    display: flex;
    gap: 14px;
}

.footer-bottom .social-icons a {
    color: #ccc;
    font-size: 1.8rem;
    transition: color 0.2s, transform 0.2s;
}

.footer-bottom .social-icons a:hover {
    color: white;
    transform: scale(1.15);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 220px);
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #333;
        padding: 20px;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 10px 0;
        margin-left: 0;
    }

    .posts-grid {
        grid-template-columns: repeat(3, 220px);
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 220px;
    }

    .home_content .overlay-text {
        white-space: normal;
        width: 90%;
        text-align: center;
    }
}

/* ── POST PAGE ───────────────────────────────────────────────── */

/* Give header a solid background on the post page */
.post-page header {
    background-color: #2e6b6b;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Push content below the fixed header */
.post-page body {
    padding-top: 80px;
}

.post-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px; /* main content | right sidebar */
    gap: 40px;
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 40px;
    align-items: start;
}

/* ── MAIN POST CONTENT ───────────────────────────────────────── */
.post-main {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    color: #333;
}

.post-main .post-hero-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.post-main-body {
    padding: 40px 48px;
}

.post-main-body .post-category {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b74b4b;
    margin-bottom: 12px;
}

.post-main-body h1 {
    font-size: clamp(2.4rem, 3vw, 4rem);
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.post-body {
    font-size: 1.7rem;
    line-height: 1.85;
    color: #444;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin: 36px 0 16px;
}

/* ── RIGHT SIDEBAR ───────────────────────────────────────────── */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-card {
    background-color: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    color: #333;
}

.sidebar-card h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #b74b4b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Similar posts list */
.similar-post {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.similar-post:last-child {
    margin-bottom: 0;
}

.similar-post img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.similar-post-info h4 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.4;
}

.similar-post-info span {
    font-size: 1.1rem;
    color: #999;
}

.similar-post-info h4 a {
    color: #222;
    transition: color 0.2s;
}

.similar-post-info h4 a:hover {
    color: #b74b4b;
}

/* About the author */
.author-card {
    text-align: center;
}

.author-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    border: 3px solid #b74b4b;
}

.author-card .author-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.author-card .author-bio {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.6;
}

/* ── POST PAGE RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
    .post-page-wrapper {
        grid-template-columns: 1fr;
        margin-top: 80px;
        padding: 0 20px;
    }

    .post-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 240px;
    }
}

@media (max-width: 480px) {
    .post-main-body {
        padding: 24px 20px;
    }

    .post-sidebar {
        flex-direction: column;
    }
}

/* ── SEARCH PAGE ─────────────────────────────────────────────── */
.search-page header {
    background-color: #2e6b6b;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.search-hero {
    padding: 140px 40px 40px;
    text-align: center;
}

.search-hero h1 {
    font-size: clamp(2.4rem, 4vw, 5rem);
    margin-bottom: 24px;
    font-style: italic;
}

.search-bar-wrapper {
    display: flex;
    max-width: 600px;
    margin: 0 auto 40px;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.search-bar-wrapper input {
    flex: 1;
    padding: 14px 24px;
    font-size: 1.6rem;
    font-family: 'Lora', serif;
    color: #333;
    background: none;
    border: none;
    outline: none;
}

.search-bar-wrapper button {
    padding: 14px 24px;
    background: #b74b4b;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.search-bar-wrapper button:hover {
    background: #933a3a;
}

/* Category filter pills */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/*
  Each pill is a button with a data-category attribute.
  Clicking it filters the posts grid via JavaScript.
  The .active class highlights the selected category.
*/
.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-family: 'Lora', serif;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: white;
    color: #2e6b6b;
    border-color: white;
}

/* Search results grid — reuses .posts-grid sizing */
.search-results-section {
    padding: 0 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-results-section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.8);
    text-align: center;
}

/* Each post card gets a data-category attribute for filtering */
.search-results-section .post {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-results-section .post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.post-tag {
    display: inline-block;
    font-size: 1.1rem;
    color: #b74b4b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

/* Hidden state for filtered-out posts */
.post.hidden {
    display: none;
}

/* No results message */
.no-results {
    text-align: center;
    font-size: 1.6rem;
    color: rgba(255,255,255,0.6);
    padding: 40px;
    display: none;
}

/* ── ABOUT PAGE ──────────────────────────────────────────────── */
.about-page header {
    background-color: #2e6b6b;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.about-wrapper {
    max-width: 720px;
    margin: 120px auto 80px;
    padding: 0 40px;
    text-align: center;
}

.about-wrapper .about-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin: 0 auto 28px;
    display: block;
}

.about-wrapper h1 {
    font-size: clamp(2.8rem, 4vw, 5rem);
    font-style: italic;
    margin-bottom: 8px;
}

.about-wrapper .about-tagline {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-style: italic;
    color: rgba(255,255,255,0.75);
    margin-bottom: 48px;
}

.about-divider {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    margin: 0 auto 40px;
}

.about-wrapper .about-body {
    font-size: clamp(1.5rem, 1.8vw, 1.8rem);
    line-height: 2;
    color: rgba(255,255,255,0.9);
    text-align: center;
}

.about-wrapper .about-body p {
    margin-bottom: 28px;
}

@media (max-width: 600px) {
    .search-hero {
        padding: 120px 20px 30px;
    }
    .search-results-section {
        padding: 0 20px 40px;
    }
    .about-wrapper {
        padding: 0 24px;
    }
}

/* ── STORIES PAGE ────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;600&display=swap");

.stories-page header {
    background-color: #1a1a1a;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.stories-page body {
    background-color: #1a1a1a;
}

.stories-hero {
    padding: 120px 40px 20px;
    text-align: center;
    background-color: #1a1a1a;
}

.stories-hero h1 {
    font-size: clamp(3rem, 5vw, 6rem);
    font-style: italic;
    color: #f0e6d0;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.stories-hero p {
    font-size: clamp(1.3rem, 1.8vw, 1.8rem);
    color: rgba(240,230,208,0.5);
    font-style: italic;
    margin-bottom: 60px;
}

/* Corkboard / darkroom background */
.stories-grid-wrapper {
    background-color: #1a1a1a;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(80,50,20,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(60,40,10,0.15) 0%, transparent 50%);
    padding: 20px 60px 80px;
    min-height: 60vh;
}

.stories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

/* Each polaroid card */
.polaroid {
    background: #f5f0e8;
    padding: 14px 14px 50px;
    width: 220px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.3),
        0 10px 30px rgba(0,0,0,0.4);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: #333;

    /* Each card gets a slight random tilt via inline style in HTML */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.polaroid:hover {
    transform: rotate(0deg) translateY(-12px) scale(1.05) !important;
    box-shadow:
        0 16px 40px rgba(0,0,0,0.5),
        0 4px 8px rgba(0,0,0,0.3);
    z-index: 10;
    position: relative;
}

.polaroid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: sepia(20%) contrast(1.05);
    transition: filter 0.3s ease;
}

.polaroid:hover img {
    filter: sepia(0%) contrast(1.1);
}

/* Handwritten caption below the photo */
.polaroid-caption {
    padding-top: 12px;
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #2a2a2a;
    line-height: 1.3;
}

.polaroid-date {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: #888;
    text-align: center;
    margin-top: 4px;
}

/* Tape effect on some cards */
.polaroid.taped::before {
    content: '';
    display: block;
    width: 60px;
    height: 22px;
    background: rgba(255,230,100,0.35);
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    border-radius: 2px;
}

.polaroid {
    position: relative;
}

@media (max-width: 600px) {
    .stories-grid-wrapper {
        padding: 20px 20px 60px;
    }
    .stories-grid {
        gap: 28px;
    }
    .polaroid {
        width: 160px;
    }
    .polaroid img {
        height: 150px;
    }
}
ul {
    list-style-position: outside; /* Keeps the dot aligned */
    margin: 0 0 1em 0;            /* Matches paragraph spacing */
    padding-left: 1em;        /* Adjust this value to match your paragraph indentation */
}
ol {
    list-style-position: outside; /* Keeps the dot aligned */
    margin: 0 0 1em 0;            /* Matches paragraph spacing */
    padding-left: 1.2em;        /* Adjust this value to match your paragraph indentation */
}


@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ============================================================
   TALE PAGE — scrapbook/polaroid reading experience
   Prefixed "tale-" throughout so it never collides with
   existing site classes (header, nav, footer, etc. untouched)
   ============================================================ */

.tale-page{
  background: #1a1a1a;
  color: #ece6da;
}

/* meta line (genre · read time) used inside the polaroid title block */
.tale-cover-meta{
  font-family: 'Lora', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a89c8a;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.tale-cover-meta span:not(:last-child)::after{
  content: "·";
  margin-left: 14px;
  color: #5c5346;
}

/* ── STORY WRAP ── */
.tale-wrap{
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 24px 140px;
}

/* polaroid-style title block at top of story */
.tale-polaroid-title{
  background: #f5f0e8;
  border: none;
  padding: 14px 14px 36px;
  margin: 0 auto 56px;
  max-width: 340px;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.3),
    0 10px 30px rgba(0,0,0,0.4);
  transform: rotate(-1.2deg);
  position: relative;
}

.tale-polaroid-frame{
  background: #161616;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a4a4a;
  font-family: 'Lora', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  overflow: hidden;
}

.tale-polaroid-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(15%) contrast(1.05);
}

.tale-polaroid-title h1{
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 2.1rem;
  color: #2a2a2a;
  margin: 4px 0 4px;
  text-align: center;
}

.tale-polaroid-title .tale-cover-meta{
  justify-content: center;
}

.tale-polaroid-title .tale-cover-meta span{
  color: #8a8275;
}

.tale-polaroid-title .tale-cover-meta span:not(:last-child)::after{
  color: #b8ae9c;
}

/* body copy */
.tale-body{
  font-family: 'Lora', Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.85;
  color: #d9d2c4;
}

.tale-body p{
  margin: 0 0 1.6em;
}

/* marginalia — handwritten notes floating in the margin on wide screens */
.tale-marginalia{
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: #8d9a8f;
  position: relative;
  margin: 2em 0;
  padding-left: 18px;
  border-left: 2px dashed #3a3a3a;
}

@media (min-width: 1100px){
  .tale-marginalia{
    position: absolute;
    left: calc(100% + 32px);
    width: 200px;
    border-left: none;
    padding-left: 0;
    transform: rotate(-2deg);
  }
  .tale-body p{ position: relative; }
}

/* filmstrip divider between scenes */
.tale-filmstrip{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 3em 0;
}

.tale-filmstrip span{
  width: 9px;
  height: 13px;
  background: #3a3a3a;
  border-radius: 1px;
}

/* pull quote styled as a pinned polaroid caption */
.tale-pullquote-polaroid{
  background: #232323;
  border: 1px solid #3a3a3a;
  padding: 18px 20px 22px;
  margin: 2.6em auto;
  max-width: 360px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
  transform: rotate(1deg);
  position: relative;
}

.tale-pullquote-polaroid::before{
  content: "✦";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: cadetblue;
  font-size: 0.9rem;
}

.tale-pullquote-polaroid p{
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: #f3ead8;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* ── AUTHOR'S NOTE ──────────────────────────────────────────
   Deliberately NOT handwritten/taped — reads like a typed
   index card tucked at the end of the manuscript, not a
   sticky note. Distinct from marginalia + pull-quote styling.
   ───────────────────────────────────────────────────────── */
.tale-authors-note{
  margin: 4em auto 0;
  max-width: 520px;
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-left: 3px solid cadetblue;
  padding: 26px 28px 28px;
}

.tale-authors-note-label{
  font-family: 'Lora', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: cadetblue;
  margin: 0 0 14px;
}

.tale-authors-note p{
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  color: #c9c2b4;
  margin: 0 0 1em;
}

.tale-authors-note p:last-child{ margin-bottom: 0; }

.tale-authors-note-sign{
  display: block;
  margin-top: 16px;
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: #f3ead8;
  font-style: normal;
}

/* ── FICTION DISCLAIMER ─────────────────────────────────────
   Quiet, formal, legal-jargon style. Sits low on the page,
   muted and small, right above the real footer.
   ───────────────────────────────────────────────────────── */
.tale-disclaimer{
  max-width: 560px;
  margin: 0 auto 48px;
  padding: 22px 28px;
  background: #232b2c;
  border: 1px solid rgba(95,141,150,0.4);
  border-radius: 18px;
  text-align: center;
}

.tale-disclaimer p{
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: #c9d6d8;
  font-style: italic;
  margin: 0;
}

:focus-visible{
  outline: 2px solid cadetblue;
  outline-offset: 3px;
}

/* ── PRIVACY POLICY PAGE ─────────────────────────────────────── */
.about-page .about-body {
    font-style: normal;
    font-size: 1.6rem;
    line-height: 1.85;
}

.about-page .about-body p {
    margin-bottom: 1.6rem;
}

.pp-heading {
    font-size: 2rem;
    font-style: italic;
    color: white;
    margin: 40px 0 14px;
}

.pp-list {
    margin: 0 0 1.6rem 1.4rem;
    padding-left: 0.4rem;
}

.pp-list li {
    margin-bottom: 8px;
    list-style: disc;
}

.pp-link {
    color: #b74b4b;
    text-decoration: underline;
    transition: color 0.2s;
}

.pp-link:hover {
    color: white;
}

.pp-back {
    text-align: center;
    font-size: 1.5rem;
    font-style: italic;
}