/*
Theme Name: FlowUpDesk
Theme URI: https://example.com/flowupdesk
Author: Your Name
Author URI: https://example.com
Description: Tech review & deals blog theme — featured post hero, review boxes with pros/cons, comparison tables, affiliate buttons, and a magazine-style grid. Custom-built classic WordPress theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flowupdesk
*/

:root {
    --primary: #2563eb; --primary-dark: #1d4ed8;
    --accent: #16a34a; --accent-dark: #15803d;
    --star: #f59e0b; --text: #1f2937; --muted: #6b7280;
    --light: #f3f4f6; --bg: #fff; --card: #fff; --border: #e5e7eb;
    --radius: 12px; --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text); background: var(--bg); line-height: 1.7; font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; left: -9999px; top: -9999px; }

/* NOTICE BAR */
.notice-bar {
    background: #fef3c7; color: #92400e; padding: 10px 20px;
    text-align: center; font-size: 0.85rem; font-weight: 600;
    border-bottom: 1px solid #fde68a;
}
.notice-bar a { color: #92400e; text-decoration: underline; }

/* HEADER */
.site-header {
    background: #fff; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 999; box-shadow: var(--shadow);
}
.header-top { display: flex; align-items: center; min-height: 72px; gap: 24px; flex-wrap: nowrap; }
.site-branding { flex-shrink: 0; min-width: 0; }
.main-navigation { flex: 1; display: flex; justify-content: center; min-width: 0; }
.header-actions { flex-shrink: 0; }
.site-header .container { max-width: 1500px; width: 88%; }
.site-branding a.site-title-link { display: inline-block; }
.site-branding .custom-logo-link { display: inline-block; }
.site-branding .custom-logo-link img { max-height: 50px; width: auto; display: block; }
.site-title { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.5px; color: var(--text); white-space: nowrap; }
.site-title span { color: var(--primary); }
.site-description { font-size: 0.75rem; color: var(--muted); margin-top: -3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
@media (max-width: 782px) {
    .site-header .container { width: 92%; }
    .header-top { gap: 12px; min-height: 64px; }
    .site-branding .custom-logo-link img { max-height: 38px; }
    .site-title { font-size: 1.25rem; }
    .header-actions { gap: 10px; }
    .header-cta-btn { padding: 8px 14px; font-size: 0.82rem; }
    .header-search-toggle { width: 34px; height: 34px; font-size: 0.95rem; }
}
@media (max-width: 480px) {
    .site-description { display: none; }
    .header-cta-btn span.btn-text-full { display: none; }
}
.header-search-toggle {
    background: var(--light); border: 1px solid var(--border); border-radius: 50%;
    width: 38px; height: 38px; font-size: 1.05rem; cursor: pointer; flex-shrink: 0;
}
.header-search-toggle:hover { background: var(--border); }
.header-cta-btn { white-space: nowrap; }
.header-clock {
    display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.header-clock .clock-time { font-size: 1rem; font-weight: 800; color: var(--text); }
.header-clock .clock-date { font-size: 0.7rem; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .header-clock { display: none; } }
.header-search-box {
    display: none; position: absolute; top: 100%; right: 20px; background: #fff;
    box-shadow: var(--shadow-lg); padding: 15px; border-radius: 0 0 12px 12px;
    border: 1px solid var(--border); border-top: none; z-index: 1000; width: min(320px, 90vw);
}
.header-search-box.active { display: block; }
.primary-menu, .menu { display: flex; list-style: none; gap: 28px; }
.primary-menu li a, .menu li a { color: var(--text); font-weight: 600; font-size: 0.95rem; padding: 6px 0; position: relative; }
.primary-menu li a::after, .menu li a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px; background: var(--primary); transition: 0.3s;
}
.primary-menu li a:hover::after, .menu li a:hover::after { width: 100%; }
.primary-menu .sub-menu, .menu .sub-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; box-shadow: var(--shadow-lg); min-width: 200px;
    padding: 10px 0; border-radius: 8px; list-style: none; border: 1px solid var(--border);
}
.menu-item-has-children { position: relative; }
.menu-item-has-children:hover > .sub-menu { display: block; }
.primary-menu .sub-menu li a, .menu .sub-menu li a { padding: 8px 20px; display: block; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; padding: 8px; line-height: 1; }

/* QUICK NAV BAR (Homepage / Single Post / Category shortcuts) */
.demo-nav {
    background: #1f2937; color: #fff; padding: 12px 0; position: sticky; top: 72px;
    z-index: 998; box-shadow: var(--shadow);
}
.demo-nav-inner { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.demo-nav a {
    background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 18px; border-radius: 20px; cursor: pointer;
    font-size: 0.85rem; font-weight: 600; transition: 0.2s; display: inline-block;
}
.demo-nav a:hover { background: rgba(255,255,255,0.2); color: #fff; }
.demo-nav a.active { background: var(--primary); border-color: var(--primary); }
.demo-nav-inner li.current-menu-item > a,
.demo-nav-inner li.current_page_item > a,
.demo-nav-inner li.current-menu-ancestor > a,
.demo-nav-inner li.current-menu-parent > a {
    background: var(--primary); border-color: var(--primary);
}
@media (max-width: 782px) {
    .demo-nav { top: 64px; }
}

/* HERO / FEATURED */
.hero-section { padding: 40px 0 20px; background: var(--light); }
.featured-post {
    display: grid; grid-template-columns: 1.3fr 1fr;
    background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.featured-image {
    min-height: 400px; background: linear-gradient(135deg, #3b82f6, #1e40af);
    display: flex; align-items: center; justify-content: center;
    font-size: 8rem; color: #fff; background-size: cover; background-position: center;
}
.featured-image img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.featured-content { padding: 45px 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-badge {
    display: inline-block; background: var(--primary); color: #fff;
    padding: 4px 12px; border-radius: 20px; font-size: 0.72rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 15px; align-self: flex-start;
}
.featured-content h2 { font-size: 1.9rem; line-height: 1.3; margin-bottom: 15px; font-weight: 800; }
.featured-content h2 a { color: var(--text); }
.featured-content h2 a:hover { color: var(--primary); }
.featured-content p { color: var(--muted); margin-bottom: 20px; font-size: 1rem; }
@media (max-width: 960px) {
    .featured-image, .featured-image img { min-height: 260px; }
}
@media (max-width: 640px) {
    .featured-image, .featured-image img { min-height: 200px; font-size: 4rem; }
}

/* HERO SLIDER */
.hero-slider { position: relative; }
.hero-slide { display: none; }
.hero-slide.active { display: grid; animation: fu-fade 0.6s ease; }
@keyframes fu-fade { from { opacity: 0; } to { opacity: 1; } }
.hero-slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; padding: 0; transition: 0.3s; position: relative; }
.hero-dot::after { content: ''; position: absolute; inset: -12px; } /* larger invisible tap area for touch */

/* WHAT'S NEW TODAY SLIDER */
.whatsnew-section { padding: 10px 0 30px; }
.whatsnew-heading {
    display: flex; align-items: center; gap: 12px; font-size: 1.7rem; font-weight: 900;
    margin-bottom: 24px; color: var(--text);
}
.whatsnew-heading .dot-accent { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; flex-shrink: 0; }
.whatsnew-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); margin-left: 8px; }
.whatsnew-slider { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.whatsnew-slide { display: none; }
.whatsnew-slide.active { display: block; animation: fu-fade 0.5s ease; }
.whatsnew-card {
    position: relative; display: block; border-radius: 16px; overflow: hidden;
    height: 500px; box-shadow: var(--shadow-lg); text-decoration: none;
}
.whatsnew-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.whatsnew-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.1) 65%, transparent);
}
.whatsnew-badges { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.whatsnew-badge {
    background: #111827; color: #fff; font-size: 0.65rem; font-weight: 700;
    padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.3px;
}
.whatsnew-badge.alt { background: var(--primary); }
.whatsnew-card h3 { color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1.3; margin: 0 0 10px; }
.whatsnew-date { color: #fff; font-size: 0.78rem; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.whatsnew-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.whatsnew-placeholder {
    max-width: 420px; margin: 0 auto; border: 2px dashed var(--border); background: var(--light);
    border-radius: 16px; padding: 40px 20px; text-align: center; color: var(--muted); font-size: 0.85rem;
}
@media (max-width: 960px) {
    .whatsnew-slider { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .whatsnew-slider { grid-template-columns: 1fr; }
    .whatsnew-card { height: 420px; }
}

/* WHAT'S NEW BOTTOM BANNER (1080x350 recommended image size) */
.whatsnew-banner-section { padding: 0 0 30px; }
.whatsnew-banner-widget img {
    width: 100%; aspect-ratio: 1080 / 350; object-fit: cover;
    border-radius: var(--radius); display: block; margin: 0 auto; box-shadow: var(--shadow);
}
.whatsnew-banner-placeholder {
    width: 100%; aspect-ratio: 1080 / 350;
    border: 2px dashed var(--border); background: var(--light); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: var(--muted); font-size: 0.85rem; padding: 20px;
}
.hero-dot.active { background: var(--primary); width: 26px; border-radius: 6px; }
.banner-slide { width: 100%; }
.banner-slide img { width: 100%; max-height: 450px; object-fit: cover; border-radius: var(--radius); display: block; }
.banner-slide a { display: block; }

/* STICKY LEFT BANNER (homepage only) */
.sticky-side-banner {
    position: fixed; left: 16px; top: 50%; transform: translateY(-50%);
    z-index: 500; max-width: 160px; box-shadow: var(--shadow-lg);
    border-radius: 10px; background: #fff; transition: opacity 0.3s, transform 0.3s;
}
.sticky-side-banner.hidden { opacity: 0; transform: translateY(-50%) translateX(-200px); pointer-events: none; }
.sticky-side-banner img { width: 100%; height: auto; border-radius: 10px; display: block; }
.sticky-side-banner-close {
    position: absolute; top: -10px; right: -10px; width: 24px; height: 24px;
    border-radius: 50%; background: #111827; color: #fff; border: 2px solid #fff;
    font-size: 0.75rem; line-height: 1; cursor: pointer; z-index: 1;
    display: flex; align-items: center; justify-content: center;
}
.sticky-side-banner-placeholder { padding: 16px; text-align: center; font-size: 0.75rem; color: var(--muted); border: 2px dashed var(--border); border-radius: 10px; }
@media (max-width: 960px) { .sticky-side-banner { display: none; } }

/* YOU MAY HAVE MISSED */
.ymhm-section { padding: 10px 0 50px; }
.ymhm-heading { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }
.ymhm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ymhm-card {
    position: relative; display: block; border-radius: var(--radius); overflow: hidden;
    height: 280px; text-decoration: none;
}
.ymhm-card .ymhm-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.4s; }
.ymhm-card:hover .ymhm-img { transform: scale(1.06); }
.ymhm-fallback { display: flex; align-items: center; justify-content: center; font-size: 4rem; color: #fff; }
.ymhm-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.05) 65%, transparent);
}
.ymhm-badge {
    display: inline-block; background: var(--primary); color: #fff; font-size: 0.7rem;
    font-weight: 700; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px;
    align-self: flex-start; text-transform: uppercase; letter-spacing: 0.3px;
}
.ymhm-overlay h3 { color: #fff; font-size: 1.1rem; font-weight: 800; line-height: 1.3; margin: 0; }
@media (max-width: 960px) { .ymhm-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ymhm-grid { grid-template-columns: 1fr; } }

/* META */
.post-meta {
    font-size: 0.85rem; color: var(--muted);
    display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 15px;
}
.post-meta span { display: flex; align-items: center; gap: 5px; }

/* CONTENT */
.content-area { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 40px 0; }
.section-heading {
    font-size: 1.4rem; font-weight: 800; margin-bottom: 25px;
    padding-bottom: 12px; border-bottom: 3px solid var(--primary); display: inline-block;
}

/* POST CARDS */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 50px; }
.post-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    transition: 0.3s; border: 1px solid var(--border);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card .post-thumb {
    height: 200px; display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: #fff; background-size: cover; background-position: center; overflow: hidden;
}
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-1 { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.thumb-2 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.thumb-3 { background: linear-gradient(135deg, #10b981, #047857); }
.thumb-4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.thumb-5 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.thumb-6 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.post-card-body { padding: 22px; }
.post-category {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.post-card h3 { font-size: 1.15rem; line-height: 1.4; margin-bottom: 10px; font-weight: 700; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 15px; }
.read-more { font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 5px; }

.pagination-wrap { margin: 20px 0 50px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination-wrap .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border);
    font-weight: 700; font-size: 0.9rem; color: var(--text); padding: 0 10px;
}
.pagination-wrap .page-numbers.current, .pagination-wrap .page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* BUTTONS */
.btn {
    display: inline-block; padding: 10px 22px; border-radius: 8px;
    font-weight: 700; font-size: 0.92rem; transition: 0.2s;
    cursor: pointer; border: none; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-large { padding: 14px 28px; font-size: 1rem; }

/* SIDEBAR */
.sidebar .widget {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; margin-bottom: 25px;
}
.sidebar-banner-placeholder { border: 2px dashed var(--border); background: var(--light); padding: 30px 20px; }
.sidebar-banner-widget img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.widget-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--light); }
.sidebar ul { list-style: none; }
.sidebar ul li {
    padding: 10px 0; border-bottom: 1px dashed var(--border);
    display: flex; justify-content: space-between; font-size: 0.92rem;
}
.sidebar ul li:last-child { border-bottom: none; }
.sidebar ul li a { color: var(--text); font-weight: 500; }
.sidebar ul li a:hover { color: var(--primary); }
.sidebar ul li .count { background: var(--light); color: var(--muted); font-size: 0.75rem; padding: 2px 8px; border-radius: 12px; font-weight: 600; }
.popular-post { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.popular-post:last-child { border-bottom: none; }
.popular-post-img {
    width: 70px; height: 70px; flex-shrink: 0; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff;
    background-size: cover; background-position: center; overflow: hidden;
}
.popular-post-img img { width: 100%; height: 100%; object-fit: cover; }
.popular-post-title { font-size: 0.9rem; font-weight: 600; line-height: 1.4; }
.popular-post-title a { color: var(--text); }
.popular-post-meta { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.newsletter-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; padding: 25px; border-radius: var(--radius); text-align: center;
}
.newsletter-box h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.newsletter-box p { font-size: 0.88rem; opacity: 0.9; margin-bottom: 15px; }
.newsletter-box input {
    width: 100%; padding: 12px; border-radius: 8px; border: none;
    margin-bottom: 10px; font-size: 0.9rem;
}
.newsletter-box button, .newsletter-box input[type="submit"] {
    width: 100%; background: #fff; color: var(--primary);
    padding: 12px; border-radius: 8px; border: none;
    font-weight: 700; cursor: pointer; font-size: 0.9rem;
}

/* SINGLE POST */
.single-post-wrapper { padding: 40px 0; }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.entry-header { margin-bottom: 25px; }
.entry-category {
    display: inline-block; background: var(--primary); color: #fff;
    padding: 4px 12px; border-radius: 20px; font-size: 0.75rem;
    font-weight: 700; text-transform: uppercase; margin-bottom: 12px;
}
.entry-title { font-size: 2.2rem; line-height: 1.25; margin-bottom: 15px; font-weight: 800; letter-spacing: -0.5px; }
.entry-meta {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    font-size: 0.9rem; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.entry-meta .author-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; overflow: hidden;
}
.entry-meta .author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.entry-featured-image {
    margin: 25px 0; border-radius: var(--radius);
    height: 400px; display: flex; align-items: center; justify-content: center;
    font-size: 8rem; color: #fff; background: linear-gradient(135deg, #3b82f6, #1e40af);
    background-size: cover; background-position: center; overflow: hidden;
}
.entry-featured-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .entry-featured-image { height: 300px; } }
@media (max-width: 640px) { .entry-featured-image { height: 220px; font-size: 4rem; } }
.entry-content { font-size: 1.05rem; line-height: 1.8; margin-top: 25px; }
.entry-content h2 { font-size: 1.5rem; margin: 35px 0 15px; font-weight: 800; }
.entry-content h3 { font-size: 1.25rem; margin: 25px 0 12px; font-weight: 700; }
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { margin: 15px 0 20px 25px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
    border-left: 4px solid var(--primary); padding: 15px 20px;
    background: var(--light); margin: 20px 0; border-radius: 0 8px 8px 0;
    font-style: italic;
}
.entry-content img { border-radius: 10px; margin: 15px 0; }
.entry-content figure { margin: 15px 0; }

/* REVIEW BOX */
.review-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid var(--primary); border-radius: var(--radius);
    padding: 25px; margin: 30px 0;
}
.review-box-header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 15px; margin-bottom: 20px;
}
.review-box-title { font-size: 1.2rem; font-weight: 800; }
.review-score { display: flex; align-items: center; gap: 10px; }
.score-circle {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800;
}
.review-stars { color: var(--star); font-size: 1.2rem; letter-spacing: 2px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.pros, .cons { background: #fff; padding: 18px; border-radius: 10px; }
.pros h4 { color: var(--accent); margin-bottom: 10px; font-size: 1rem; }
.cons h4 { color: #dc2626; margin-bottom: 10px; font-size: 1rem; }
.pros ul, .cons ul { list-style: none; margin: 0; }
.pros ul li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.cons ul li::before { content: '✗ '; color: #dc2626; font-weight: 700; }

/* AFFILIATE BOX */
.affiliate-btn-box {
    text-align: center; margin: 30px 0; padding: 25px;
    background: #f0fdf4; border: 2px dashed var(--accent); border-radius: var(--radius);
}
.affiliate-btn-box .price-tag { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 15px; }
.affiliate-disclosure { font-size: 0.75rem; color: var(--muted); margin-top: 12px; font-style: italic; }

/* COMPARISON TABLE (auto-applied to tables inside post content) */
.ft-comparison-table, .entry-content table {
    width: 100%; border-collapse: collapse; margin: 30px 0;
    box-shadow: var(--shadow); border-radius: var(--radius);
    overflow: hidden; font-size: 0.92rem;
}
.ft-comparison-table th, .entry-content table th { background: var(--primary); color: #fff; padding: 15px; text-align: left; font-weight: 700; }
.ft-comparison-table td, .entry-content table td { padding: 15px; border-bottom: 1px solid var(--border); background: #fff; }
.ft-comparison-table tr:last-child td, .entry-content table tr:last-child td { border-bottom: none; }
.ft-comparison-table tr:hover td, .entry-content table tr:hover td { background: #f8fafc; }
.table-scroll { overflow-x: auto; margin: 30px 0; -webkit-overflow-scrolling: touch; }
.table-scroll table, .table-scroll .ft-comparison-table { margin: 0; min-width: 480px; }
@media (max-width: 640px) {
    .ft-comparison-table th, .entry-content table th,
    .ft-comparison-table td, .entry-content table td { padding: 10px 12px; font-size: 0.85rem; }
}

/* AUTHOR BOX */
.author-box {
    display: flex; gap: 20px; padding: 25px;
    background: var(--light); border-radius: var(--radius);
    margin: 40px 0; align-items: center;
}
.author-box-avatar {
    width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800; overflow: hidden;
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.author-box-info p { font-size: 0.9rem; color: var(--muted); }

/* RELATED POSTS */
.related-posts { margin: 50px 0; padding-top: 40px; border-top: 2px solid var(--light); }
.related-posts h2 { font-size: 1.4rem; margin-bottom: 25px; font-weight: 800; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: 0.2s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.related-card-thumb {
    height: 140px; display: flex; align-items: center;
    justify-content: center; font-size: 3rem; color: #fff; background-size: cover; background-position: center; overflow: hidden;
}
.related-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card-body { padding: 15px; }
.related-card-body h4 { font-size: 0.95rem; line-height: 1.4; margin-bottom: 8px; }
.related-card-body h4 a { color: var(--text); }
.related-card-body h4 a:hover { color: var(--primary); }

/* COMMENTS */
.comments-area { margin: 40px 0; }
.comments-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }
.comment-list { list-style: none; }
.comment-body { padding: 18px 0; border-bottom: 1px dashed var(--border); }
.comment-author { font-weight: 700; margin-right: 8px; }
.comment-metadata { font-size: 0.8rem; color: var(--muted); }
.comment-respond input, .comment-respond textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; font-family: inherit;
}

/* FOOTER */
.site-footer { background: #111827; color: #d1d5db; padding: 60px 0 25px; margin-top: 60px; }
.footer-widgets { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-widget h4, .footer-widget .widget-title { color: #fff; font-size: 1rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.5px; border: none; padding: 0; }
.footer-widget p, .footer-widget a { color: #9ca3af; font-size: 0.9rem; line-height: 1.8; }
.footer-widget a:hover { color: #fff; }
.footer-widget ul { list-style: none; }
.footer-widget ul li { margin-bottom: 10px; padding: 0; border: none; display: block; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 25px; text-align: center; font-size: 0.85rem; color: #9ca3af; }

/* RESPONSIVE */
@media (max-width: 960px) {
    .content-area { grid-template-columns: 1fr; gap: 30px; padding: 30px 0; }
    .featured-post { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .hero-section { padding: 24px 0 16px; }
    .ymhm-card { height: 240px; }
    .comment-respond input, .comment-respond textarea { font-size: 16px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .posts-grid { grid-template-columns: 1fr; gap: 20px; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; gap: 30px; }
    .entry-title { font-size: 1.6rem; }
    .featured-content { padding: 24px 20px; }
    .featured-content h2 { font-size: 1.35rem; }
    .pros-cons { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; text-align: center; }
    .primary-menu, .menu { display: none; }
    .menu-toggle { display: block; }
    .primary-menu.toggled, .menu.toggled { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 15px 20px; box-shadow: var(--shadow-lg); gap: 0; z-index: 1000; }
    .primary-menu.toggled li, .menu.toggled li { padding: 10px 0; border-bottom: 1px solid var(--border); }
    .primary-menu.toggled .sub-menu, .menu.toggled .sub-menu { display: block; position: static; box-shadow: none; border: none; padding-left: 15px; }
    .container { padding: 0 16px; }
    .ymhm-card { height: 220px; }
    .review-box, .affiliate-btn-box { padding: 18px; }
    .score-circle { width: 50px; height: 50px; font-size: 1.25rem; }
    .single-post-wrapper, .hero-section, .content-area { padding-left: 0; padding-right: 0; }
    input, textarea, select, button { font-size: 16px; }
}
@media (max-width: 400px) {
    .header-cta-btn { padding: 7px 10px; font-size: 0.75rem; }
    .demo-nav a { padding: 6px 12px; font-size: 0.78rem; }
    .site-title { font-size: 1.1rem; }
}

/* TOP STORIES (Stylist+ style) */
.topstories-section { padding: 40px 0 10px; background: #f6f7f9; }
.topstories-heading { font-family: Georgia, 'Times New Roman', serif; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; color: #111; margin-bottom: 24px; line-height: 1.1; }
.topstories-plus { color: var(--primary); font-weight: 300; }
.topstories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.ts-cat { display: block; font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; color: #111; font-weight: 500; }
.ts-dash { display: block; width: 12px; height: 1px; background: #111; margin: 6px 0 10px; }
.ts-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 800; line-height: 1.25; margin: 0; color: #111; }
.ts-title a { color: inherit; }
.ts-title a:hover { color: var(--primary); }
.ts-time { font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ts-actions { display: inline-flex; gap: 10px; color: #111; }
.ts-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: #fff; overflow: hidden; }
.ts-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* big card */
.ts-main { background: #fff; display: flex; flex-direction: column; }
.ts-main-img { display: block; height: 262px; }
.ts-main-body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 30px 24px; }
.ts-main-body .ts-dash { margin: 8px auto 14px; }
.ts-main .ts-title { font-size: 1.5rem; }
.ts-byline { margin-top: auto; padding-top: 24px; font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; color: #111; }
.ts-byline .ts-time { margin-left: 6px; }
.ts-main .ts-actions { margin-top: 14px; }

/* side list */
.ts-side { display: flex; flex-direction: column; gap: 24px; }
.ts-item { background: #fff; display: flex; flex: 1; min-height: 160px; }
.ts-item-img { flex: 0 0 106px; display: block; }
.ts-item-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px 14px; min-width: 0; }
.ts-item .ts-title { font-size: 1.05rem; }
.ts-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

.topstories-more { text-align: center; margin-top: 28px; }
.topstories-more a { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 800; color: #111; }
.topstories-more a:hover { color: var(--primary); }

@media (max-width: 860px) {
    .topstories-grid { grid-template-columns: 1fr; }
    .ts-main-img { height: 230px; }
}
@media (max-width: 480px) {
    .topstories-heading { font-size: 1.8rem; }
    .ts-item-img { flex-basis: 90px; }
    .ts-main .ts-title { font-size: 1.3rem; }
}


/* MOST POPULAR (slider) */
.mostpop-section { padding: 40px 0 10px; background: #fff; }
.mostpop-head { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.mostpop-heading { font-family: 'Lexend', 'Inter', sans-serif; font-size: 2rem; font-weight: 800; color: #000; line-height: 1.1; margin: 0; white-space: nowrap; }
.mostpop-dot { width: 10px; height: 10px; border-radius: 50%; background: #facc15; flex: 0 0 auto; }
.mostpop-line { flex: 1; height: 5px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mostpop-nav { display: inline-flex; gap: 6px; }
.mostpop-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; transition: 0.2s; }
.mostpop-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.mostpop-track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
.mostpop-track::-webkit-scrollbar { display: none; }
.mostpop-item { flex: 0 0 calc(50% - 15px); display: flex; gap: 20px; align-items: center; scroll-snap-align: start; min-width: 0; }
.mostpop-img { flex: 0 0 170px; height: 170px; display: block; border-radius: 14px; overflow: hidden; }
.mostpop-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff; overflow: hidden; }
.mostpop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mostpop-body { flex: 1; min-width: 0; }
.mostpop-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 12px; margin-bottom: 12px; }
.mostpop-title { font-family: 'Lexend', 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; line-height: 1.5; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mostpop-title a { color: #000; }
.mostpop-title a:hover { color: var(--primary); }
.mostpop-date { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #9ca3af; }

@media (max-width: 860px) {
    .mostpop-item { flex-basis: 100%; }
}
@media (max-width: 480px) {
    .mostpop-heading { font-size: 1.6rem; }
    .mostpop-img { flex-basis: 110px; height: 150px; }
    .mostpop-item { gap: 14px; }
    .mostpop-title { font-size: 1rem; }
}


/* FEATURE DUO (2 big image cards) */
.duo-section { padding: 30px 0 10px; background: #fff; }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.duo-card { position: relative; display: block; height: 445px; border-radius: 16px; overflow: hidden; background: #1f2937; }
.duo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 6rem; color: #fff; transition: transform 0.5s ease; }
.duo-card:hover .duo-img { transform: scale(1.04); }
.duo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.45) 55%, rgba(15,23,42,0.35) 100%); }
.duo-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 80px 56px 80px; color: #fff; }
.duo-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.duo-title { font-size: 2.2rem; font-weight: 600; line-height: 1.4; margin: 0; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.duo-card:hover .duo-title { color: #fff; }

@media (max-width: 1100px) {
    .duo-overlay { padding: 0 40px 40px 40px; }
    .duo-title { font-size: 1.7rem; }
}
@media (max-width: 860px) {
    .duo-grid { grid-template-columns: 1fr; gap: 20px; }
    .duo-card { height: 340px; }
}
@media (max-width: 480px) {
    .duo-card { height: 300px; }
    .duo-overlay { padding: 0 22px 26px 22px; }
    .duo-title { font-size: 1.35rem; }
}


/* CATEGORY BANNER */
.cat-banner-section { padding: 30px 0 0; background: #fff; }
.cat-banner-section .container { max-width: 1600px; }
.cat-banner { position: relative; display: flex; align-items: flex-end; min-height: 460px; border-radius: 16px; overflow: hidden; background-size: cover; background-position: center; color: #fff; text-decoration: none; }
a.cat-banner:hover { color: #fff; }
.cat-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.35) 60%, rgba(15,23,42,0.2) 100%); }
.cat-banner.no-image .cat-banner-overlay { background: linear-gradient(to top, rgba(0,0,0,0.25), rgba(0,0,0,0)); }
.cat-banner-content { position: relative; z-index: 2; display: block; padding: 40px 50px; max-width: 760px; }
.cat-banner-eyebrow { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 10px; opacity: 0.9; }
.cat-banner-title { font-size: 2.6rem; font-weight: 800; line-height: 1.2; margin: 0 0 10px; color: #fff; }
.cat-banner-desc { display: block; font-size: 1.05rem; line-height: 1.6; opacity: 0.95; }
@media (max-width: 860px) {
    .cat-banner { min-height: 320px; }
    .cat-banner-content { padding: 28px 28px; }
    .cat-banner-title { font-size: 2rem; }
}
@media (max-width: 480px) {
    .cat-banner { min-height: 250px; border-radius: 12px; }
    .cat-banner-content { padding: 20px; }
    .cat-banner-title { font-size: 1.55rem; }
    .cat-banner-desc { font-size: 0.92rem; }
}

.cat-banner-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


/* NEWSLETTER FORM FEEDBACK */
.newsletter-box form { position: relative; }
.fu-nl-msg { margin-top: 10px; font-size: 0.9rem; font-weight: 600; line-height: 1.4; color: #fff; text-align: center; min-height: 0; }
.fu-nl-msg.is-error { background: rgba(255,255,255,0.95); color: #b91c1c; padding: 8px 10px; border-radius: 8px; }
.fu-nl-msg.is-success { background: rgba(255,255,255,0.95); color: #15803d; padding: 8px 10px; border-radius: 8px; }
.fu-newsletter-form button[disabled] { opacity: 0.7; cursor: wait; }


/* ==========================================================================
   RESPONSIVE POLISH — mobile / tablet / PC
   (keep this block at the very end of the file so it overrides earlier rules)
   ========================================================================== */

/* ---- Base safety: no sideways scrolling, long content never breaks layout ---- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
img, video, canvas, svg { max-width: 100%; }
iframe, embed, object { max-width: 100%; }
.main-content, .sidebar { min-width: 0; }
.entry-content, .entry-title, .post-card h3, .comment-body { overflow-wrap: anywhere; }
.entry-content pre { overflow-x: auto; max-width: 100%; padding: 14px; background: #f3f4f6; border-radius: 8px; font-size: 0.9rem; -webkit-overflow-scrolling: touch; }
.entry-content iframe, .entry-content video { width: 100%; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="youtu.be"], .entry-content iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.entry-content .alignleft  { float: left;  margin: 5px 20px 15px 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 5px 0 15px 20px; max-width: 50%; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content::after { content: ''; display: block; clear: both; }

/* ---- Large screens (PC / big monitors) ---- */
@media (min-width: 1400px) {
    .container { max-width: 1280px; }
    .whatsnew-slider { max-width: 100%; }
    .content-area { grid-template-columns: 1fr 340px; gap: 50px; }
    .site-footer .container { max-width: 1280px; }
}
@media (min-width: 1800px) {
    .container { max-width: 1400px; }
    body { font-size: 18px; }
}

/* ---- Small laptops / landscape tablets: sidebar drops below sooner ---- */
@media (max-width: 1100px) {
    .content-area { grid-template-columns: 1fr; gap: 30px; padding: 30px 0; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; align-items: start; }
    .sidebar > * { min-width: 0; }
    .sidebar > .newsletter-box, .sidebar > .sidebar-banner-widget, .sidebar > .widget { margin-bottom: 25px; }
    .header-top { gap: 16px; }
    .primary-menu, .menu { gap: 18px; }
}

/* ---- Tablets and below: hamburger menu instead of full nav (was 640px) ---- */
@media (max-width: 960px) {
    .header-top { position: relative; }
    .menu-toggle { display: block; order: 5; width: 44px; height: 44px; border-radius: 10px; }
    .menu-toggle:hover { background: var(--light); }
    .header-actions { margin-left: auto; }
    .main-navigation { flex: 0 0 0; }
    .primary-menu, .menu { display: none; }
    .primary-menu.toggled, .menu.toggled {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; padding: 10px 20px 16px; box-shadow: var(--shadow-lg); gap: 0; z-index: 1000;
        border-top: 1px solid var(--border); max-height: calc(100vh - 80px); overflow-y: auto;
    }
    .primary-menu.toggled li, .menu.toggled li { padding: 0; border-bottom: 1px solid var(--border); }
    .primary-menu.toggled li a, .menu.toggled li a { display: block; padding: 14px 4px; }
    .primary-menu.toggled li a::after, .menu.toggled li a::after { display: none; }
    .primary-menu.toggled .sub-menu, .menu.toggled .sub-menu { display: block; position: static; box-shadow: none; border: none; padding: 0 0 6px 16px; min-width: 0; }
    .primary-menu.toggled .sub-menu li:last-child, .menu.toggled .sub-menu li:last-child { border-bottom: none; }
    .header-search-box { right: 4%; left: 4%; width: auto; }
    .header-clock { display: none; }
    .demo-nav { top: 65px; }
    .sidebar { grid-template-columns: 1fr 1fr; }
}

/* ---- Tablet portrait ---- */
@media (max-width: 860px) {
    .sidebar { grid-template-columns: 1fr; }
    .featured-content { padding: 30px 28px; }
    .featured-content h2 { font-size: 1.6rem; }
    .entry-title { font-size: 1.9rem; }
    .footer-widgets { gap: 30px; }
}

/* ---- Quick-nav bar: one scrollable row on touch screens (instead of tall wrapped block) ---- */
@media (max-width: 782px) {
    .demo-nav { padding: 8px 0; top: 64px; }
    .demo-nav .container, .demo-nav-inner { }
    .demo-nav-inner { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; list-style: none; }
    .demo-nav-inner::-webkit-scrollbar { display: none; }
    .demo-nav-inner li { flex: 0 0 auto; list-style: none; }
    .demo-nav a { white-space: nowrap; }
}

/* ---- Phones ---- */
@media (max-width: 640px) {
    h1, h2, h3 { word-break: normal; }
    .section-heading { font-size: 1.2rem; }
    .whatsnew-heading { font-size: 1.35rem; }
    .whatsnew-card { height: 380px; }
    .post-card .post-thumb { height: 190px; }
    .post-card-body { padding: 18px; }
    .entry-content { font-size: 1rem; line-height: 1.75; }
    .entry-content h2 { font-size: 1.3rem; }
    .entry-content h3 { font-size: 1.15rem; }
    .entry-content .alignleft, .entry-content .alignright { float: none; display: block; margin: 15px auto; max-width: 100%; }
    .entry-meta { gap: 10px 14px; font-size: 0.85rem; }
    .btn, .btn-large, .read-more { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .btn-large { width: 100%; }
    .affiliate-btn-box .btn { width: 100%; }
    .review-box-header { flex-direction: column; align-items: flex-start; }
    .pagination-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
    .pagination-wrap .page-numbers { min-width: 40px; height: 40px; }
    .footer-bottom { font-size: 0.8rem; }
    .site-footer { padding: 40px 0 20px; margin-top: 40px; }
    .hero-slider-dots { margin-top: 12px; }
    .breadcrumbs { font-size: 0.8rem; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .comment-list .children { margin-left: 14px; padding-left: 0; list-style: none; }
}

/* ---- Very small phones ---- */
@media (max-width: 380px) {
    .container { padding: 0 12px; }
    .site-title { font-size: 1rem; }
    .header-cta-btn { padding: 6px 9px; font-size: 0.72rem; }
    .header-actions { gap: 6px; }
    .whatsnew-card { height: 340px; }
    .featured-content h2 { font-size: 1.2rem; }
}

/* ---- Touch devices: no hover-only behaviour, comfortable tap targets ---- */
@media (hover: none) {
    .post-card:hover, .related-card:hover { transform: none; box-shadow: none; }
    .ymhm-card:hover .ymhm-img, .duo-card:hover .duo-img { transform: none; }
    .header-search-toggle { width: 44px; height: 44px; }
    .hero-dot { width: 12px; height: 12px; }
    .hero-dot.active { width: 28px; }
}

/* ---- Landscape phones: avoid huge heights eating the screen ---- */
@media (max-height: 480px) and (orientation: landscape) {
    .site-header { position: static; }
    .demo-nav { position: static; }
    .whatsnew-card, .duo-card, .cat-banner { min-height: 0; height: 300px; }
    .cat-banner { height: 260px; }
}

/* ---- Notched phones (safe areas) + reduced motion ---- */
@supports (padding: max(0px)) {
    .container { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
}
@media (max-width: 640px) {
    @supports (padding: max(0px)) {
        .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}


/* ---- Mobile footer: 2 columns ---- */
@media (max-width: 640px) {
    .footer-widgets { grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-bottom: 28px; }
    .footer-widgets > * { min-width: 0; }
    .footer-widget h4, .footer-widget .widget-title { font-size: 0.85rem; margin-bottom: 12px; line-height: 1.3; }
    .footer-widget p, .footer-widget a { font-size: 0.85rem; line-height: 1.6; overflow-wrap: anywhere; }
    .footer-widget ul li { margin-bottom: 8px; }
}


/* ---- Featured hero: keep the PC layout (image left, text right) on tablet & mobile ---- */
@media (max-width: 960px) {
    .featured-post { grid-template-columns: 1.3fr 1fr; align-items: stretch; }
    .featured-image { min-height: 320px; height: 100%; }
    .featured-image img { height: 100%; min-height: 320px; width: 100%; object-fit: cover; }
    .featured-content { padding: 26px 24px; }
    .featured-content h2 { font-size: 1.4rem; margin-bottom: 10px; }
    .featured-content p { font-size: 0.92rem; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .featured-content .post-meta { gap: 6px 12px; font-size: 0.78rem; margin-bottom: 14px; }
}
@media (max-width: 640px) {
    .featured-post { grid-template-columns: 1fr 1.1fr; border-radius: 12px; }
    .featured-image { min-height: 230px; font-size: 3rem; }
    .featured-image img { min-height: 230px; }
    .featured-content { padding: 14px 12px; }
    .featured-badge { font-size: 0.55rem; padding: 3px 8px; margin-bottom: 8px; }
    .featured-content h2 { font-size: 0.95rem; line-height: 1.3; margin-bottom: 6px; }
    .featured-content p { font-size: 0.72rem; line-height: 1.45; margin-bottom: 8px; -webkit-line-clamp: 3; }
    .featured-content .post-meta { gap: 3px 8px; font-size: 0.62rem; margin-bottom: 8px; }
    .featured-content .post-meta span { gap: 3px; }
    .featured-content .btn { min-height: 34px; padding: 7px 8px; font-size: 0.7rem; border-radius: 6px; width: 100%; }
}
@media (max-width: 380px) {
    .featured-image, .featured-image img { min-height: 210px; }
    .featured-content h2 { font-size: 0.88rem; }
    .featured-content .post-meta span:nth-child(3) { display: none; }
}


/* ---- Hide header Subscribe button on mobile ---- */
@media (max-width: 640px) {
    .header-cta-btn { display: none !important; }
}

/* WHAT'S NEW BOTTOM BANNER SLIDER (one banner at a time) */
.wb-slider > .widget:not(:first-child) { display: none; }
.wb-slider.is-slider { position: relative; display: grid; overflow: hidden; border-radius: 16px; }
.wb-slider.is-slider > .widget { display: block !important; grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s; }
.wb-slider.is-slider > .widget.is-active { opacity: 1; visibility: visible; z-index: 1; }
.wb-slider.is-slider img { display: block; width: 100%; height: auto; }
.wb-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.wb-dot { width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,0.7); box-shadow: 0 1px 4px rgba(0,0,0,0.35); cursor: pointer; transition: 0.25s; }
.wb-dot.is-active { width: 28px; border-radius: 6px; background: #fff; }
.wb-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,0.88); color: #111; font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.wb-prev { left: 14px; }
.wb-next { right: 14px; }
@media (max-width: 640px) {
    .wb-slider.is-slider { border-radius: 12px; }
    .wb-arrow { display: none; }
    .wb-dots { bottom: 8px; gap: 6px; }
    .wb-dot { width: 8px; height: 8px; }
    .wb-dot.is-active { width: 22px; }
}

/* TOP BRANDS (uses the Most Popular look) */
.topbrands-section { padding-bottom: 45px; }
.topbrands-section + .topstories-section { padding-top: 45px; }
@media (max-width: 640px) {
    .topbrands-section { padding-bottom: 30px; }
    .topbrands-section + .topstories-section { padding-top: 30px; }
}

/* Gap between the two big cards and "You May Have Missed" */
.duo-section { padding-bottom: 40px; }
@media (max-width: 640px) {
    .duo-section { padding-bottom: 28px; }
}

/* CATEGORY SECTION (Top Stories look) */
.catspot-section { margin-top: 30px; padding-bottom: 40px; }
@media (max-width: 640px) { .catspot-section { margin-top: 20px; padding-bottom: 30px; } }


/* Bottom banner slides with links */
.wb-slider .widget a { display: block; }

/* Stacked category sections */
.catspot-section + .catspot-section { margin-top: 0; padding-top: 20px; }
