/*
Theme Name: Merintis
Theme URI: https://perintisberdaya.id
Author: perintisberdaya
Author URI: https://perintisberdaya.id
Description: Theme WordPress untuk platform informasi ekosistem pemberdayaan ekonomi masyarakat Perintis Berdaya. Modern, bersih, dan responsif.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: merintis
Tags: news, magazine, one-column, two-columns, right-sidebar, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. CSS Variables & Theme Configuration
   ========================================================================== */
:root {
    --primary-color: #E23838;
    --primary-light: #FF5A5A;
    --primary-dark: #7B1414;

    --accent-color: #C89B5A;
    --accent-light: #D0A25F;

    --text-main: #111111;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --bg-main: #ffffff;
    --bg-alt: #F9FAFB;
    --bg-card: #ffffff;
    --border-color: #E5E7EB;
    --border-dark: #111111;

    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-sans: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-meta: 'Plus Jakarta Sans', 'Inter', sans-serif;

    --container-padding: 2rem;
    --section-padding: 5rem 0;
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --border-radius-pill: 9999px;
    --transition-speed: 0.3s;

    --shadow-sm: 0 2px 10px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    background-color: var(--bg-main);
    min-height: 100vh;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

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

/* Skip to content - Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.text-primary { color: var(--primary-color); }
.text-uppercase { text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; font-weight: 700; }
.font-medium { font-weight: 500; }

/* ==========================================================================
   4. Layout & Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: var(--section-padding);
}

.main-layout {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .main-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 56, 56, 0.3);
}

.btn-dark {
    background-color: var(--text-main);
    color: white;
}

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

.btn-outline:hover {
    background-color: var(--text-main);
    color: white;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    transition: all var(--transition-speed) ease;
    gap: 0.5rem;
}

.chip:hover {
    border-color: var(--text-main);
}

.chip-creative { color: #8B5CF6; background: #F5F3FF; border-color: #F5F3FF; }
.chip-design { color: #EC4899; background: #FDF2F8; border-color: #FDF2F8; }
.chip-tech { color: #3B82F6; background: #EFF6FF; border-color: #EFF6FF; }
.chip-business { color: #10B981; background: #ECFDF5; border-color: #ECFDF5; }
.chip-crypto { color: #F59E0B; background: #FFFBEB; border-color: #FFFBEB; }

/* ==========================================================================
   5. Header & Navigation
   ========================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    position: sticky;
    top: 1rem;
    z-index: 100;
    width: calc(100% - 2rem);
    max-width: 1200px;
    margin: 1rem auto;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding: 0 1rem;
}

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

.logo img {
    height: 35px;
    width: auto;
}

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    list-style: none;
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 0.5rem 0;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-speed) ease;
}

.icon-btn:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s linear;
}

@media (min-width: 1024px) {
    .menu-toggle { display: none; }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        padding: 0;
        box-shadow: none;
        width: auto;
        gap: 2.5rem;
        align-items: center;
    }

    .nav-menu a {
        font-family: var(--font-sans);
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--text-muted);
        transition: color 0.3s;
        padding: 0;
        display: inline;
    }

    .nav-menu a:hover, .nav-menu a.active {
        color: var(--text-main);
    }
}

/* ==========================================================================
   6. Hero Section (Carousel)
   ========================================================================== */
.modern-hero {
    padding: 6rem 0 2rem;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.hero-title span {
    color: var(--primary-color);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 2rem 0 0;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-carousel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    min-height: 700px;
    max-width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 900px;
    max-width: 90vw;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    top: 0;
    transform: translateX(50px);
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    position: relative;
    transform: translateX(0);
}

.hero-slide.prev {
    transform: translateX(-50px);
}

.slide-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.control-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    flex: 1;
    transition: all 0.3s ease;
}

.control-wrapper.prev-wrapper {
    justify-content: flex-end;
}

.control-wrapper.next-wrapper {
    justify-content: flex-start;
}

.control-title-container {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 250px;
    gap: 0.25rem;
}

.control-wrapper.prev-wrapper .control-title-container {
    align-items: flex-end;
    text-align: right;
}

.control-wrapper.next-wrapper .control-title-container {
    align-items: flex-start;
    text-align: left;
}

.control-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.control-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.control-wrapper:hover .control-title {
    color: var(--primary-color);
}

.carousel-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.control-wrapper:hover .carousel-btn {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226, 56, 56, 0.3);
}

@media (max-width: 1024px) {
    .hero-carousel {
        min-height: 550px;
    }
}

@media (max-width: 768px) {
    .header-actions .btn-dark {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-carousel {
        min-height: auto;
        padding-bottom: 2rem;
    }
    .hero-slide {
        position: relative;
        display: none;
    }
    .hero-slide.active {
        display: block;
    }
    .hero-slide .card-title {
        font-size: 1.5rem !important;
    }

    .carousel-controls {
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0 1.5rem;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .control-wrapper {
        width: 50%;
        flex: 1;
        min-width: 0;
        padding: 0;
    }
    .control-wrapper.prev-wrapper {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.5rem;
    }
    .control-wrapper.next-wrapper {
        flex-direction: row;
        align-items: center;
        text-align: right;
        gap: 0.5rem;
    }
    .control-title-container {
        height: auto;
        min-height: auto;
        flex: 1;
        width: auto;
    }
    .control-wrapper.prev-wrapper .control-title-container {
        align-items: flex-start;
        text-align: left;
    }
    .control-wrapper.next-wrapper .control-title-container {
        align-items: flex-end;
        text-align: right;
    }
    .control-label {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }
    .control-title {
        font-size: 0.75rem;
        font-weight: 500;
        -webkit-line-clamp: 1;
        line-height: 1.2;
    }
    .carousel-btn {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
}

/* ==========================================================================
   7. Main Content & Cards
   ========================================================================== */
.content-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-img-wrapper {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 16/10;
}

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

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

.card-chips-floating {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 2;
}

.card-chips-floating .chip {
    padding: 0.2rem 0.8rem;
    font-size: 0.65rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
}

.card-title {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.bookmark-btn {
    color: var(--text-light);
    background: transparent;
    border: none;
    cursor: pointer;
}
.bookmark-btn:hover { color: var(--primary-color); }

/* ==========================================================================
   8. Widgets & Sidebar
   ========================================================================== */
.widget {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.author-widget {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.author-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.author-social a {
    color: var(--text-main);
}
.author-social a:hover { color: var(--primary-color); }

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    display: block;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.small-post-list {
    list-style: none;
    padding: 0;
}

.small-post-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.small-post-img {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.small-post-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ==========================================================================
   9. Newsletter & Footer
   ========================================================================== */
.newsletter-section {
    background: var(--bg-alt);
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.newsletter-card {
    background: var(--bg-main);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

@media (min-width: 768px) {
    .newsletter-form {
        flex-direction: row;
        background: white;
        padding: 0.5rem;
        border-radius: var(--border-radius-pill);
        box-shadow: var(--shadow-sm);
    }
}

.newsletter-input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    background: white;
    font-family: var(--font-sans);
}

@media (min-width: 768px) {
    .newsletter-input {
        border: none;
        box-shadow: none;
    }
    .newsletter-input:focus { outline: none; }
}

.site-footer {
    background-color: var(--bg-main);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-widget h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ==========================================================================
   10. Single Post Styles
   ========================================================================== */
.article-header {
    padding: 4rem 0 3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.article-author-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.article-featured-image {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.article-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-body {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-body h2 {
    font-size: 2rem;
    margin: 3.5rem 0 1.5rem;
    letter-spacing: -0.02em;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: #374151;
}

.article-body figure {
    margin: 3rem 0;
}

.article-body img {
    width: 100%;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

.article-body figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.article-body ul,
.article-body ol {
    margin: 2rem 0;
    padding-left: 1.5rem;
    color: #374151;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.pull-quote {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
    margin: 3rem 0;
    padding-left: 2rem;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.share-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    margin: 0 0 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.share-title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.share-links {
    display: flex;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: all var(--transition-speed) ease;
}

.share-btn:hover {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

@media (min-width: 1024px) {
    .article-title {
        font-size: 3.5rem;
    }

    .article-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        max-width: 1000px;
        margin: 0 auto;
        gap: 3rem;
    }

    .article-body {
        margin: 0;
        flex: 1;
    }

    .share-container {
        flex-direction: column;
        border: none;
        position: sticky;
        top: 120px;
        padding: 0;
        margin: 0;
        width: 50px;
        flex-shrink: 0;
    }

    .share-title {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        margin-bottom: 1rem;
    }

    .share-links {
        flex-direction: column;
    }
}

.related-articles {
    background-color: var(--bg-alt);
    padding: 5rem 0;
    margin-top: 4rem;
}

/* ==========================================================================
   11. Page Styles
   ========================================================================== */
.page-header {
    background-color: var(--bg-alt);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    color: var(--text-main);
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 4rem var(--container-padding);
    color: #374151;
}

.page-content h2 {
    color: var(--text-main);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.page-content p {
    margin-bottom: 1.5rem;
    color: #374151;
}

.vision-mission-box {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin: 3rem 0;
}

.vision-mission-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0;
    font-size: 1.5rem;
}

.contact-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info ul {
    margin-bottom: 0;
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-muted);
    list-style: none;
}

.contact-info svg {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 4px;
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   12. Archive Styles
   ========================================================================== */
.archive-header {
    padding: 5rem 0 3rem;
    text-align: center;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.archive-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.archive-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.archive-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.archive-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-muted);
    font-weight: 500;
    background: white;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers:hover:not(.current) {
    border-color: var(--text-main);
    color: var(--text-main);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-muted);
    font-weight: 500;
    background: white;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.nav-links .page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.nav-links .page-numbers:hover:not(.current) {
    border-color: var(--text-main);
    color: var(--text-main);
}

.nav-links .page-numbers.next,
.nav-links .page-numbers.prev {
    width: auto;
    padding: 0 1rem;
    border-radius: var(--border-radius-pill);
}

/* ==========================================================================
   13. SVG Icon Helper
   ========================================================================== */
.svg-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   14. 404 Page
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: 6rem 0;
}

.error-404 .page-title {
    font-size: 6rem;
    color: var(--border-color);
}

.error-404 .search-form {
    max-width: 500px;
    margin: 2rem auto;
}
