/*
Theme Name: Fashionvibe
Theme URI: https://fashionvibe.id
Author: FandhiDev
Author URI: https://fandhidev.site/
Description: Tema portal berita fashion minimalis dengan desain elegan dan modern untuk komunitas fashion Indonesia
Version: 1.0.3
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fashionvibe
Domain Path: /languages
Template:
Status: active
*/

/* ===== Root Variables ===== */
:root {
    --primary-bg: #fdfaf7;
    --accent-color: #c4a484;
    --dark-text: #1a1a1a;
    --light-text: #666;
    --white: #ffffff;
    --border-color: #eee;
    --trending-ticker-speed: 24s;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: var(--primary-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

a {
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

/* ===== Header Styles ===== */
/* ===== Header 3 Rows ===== */
/* ============================================================
   SITE HEADER — 3-Row Layout
   Row 1 : Trending ticker  ·  Social icons
   Row 2 : Hamburger  ·  Logo  ·  Search
   Row 3 : Navigation menu
   ============================================================ */

.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.header-row {
    width: 100%;
}

.header-row-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

/* ── ROW 1 ── Trending Ticker + Social Icons ──────────────── */
.header-row-1 {
    background: #222;
    color: #fff;
}

.header-row-1 .header-row-inner {
    justify-content: space-between;
    min-height: 38px;
    gap: 20px;
}

/* Trending block */
.header-trending {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.trending-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent-color);
    color: #fff;
    padding: 2px 10px 2px 8px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.6rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    flex-shrink: 0;
}

.trending-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.6); }
}

.trending-ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
    height: 24px;
    /* Soft fade on left/right edges for horizontal ticker */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.trending-ticker {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: max-content;
    white-space: nowrap;
    animation: ticker-scroll-horizontal var(--trending-ticker-speed) linear infinite;
    will-change: transform;
}

.trending-ticker-wrap:hover .trending-ticker {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    color: #c8c8c8;
    text-decoration: none;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
    padding: 0;
    line-height: 24px;
    position: relative;
    padding-right: 24px;
}

.ticker-item::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%);
}

.ticker-item:hover {
    color: var(--accent-color);
}

@keyframes ticker-scroll-horizontal {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Social icons in Row 1 */
.header-social {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: #aaa;
    font-size: 0.8rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
}

.header-social-link:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-1px);
}

/* ── ROW 2 ── Hamburger · Logo · Search ──────────────────── */
.header-row-2 {
    background: var(--white);
}

.header-row-2 .header-row-inner {
    justify-content: space-between;
    min-height: 86px;
    gap: 0;
}

/* Col 1 — Hamburger (fixed width = same as Col 3) */
.header-col-menu {
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.menu-toggle {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    transition: border-color 0.2s, background 0.2s;
}

.menu-toggle:hover {
    border-color: var(--border-color);
    background: var(--primary-bg);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease;
    transform-origin: center;
}

/* Animate to X */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}
.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Col 2 — Logo (centered, takes remaining space) */
.header-col-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 16px;
}

.brand-logo-link {
    color: var(--dark-text);
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}

.brand-logo-link:hover {
    opacity: 0.75;
    color: var(--dark-text);
}

.brand-logo {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--dark-text);
    line-height: 1;
    text-transform: uppercase;
    font-family: Georgia, 'Times New Roman', serif;
}

.tagline {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #aaa;
    font-weight: 400;
    margin-top: 5px;
    font-family: Georgia, 'Times New Roman', serif;
}

/* Col 3 — Search (fixed width = same as Col 1) */
.header-col-search {
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border: 1.5px solid #e5e5e5;
    border-radius: 24px;
    padding: 8px 16px;
    width: 100%;
    max-width: 220px;
    transition: border-color 0.25s, box-shadow 0.25s, max-width 0.3s;
}

.search-bar:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(196,164,132,0.12);
    max-width: 260px;
    background: #fff;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    flex: 1;
    font-size: 0.82rem;
    color: var(--dark-text);
    min-width: 0;
    font-family: inherit;
}

.search-bar input::placeholder {
    color: #b0b0b0;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
    color: #b0b0b0;
    padding: 0;
    margin-left: 6px;
    width: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.search-bar button:hover {
    color: var(--accent-color);
    background: none;
}

/* ── ROW 3 ── Navigation Menu ────────────────────────────── */
.header-row-3 {
    background: var(--white);
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #ebebeb;
}

.header-row-3 .header-row-inner {
    min-height: 0;
    justify-content: center;
    padding: 0 24px;
}

.nav-primary-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.drawer-search {
    display: none;
}

.nav-primary {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-primary > li {
    list-style: none;
    position: relative;
}

.nav-primary > li > a {
    display: block;
    padding: 14px 15px;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #444;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s;
}

/* Animated underline */
.nav-primary > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-primary > li > a:hover,
.nav-primary > li.current-menu-item > a,
.nav-primary > li.current-menu-ancestor > a {
    color: var(--accent-color);
}

.nav-primary > li > a:hover::after,
.nav-primary > li.current-menu-item > a::after,
.nav-primary > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* Dropdown */
.nav-primary > li > ul {
    display: none;
    opacity: 0;
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 300;
    border-top: 2px solid var(--accent-color);
    border-radius: 0 0 6px 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-primary > li:hover > ul {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-primary > li > ul > li > a {
    display: block;
    padding: 9px 20px;
    font-size: 0.78rem;
    color: #555;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    white-space: nowrap;
}

.nav-primary > li > ul > li > a:hover {
    background: var(--primary-bg);
    color: var(--accent-color);
    padding-left: 26px;
}

.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 350;
}

.nav-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.nav-drawer-open {
    overflow: hidden;
}

/* ── Mobile Nav — handled via media query in responsive section ── */
/* Desktop: row 3 always visible, dropdowns can overflow */

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Main Content ===== */
.main-content {
    padding: 40px 0 0 0;
}

/* ===== Hero Section ===== */
/* ===== Hero Slider ===== */

/* Outer slider — stacks panels, each panel crossfades */
.hero-slider-outer {
    position: relative;
    margin-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Main hero wrapper */
.main-hero-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: 500px;
}

/* ===== Hero Slider Keyframes ===== */
@keyframes heroSlideIn {
    from { opacity: 0; transform: scale(1.07); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes heroSlideOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.96); }
}

@keyframes heroContentIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sideCardIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
}

.hero-slide.leaving {
    animation: heroSlideOut 0.55s ease forwards;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    animation: heroSlideIn 0.7s ease forwards;
}

/* Animate text content inside active slide */
.hero-slide.active > div {
    animation: heroContentIn 0.65s ease 0.18s both;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    z-index: 0;
}

.hero-slide > * {
    position: relative;
    z-index: 1;
}

.hero-slide h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-slide p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Dot indicators — hidden on desktop/tablet (panels show 3-col grid) */
.hero-slider-dots {
    display: none;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
    flex-shrink: 0;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.side-hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-card {
    flex: 1;
    background: #333;
    color: white;
    padding: 20px;
    background-size: cover;
    background-position: center;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    min-height: 240px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.side-card.active {
    display: flex;
    animation: sideCardIn 0.55s ease forwards;
}

.side-card.active + .side-card.active {
    animation-delay: 0.1s;
}

.side-card:hover {
    transform: scale(1.025);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.side-card > div {
    transition: transform 0.3s ease;
}

.side-card:hover > div {
    transform: translateY(-5px);
}

.side-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.side-card > * {
    position: relative;
    z-index: 1;
}

.side-card h4 {
    font-size: 1rem;
    margin-top: 10px;
}

/* ===== Section Title ===== */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.section-title h2 {
    font-size: 1.3rem;
    margin: 0;
}

.view-all {
    color: var(--dark-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* ===== Articles Grid ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border: 1px solid #e9e2d8;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.article-card-image {
    position: relative;
}

.article-card .badge-on-image {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
}

.article-card .badge-in-content {
    display: none;
}

.article-card-content {
    padding: 15px;
}

.article-card h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 2.8rem;
}

.article-card .article-date {
    font-size: 0.8rem;
    color: var(--light-text);
}

.article-card .article-link {
    display: inline-block;
}

/* ===== Archive Posts List ===== */
.archive-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.archive-post-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 14px;
    height: 220px;
    max-height: 220px;
    background: var(--white);
    border: 1px solid #e9e2d8;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.archive-post-card:hover,
.archive-post-card:focus-within {
    transform: translateY(-3px);
    border-color: #dcc8b4;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.archive-post-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: 6px;
}

.archive-post-link-overlay:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

.archive-post-thumb-wrap {
    position: relative;
    display: block;
    height: 100%;
    min-height: 0;
    z-index: 1;
}

.archive-post-thumb {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.archive-post-thumb-wrap .badge-on-image {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
}

.archive-post-content {
    position: relative;
    z-index: 1;
    padding: 14px 18px 14px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
    overflow: hidden;
}

.archive-post-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark-text);
}

.archive-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--light-text);
    font-size: 0.82rem;
}

.archive-post-meta-sep {
    opacity: 0.7;
}

.archive-post-lead {
    margin: 0;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Latest Articles Reveal Animation ===== */
@keyframes latestFadeInUp {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes latestFadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-14px) scale(0.99);
    }
}

@keyframes editorpickFadeIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes editorpickFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.99);
    }
}

.js .latest-articles-reveal,
.js .latest-article-card.reveal-target {
    opacity: 0;
    will-change: transform, opacity;
}

.js .latest-articles-reveal {
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .latest-article-card.reveal-target {
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.js .latest-articles-reveal.is-visible,
.js .latest-article-card.reveal-target.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: latestFadeInUp 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.js .latest-articles-reveal.is-out,
.js .latest-article-card.reveal-target.is-out {
    opacity: 0;
    animation: latestFadeOutUp 0.38s ease both;
}

/* ===== All Posts Pagination ===== */
.all-posts-pagination {
    text-align: center;
    margin-top: 34px;
    padding: 22px 0 8px;
    border-top: 1px solid var(--border-color);
}

.all-posts-pagination .page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.all-posts-pagination .page-numbers li {
    margin: 0;
}

.all-posts-pagination .page-numbers a,
.all-posts-pagination .page-numbers span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--dark-text);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.all-posts-pagination .page-numbers a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.all-posts-pagination .page-numbers .current {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 8px 18px rgba(196, 164, 132, 0.35);
}

.all-posts-pagination .page-numbers .dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 4px;
    color: #999;
}

.all-posts-pagination .page-numbers .prev,
.all-posts-pagination .page-numbers .next {
    padding: 0 16px;
}

/* ===== Badge ===== */
.badge {
    background: var(--accent-color);
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 10px;
    border-radius: 2px;
    font-weight: 700;
}

/* ===== Sidebar ===== */
.sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.sidebar-section {
    padding: 20px;
}

.sidebar-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
}

.sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.sidebar-number {
    font-weight: 700;
    color: #999;
    font-size: 1.5rem;
}

.sidebar-text {
    flex: 1;
    margin-left: 10px;
}

.trending-topics .trending-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.trending-topics .trending-item .sidebar-text {
    margin-left: 0;
}

.trending-topics .trending-item .sidebar-text strong,
.trending-topics .trending-item .sidebar-text a {
    display: block;
}

.trending-topics .trending-item .sidebar-count {
    color: #999;
    white-space: nowrap;
    font-size: 0.78rem;
    text-align: right;
}

.popular-articles .popular-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
}

.popular-articles .popular-thumb {
    display: block;
    width: 84px;
    height: 66px;
    border-radius: 5px;
    overflow: hidden;
}

.popular-articles .popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-articles .popular-item .sidebar-text {
    margin-left: 0;
}

.popular-articles .popular-item .sidebar-text strong,
.popular-articles .popular-item .sidebar-text a {
    display: block;
}

.popular-articles .popular-item .sidebar-text small {
    display: block;
    margin-top: 4px;
    color: var(--light-text);
}

.editorpick-item {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.editorpick-video-section .editorpick-embed-component {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('assets/front_woman_in_hijab.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 56.25%;
}
/* Inline style from Customizer overrides default background-image above */

.editorpick-video-section .editorpick-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(2px);
    transition: transform 0.22s ease, background 0.22s ease;
}

.editorpick-video-section .editorpick-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.04);
    background: rgba(0, 0, 0, 0.4);
}

.editorpick-video-section .editorpick-play-btn .play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: transparent;
    font-size: 0;
    line-height: 0;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.editorpick-video-section .editorpick-play-btn .play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #1f1f1f;
}

.editorpick-video-section .editorpick-embed-frame,
.editorpick-video-section .editorpick-embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.editorpick-video-section .editorpick-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 12px;
    color: #fff;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.38) 42%,
        rgba(0, 0, 0, 0.16) 72%,
        rgba(0, 0, 0, 0) 100%
    );
}

.editorpick-video-section .editorpick-meta .editorpick-title {
    color: #fff;
}

.editorpick-video-section .editorpick-meta .editorpick-date {
    color: #fff;
}

.editorpick-video-section .editorpick-embed-component.is-playing .editorpick-play-btn,
.editorpick-video-section .editorpick-embed-component.is-playing .editorpick-meta {
    display: none;
}

.editorpick-video-wrap {
    width: 100%;
}

.editorpick-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.editorpick-video iframe,
.editorpick-video video,
.editorpick-video embed,
.editorpick-video object {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.editorpick-fallback-thumb {
    display: block;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.editorpick-fallback-thumb img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.editorpick-meta {
    margin-top: 10px;
}

.editorpick-meta .editorpick-title {
    color: var(--dark-text);
    margin: 4px 0 6px;
}

.editorpick-meta .editorpick-date {
    color: var(--light-text);
}

.editorpick-feature {
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: 190px;
    padding: 14px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.editorpick-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 0;
    transition: background 0.35s ease;
}

.editorpick-content {
    position: relative;
    z-index: 1;
    width: 100%;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.editorpick-feature:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.editorpick-feature:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.22) 100%);
}

.editorpick-feature:hover .editorpick-content {
    transform: translateY(-3px);
}

.js .editorpick-feature.reveal-target {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    will-change: transform, opacity;
}

.js .editorpick-feature.reveal-target.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: editorpickFadeIn 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.js .editorpick-feature.reveal-target.is-out {
    opacity: 0;
    animation: editorpickFadeOut 0.38s ease both;
}

.editorpick-title {
    display: block;
    color: #fff;
    line-height: 1.35;
    margin: 2px 0 6px;
}

.editorpick-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
}

/* ===== Editor's Pick Section ===== */
.editors-pick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.editors-image {
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

.editors-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.editors-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editors-image > * {
    position: relative;
    z-index: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: white;
}

/* ===== Newsletter Section ===== */
.newsletter {
    background-color: #f3ece4;
    background-image: url('assets/woman_in_hijab.webp');
    background-repeat: no-repeat;
    background-position: left 18px;
    background-size: 195px auto;
    padding: 40px;
    padding-left: 220px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 5px;
    margin: 40px 0;
}

.newsletter > * {
    position: relative;
    z-index: 1;
}

.newsletter-content h3 {
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
    width: min(100%, 560px);
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d2c5b7;
    border-radius: 999px;
    background: #fff;
    font-size: 0.9rem;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(200, 109, 70, 0.18);
}

.newsletter-form button {
    background: var(--dark-text);
    color: white;
    min-width: 150px;
    height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--accent-color);
}

/* ===== Footer ===== */
.site-footer {
    /* background: white; */
    padding: 50px 5%;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--light-text);
}

.footer-section ul,
.footer-section ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    display: block;
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 8px;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: #fff;
    background: #000;
    padding: 10px 20px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ===== Social Icons ===== */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f0f0f0;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.social-icons a:hover {
    background: var(--accent-color);
    color: white;
}

/* ===== Single Post ===== */
.post-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-header {
    margin-bottom: 30px;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 30px;
}

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

.post-content h2 {
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 15px;
}

/* ===== Comments ===== */
#comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-author {
    font-weight: 700;
    margin-bottom: 5px;
}

.comment-text {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* ===== Forms ===== */
input[type="email"],
input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-family: inherit;
}

button,
input[type="submit"] {
    background: var(--dark-text);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 700;
}

button:hover,
input[type="submit"]:hover {
    background: var(--accent-color);
}

/* ===== Responsive Design ===== */

/* Large Tablets & Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .header-row-inner {
        padding: 0 15px;
    }

    .brand-logo {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .nav-primary > li > a {
        padding: 12px 11px;
        font-size: 0.7rem;
    }

    .hero-grid {
        gap: 15px;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .archive-post-card {
        grid-template-columns: 190px 1fr;
        gap: 12px;
    }

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

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

    .header-col-search {
        width: 200px;
    }

    .header-col-menu,
    .header-col-search {
        width: 200px;
    }

    /* Hide row 1 on tablet/mobile */
    .header-row-1 {
        display: none;
    }

    /* Show hamburger only on tablet/mobile */
    .menu-toggle {
        display: flex;
    }

    /* Row 3 becomes left drawer */
    .header-row-3 {
        position: fixed;
        top: 0;
        left: 0;
        width: min(320px, 86vw);
        height: 100dvh;
        max-height: 100dvh;
        background: var(--white);
        border: none;
        border-right: 1px solid var(--border-color);
        box-shadow: 12px 0 35px rgba(0,0,0,0.14);
        transform: translateX(-102%);
        transition: transform 0.3s ease;
        z-index: 400;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .header-row-3.nav-open {
        transform: translateX(0);
    }

    .header-row-3 .header-row-inner {
        min-height: 100%;
        height: auto;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 78px 0 24px;
        overflow: visible;
    }

    .nav-primary-wrap {
        display: block;
        justify-content: flex-start;
        width: 100%;
    }

    .drawer-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        width: calc(100% - 32px);
        min-height: 52px;
        margin: 0 16px 16px;
        padding: 6px 6px 6px 14px;
        border: 1px solid var(--border-color);
        border-radius: 18px;
        background: #faf7f2;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
        overflow: hidden;
    }

    .drawer-search:focus-within {
        border-color: rgba(196, 164, 132, 0.6);
        box-shadow: 0 10px 24px rgba(196, 164, 132, 0.18);
    }

    .drawer-search input {
        min-width: 0;
        width: 100%;
        border: none;
        background: transparent;
        outline: none;
        padding: 0;
        font-size: 16px;
        line-height: 1.4;
        color: var(--dark-text);
        -webkit-appearance: none;
        appearance: none;
    }

    .drawer-search input::placeholder {
        color: #a8a8a8;
    }

    .drawer-search button {
        border: none;
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border-radius: 12px;
        background: var(--white);
        color: #7d6a58;
        font-size: 0.95rem;
        padding: 0;
        line-height: 1;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .drawer-search button:hover {
        color: var(--accent-color);
        background: #fff8f0;
        transform: translateY(-1px);
    }

    .nav-primary {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-primary > li > a {
        padding: 14px 24px;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.78rem;
    }

    .nav-primary > li > a::after {
        display: none;
    }

    .nav-primary > li:last-child > a {
        border-bottom: none;
    }

    .nav-primary > li > ul {
        position: static;
        display: block;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 2px solid #f0ece7;
        border-radius: 0;
        background: #fcfaf8;
        margin: 0;
        padding: 4px 0;
        min-width: 0;
    }

    .nav-primary > li:hover > ul {
        display: block;
        opacity: 1;
        transform: none;
        left: auto;
        top: auto;
    }

    .nav-primary > li > ul > li > a {
        padding: 8px 24px 8px 34px;
        font-size: 0.74rem;
    }

    .nav-primary > li > ul > li > a:hover {
        padding-left: 38px;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* ---- Header Row 1 ---- */
    .header-row-1 .header-row-inner {
        padding: 0 12px;
        min-height: 32px;
    }

    .ticker-item {
        font-size: 0.75rem;
    }

    .header-social {
        gap: 10px;
    }

    .header-social-link {
        font-size: 0.85rem;
    }

    /* ---- Header Row 2 ---- */
    .header-row-2 .header-row-inner {
        min-height: 64px;
        gap: 12px;
    }

    .brand-logo {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .tagline {
        font-size: 0.55rem;
        letter-spacing: 2px;
    }

    .header-col-menu,
    .header-col-search {
        width: 160px;
    }

    .archive-post-card {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .archive-post-thumb-wrap,
    .archive-post-thumb {
        min-height: 190px;
        height: 190px;
    }

    .archive-post-content {
        padding: 12px 14px 14px;
        gap: 6px;
    }

    .archive-post-title {
        font-size: 1.02rem;
    }

    .search-bar {
        width: 100%;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }

    .main-hero {
        min-height: 400px;
        padding: 30px;
    }

    .main-hero h1 {
        font-size: 1.5rem;
    }

    .main-hero p {
        font-size: 0.9rem;
    }

    .side-hero {
        gap: 15px;
    }

    .side-card {
        min-height: 180px;
    }

    .side-card h4 {
        font-size: 0.95rem;
    }

    /* Articles Grid */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .article-card img {
        height: 120px;
    }

    .article-card-content {
        padding: 12px;
    }

    .article-card h4 {
        font-size: 0.85rem;
        min-height: auto;
    }

    .all-posts-pagination .page-numbers {
        gap: 6px;
    }

    .all-posts-pagination .page-numbers a,
    .all-posts-pagination .page-numbers span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.8rem;
    }

    /* Sidebar */
    .sidebar {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sidebar-section {
        padding: 15px;
    }

    .sidebar-item {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .popular-articles .popular-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .popular-articles .popular-thumb {
        width: 96px;
        height: 72px;
    }

    /* Editor's Pick */
    .editors-pick {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .editors-image {
        min-height: 250px;
    }

    /* Newsletter */
    .newsletter {
        flex-direction: column;
        gap: 15px;
        padding: 30px;
        background-image: none;
        padding-right: 30px;
        align-items: stretch;
    }

    .newsletter::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 150px;
        background-image: linear-gradient(rgba(243, 236, 228, 0.45), rgba(243, 236, 228, 0.45)), url('assets/woman_in_hijab.webp');
        background-repeat: no-repeat;
        background-position: center center, right bottom;
        background-size: cover, contain;
        opacity: 0.42;
        z-index: 0;
        pointer-events: none;
    }

    .newsletter-content h3 {
        font-size: 1.2rem;
    }

    .newsletter-content {
        width: 100%;
        text-align: left;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
        height: 50px;
        padding: 0 16px;
        font-size: 1rem;
    }

    .newsletter-form button {
        width: 100%;
        min-width: 0;
        height: 50px;
        font-size: 0.9rem;
    }

    /* Footer */
    .site-footer {
        padding: 30px 5% 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-section h4 {
        margin-bottom: 10px;
    }

    .footer-section p {
        font-size: 0.8rem;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    /* Single Post */
    .post-single {
        padding: 20px 10px;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 0.85rem;
    }

    .post-featured-image {
        height: 250px;
    }

    /* Comment Form */
    input[type="email"],
    input[type="text"],
    textarea {
        padding: 8px;
        font-size: 16px;
    }

    button, input[type="submit"] {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Mobile Phones (640px and below) */
@media (max-width: 640px) {
    /* Side hero hidden on mobile — main slide is full width */
    .side-hero {
        display: none;
    }

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

    /* Dots visible on mobile */
    .hero-slider-dots {
        display: flex;
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        margin-top: 10px;
    }

    .main-hero-wrap {
        height: 300px;
        border-radius: 4px;
    }

    .hero-slide {
        padding: 20px;
    }

    .hero-slide h1 {
        font-size: 1.2rem;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .hero-slide p {
        font-size: 0.82rem;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Overall Spacing */
    .container {
        padding: 0 12px;
    }

    .main-content {
        padding: 20px 0;
    }

    /* ---- Header Row 1 ---- */
    .header-row-1 .header-row-inner {
        padding: 0 10px;
        min-height: 30px;
    }

    .header-social {
        gap: 8px;
    }

    .header-social-link {
        font-size: 0.8rem;
    }

    /* ---- Header Row 2 ---- */
    .header-row-2 .header-row-inner {
        min-height: 58px;
        padding: 0 10px;
        gap: 10px;
        position: relative;
        justify-content: center;
    }

    .brand-logo {
        font-size: 1.3rem;
        letter-spacing: 1.5px;
    }

    .tagline {
        font-size: 0.5rem;
        letter-spacing: 1.5px;
    }

    .header-col-menu {
        width: auto;
        flex: 0 0 auto;
        position: absolute;
        left: 10px;
    }

    .header-col-search {
        display: none;
    }

    /* On 640px: show just search icon, hide text input */
    .search-bar {
        max-width: none;
        width: 36px;
        padding: 8px;
        overflow: hidden;
        justify-content: center;
        transition: width 0.3s ease, border-color 0.25s, box-shadow 0.25s;
    }

    .search-bar input {
        width: 0;
        flex: 0;
        padding: 0;
        font-size: 0.82rem;
        transition: width 0.3s ease, flex 0.3s ease;
    }

    .search-bar.expanded {
        width: 180px;
    }

    .search-bar.expanded input {
        width: 100%;
        flex: 1;
    }

    /* Typography */
    h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    h4 {
        font-size: 0.95rem;
    }

    p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    /* Section Title */
    .section-title {
        gap: 10px;
        margin-bottom: 15px;
        margin-top: 20px;
    }

    .section-title h2 {
        font-size: 1rem;
    }

    /* Hero Grid */
    .main-hero {
        min-height: 280px;
        padding: 20px;
    }

    .main-hero h1 {
        font-size: 1.2rem;
    }

    .main-hero p {
        font-size: 0.85rem;
    }

    .read-more {
        padding: 8px 15px !important;
        font-size: 0.8rem !important;
    }

    .side-card {
        min-height: 150px;
        padding: 15px;
    }

    .side-card h4 {
        font-size: 0.9rem;
    }

    .badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    /* Articles Grid */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .article-card {
        border-radius: 3px;
        display: grid;
        grid-template-columns: 120px 1fr;
        align-items: stretch;
    }

    .article-card img {
        width: 100%;
        height: 100%;
        min-height: 120px;
    }

    .article-card-content {
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .article-card .badge-on-image {
        display: none;
    }

    .article-card .badge-in-content {
        display: inline-flex;
    }

    .article-card h4 {
        font-size: 0.9rem;
        min-height: auto;
        margin-bottom: 6px;
    }

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

    .js .latest-article-card.reveal-target {
        transition-delay: 0ms;
    }

    .all-posts-pagination {
        margin-top: 24px;
        padding-top: 16px;
    }

    .all-posts-pagination .page-numbers .prev,
    .all-posts-pagination .page-numbers .next {
        padding: 0 12px;
    }

    /* Sidebar */
    .sidebar-item {
        padding-bottom: 8px;
        margin-bottom: 8px;
        font-size: 0.85rem;
    }

    .popular-articles .popular-item {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .popular-articles .popular-thumb {
        width: 88px;
        height: 66px;
    }

    .sidebar-number {
        font-size: 1.2rem;
        min-width: 30px;
    }

    .sidebar-section h3 {
        font-size: 0.95rem;
    }

    .editorpick-feature {
        min-height: 170px;
        padding: 12px;
    }

    .editorpick-title {
        font-size: 0.95rem;
    }

    /* Newsletter */
    .newsletter {
        padding: 20px;
        background-image: none;
        padding-right: 20px;
    }

    .newsletter::before {
        width: 110px;
        opacity: 0.34;
    }

    .newsletter-content h3 {
        font-size: 1rem;
    }

    .newsletter-content p {
        font-size: 0.85rem;
    }

    .newsletter-form input[type="email"] {
        height: 48px;
        padding: 0 14px;
        font-size: 16px;
    }

    .newsletter-form button {
        height: 48px;
        padding: 0 15px;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-content {
        gap: 15px;
    }

    .footer-section h4 {
        font-size: 0.9rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.75rem;
    }

    .social-icons a {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
        padding: 10px;
    }

    /* Forms */
    input[type="email"],
    input[type="text"],
    textarea {
        padding: 10px;
        font-size: 16px;
        margin-bottom: 12px;
        border-radius: 3px;
    }

    button,
    input[type="submit"] {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    /* Single Post */
    .post-single {
        padding: 15px 10px;
    }

    .post-title {
        font-size: 1.4rem;
    }

    .post-featured-image {
        height: 200px;
    }

    .post-meta {
        font-size: 0.8rem;
        gap: 8px;
    }

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

/* Small Mobile Phones (480px and below) */
@media (max-width: 480px) {
    /* Page Setup */
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    /* Header */
    .header-row-1 .header-row-inner {
        padding: 0 8px;
    }

    .header-social {
        display: none;
    }

    .header-row-2 .header-row-inner {
        padding: 0 10px;
        min-height: 54px;
    }

    .brand-logo {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .tagline {
        display: none;
    }

    /* Typography */
    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 0.95rem;
    }

    /* Hero Section */
    .hero-grid {
        margin-bottom: 15px;
    }

    .main-hero {
        min-height: 240px;
        padding: 15px;
    }

    .main-hero h1 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .main-hero p {
        font-size: 0.8rem;
    }

    /* Articles */
    .articles-grid {
        gap: 10px;
    }

    .article-card img {
        min-height: 100px;
    }

    .article-card {
        grid-template-columns: 100px 1fr;
    }

    .article-card-content {
        padding: 8px 10px;
    }

    .section-title {
        margin-top: 15px;
    }

    .editorpick-feature {
        min-height: 150px;
        padding: 10px;
    }

    .editorpick-title {
        font-size: 0.9rem;
    }

    .all-posts-pagination .page-numbers {
        gap: 5px;
    }

    .all-posts-pagination .page-numbers a,
    .all-posts-pagination .page-numbers span {
        min-width: 34px;
        height: 34px;
        font-size: 0.78rem;
        padding: 0 8px;
    }

    /* Newsletter Button */
    .newsletter-form button {
        width: 100%;
    }

    /* Post Page */
    .post-title {
        font-size: 1.3rem;
    }

    .post-featured-image {
        height: 180px;
    }

    /* Comments */
    #comments {
        margin-top: 20px;
    }

    .comment {
        padding: 15px 0;
    }

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

    /* Forms - Ensure readability */
    input,
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        border-radius: 3px;
    }

    /* Buttons */
    button,
    .button,
    input[type="submit"] {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 3px;
    }

    /* Tables if any */
    table {
        font-size: 0.85rem;
        overflow-x: auto;
        display: block;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Remove unnecessary elements */
    .hide-mobile {
        display: none !important;
    }
}
