/*
Theme Name: UPTak News Theme
Theme URI: https://www.uptak.in
Author: UPTak
Author URI: https://www.uptak.in
Description: A fully customizable Hindi news theme for UP Tak, compatible with Elementor page builder. Features left sidebar navigation, breaking news ticker, category sections, and responsive design.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uptak-theme
Tags: news, hindi, elementor, responsive, custom-menu, custom-logo, featured-images, post-formats
*/

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #f6523e;
    --primary-light: #fff0ee;
    --primary-dark: #d43e2b;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f3f4f6;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --font-hindi: 'Noto Sans Devanagari', 'Mangal', sans-serif;
    --max-width: 1400px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-hindi), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.uptak-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.uptak-layout {
    display: flex;
    min-height: 100vh;
}

.uptak-sidebar-left {
    width: 13%;
    min-width: 160px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.uptak-main-content {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
}

.uptak-sidebar-right {
    width: 28%;
    min-width: 280px;
    flex-shrink: 0;
    padding: 0 12px;
}

/* ===== TOP BAR ===== */
.uptak-topbar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-gray);
}

.uptak-topbar-links { display: flex; gap: 0; flex-wrap: wrap; }
.uptak-topbar-links a {
    padding: 0 8px;
    border-right: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 12px;
    white-space: nowrap;
}
.uptak-topbar-links a:last-child { border-right: none; }
.uptak-topbar-links a:hover { color: var(--primary); }

.uptak-topbar-right { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.uptak-topbar-social { display: flex; align-items: center; gap: 4px; }
.uptak-topbar-social a { color: var(--primary); display: flex; align-items: center; padding: 0 4px; }
.uptak-topbar-social a:hover { opacity: 0.8; }

/* ===== HEADER ===== */
.uptak-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.uptak-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 40px 8px 16px;
    height: 64px;
    gap: 16px;
}

.uptak-logo a { display: flex; align-items: center; }
.uptak-logo img { height: 40px; width: auto; }
.uptak-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.uptak-header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    margin: 0 20px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.uptak-header-nav a {
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-dark);
    border-right: 1px solid var(--border-color);
    white-space: nowrap;
    gap: 6px;
}
.uptak-header-nav a:hover,
.uptak-header-nav a.active { color: var(--primary); }

.uptak-search-wrap {
    display: flex;
    align-items: center;
    width: 22%;
    min-width: 200px;
}

.uptak-search-form {
    position: relative;
    width: 100%;
}

.uptak-search-form input {
    width: 100%;
    padding: 8px 40px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s;
}
.uptak-search-form input:focus { border-color: var(--primary); }
.uptak-search-form input::placeholder { color: var(--text-light); font-style: italic; }

.uptak-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    display: flex;
    align-items: center;
}

/* ===== LEFT SIDEBAR NAV ===== */
.uptak-left-nav { padding: 8px 0; }

.uptak-left-nav-item a,
.uptak-left-nav-item > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    border-left: 4px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.uptak-left-nav-item a:hover,
.uptak-left-nav-item > div:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.uptak-left-nav-item.active a,
.uptak-left-nav-item.active > div {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.uptak-left-nav-social {
    display: flex;
    gap: 8px;
    padding: 16px;
    flex-wrap: wrap;
    margin-top: auto;
}
.uptak-left-nav-social a { color: var(--primary); display: flex; }
.uptak-left-nav-social a:hover { opacity: 0.7; }

/* ===== MOBILE HEADER ===== */
.uptak-mobile-header {
    display: none; /* shown via media query on mobile */
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.uptak-mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}

.uptak-mobile-menu-btn,
.uptak-mobile-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
}

.uptak-mobile-nav-scroll {
    display: flex;
    overflow-x: auto;
    padding: 4px 8px;
    gap: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.uptak-mobile-nav-scroll::-webkit-scrollbar { display: none; }

.uptak-mobile-nav-scroll li { list-style: none; }
.uptak-mobile-nav-scroll li a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
    color: var(--text-dark);
    background: var(--white);
    border-radius: 4px;
}
.uptak-mobile-nav-scroll li a:hover,
.uptak-mobile-nav-scroll li a.active,
.uptak-mobile-nav-scroll li.current-menu-item > a { color: var(--primary); }

/* Mobile Drawer */
.uptak-mobile-drawer {
    position: fixed;
    inset-y: 0;
    left: 0;
    width: 100vw;
    background: var(--white);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.uptak-mobile-drawer.open { transform: translateX(0); }

.uptak-drawer-header {
    background: var(--primary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.uptak-drawer-header img { height: 36px; }
.uptak-drawer-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.uptak-drawer-search {
    padding: 12px 16px;
    background: var(--primary);
}
.uptak-drawer-search input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.uptak-drawer-nav { padding: 8px 0; }
.uptak-drawer-nav li { border-bottom: 1px solid var(--border-color); }
.uptak-drawer-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    border-left: 4px solid transparent;
}
.uptak-drawer-nav li a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--primary-light);
}

.uptak-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    display: none;
}
.uptak-overlay.show { display: block; }

/* ===== BREAKING NEWS TICKER ===== */
.uptak-breaking-news {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 36px;
}

.uptak-breaking-label {
    background: var(--primary);
    color: var(--white);
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.uptak-ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.uptak-ticker {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.uptak-ticker a {
    padding: 0 32px;
    font-size: 13px;
    color: var(--text-dark);
    white-space: nowrap;
}
.uptak-ticker a:hover { color: var(--primary); }

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

/* ===== AD BANNER ===== */
.uptak-ad-banner {
    background: var(--bg-light);
    text-align: center;
    padding: 8px;
    margin: 8px 0;
    border-radius: 4px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.uptak-ad-label {
    font-size: 8px;
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PROMO BANNER ===== */
.uptak-promo-banner { margin: 12px 0; }
.uptak-promo-banner img { width: 100%; border-radius: 4px; }

/* ===== SECTION HEADER ===== */
.uptak-section { margin: 32px 0; }

.uptak-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.uptak-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.uptak-section-more {
    font-size: 13px;
    color: var(--text-gray);
    white-space: nowrap;
}
.uptak-section-more:hover { color: var(--primary); }

/* ===== NEWS GRID ===== */
.uptak-news-grid {
    display: flex;
    gap: 16px;
}

.uptak-news-main { width: 50%; }
.uptak-news-list { width: 50%; overflow-y: auto; max-height: 420px; }

/* Featured Article */
.uptak-featured-article { display: flex; flex-direction: column; }

.uptak-featured-img {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 16/9;
}
.uptak-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.uptak-featured-img:hover img { transform: scale(1.03); }

.uptak-featured-body { padding: 12px 0; }

.uptak-featured-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.uptak-featured-title:hover { color: var(--primary); }

.uptak-article-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 300;
    flex-wrap: wrap;
}
.uptak-article-meta img { display: inline; vertical-align: middle; }
.uptak-article-meta .author { color: var(--primary); }

/* List Article */
.uptak-list-article {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.uptak-list-article:last-child { border-bottom: none; margin-bottom: 0; }

.uptak-list-img {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.uptak-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.uptak-list-img:hover img { transform: scale(1.05); }

.uptak-list-body { flex: 1; min-width: 0; }

.uptak-list-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.uptak-list-title:hover { color: var(--primary); }

/* Video play overlay */
.uptak-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
}
.uptak-play-icon {
    width: 32px;
    height: 32px;
    background: rgba(246,82,62,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.uptak-play-icon::after {
    content: '';
    border-left: 10px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 3px;
}

/* ===== VISUAL STORIES SLIDER ===== */
.uptak-stories-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-light);
}
.uptak-stories-slider::-webkit-scrollbar { height: 4px; }
.uptak-stories-slider::-webkit-scrollbar-track { background: var(--bg-light); }
.uptak-stories-slider::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.uptak-story-card {
    flex-shrink: 0;
    width: 180px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.uptak-story-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.uptak-story-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.uptak-story-img img { width: 100%; height: 100%; object-fit: cover; }
.uptak-story-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5));
}

.uptak-story-body { padding: 10px; }
.uptak-story-cat {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.uptak-story-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== RIGHT SIDEBAR ===== */
.uptak-widget { margin-bottom: 24px; }

.uptak-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 12px;
}

.uptak-widget-post {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.uptak-widget-post:last-child { border-bottom: none; }

.uptak-widget-post-img {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}
.uptak-widget-post-img img { width: 100%; height: 100%; object-fit: cover; }

.uptak-widget-post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.uptak-widget-post-title:hover { color: var(--primary); }

/* ===== FOOTER ===== */
.uptak-footer {
    background: #1a1a2e;
    color: #ccc;
    margin-top: 40px;
}

.uptak-footer-top {
    padding: 40px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.uptak-footer-brand img { height: 40px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.uptak-footer-brand p { font-size: 13px; line-height: 1.6; color: #aaa; margin-bottom: 16px; }

.uptak-footer-social { display: flex; gap: 10px; }
.uptak-footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background 0.2s;
}
.uptak-footer-social a:hover { background: var(--primary); }

.uptak-footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.uptak-footer-col ul li { margin-bottom: 8px; }
.uptak-footer-col ul li a { font-size: 13px; color: #aaa; transition: color 0.2s; }
.uptak-footer-col ul li a:hover { color: var(--primary); }

.uptak-footer-bottom {
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
    gap: 8px;
}

.uptak-footer-bottom-links { display: flex; gap: 16px; }
.uptak-footer-bottom-links a { color: #888; }
.uptak-footer-bottom-links a:hover { color: var(--primary); }

/* ===== ELEMENTOR COMPATIBILITY ===== */
.elementor-section { width: 100%; }
.elementor-widget-wrap { width: 100%; }

/* Elementor custom classes for UPTak */
.uptak-el-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.uptak-el-news-card {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}
.uptak-el-news-card:hover { box-shadow: var(--shadow-md); }

.uptak-el-news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.uptak-el-news-card-body { padding: 12px; }
.uptak-el-news-card-title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.uptak-el-news-card-meta { font-size: 11px; color: var(--text-gray); margin-top: 6px; }

/* ===== UTILITY CLASSES ===== */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== RESPONSIVE ===== */

/* --- TABLET (max 1024px) --- */
@media (max-width: 1024px) {
    /* Hide desktop elements */
    .uptak-topbar { display: none !important; }
    .uptak-header { display: none !important; }
    .uptak-sidebar-left { display: none !important; }

    /* Show mobile header */
    .uptak-mobile-header { display: block !important; }

    /* Layout adjustments */
    .uptak-layout { flex-direction: row; }
    .uptak-main-content { padding: 0 12px; }
    .uptak-sidebar-right { width: 300px; min-width: 260px; padding: 0 8px; }

    /* Footer */
    .uptak-footer-top { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 20px; }
}

/* --- MOBILE (max 768px) --- */
@media (max-width: 768px) {
    /* Hide desktop, show mobile */
    .uptak-topbar { display: none !important; }
    .uptak-header { display: none !important; }
    .uptak-sidebar-left { display: none !important; }
    .uptak-mobile-header { display: block !important; }

    /* Full-width layout - no right sidebar beside content */
    .uptak-layout { flex-direction: column; }
    .uptak-main-content { width: 100%; padding: 0 10px; min-width: 0; }
    .uptak-sidebar-right {
        width: 100%;
        min-width: 0;
        padding: 0 10px;
        border-top: 4px solid var(--bg-light);
        margin-top: 8px;
    }

    /* News grid: stack vertically */
    .uptak-news-grid { flex-direction: column; gap: 0; }
    .uptak-news-main { width: 100%; }
    .uptak-news-list { width: 100%; max-height: none; overflow: visible; }

    /* Featured image full width */
    .uptak-featured-img { border-radius: 4px; }
    .uptak-featured-title { font-size: 16px; }

    /* List articles */
    .uptak-list-img { width: 110px; height: 75px; }
    .uptak-list-title { font-size: 13px; }

    /* Section spacing */
    .uptak-section { margin: 20px 0; }
    .uptak-section-title { font-size: 17px; }

    /* Stories slider */
    .uptak-story-card { width: 155px; }
    .uptak-story-img { height: 170px; }
    .uptak-story-title { font-size: 12px; }

    /* Breaking news */
    .uptak-breaking-news { height: 32px; }
    .uptak-breaking-label { font-size: 11px; padding: 0 10px; }
    .uptak-ticker a { font-size: 12px; padding: 0 20px; }

    /* Footer */
    .uptak-footer-top { grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 16px; }
    .uptak-footer-bottom { flex-direction: column; text-align: center; padding: 12px 16px; }
    .uptak-footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

    /* Widget */
    .uptak-widget-post-img { width: 70px; height: 52px; }

    /* Ad banner mobile */
    .uptak-ad-banner { min-height: 260px; }

    /* Promo banner */
    .uptak-promo-banner { margin: 8px 0; }

    /* Mobile bottom padding for fixed bottom nav */
    body { padding-bottom: 60px; }
}

/* --- SMALL MOBILE (max 480px) --- */
@media (max-width: 480px) {
    .uptak-main-content { padding: 0 8px; }
    .uptak-sidebar-right { padding: 0 8px; }

    .uptak-list-img { width: 100px; height: 68px; }
    .uptak-list-title { font-size: 13px; }
    .uptak-featured-title { font-size: 15px; }

    .uptak-story-card { width: 140px; }
    .uptak-story-img { height: 155px; }

    .uptak-section-title { font-size: 16px; }
    .uptak-section { margin: 16px 0; }

    /* Footer single column */
    .uptak-footer-top { grid-template-columns: 1fr; gap: 20px; padding: 20px 14px; }
    .uptak-footer-brand p { font-size: 12px; }

    /* Mobile header logo size */
    .uptak-mobile-header .uptak-logo img,
    .uptak-mobile-header .custom-logo { height: 30px !important; width: auto !important; }

    /* Drawer full screen */
    .uptak-mobile-drawer { width: 100vw; }

    /* Article meta wrap */
    .uptak-article-meta { font-size: 10px; }
}

/* --- MOBILE BOTTOM NAV BAR (like original site) --- */
.uptak-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    z-index: 99;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.uptak-mobile-bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    padding: 0 8px;
}

.uptak-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    color: var(--text-gray);
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
}
.uptak-bottom-nav-item svg { width: 22px; height: 22px; }
.uptak-bottom-nav-item:hover,
.uptak-bottom-nav-item.active { color: var(--primary); }

@media (max-width: 768px) {
    .uptak-mobile-bottom-nav { display: block; }
}

/* --- MOBILE HEADER LOGO FIX --- */
@media (max-width: 1024px) {
    .uptak-mobile-header .custom-logo-link img,
    .uptak-mobile-header .custom-logo {
        height: 33px !important;
        width: auto !important;
        max-width: 100px;
    }
    /* Ensure wp_nav_menu li items display inline in mobile scroll nav */
    .uptak-mobile-nav-scroll ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0;
    }
    .uptak-mobile-nav-scroll ul li { list-style: none; }
    .uptak-mobile-nav-scroll ul li a {
        display: block;
        padding: 6px 12px;
        font-size: 13px;
        white-space: nowrap;
        color: var(--text-dark);
    }
    .uptak-mobile-nav-scroll ul li.current-menu-item > a { color: var(--primary); }
}

/* ===== PRINT ===== */
@media print {
    .uptak-topbar, .uptak-header, .uptak-mobile-header,
    .uptak-sidebar-left, .uptak-sidebar-right,
    .uptak-footer, .uptak-ad-banner { display: none !important; }
    .uptak-main-content { width: 100%; padding: 0; }
}

/* ===== LEFT NAV CATEGORY ICONS ===== */
.uptak-left-nav-item a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uptak-nav-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: color 0.2s;
}

.uptak-nav-icon svg {
    width: 16px;
    height: 16px;
}

.uptak-left-nav-item a:hover .uptak-nav-icon,
.uptak-left-nav-item.active a .uptak-nav-icon {
    color: var(--primary);
}

.uptak-left-nav-item a span:not(.uptak-nav-icon) {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* Drawer nav icons */
.uptak-drawer-nav li a .uptak-nav-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}
.uptak-drawer-nav li a .uptak-nav-icon svg {
    width: 18px;
    height: 18px;
}

/* ===== WEB STORIES SECTION ===== */
.uptak-webstories-section { margin-bottom: 24px; }

.uptak-webstories-title { display: flex; align-items: center; gap: 6px; }

.uptak-webstories-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
}

.uptak-webstory-card { position: relative; }

.uptak-webstory-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.uptak-webstory-card:hover .uptak-webstory-play { opacity: 1; }

/* ===== WEB STORIES SLIDER ===== */
.uptak-webstories-section { margin-bottom: 24px; }
.uptak-webstories-title { display: flex; align-items: center; gap: 6px; }
.uptak-webstories-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff; font-size: 10px;
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
}

/* Nav arrows */
.uptak-ws-nav { display: flex; gap: 4px; }
.uptak-ws-btn {
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-color);
    background: #fff; cursor: pointer; font-size: 18px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dark); transition: background 0.2s, color 0.2s;
}
.uptak-ws-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.uptak-ws-btn:disabled { opacity: 0.35; cursor: default; }

/* Slider track */
.uptak-ws-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    cursor: grab;
    user-select: none;
    --ws-card-w: 120px;
    --ws-card-h: 200px;
}
.uptak-ws-slider::-webkit-scrollbar { display: none; }
.uptak-ws-slider.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* Story card */
.uptak-ws-card {
    flex: 0 0 var(--ws-card-w);
    width: var(--ws-card-w);
    scroll-snap-align: start;
    text-decoration: none;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}
.uptak-ws-card:hover { transform: scale(1.03); }

/* Thumb — portrait image with gradient */
.uptak-ws-thumb {
    width: 100%;
    height: var(--ws-card-h);
    background-size: cover;
    background-position: center;
    background-color: #ddd;
    border-radius: 12px;
    position: relative;
    border: 3px solid var(--primary);
    box-sizing: border-box;
}
.uptak-ws-overlay {
    position: absolute; inset: 0; border-radius: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 45%, rgba(0,0,0,0.1) 100%);
}
.uptak-ws-body {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 8px; z-index: 1;
}
.uptak-ws-cat {
    display: inline-block; background: var(--primary); color: #fff;
    font-size: 9px; font-weight: 700; padding: 2px 6px;
    border-radius: 3px; margin-bottom: 4px; text-transform: uppercase;
}
.uptak-ws-title {
    color: #fff; font-size: 11px; font-weight: 600;
    line-height: 1.35; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 600px) {
    .uptak-ws-slider { --ws-card-w: 105px; --ws-card-h: 175px; }
    .uptak-ws-title { font-size: 10px; }
}
