/*
Theme Name: HASH
Theme URI: https://znamdaneznam.com
Author: Senad Hajlovac
Author URI: https://hash.ba
Description: Ultra-brza, minimalistička i moderna tema za magazin Znam da Ne Znam. Potpuno neovisna o vanjskim bibliotekama, sa nativnim Open Graph / SEO modulom, Dark/Light modom i savršenom mobilnom optimizacijom.
Version: 1.5.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary / Custom
Text Domain: hash
*/

/* Reset & CSS Varijable (Design Tokens) */
:root {
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* SVIJETLA TEMA (LIGHT MODE - DEFAULT) */
    --bg-primary: #F8F9FA;
    --bg-surface: #FFFFFF;
    --bg-secondary: #F1F3F5;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --accent: #FF5E36;
    --accent-hover: #E04823;
    --accent-soft: rgba(255, 94, 54, 0.08);
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.94);
    --header-border: #E2E8F0;
}

[data-theme="dark"] {
    /* TAMNA TEMA (DARK MODE) */
    --bg-primary: #0B0F17;
    --bg-surface: #151D2A;
    --bg-secondary: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-color: #243044;
    --accent: #FF724E;
    --accent-hover: #FF886A;
    --accent-soft: rgba(255, 114, 78, 0.12);
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(21, 29, 42, 0.94);
    --header-border: #243044;
}

/* Osnovni stilovi */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    transition: background-color 0.2s ease, color 0.2s ease;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Kontejner */
.hash-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ========================================================
   ZAGLAVLJE & NAVIGACIJA (DESKTOP & MOBITEL)
   ======================================================== */
.hash-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--header-border);
}

.hash-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1rem;
}

/* Brand Logo */
.hash-brand {
    display: flex;
    flex-direction: column;
}

.hash-brand-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
    white-space: nowrap;
}

.hash-brand-title span {
    color: var(--accent);
}

.hash-brand-tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Desktop Meni */
.desktop-nav {
    display: flex;
    align-items: center;
}

.hash-nav-links {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}

.hash-nav-links a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.5rem 0.25rem;
    white-space: nowrap;
}

.hash-nav-links a:hover,
.hash-nav-links .current-menu-item > a {
    color: var(--accent);
}

.hash-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Dugmad (Search, Theme, Hamburger) */
.search-toggle-btn,
.theme-toggle-btn,
.mobile-menu-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-toggle-btn:hover,
.theme-toggle-btn:hover,
.mobile-menu-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

.search-toggle-btn svg,
.theme-toggle-btn svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

/* Ikone sunce/mjesec */
.theme-toggle-btn .icon-sun { display: none; }
.theme-toggle-btn .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }

/* Hamburger dugme (Skriveno na desktopu) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    border-radius: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* Mobilni Popup Meni Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 2000;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-menu-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.mobile-menu-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 1.75rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a:hover {
    color: var(--accent);
}

/* Pretraga Modal */
.hash-search-modal {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    box-shadow: var(--card-shadow);
    display: none;
    z-index: 999;
}

.hash-search-modal.active {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-input-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.search-field {
    width: 100%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    padding: 0.75rem 3.5rem 0.75rem 1.5rem;
    font-size: 1.05rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.search-field:focus {
    border-color: var(--accent);
}

.search-close-btn {
    position: absolute;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.search-close-btn:hover {
    color: var(--accent);
}

.hash-main {
    padding: 2rem 0 4rem;
}

/* ========================================================
   UNIKATNE BOJE KATEGORIJA (Dynamic Badges)
   ======================================================== */
.article-card-category,
.hero-cat,
.single-category,
.sidebar-post-cat,
.popular-cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cat-color, var(--accent)) !important;
    background: color-mix(in srgb, var(--cat-color, var(--accent)) 12%, transparent);
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.hero-cat {
    background: var(--cat-color, var(--accent));
    color: #FFFFFF !important;
}

.article-card-category:hover,
.single-category:hover {
    background: var(--cat-color, var(--accent));
    color: #FFFFFF !important;
}

/* ========================================================
   HERO SEKCIJA NA NASLOVNICI (POPRAVLJENA VISINA I OMJER)
   ======================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 1.75rem;
    margin-bottom: 3.5rem;
    align-items: stretch;
}

.hero-main {
    display: flex;
}

.hero-main-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    min-height: 440px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.hero-main-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

.hero-main-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-main-card:hover .hero-main-thumb img {
    transform: scale(1.03);
}

.hero-main-overlay {
    position: relative;
    z-index: 2;
    padding: 2.25rem 2rem;
    background: linear-gradient(180deg, rgba(11, 15, 23, 0) 0%, rgba(11, 15, 23, 0.75) 40%, rgba(11, 15, 23, 0.95) 100%);
    color: #FFFFFF;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0.65rem 0;
    color: #FFFFFF;
}

.hero-main-title a {
    color: #FFFFFF;
    text-decoration: none;
}

.hero-main-title a:hover {
    color: var(--accent);
}

.hero-main-excerpt {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #E2E8F0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
}

.hero-side-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    height: calc(50% - 0.75rem);
    min-height: 205px;
    min-width: 0;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-side-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
}

.hero-side-thumb {
    width: 42%;
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    min-width: 0;
}

.hero-side-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-side-card:hover .hero-side-thumb img {
    transform: scale(1.05);
}

.hero-side-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 58%;
    min-width: 0;
}

.hero-side-content .hero-cat {
    align-self: flex-start;
    width: fit-content;
    display: inline-block;
}

.hero-side-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.hero-side-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.hero-side-title a:hover {
    color: var(--accent);
}

/* ========================================================
   POPULAR STRIP (Totalni hitovi na naslovnici)
   ======================================================== */
.popular-strip-section {
    margin: 3.5rem 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: var(--card-shadow);
}

.popular-strip-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.popular-strip-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.popular-badge {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    min-width: 24px;
}

.popular-strip-body {
    flex-grow: 1;
}

.popular-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-top: 0.35rem;
}

.popular-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.popular-strip-card:hover .popular-title a {
    color: var(--accent);
}

/* ========================================================
   KATEGORIJSKI BLOKOVI & GRID
   ======================================================== */
.category-block-section {
    margin-top: 3.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.25rem;
    position: relative;
    gap: 1rem;
}

.category-colored-header {
    border-bottom-color: color-mix(in srgb, var(--block-cat-color, var(--accent)) 30%, var(--border-color));
}

.category-colored-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--block-cat-color, var(--accent));
    border-radius: 2px;
}

.header-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
}

.section-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 0.15rem;
}

.view-category-all {
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    background: color-mix(in srgb, var(--block-cat-color, var(--accent)) 10%, transparent);
    color: var(--block-cat-color, var(--accent)) !important;
    border: 1px solid color-mix(in srgb, var(--block-cat-color, var(--accent)) 25%, transparent);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.view-category-all:hover {
    background: var(--block-cat-color, var(--accent));
    color: #FFFFFF !important;
    transform: translateX(2px);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.article-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
}

.article-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 58%;
    background: var(--bg-secondary);
    overflow: hidden;
}

.article-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.article-card-content {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-meta {
    margin-bottom: 0.65rem;
}

.article-card-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.1rem;
    flex-grow: 1;
}

.article-card-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

.read-more-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent);
}

/* ========================================================
   SINGLE ČLANAK + SIDEBAR
   ======================================================== */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.25rem;
    align-items: start;
}

.single-article {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 2.5rem 2.75rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.single-header {
    margin-bottom: 1.5rem;
}

.single-title {
    font-family: var(--font-heading);
    font-size: 2.125rem;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0.75rem 0 1.25rem;
}

.share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.share-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
    color: #FFFFFF;
}

.share-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.share-fb { background: #1877F2; }
.share-wa { background: #25D366; }
.share-viber { background: #7360F2; }

.single-featured-image {
    margin: 1.75rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

.single-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.single-content p {
    margin-bottom: 1.5rem;
}

.single-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 2.25rem 0 1rem;
    color: var(--text-primary);
}

.single-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 1.75rem 0 0.75rem;
}

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.single-tag {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    transition: all 0.15s ease;
}

.single-tag:hover {
    background: var(--accent);
    color: #FFFFFF;
}

.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: var(--card-shadow);
}

.sidebar-widget-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.4rem;
    position: relative;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
}

.sidebar-posts-list.compact {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sidebar-post-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-num {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1;
    min-width: 18px;
}

.sidebar-post-num.popular {
    color: var(--accent);
}

.sidebar-post-item:hover .sidebar-post-num {
    color: var(--accent);
}

.sidebar-post-body {
    flex-grow: 1;
}

.sidebar-post-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.sidebar-post-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-post-item:hover .sidebar-post-title a {
    color: var(--accent);
}

.related-posts-section {
    margin-top: 3.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}

/* Footer */
.hash-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.hash-footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.mobile-menu-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ========================================================
   RESPONZIVNOST & MOBILNA OPTIMIZACIJA (MEDIA QUERIES)
   ======================================================== */
@media (max-width: 992px) {
    .desktop-nav {
        display: none !important;
    }

    .desktop-theme-btn {
        display: none !important;
    }

    .hash-header .hash-container {
        padding: 0 0.85rem;
    }

    .hash-header-inner {
        display: grid !important;
        grid-template-columns: 38px minmax(0, 1fr) 38px !important;
        align-items: center !important;
        height: 60px !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        grid-column: 1 !important;
        justify-self: start !important;
        width: 38px !important;
        height: 38px !important;
    }

    .hash-brand {
        grid-column: 2 !important;
        justify-self: center !important;
        min-width: 0 !important;
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hash-brand-title {
        display: block !important;
        font-size: 1.15rem !important;
        letter-spacing: -0.02em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .hash-brand-tagline {
        display: none !important;
    }

    .search-toggle-btn {
        display: flex !important;
        grid-column: 3 !important;
        justify-self: end !important;
        width: 38px !important;
        height: 38px !important;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .popular-strip-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 860px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-main-card {
        min-height: 360px;
    }

    .hero-side {
        flex-direction: column;
        gap: 1.25rem;
    }

    .hero-side-card {
        height: auto;
        min-height: 120px;
    }

    .hero-side-thumb {
        width: 36%;
        min-height: 120px;
    }

    .hero-side-content {
        width: 64%;
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .hash-container {
        padding: 0 1rem;
    }

    .hash-brand-title {
        font-size: 1.125rem;
    }

    .hash-brand-tagline {
        display: none;
    }

    .hero-main-card {
        min-height: 320px;
    }

    .hero-main-overlay {
        padding: 1.5rem 1.25rem;
    }

    .hero-main-title {
        font-size: 1.35rem;
    }

    .hero-side-card {
        min-height: 100px;
    }

    .hero-side-thumb {
        width: 38%;
        min-height: 100px;
    }

    .hero-side-content {
        width: 62%;
        padding: 0.85rem;
    }

    .hero-side-title {
        font-size: 0.9375rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .popular-strip-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .popular-strip-section {
        padding: 1.25rem 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .view-category-all {
        align-self: flex-start;
        font-size: 0.8125rem;
        padding: 0.3rem 0.75rem;
    }

    .single-article {
        padding: 1.25rem 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .single-title {
        font-size: 1.5rem;
    }
}
