/* =====================================
   OFFSCRIPT - PREMIUM BLOG WEBSITE
   ===================================== */


/* 1. GLOBAL SETTINGS */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #0b1017;
    color: #f5f7fa;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

:root {
    --background: #0b1017;
    --card: #141c26;
    --card-light: #1a2430;
    --text: #f5f7fa;
    --muted: #a7b0bc;
    --accent: #c8ff32;
    --border: #293441;
}

.container {
    width: min(1400px, 92%);
    margin: auto;
}

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

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

::selection {
    background: var(--accent);
    color: #10151c;
}


/* 2. HEADER AND NAVIGATION */

.header {
    background: #0b1017;
    border-bottom: 1px solid #202a35;
    position: relative;
    z-index: 100;
}

.navbar {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.logo > span {
    color: var(--accent);
}

.logo small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    position: relative;
    color: #e2e6eb;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    left: 0;
    bottom: -12px;
    background: var(--accent);
    transition: width 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 17px;
    width: 250px;
    background: var(--card);
    border: 1px solid #2a3542;
    border-radius: 40px;
}

.search-box span {
    font-size: 22px;
    color: white;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 12px;
}

.search-box input::placeholder {
    color: #b2bac5;
}

.theme-toggle {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    color: white;
    background: var(--card);
    font-size: 24px;
    transition: 0.2s;
}

.theme-toggle:hover {
    background: var(--accent);
    color: #10151c;
    transform: rotate(-15deg);
}

.menu-toggle {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 27px;
}


/* 3. HERO SECTION */

.hero-image {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;

    background-image:
        linear-gradient(
            90deg,
            rgba(8, 14, 21, 0.97) 0%,
            rgba(8, 14, 21, 0.82) 32%,
            rgba(8, 14, 21, 0.25) 70%,
            rgba(8, 14, 21, 0.05) 100%
        ),
        url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1800");

    background-position: center;
    background-size: cover;
}

.hero-content {
    padding: 50px 0;
}

.featured-label {
    display: inline-block;
    border-left: 4px solid var(--accent);
    padding-left: 13px;
    color: white;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.hero h1 {
    max-width: 650px;
    margin: 16px 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(40px, 5vw, 60px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.hero-content > p {
    max-width: 480px;
    color: #e0e5ea;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 25px;
    background: var(--accent);
    color: #131a12;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    transition: 0.25s;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 255, 50, 0.2);
}

.hero-button span {
    font-size: 19px;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 27px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #596371;
    border-radius: 50%;
}

.dot.active {
    width: 18px;
    background: var(--accent);
    border-radius: 10px;
}


/* 4. CATEGORY SECTION */

.categories-section {
    padding: 27px 0;
    border-bottom: 1px solid #202a35;
}

.category-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.category-container h2 {
    white-space: nowrap;
    font-size: 20px;
    font-weight: 800;
}

.category-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.category-btn {
    padding: 11px 20px;
    border: 1px solid #485463;
    border-radius: 30px;
    background: transparent;
    color: #e9edf2;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s;
}

.category-btn:hover,
.category-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #11170b;
}


/* 5. STORIES SECTION */

.stories-section {
    padding: 35px 0 85px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 27px;
}

.section-title h2 {
    border-left: 4px solid var(--accent);
    padding-left: 17px;
    font-size: 28px;
    font-weight: 800;
}

.section-title > a {
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s;
}

.section-title > a:hover {
    color: white;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 30px;
    align-items: start;
}


/* 6. STORY CARDS */

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.story-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid transparent;
    border-radius: 13px;
    transition: transform 0.25s, border-color 0.25s;
}

.story-card:hover {
    transform: translateY(-6px);
    border-color: #384653;
}

.story-image {
    display: block;
    position: relative;
    overflow: hidden;
}

.story-image img {
    height: 195px;
    transition: transform 0.4s;
}

.story-card:hover .story-image img {
    transform: scale(1.07);
}

.story-category {
    position: absolute;
    bottom: 12px;
    left: 14px;
    background: var(--accent);
    color: #11170b;
    padding: 6px 13px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
}

.story-info {
    padding: 15px 16px 13px;
}

.story-info h3 {
    min-height: 57px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    transition: color 0.2s;
}

.story-info h3 a:hover {
    color: var(--accent);
}

.story-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    color: #bac3cf;
    font-size: 11px;
}

.bookmark-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    color: white;
    font-size: 21px;
    transition: color 0.2s;
}

.bookmark-btn:hover,
.bookmark-btn.saved {
    color: var(--accent);
}


/* 7. SIDEBAR */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.sidebar-card {
    background: var(--card);
    border: 1px solid transparent;
    border-radius: 15px;
    padding: 20px;
}

.sidebar-card h3 {
    border-left: 4px solid var(--accent);
    padding-left: 13px;
    margin-bottom: 17px;
    font-size: 19px;
    font-weight: 800;
}

.editor-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 15px;
}

.editor-content img {
    height: 100px;
    border-radius: 9px;
}

.editor-content h4 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    transition: color 0.2s;
}

.editor-content:hover h4 {
    color: var(--accent);
}

.editor-content p,
.editor-content span {
    display: inline-block;
    color: #b1bbc7;
    font-size: 10px;
    margin-top: 10px;
}


/* 8. NEWSLETTER */

.newsletter-card > p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 13px;
}

.newsletter-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-card input {
    width: 100%;
    padding: 13px;
    border: 1px solid #35414f;
    outline: none;
    border-radius: 10px;
    background: var(--card-light);
    color: white;
    font-size: 13px;
}

.newsletter-card input:focus {
    border-color: var(--accent);
}

.newsletter-card input::placeholder {
    color: #aab5c2;
}

.newsletter-card button {
    border: none;
    border-radius: 9px;
    padding: 13px;
    background: var(--accent);
    color: #10150b;
    font-size: 13px;
    font-weight: 800;
    transition: 0.2s;
}

.newsletter-card button:hover {
    background: white;
    transform: translateY(-2px);
}

.newsletter-card .newsletter-message {
    margin: 12px 0 0;
    font-size: 10px;
}


/* 9. NO SEARCH RESULTS */

.no-results {
    display: none;
    text-align: center;
    padding: 40px 0;
    color: var(--muted);
    font-size: 15px;
}


/* 10. ABOUT SECTION */

.about-section {
    padding: 80px 0;
    text-align: center;
    background: #141e29;
    border-top: 1px solid #293441;
}

.section-tag {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.about-content h2 {
    max-width: 750px;
    margin: 18px auto;
    font-family: "Playfair Display", serif;
    font-size: 43px;
    line-height: 1.25;
}

.about-content h2 span {
    display: block;
    color: var(--accent);
}

.about-content > p {
    max-width: 650px;
    margin: auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.about-button {
    display: inline-block;
    margin-top: 26px;
    padding: 12px 22px;
    border: 1px solid var(--accent);
    border-radius: 30px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s;
}

.about-button:hover {
    background: var(--accent);
    color: #10150b;
}


/* 11. FOOTER */

.footer {
    border-top: 1px solid #293441;
    padding: 25px 0;
    background: #090e14;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -1px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-content p {
    color: var(--muted);
    font-size: 11px;
}


/* 12. LIGHT MODE */

body.light-theme {
    --background: #f4f6f1;
    --card: #ffffff;
    --card-light: #edf0e9;
    --text: #18221a;
    --muted: #626e65;
    --border: #d5ded3;

    background: var(--background);
    color: var(--text);
}

body.light-theme .header {
    background: #f4f6f1;
    border-color: var(--border);
}

body.light-theme .nav-links a {
    color: #26302a;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
    color: #11170b;
}

body.light-theme .search-box,
body.light-theme .theme-toggle {
    background: #ffffff;
    border-color: var(--border);
    color: #18221a;
}

body.light-theme .search-box input {
    color: #18221a;
}

body.light-theme .category-btn {
    color: #26302a;
    border-color: #b9c5b8;
}

body.light-theme .category-btn.active,
body.light-theme .category-btn:hover {
    background: var(--accent);
    color: #10150b;
    border-color: var(--accent);
}

body.light-theme .category-container h2,
body.light-theme .section-title h2,
body.light-theme .story-info h3,
body.light-theme .editor-content h4 {
    color: #18221a;
}

body.light-theme .story-meta,
body.light-theme .editor-content p,
body.light-theme .editor-content span {
    color: #626e65;
}

body.light-theme .bookmark-btn {
    color: #18221a;
}

body.light-theme .bookmark-btn.saved {
    color: #729c00;
}

body.light-theme .newsletter-card input {
    background: #f2f5ee;
    color: #18221a;
    border-color: #ccd6ca;
}

body.light-theme .newsletter-card input::placeholder {
    color: #6a776b;
}

body.light-theme .about-section {
    background: #e7edde;
}

body.light-theme .about-content > p {
    color: #626e65;
}

body.light-theme .footer {
    background: #edf0e9;
    border-color: var(--border);
}

body.light-theme .footer-content p {
    color: #626e65;
}


/* 13. TABLET RESPONSIVENESS */

@media (max-width: 1150px) {

    .navbar {
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .search-box {
        width: 190px;
    }

    .content-layout {
        grid-template-columns: 1fr 290px;
        gap: 20px;
    }

    .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}


/* 14. MOBILE RESPONSIVENESS */

@media (max-width: 760px) {

    .container {
        width: 90%;
    }

    .navbar {
        min-height: 75px;
    }

    .logo {
        font-size: 23px;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .nav-actions {
        margin-left: auto;
    }

    .search-box {
        width: 175px;
        padding: 9px 12px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        padding: 25px 5%;
        background: #111923;
        border-bottom: 1px solid #293441;
        flex-direction: column;
        align-items: flex-start;
        gap: 23px;
    }

    .nav-links.show {
        display: flex;
    }

    body.light-theme .nav-links {
        background: #f4f6f1;
    }

    .hero-image {
        min-height: 400px;
        background-position: center;
    }

    .hero-content {
        padding: 45px 0;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .category-container h2 {
        font-size: 18px;
    }

    .category-buttons {
        gap: 9px;
    }

    .category-btn {
        padding: 9px 13px;
        font-size: 11px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .story-image img {
        height: 160px;
    }

    .story-info {
        padding: 12px;
    }

    .story-info h3 {
        min-height: 75px;
        font-size: 14px;
    }

    .story-meta {
        gap: 8px;
        font-size: 10px;
    }

    .sidebar {
        margin-top: 15px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}


/* 15. SMALL MOBILE SCREENS */

@media (max-width: 430px) {

    .navbar {
        gap: 10px;
    }

    .logo {
        font-size: 19px;
    }

    .logo small {
        font-size: 8px;
    }

    .nav-actions {
        gap: 8px;
    }

    .search-box {
        width: 120px;
    }

    .search-box input {
        font-size: 10px;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .hero h1 {
        font-size: 34px;
    }

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

    .story-image img {
        height: 210px;
    }

    .story-info h3 {
        min-height: auto;
        font-size: 17px;
    }
}


/* 16. ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* =====================================
   OFFSCRIPT - ARTICLE PAGE
===================================== */


/* READING PROGRESS */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent);
    z-index: 1000;
}


/* HEADER BUTTON */

.back-home-button {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.back-home-button:hover {
    color: white;
}


/* ARTICLE HEADER */

.article-header-section {
    padding: 75px 0 45px;
    background:
        radial-gradient(
            circle at top right,
            #1d2b37 0%,
            #0b1017 55%
        );
}

.article-header-content {
    max-width: 920px;
    text-align: center;
}

.article-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 12px;
}

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

.article-category-label {
    display: inline-block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.article-header-content h1 {
    margin: 18px auto;
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.article-description {
    max-width: 690px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}


/* AUTHOR INFORMATION */

.article-author-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    margin-top: 32px;
}

.author-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #10150b;
    font-size: 19px;
    font-weight: 800;
}

.author-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-details strong {
    font-size: 12px;
}

.author-details span,
.article-publish-details span {
    color: var(--muted);
    font-size: 10px;
}

.author-divider {
    height: 35px;
    width: 1px;
    background: #48515c;
    margin: 0 10px;
}

.article-publish-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}


/* COVER IMAGE */

.article-cover-section {
    padding: 0 0 55px;
}

.article-cover-wrapper {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #293441;
}

.article-cover-wrapper img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}


/* ARTICLE LAYOUT */

.article-body-section {
    padding: 20px 0 90px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 60px;
    align-items: start;
}

.article-main-content {
    min-width: 0;
}


/* ARTICLE TOOLBAR */

.article-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.article-toolbar > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.article-actions {
    display: flex;
    gap: 10px;
}

.article-action-btn {
    padding: 9px 15px;
    color: white;
    border: 1px solid #364352;
    border-radius: 30px;
    background: var(--card);
    font-size: 11px;
    font-weight: 700;
    transition: 0.2s;
}

.article-action-btn:hover,
.article-action-btn.saved {
    color: #10150b;
    background: var(--accent);
    border-color: var(--accent);
}


/* ARTICLE TEXT */

.article-content {
    padding-top: 32px;
}

.article-content p {
    margin-bottom: 25px;
    color: #c1c9d3;
    font-size: 16px;
    line-height: 2;
}

.article-content h2 {
    margin: 42px 0 18px;
    font-family: "Playfair Display", serif;
    font-size: 29px;
    line-height: 1.3;
}

.article-content h3 {
    margin: 30px 0 15px;
    font-size: 20px;
}

.article-content blockquote {
    margin: 35px 0;
    padding: 20px 25px;
    border-left: 4px solid var(--accent);
    background: var(--card);
    border-radius: 0 10px 10px 0;
    color: white;
    font-family: "Playfair Display", serif;
    font-size: 22px;
    line-height: 1.6;
}

.article-content ul {
    margin: 0 0 25px 25px;
    color: #c1c9d3;
    line-height: 2;
}

.article-content strong {
    color: white;
}


/* ARTICLE ENDING */

.article-ending {
    margin-top: 55px;
    padding: 35px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.ending-line {
    width: 45px;
    height: 4px;
    background: var(--accent);
    border-radius: 10px;
    margin: 0 auto 22px;
}

.article-ending h3 {
    font-family: "Playfair Display", serif;
    font-size: 27px;
}

.article-ending p {
    margin: 12px auto 22px;
    max-width: 460px;
    color: var(--muted);
    font-size: 13px;
}

.more-stories-button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 30px;
    background: var(--accent);
    color: #10150b;
    font-size: 12px;
    font-weight: 800;
}

.more-stories-button:hover {
    background: white;
}


/* COMMENTS */

.comments-section {
    margin-top: 55px;
}

.comments-section h3 {
    font-family: "Playfair Display", serif;
    font-size: 27px;
}

.comments-section > p {
    margin: 8px 0 18px;
    color: var(--muted);
    font-size: 13px;
}

.comments-section textarea {
    width: 100%;
    resize: vertical;
    padding: 15px;
    background: var(--card);
    color: white;
    border: 1px solid #344252;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 13px;
}

.comments-section textarea:focus {
    border-color: var(--accent);
}

.comments-section button {
    margin-top: 12px;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background: var(--accent);
    color: #10150b;
    font-size: 12px;
    font-weight: 800;
}

.comments-section button:hover {
    background: white;
}

.comments-section .comment-message {
    color: var(--accent);
    margin-top: 12px;
}


/* SIDEBAR */

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-sidebar-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
}

.sidebar-label {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.article-sidebar-card h3 {
    margin: 14px 0;
    font-family: "Playfair Display", serif;
    font-size: 23px;
    line-height: 1.35;
}

.article-sidebar-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.article-sidebar-card > a:not(.sidebar-story-link) {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.sidebar-story-link {
    display: block;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

.sidebar-story-link:hover {
    color: var(--accent);
}


/* LIGHT THEME */

body.light-theme .article-header-section {
    background: #e8eee5;
}

body.light-theme .article-header-content h1 {
    color: #18221a;
}

body.light-theme .article-content p,
body.light-theme .article-content ul {
    color: #465248;
}

body.light-theme .article-content h2,
body.light-theme .article-content h3,
body.light-theme .article-content strong {
    color: #18221a;
}

body.light-theme .article-content blockquote {
    color: #18221a;
    background: #e8eee5;
}

body.light-theme .article-action-btn {
    color: #18221a;
    background: white;
    border-color: #ccd6ca;
}

body.light-theme .article-action-btn:hover,
body.light-theme .article-action-btn.saved {
    background: var(--accent);
    color: #10150b;
}

body.light-theme .comments-section textarea {
    background: white;
    color: #18221a;
    border-color: #ccd6ca;
}


/* MOBILE ARTICLE PAGE */

@media (max-width: 900px) {

    .article-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .article-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .article-cover-wrapper img {
        height: 350px;
    }

}

@media (max-width: 600px) {

    .article-header-section {
        padding: 55px 0 35px;
    }

    .article-header-content h1 {
        font-size: 36px;
    }

    .article-description {
        font-size: 14px;
    }

    .article-author-row {
        flex-wrap: wrap;
    }

    .article-cover-wrapper img {
        height: 240px;
    }

    .article-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-content p {
        font-size: 14px;
    }

    .article-content h2 {
        font-size: 25px;
    }

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

    .article-ending {
        padding: 25px 18px;
    }

    .back-home-button {
        display: none;
    }

}
/* =====================================
   SAVED STORIES PAGE
===================================== */

.saved-page {
    min-height: 75vh;
}

.saved-hero {
    padding: 80px 0 55px;
    background:
        radial-gradient(
            circle at top right,
            #1b2935,
            #0b1017 65%
        );
}

.saved-label {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.saved-hero h1 {
    margin-top: 15px;
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 6vw, 65px);
}

.saved-hero h1 span {
    color: var(--accent);
}

.saved-hero p {
    max-width: 540px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 15px;
}

.saved-count {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 17px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 12px;
    color: var(--muted);
}

.saved-count span {
    color: var(--accent);
    font-weight: 800;
}

.saved-content {
    padding: 55px 0 90px;
}

.saved-description {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.remove-saved-btn {
    margin-top: 17px;
    padding: 9px 14px;
    background: transparent;
    color: var(--accent);
    border: 1px solid #425044;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    transition: 0.2s;
}

.remove-saved-btn:hover {
    background: var(--accent);
    color: #10150b;
}

.empty-saved {
    text-align: center;
    padding: 70px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.empty-icon {
    font-size: 60px;
    color: var(--accent);
}

.empty-saved h2 {
    margin-top: 15px;
    font-family: "Playfair Display", serif;
    font-size: 30px;
}

.empty-saved p {
    margin: 12px auto 25px;
    max-width: 420px;
    color: var(--muted);
    font-size: 13px;
}

body.light-theme .saved-hero {
    background: #e8eee5;
}

body.light-theme .saved-hero h1 {
    color: #18221a;
}

@media (max-width: 600px) {
    .saved-hero {
        padding: 55px 0 40px;
    }

    .saved-content {
        padding: 35px 0 60px;
    }
}
/* =====================================
   ABOUT PAGE
===================================== */

.about-page-hero {
    padding: 100px 0 85px;
    background:
        radial-gradient(circle at 85% 15%, #263d36 0%, transparent 35%),
        #0b1017;
}

.about-eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.about-page-hero h1 {
    max-width: 850px;
    margin: 22px 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.12;
}

.about-page-hero h1 span,
.our-story-grid h2 span,
.values-heading h2 span {
    color: var(--accent);
}

.about-page-hero p {
    max-width: 600px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.about-image-section {
    padding: 0 0 75px;
    background: #0b1017;
}

.about-image-section img {
    height: 400px;
    object-fit: cover;
    border-radius: 14px;
}

.our-story-section {
    padding: 85px 0;
}

.our-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
}

.our-story-grid h2,
.values-heading h2 {
    margin-top: 15px;
    font-family: "Playfair Display", serif;
    font-size: 44px;
    line-height: 1.2;
}

.our-story-grid h2 span,
.values-heading h2 span {
    display: block;
}

.our-story-text p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.mission-section {
    padding: 85px 0;
    background: #121b25;
}

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

.about-section-heading h2 {
    margin-top: 12px;
    font-family: "Playfair Display", serif;
    font-size: 38px;
}

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

.mission-card {
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 13px;
    transition: transform 0.25s, border-color 0.25s;
}

.mission-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.mission-number {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.mission-card h3 {
    margin: 22px 0 12px;
    font-family: "Playfair Display", serif;
    font-size: 23px;
}

.mission-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.values-section {
    padding: 90px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
}

.values-heading > p {
    max-width: 350px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.value-item > span {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 43px;
    height: 43px;
    background: var(--card);
    color: var(--accent);
    border-radius: 50%;
    font-size: 20px;
}

.value-item h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.value-item p {
    color: var(--muted);
    font-size: 12px;
}

.about-cta {
    padding: 75px 0;
    background: #18252b;
    text-align: center;
}

.about-cta h2 {
    font-family: "Playfair Display", serif;
    font-size: 38px;
}

.about-cta p {
    margin: 12px 0 25px;
    color: var(--muted);
    font-size: 14px;
}


/* =====================================
   CONTACT PAGE
===================================== */

.contact-hero {
    padding: 85px 0 55px;
    text-align: center;
    background:
        radial-gradient(circle at 80% 10%, #263d36 0%, transparent 35%),
        #0b1017;
}

.contact-hero h1 {
    margin: 18px 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 6vw, 66px);
    line-height: 1.15;
}

.contact-hero h1 span {
    color: var(--accent);
    display: block;
}

.contact-hero p {
    max-width: 540px;
    margin: auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.contact-section {
    padding: 65px 0 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 65px;
    align-items: start;
}

.contact-details h2 {
    margin: 17px 0;
    font-family: "Playfair Display", serif;
    font-size: 39px;
    line-height: 1.25;
}

.contact-details h2 span {
    display: block;
    color: var(--accent);
}

.contact-details > p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
}

.contact-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    color: var(--accent);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 19px;
}

.contact-info-item h3 {
    font-size: 14px;
}

.contact-info-item p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.contact-form-card {
    padding: 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.contact-form-card h2 {
    font-family: "Playfair Display", serif;
    font-size: 27px;
}

.contact-form-description {
    margin: 8px 0 25px;
    color: var(--muted);
    font-size: 12px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 19px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px;
    background: var(--card-light);
    color: var(--text);
    border: 1px solid #35414f;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 12px;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
}

.form-group textarea {
    resize: vertical;
}

.contact-submit-button {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #10150b;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    transition: 0.2s;
}

.contact-submit-button:hover {
    background: white;
    transform: translateY(-2px);
}

.contact-response {
    margin-top: 15px;
    color: var(--accent);
    font-size: 12px;
    line-height: 1.6;
}


/* =====================================
   LIGHT THEME
===================================== */

body.light-theme .about-page-hero,
body.light-theme .contact-hero {
    background: #e8eee5;
}

body.light-theme .about-page-hero h1,
body.light-theme .contact-hero h1 {
    color: #18221a;
}

body.light-theme .about-image-section {
    background: var(--background);
}

body.light-theme .mission-section {
    background: #e7edde;
}

body.light-theme .about-cta {
    background: #e7edde;
}

body.light-theme .about-cta h2,
body.light-theme .about-section-heading h2,
body.light-theme .our-story-grid h2,
body.light-theme .values-heading h2,
body.light-theme .contact-details h2 {
    color: #18221a;
}

body.light-theme .contact-form-card {
    background: white;
}

body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
    background: #f4f6f1;
    color: #18221a;
    border-color: #ccd6ca;
}


/* =====================================
   RESPONSIVE ABOUT AND CONTACT PAGES
===================================== */

@media (max-width: 800px) {

    .our-story-grid,
    .values-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

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

    .values-grid {
        gap: 40px;
    }

}

@media (max-width: 550px) {

    .about-page-hero {
        padding: 65px 0;
    }

    .about-page-hero h1 {
        font-size: 43px;
    }

    .about-image-section img {
        height: 230px;
    }

    .our-story-grid h2,
    .values-heading h2 {
        font-size: 36px;
    }

    .about-section-heading h2,
    .about-cta h2 {
        font-size: 30px;
    }

    .contact-hero {
        padding: 60px 0 40px;
    }

    .contact-details h2 {
        font-size: 34px;
    }

    .contact-form-card {
        padding: 22px 17px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

}