@import url('https://fonts.googleapis.com/css2?family=Anton&family=Exo:ital,wght@0,100..900;1,100..900&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

/*
Theme Name: Marea Modern
Theme URI: https://mareaecologista.com
Author: Marea Ecologista
Author URI: https://mareaecologista.com
Description: Modern, elegant news and blog theme for Marea Ecologista with contemporary design patterns
Version: 1.0
Text Domain: marea-modern
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========================================
   MAREA MODERN - DESIGN SYSTEM
   ======================================== */

:root {
    --color-red: #f11931;
    --color-red-dark: #cc143f;
    --color-yellow: #ffed00;
    --color-dark: #0d2636;
    --color-dark-blue: #1a4f63;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #f5f5f5;
    --color-white: #ffffff;
    --color-border: #e0e0e0;

    --font-primary: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    --radius-md: 4px;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

#wpadminbar {
    display: none !important;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary) !important;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

* {
    font-family: var(--font-primary) !important;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    background-color: var(--color-dark);
    color: white;
    border-bottom: 3px solid var(--color-red);
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.theme-toggle-desktop {
    display: flex;
}

.theme-toggle-mobile {
    display: none;
    width: 100%;
    justify-content: flex-start;
    border-radius: 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    color: white;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
}

.header-top {
    background-color: var(--color-dark);
    padding: var(--spacing-lg) var(--spacing-md);
}

.header-top-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.site-brand {
    flex: 0 0 auto;
}

.header-search {
    display: none;
}

.theme-toggle-desktop {
    flex: 0 0 auto;
    margin-left: auto;
}

.menu-toggle {
    flex: 0 0 auto;
}

.social-icons {
    display: none;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 0 0 auto;
}

.site-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.brand-text {
    min-width: 0;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2px;
    color: white;
}

.title-accent {
    color: var(--color-red);
}

.site-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaa;
}

.header-search {
    margin-left: auto;
    flex: 0 0 auto;
}

.header-search form {
    display: flex;
    gap: 8px;
}

.header-search .search-input {
    padding: 10px 12px;
    border: 1px solid #555;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    width: 200px;
}

.header-search .search-input::placeholder {
    color: #999;
}

.header-search .search-btn {
    padding: 10px 15px;
    background-color: transparent;
    border: 1px solid #555;
    color: white;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.header-search .search-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-search form {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #555;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    padding: 10px 15px;
    background-color: transparent;
    border: 1px solid #555;
    color: white;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.search-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icons {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.social-link:hover {
    background-color: var(--color-red);
}

/* ========================================
   NAVIGATION
   ======================================== */

.main-nav {
    background-color: #0a1f2e;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.nav-link {
    flex: 0 1 auto;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--color-red);
}

.nav-link.active {
    background-color: var(--color-red);
}

.nav-search {
    margin-left: auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-search form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-search .search-input {
    padding: 8px 12px;
    border: 1px solid #555;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.85rem;
    width: 160px;
}

.nav-search .search-input::placeholder {
    color: #999;
}

.nav-search .search-btn {
    padding: 8px 12px;
    background-color: transparent;
    border: 1px solid #555;
    color: white;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    flex: 0 0 auto;
}

.nav-search .search-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.site-main {
    padding: var(--spacing-xl) var(--spacing-md);
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-xl);
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* ========================================
   FEATURED POST
   ======================================== */

.featured-post {
    position: relative;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.featured-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: white;
    position: relative;
}

.featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xl);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-category {
    display: inline-block;
    background-color: var(--color-red);
    color: white;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: fit-content;
}

.featured-post h2 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
}

.featured-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

.featured-date {
    font-size: 0.85rem;
    opacity: 0.8;
    color: var(--color-dark-blue);
}

/* ========================================
   SECTION TITLE
   ======================================== */

.section-title {
    background-color: var(--color-red);
    color: white;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-lg);
    display: inline-block;
}

/* ========================================
   NEWS CARDS
   ======================================== */

.news-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--spacing-lg) !important;
    margin-bottom: var(--spacing-lg) !important;
}

.news-card-item {
    background-color: white !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transition: all 0.3s !important;
}

.news-card-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.news-card-item:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    font-size: 0.85rem;
}

.card-date {
    color: #4DA6D6;
    font-weight: 600;
}

.card-category {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    display: inline-block;
    background-color: var(--color-red);
    color: white;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.sidebar-section {
    background-color: white;
    border: 1px solid var(--color-border);
    padding: 0;
    border-radius: 0;
}

.sidebar-title {
    background-color: var(--color-red);
    color: white;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid var(--color-border);
    color: white;
    width: 100%;
}

.btn-patron {
    background-color: var(--color-red);
}

.btn-patron:hover {
    background-color: var(--color-red-dark);
}

.btn-coffee {
    background-color: var(--color-yellow);
    color: #333;
    border-bottom: none;
}

.btn-coffee:hover {
    background-color: #ffdb00;
}

.btn i {
    font-size: 1.1rem;
}

/* ========================================
   SOCIAL GRID
   ======================================== */

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    border: 1px solid var(--color-border);
    border-left: none;
    border-bottom: none;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    height: 100px;
}

.social-btn:nth-child(2n) {
    border-left: 1px solid var(--color-border);
}

.social-btn:nth-last-child(1),
.social-btn:nth-last-child(2) {
    border-bottom: 1px solid var(--color-border);
}

.social-facebook {
    background-color: #3b5998;
}

.social-facebook:hover {
    background-color: #2d4373;
}

.social-twitter {
    background-color: #000000;
}

.social-twitter:hover {
    background-color: #222;
}

.social-instagram {
    background-color: #e1306c;
}

.social-instagram:hover {
    background-color: #c91c52;
}

.social-youtube {
    background-color: var(--color-red);
}

.social-youtube:hover {
    background-color: var(--color-red-dark);
}

.social-tiktok {
    background-color: #000000;
}

.social-tiktok:hover {
    background-color: #222;
}

.social-spotify {
    background-color: #1db954;
}

.social-spotify:hover {
    background-color: #1aa34a;
}

.social-btn svg {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
}

.social-btn span {
    letter-spacing: 0.3px;
}

.search-btn svg,
.btn-patron svg,
.btn-coffee svg {
    display: inline-block;
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   CATEGORIES LIST
   ======================================== */

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

.categories-list li {
    border-bottom: 1px solid var(--color-border);
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: block;
    padding: 12px 16px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.categories-list a:hover {
    color: var(--color-red);
    padding-left: 20px;
}

/* Resources List */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1.5px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    cursor: pointer;
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-item:hover {
    background-color: #FFF0F2;
    color: var(--color-red);
}

.resource-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.resource-dot.blue {
    background-color: #00AAFF;
}

.resource-dot.red {
    background-color: var(--color-red);
}

/* Campaign Banner */
.campaign-banner {
    display: block;
    text-decoration: none;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
    cursor: pointer;
}

.campaign-banner:hover {
    opacity: 0.92;
    transform: scale(1.02);
}

.campaign-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    margin-top: var(--spacing-xl) !important;
    border-top: 2px solid var(--color-red) !important;
    border-bottom: 2px solid var(--color-red) !important;
    padding: 16px !important;
}

.pagination nav.pagination {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.pagination .nav-links {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    flex: 1 !important;
}

.pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s !important;
    border-radius: 3px !important;
    min-width: 36px !important;
    color: var(--color-text) !important;
    background-color: white !important;
}

.pagination a.page-numbers {
    color: var(--color-text) !important;
}

.pagination a.page-numbers:hover {
    background-color: var(--color-red) !important;
    color: white !important;
    border-color: var(--color-red) !important;
}

.pagination span.page-numbers.current {
    background-color: var(--color-red) !important;
    color: white !important;
    border-color: var(--color-red) !important;
}

.pagination .page-numbers.dots {
    border: none !important;
    padding: 8px 4px !important;
    background-color: transparent !important;
    min-width: auto !important;
}

.pagination a.prev.page-numbers {
    color: #999 !important;
    background-color: #e8e8e8 !important;
    border: none !important;
    padding: 10px 16px !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    min-width: auto !important;
    flex: 0 0 auto !important;
    order: -1 !important;
}

.pagination a.prev.page-numbers:hover {
    color: white !important;
    background-color: var(--color-red) !important;
}

.pagination a.next.page-numbers {
    color: white !important;
    background-color: var(--color-red) !important;
    border: none !important;
    padding: 10px 16px !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    min-width: auto !important;
    flex: 0 0 auto !important;
    order: 1 !important;
}

.pagination a.next.page-numbers:hover {
    background-color: var(--color-red-dark) !important;
}

.pagination-info {
    padding: 12px 0 0 0 !important;
    text-align: center !important;
    color: #0099cc !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-top: 12px !important;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: linear-gradient(160deg, #021824 0%, #042D44 55%, #053348 100%);
    color: rgba(255,255,255,.7);
    border-top: 3px solid var(--color-red);
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

.footer-brand-logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: white;
    line-height: 1;
    margin-bottom: .4rem;
}

.footer-brand-logo em { color: var(--color-red); font-style: normal; }

.footer-tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,.3);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,.5);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.6);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.12);
    transition: background .15s, color .15s;
    font-size: 0.9rem;
}

.footer-social-btn svg {
    width: 20px;
    height: 20px;
}

.footer-social-btn:hover {
    background: var(--color-red);
    color: white;
    border-color: var(--color-red);
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: .18em;
    margin-bottom: .9rem;
}

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

.footer-links li {
    margin-bottom: .5rem;
}

.footer-links a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color .15s;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.footer-links a::before {
    content: '•';
    color: var(--color-red);
    opacity: .6;
    transition: opacity .15s;
}

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

.footer-links a:hover::before {
    opacity: 1;
}

.footer-donate-btn {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1rem;
    border: none;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: .6rem;
    transition: opacity .15s, transform .15s;
    border-radius: 4px;
    width: 100%;
    justify-content: center;
    color: white;
}

.footer-donate-btn svg {
    width: 20px;
    height: 20px;
}

.footer-donate-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.footer-donate-btn.patreon {
    background: #FF424D;
}

.footer-donate-btn.coffee {
    background: #FFDD00;
    color: #1a1a1a;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1rem 1.5rem;
    text-align: center;
    max-width: 1240px;
    margin: 0 auto;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,.35);
}

.footer-copy a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color .15s;
}

/* ========================================
   SINGLE POST PAGE
   ======================================== */

.news-detail {
    background-color: transparent;
    padding: var(--spacing-xl);
    border-radius: 0;
    max-width: none;
}

.post-header {
    margin-bottom: var(--spacing-xl);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--color-red);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.back-link:hover {
    background-color: var(--color-red-dark);
}

.post-thumbnail {
    width: 100%;
    margin-bottom: var(--spacing-xl);
    border-radius: 0;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--color-border);
}

.post-date {
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 600;
}

.post-category {
    display: inline-block;
    background-color: var(--color-red);
    color: white;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.post-author {
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 600;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.post-content p {
    margin-bottom: var(--spacing-md);
}

.post-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-red);
}

.post-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.post-content a {
    color: var(--color-red);
    text-decoration: none;
    font-weight: 600;
}

.post-content a:hover {
    text-decoration: underline;
}

/* Author Section */
.author-section {
    background-color: #f9f9f9;
    border-left: 4px solid var(--color-red);
    padding: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    margin-bottom: 0;
}

.author-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.author-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--color-red);
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 2rem;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--color-red);
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.author-role {
    font-size: 0.9rem;
    color: var(--color-red);
    font-weight: 600;
    margin: 0;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}

html.dark-mode .author-section {
    background-color: var(--color-white);
}

/* ========================================
   PAGE CONTENT
   ======================================== */

.page-content {
    background-color: white;
    padding: var(--spacing-xl);
    border: 1px solid var(--color-border);
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    border-bottom: 3px solid var(--color-red);
    padding-bottom: var(--spacing-md);
}

.page-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.page-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-red);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.page-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.page-body p {
    margin-bottom: var(--spacing-md);
}

.page-body strong {
    font-weight: 700;
    color: var(--color-red);
}

.page-body em {
    font-style: italic;
    color: var(--color-text-light);
}

.page-body a {
    color: var(--color-red);
    text-decoration: none;
    font-weight: 600;
}

.page-body a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Desktop Navigation - Show by default */
@media (min-width: 1201px) {
    .menu-toggle {
        display: none !important;
    }

    .theme-toggle-mobile {
        display: none !important;
    }

    .main-nav .theme-toggle-mobile {
        display: none !important;
    }

    .main-nav {
        display: flex !important;
    }

    .mobile-search {
        display: flex !important;
        margin-left: auto;
        border: none;
        padding: 0 20px;
        height: 100%;
        align-items: center;
    }

    .mobile-search form {
        height: 36px;
        display: flex;
        align-items: center;
    }

    .mobile-search .search-input {
        height: 32px;
        padding: 8px 12px;
    }

    .mobile-search .search-btn {
        height: 32px;
        padding: 8px 12px;
    }

    .nav-search {
        display: none !important;
    }

    .nav-content {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        align-items: stretch;
        width: 100%;
    }

    .nav-link {
        flex: 0 1 auto;
        padding: 14px 20px;
        color: white;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s;
        white-space: nowrap;
    }
}

/* Mobile & Tablet (1200px and below) */
@media (max-width: 1200px) {
    .menu-toggle {
        display: flex;
    }

    .social-icons {
        display: none !important;
    }

    .theme-toggle-desktop {
        display: flex !important;
    }

    .theme-toggle-mobile {
        display: none;
        margin-left: auto;
        padding: 12px 16px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav.active .theme-toggle-mobile {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 3px);
        left: 0;
        right: 0;
        background-color: #0a1f2e;
        border-bottom: 1px solid var(--color-border);
        z-index: 1000;
        width: 100%;
        max-width: none;
        flex-direction: column;
    }

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

    .nav-content {
        flex-direction: column;
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-nav .nav-link {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 12px 16px;
        font-size: 0.9rem;
        flex: 0;
        white-space: normal;
    }

    .main-nav .nav-link:last-of-type {
        border-bottom: none;
    }

    .main-nav .theme-toggle-mobile {
        display: none;
    }

    .main-nav.active .theme-toggle-mobile {
        display: flex;
    }

    .nav-search {
        display: none !important;
    }

    .mobile-search {
        display: none;
        padding: 12px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav.active .mobile-search {
        display: block;
    }

    .mobile-search form {
        display: flex;
        gap: 8px;
    }

    .mobile-search .search-input {
        flex: 1;
        padding: 10px 12px;
        border: 1px solid #555;
        border-radius: var(--radius-md);
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 0.9rem;
    }

    .mobile-search .search-input::placeholder {
        color: #999;
    }

    .mobile-search .search-btn {
        padding: 10px 15px;
        background-color: transparent;
        border: 1px solid #555;
        color: white;
        cursor: pointer;
        border-radius: var(--radius-md);
        transition: all 0.3s;
    }

    .mobile-search .search-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    :root {
        --spacing-md: 0.85rem;
        --spacing-lg: 1.2rem;
        --spacing-xl: 1.5rem;
    }

    .site-main {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .news-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .sidebar {
        display: none;
    }

    .header-top {
        padding: 12px var(--spacing-md);
    }

    .header-top-content {
        gap: 8px;
        flex-wrap: nowrap;
        padding: 0;
    }

    .site-title {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }

    .site-tagline {
        display: none;
    }

    .header-search {
        display: none;
    }

    .social-icons {
        display: none;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        min-width: 32px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .featured-post {
        height: 240px;
        margin-bottom: var(--spacing-md);
    }

    .featured-content {
        padding: var(--spacing-md);
    }

    .featured-post h2 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .featured-excerpt {
        display: none;
    }

    .featured-category {
        padding: 4px 8px;
        font-size: 0.65rem;
    }

    .section-title {
        padding: 10px 14px;
        font-size: 0.75rem;
        margin-bottom: var(--spacing-md);
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .card-image {
        height: 160px;
    }

    .card-content {
        padding: var(--spacing-md);
    }

    .card-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .card-excerpt {
        font-size: 0.8rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .card-meta {
        gap: var(--spacing-md);
        font-size: 0.8rem;
    }

    .card-date {
        font-size: 0.75rem;
    }

    .card-category {
        padding: 3px 6px;
        font-size: 0.6rem;
        top: 8px;
        left: 8px;
    }

    .pagination {
        margin-top: var(--spacing-lg);
        padding: 12px var(--spacing-md) !important;
    }

    .pagination .nav-links {
        gap: 4px !important;
    }

    .pagination .page-numbers {
        padding: 6px 8px !important;
        font-size: 0.75rem !important;
        min-width: 32px !important;
    }

    .pagination a.prev.page-numbers,
    .pagination a.next.page-numbers {
        padding: 8px 10px !important;
        font-size: 0.7rem !important;
    }

    .pagination-info {
        font-size: 0.8rem !important;
    }

    .news-detail {
        padding: var(--spacing-lg);
    }

    .news-detail h1 {
        font-size: 1.4rem;
    }

    .post-meta {
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }

    .post-date {
        font-size: 0.85rem;
    }

    .post-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .post-content h2 {
        font-size: 1.3rem;
        margin-top: var(--spacing-lg);
    }

    .post-content h3 {
        font-size: 1.1rem;
    }

    .page-content {
        padding: var(--spacing-lg);
    }

    .page-content h1 {
        font-size: 1.5rem;
    }

    .page-body {
        font-size: 0.95rem;
    }

    .page-body h2 {
        font-size: 1.3rem;
    }

    .page-body h3 {
        font-size: 1.1rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 2rem 1.25rem 1.5rem;
    }

    .footer-brand-logo {
        grid-column: 1 / -1;
        font-size: 1.5rem;
    }

    .footer-desc {
        grid-column: 1 / -1;
        font-size: 0.8rem;
    }

    .back-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .author-section {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }

    .author-avatar img {
        width: 70px;
        height: 70px;
    }

    .author-name {
        font-size: 1.1rem;
    }

    .author-bio {
        font-size: 0.9rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --spacing-md: 0.75rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.25rem;
    }

    html {
        font-size: 15px;
    }

    body {
        line-height: 1.5;
    }

    .site-header {
        border-bottom-width: 2px;
    }

    .header-top {
        padding: 10px var(--spacing-md);
    }

    .header-top-content {
        flex-wrap: wrap;
        gap: 8px;
    }

    .site-brand {
        flex: 1 1 auto;
        gap: 6px;
        min-width: 0;
    }

    .site-logo {
        width: 36px;
        height: 36px;
    }

    .site-title {
        font-size: 1.1rem;
        font-weight: 800;
    }

    .title-accent {
        display: block;
    }

    .site-tagline {
        display: none;
    }

    .brand-text {
        flex: 1;
        min-width: 0;
    }

    .header-search {
        display: none;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        margin-left: auto;
    }

    .social-icons {
        width: 100%;
        order: 2;
        gap: 4px;
        margin-top: 8px;
        justify-content: center;
    }

    .social-link {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.6rem;
    }

    .social-link svg {
        width: 14px;
        height: 14px;
    }

    .nav-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .nav-link {
        flex: 0 0 auto;
        padding: 10px 10px;
        font-size: 0.65rem;
        white-space: nowrap;
        border-right-width: 0.5px;
        letter-spacing: 0.3px;
    }

    .main-nav {
        border-bottom-width: 1px;
    }

    .site-main {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .featured-post {
        height: 200px;
        margin-bottom: var(--spacing-md);
        border-radius: 0;
    }

    .featured-content {
        padding: 12px;
        gap: 6px;
    }

    .featured-post h2 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 0;
    }

    .featured-category {
        padding: 3px 6px;
        font-size: 0.6rem;
        width: fit-content;
    }

    .featured-date {
        font-size: 0.7rem;
    }

    .featured-excerpt {
        display: none;
    }

    .section-title {
        padding: 8px 12px;
        font-size: 0.7rem;
        margin-bottom: var(--spacing-md);
        letter-spacing: 0.5px;
    }

    .news-container {
        gap: var(--spacing-md);
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .news-card-item {
        border: 0.5px solid var(--color-border);
    }

    .news-card-item:hover {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .card-image {
        height: 140px;
    }

    .card-content {
        padding: 10px;
    }

    .card-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .card-excerpt {
        font-size: 0.75rem;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .card-meta {
        gap: 6px;
        font-size: 0.7rem;
        align-items: center;
    }

    .card-date {
        font-size: 0.7rem;
    }

    .card-category {
        padding: 2px 4px;
        font-size: 0.55rem;
        top: 6px;
        left: 6px;
        letter-spacing: 0.2px;
    }

    .pagination {
        margin-top: var(--spacing-lg);
        border-width: 1px 0 !important;
        padding: 10px var(--spacing-md) !important;
    }

    .pagination .nav-links {
        gap: 2px !important;
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .pagination .page-numbers {
        padding: 4px 6px !important;
        font-size: 0.65rem !important;
        min-width: 28px !important;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pagination a.prev.page-numbers,
    .pagination a.next.page-numbers {
        padding: 6px 8px !important;
        font-size: 0.65rem !important;
        flex: 0 0 auto;
        order: initial;
    }

    .pagination a.prev.page-numbers {
        order: -1;
    }

    .pagination a.next.page-numbers {
        order: 3;
    }

    .pagination-info {
        font-size: 0.7rem !important;
        margin-top: 8px;
    }

    .news-detail {
        padding: var(--spacing-lg) var(--spacing-md);
        border: none;
        background-color: transparent;
    }

    .news-detail h1 {
        font-size: 1.2rem;
        font-weight: 800;
        margin-bottom: var(--spacing-md);
    }

    .post-header {
        margin-bottom: var(--spacing-md);
    }

    .back-link {
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .back-link svg {
        width: 16px;
        height: 16px;
    }

    .post-thumbnail {
        margin-bottom: var(--spacing-lg);
        border-radius: 0;
    }

    .post-meta {
        gap: var(--spacing-md);
        font-size: 0.8rem;
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-md);
        flex-direction: column;
        align-items: flex-start;
    }

    .author-section {
        padding: var(--spacing-lg) var(--spacing-md);
        margin-top: var(--spacing-lg);
    }

    .author-header {
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .author-avatar img {
        width: 60px;
        height: 60px;
    }

    .author-name {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .author-role {
        font-size: 0.85rem;
    }

    .author-bio {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .post-date {
        font-size: 0.75rem;
    }

    .post-category {
        padding: 4px 8px;
        font-size: 0.65rem;
    }

    .post-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .post-content p {
        margin-bottom: var(--spacing-md);
    }

    .post-content h2 {
        font-size: 1.15rem;
        margin-top: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }

    .post-content h3 {
        font-size: 1rem;
        margin-top: var(--spacing-md);
    }

    .post-content a {
        word-break: break-word;
    }

    .page-content {
        padding: var(--spacing-lg) var(--spacing-md);
        border: none;
        background-color: transparent;
    }

    .page-content h1 {
        font-size: 1.3rem;
        padding-bottom: var(--spacing-md);
    }

    .page-body {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .page-body h2 {
        font-size: 1.15rem;
        margin-top: var(--spacing-lg);
    }

    .page-body h3 {
        font-size: 1rem;
    }

    .page-body p {
        margin-bottom: var(--spacing-md);
    }

    .sidebar-section {
        margin-bottom: var(--spacing-lg);
    }

    .categories-list a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .categories-list a:hover {
        padding-left: 14px;
    }

    .resource-item {
        padding: 12px 12px;
        font-size: 0.85rem;
        gap: 10px;
    }

    .btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

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

    .social-btn {
        padding: 12px 8px;
        height: 80px;
        font-size: 0.65rem;
        gap: 4px;
    }

    .social-btn svg {
        width: 24px;
        height: 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.5rem var(--spacing-md) 1rem;
    }

    .footer-brand-logo {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .footer-col-title {
        font-size: 0.65rem;
        margin-bottom: 0.7rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-desc {
        font-size: 0.8rem;
        max-width: 100%;
    }

    .footer-donate-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .footer-copy {
        font-size: 0.65rem;
        padding: 0.8rem 1rem;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }

    .site-title {
        font-size: 1rem;
    }

    .title-accent {
        display: inline;
    }

    .site-logo {
        width: 32px;
        height: 32px;
    }

    .nav-link {
        padding: 8px 8px;
        font-size: 0.6rem;
    }

    .featured-post {
        height: 180px;
    }

    .featured-post h2 {
        font-size: 0.9rem;
    }

    .section-title {
        padding: 6px 10px;
        font-size: 0.65rem;
    }

    .card-image {
        height: 120px;
    }

    .card-title {
        font-size: 0.8rem;
    }

    .card-excerpt {
        font-size: 0.7rem;
    }

    .news-detail h1 {
        font-size: 1.1rem;
    }

    .post-content {
        font-size: 0.85rem;
    }

    .post-content h2 {
        font-size: 1rem;
    }
}

/* ========================================
   THEME TOGGLE & DARK MODE
   ======================================== */

.theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid #555;
    cursor: pointer;
    transition: all 0.3s;
    flex: 0 0 auto;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .moon-icon {
    display: none;
}

html.dark-mode .theme-toggle .sun-icon {
    display: none;
}

html.dark-mode .theme-toggle .moon-icon {
    display: block;
}

/* Dark Mode Color Scheme */
html.dark-mode {
    --color-text: #e0e0e0;
    --color-text-light: #a0a0a0;
    --color-bg: #0d1f2b;
    --color-white: #1a2f3f;
    --color-border: #2a3f4f;
}

html.dark-mode body {
    background-color: var(--color-bg);
    color: var(--color-text);
}

html.dark-mode .site-header {
    background-color: var(--color-dark);
}

html.dark-mode .main-nav {
    background-color: #051419;
}

html.dark-mode .news-card-item {
    background-color: var(--color-white) !important;
    border-color: var(--color-border) !important;
}

html.dark-mode .card-content {
    background-color: var(--color-white);
}

html.dark-mode .page-content {
    background-color: var(--color-white);
    border-color: var(--color-border);
}

html.dark-mode .news-detail {
    background-color: var(--color-white);
    color: var(--color-text);
}

html.dark-mode .sidebar-section {
    background-color: var(--color-white);
    border-color: var(--color-border);
}

html.dark-mode .featured-post {
    background-color: #1a2f3f;
}

html.dark-mode .card-date,
html.dark-mode .featured-date {
    color: #4DA6D6;
}

html.dark-mode .card-excerpt,
html.dark-mode .featured-excerpt {
    color: var(--color-text-light);
}

html.dark-mode .pagination {
    border-top-color: var(--color-red);
    border-bottom-color: var(--color-red);
}

html.dark-mode .pagination .page-numbers {
    border-color: var(--color-border) !important;
    background-color: var(--color-white) !important;
    color: var(--color-text) !important;
}

html.dark-mode .pagination a.page-numbers:hover {
    background-color: var(--color-red) !important;
    color: white !important;
}

html.dark-mode .pagination span.page-numbers.current {
    background-color: var(--color-red) !important;
    color: white !important;
}

html.dark-mode .pagination a.prev.page-numbers {
    background-color: #2a3f4f !important;
    color: #808080 !important;
}

html.dark-mode .pagination a.next.page-numbers {
    background-color: var(--color-red) !important;
    color: white !important;
}

html.dark-mode .pagination-info {
    color: #4DA6D6 !important;
}

html.dark-mode .search-input {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: #555;
}

html.dark-mode .categories-list a {
    color: var(--color-text-light);
}

html.dark-mode .categories-list a:hover {
    color: var(--color-red);
}

html.dark-mode .resource-item {
    color: var(--color-text-light);
    border-color: var(--color-border);
}

html.dark-mode .resource-item:hover {
    background-color: rgba(241, 25, 49, 0.1);
    color: var(--color-red);
}
