        :root {
            --primary: #0a2540;
            --primary-light: #1e3a5f;
            --accent: #e63946;
            --accent-soft: #ff6b6b;
            --gold: #f4a261;
            --sea: #2a9d8f;
            --bg: #fafbfc;
            --card-bg: #ffffff;
            --card-bg-rgb: 255, 255, 255;
            --text: #1a1a2e;
            --text-muted: #6b7280;
            --border: #e5e7eb;
            --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.04);
            --shadow-md: 0 4px 20px rgba(10, 37, 64, 0.08);
            --shadow-lg: 0 10px 40px rgba(10, 37, 64, 0.12);
            /* Border radius diperkecil (tidak oval) */
            --radius: 6px;
            --radius-lg: 10px;
            --theme-close-btn: none;
            
            /* Footer Variables untuk Light Mode */
            --footer-bg: #ffffff;
            --footer-text: #1a1a2e;
            --footer-muted: #6b7280;
            --footer-border: #e5e7eb;
        }

        [data-theme="dark"] {
            --primary: #e63946;
            --primary-light: #ff6b6b;
            --bg: #0f1419;
            --card-bg: #1a1f2e;
            --card-bg-rgb: 26, 31, 46;
            --text: #e8eaed;
            --text-muted: #9aa0a6;
            --border: #2d3748;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
            --theme-close-btn: invert(1) grayscale(1) brightness(2);
            
            /* Footer Variables untuk Dark Mode */
            --footer-bg: #151a23;
            --footer-text: #e8eaed;
            --footer-muted: #9aa0a6;
            --footer-border: #2d3748;
        }

        * { box-sizing: border-box; }
        html { overflow-x: clip; }
        body { overflow-x: clip; }
        img { max-width: 100%; height: auto; }
        .row > * { min-width: 0; }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg);
            color: var(--text);
            line-height: 1.7;
            transition: background-color 0.3s, color 0.3s;
            -webkit-font-smoothing: antialiased;
        }
        body.search-overlay-open { overflow: hidden; }

        h1, h2, h3, h4, h5, h6 {
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 1.3;
        }

        a { text-decoration: none; transition: all 0.2s ease; }
        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        select:focus-visible,
        textarea:focus-visible {
            outline: 3px solid rgba(230, 57, 70, 0.35);
            outline-offset: 2px;
        }

        /* ====== TOP BAR ====== */
        .top-bar {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
            font-size: 0.8rem;
            padding: 8px 0;
        }
        .top-bar a { color: rgba(255,255,255,0.85); }
        .top-bar a:hover { color: white; }
        .top-bar .separator { opacity: 0.3; margin: 0 10px; }

        /* ====== NAVBAR ====== */
        .navbar-wrapper {
            background: var(--card-bg);
            box-shadow: var(--shadow-sm);
            position: sticky;
            top: 0;
            z-index: 1000;
            transition: all 0.3s;
        }
        .navbar-wrapper.scrolled {
            box-shadow: var(--shadow-md);
        }

        .navbar-top {
            padding: 18px 0;
            border-bottom: 1px solid var(--border);
        }

        .navbar-brand-top {
            font-family: 'Merriweather', serif;
            font-weight: 900;
            font-size: 1.7rem;
            color: var(--accent) !important;
            letter-spacing: -0.5px;
        }
        .navbar-brand-top span { color: var(--primary); }
        [data-theme="dark"] .navbar-brand-top span { color: var(--text); }

        /* Redesain Search Container */
        .search-container .input-group {
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 3px;
            transition: all 0.3s;
        }
        .search-container .input-group:focus-within {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
        }
        .search-container .form-control {
            border: none;
            background: transparent;
            padding: 8px 16px;
            font-size: 0.9rem;
            color: var(--text);
        }
        .search-container .form-control:focus {
            box-shadow: none;
        }
        .search-container .btn-search {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 0 20px;
            font-weight: 600;
            transition: all 0.2s;
        }
        .search-container .btn-search:hover { 
            background: var(--accent); 
        }

        .btn-daftar {
            background: var(--accent);
            color: white !important;
            font-weight: 600;
            border-radius: var(--radius);
            padding: 8px 20px !important;
            border: none;
            font-size: 0.85rem;
        }
        .btn-daftar:hover { background: var(--accent-soft); transform: translateY(-1px); }

        .btn-masuk {
            border: 2px solid var(--primary);
            color: var(--primary) !important;
            font-weight: 600;
            border-radius: var(--radius);
            padding: 6px 18px !important;
            background: transparent;
            font-size: 0.85rem;
        }
        [data-theme="dark"] .btn-masuk { border-color: var(--text); color: var(--text) !important; }
        .btn-masuk:hover { background: var(--primary); color: white !important; }

        .theme-toggle {
            width: 38px; height: 38px;
            border-radius: var(--radius);
            background: var(--bg);
            border: 1px solid var(--border);
            color: var(--text);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        .theme-toggle:hover { background: var(--primary); color: white; transform: rotate(20deg); }

        /* Bottom Nav */
        .navbar-bottom-wrapper {
            background: var(--card-bg);
            padding: 0;
        }
        .navbar-bottom-nav .nav-link {
            font-weight: 600;
            color: var(--text-muted) !important;
            padding: 16px 18px !important;
            font-size: 0.9rem;
            position: relative;
            transition: all 0.2s;
        }
        .navbar-bottom-nav .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0; left: 50%;
            width: 0; height: 3px;
            background: var(--accent);
            transition: all 0.3s;
            transform: translateX(-50%);
            border-radius: 3px 3px 0 0;
        }
        .navbar-bottom-nav .nav-link:hover,
        .navbar-bottom-nav .nav-link.active {
            color: var(--primary) !important;
        }
        [data-theme="dark"] .navbar-bottom-nav .nav-link:hover,
        [data-theme="dark"] .navbar-bottom-nav .nav-link.active { color: var(--accent) !important; }
        .navbar-bottom-nav .nav-link:hover::after,
        .navbar-bottom-nav .nav-link.active::after { width: 60%; }

        /* ====== BREAKING NEWS TICKER ====== */
        .ticker-wrapper {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 10px 15px;
            display: flex;
            align-items: center;
            margin-bottom: 30px;
            box-shadow: var(--shadow-sm);
            overflow: hidden;
        }
        .ticker-badge {
            background: var(--accent);
            color: white;
            font-weight: 700;
            font-size: 0.75rem;
            padding: 6px 12px;
            border-radius: 4px;
            margin-right: 15px;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .ticker-badge .pulse {
            width: 8px; height: 8px;
            background: white;
            border-radius: 50%;
            animation: pulse 1.5s infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.3); }
        }
        .ticker-content {
            flex: 1;
            overflow: hidden;
            position: relative;
            mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        }
        .ticker-track {
            display: flex;
            gap: 60px;
            animation: ticker 45s linear infinite;
            white-space: nowrap;
            font-size: 0.88rem;
            color: var(--text);
            font-weight: 500;
        }
        .ticker-track:hover { animation-play-state: paused; }
        @keyframes ticker {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* ====== SECTION TITLE ====== */
        .section-title {
            font-size: 1.3rem;
            font-weight: 800;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--text);
        }
        .section-title::before {
            content: '';
            width: 5px;
            height: 24px;
            background: linear-gradient(180deg, var(--accent), var(--gold));
            border-radius: 3px;
            flex-shrink: 0;
        }
        .section-title .view-all {
            margin-left: auto;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--accent);
        }
        .section-title .view-all:hover { color: var(--accent-soft); }

        /* ====== HERO SECTION ====== */
        .hero-news {
            position: relative;
            border-radius: var(--radius-lg);
            overflow: hidden;
            margin-bottom: 30px;
            box-shadow: var(--shadow-md);
            cursor: pointer;
        }
        .hero-news img {
            width: 100%;
            height: clamp(220px, 42vw, 500px);
            object-fit: cover;
            transition: transform 0.6s ease;
            display: block;
        }
        .hero-news:hover img { transform: scale(1.05); }
        .hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(10,37,64,0.95) 0%, rgba(10,37,64,0.6) 40%, transparent 70%);
            padding: 40px 35px 35px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            color: white;
        }
        .hero-badge {
            display: inline-block;
            background: var(--accent);
            color: white;
            font-size: 0.7rem;
            font-weight: 700;
            padding: 5px 10px;
            border-radius: 4px;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            align-self: flex-start;
        }
        .hero-title a {
            color: white;
            font-family: 'Merriweather', serif;
            font-size: 2rem;
            font-weight: 900;
            line-height: 1.3;
            display: block;
            margin-bottom: 12px;
        }
        .hero-title a:hover { color: var(--gold); }
        .hero-excerpt {
            font-size: 0.95rem;
            opacity: 0.9;
            max-width: 600px;
            margin-bottom: 15px;
            line-height: 1.6;
        }
        .hero-meta {
            display: flex;
            align-items: center;
            gap: 12px 20px;
            font-size: 0.85rem;
            opacity: 0.85;
            flex-wrap: wrap;
        }
        .hero-meta .author {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .hero-meta .author img {
            width: 32px; height: 32px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid white;
            flex-shrink: 0;
        }

        /* ====== NEWS CARDS (VERTICAL) ====== */
        .news-grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }
        /* Dua kolom di layar medium-small (480–767px) */
        @media (min-width: 480px) and (max-width: 767.98px) {
            .news-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
        }
        .news-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border);
        }
        .news-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-lg);
            border-color: transparent;
        }
        .news-card .img-wrapper {
            position: relative;
            overflow: hidden;
            aspect-ratio: 16/10;
        }
        .news-card .card-img-top {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .news-card:hover .card-img-top { transform: scale(1.08); }
        .news-card .badge {
            position: absolute;
            top: 12px;
            left: 12px;
            font-weight: 600;
            font-size: 0.7rem;
            padding: 5px 8px;
            border-radius: 4px;
            z-index: 2;
            backdrop-filter: blur(10px);
        }
        .news-card .card-body {
            padding: 18px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        .card-title {
            font-size: 1rem;
            font-weight: 700;
            line-height: 1.45;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .card-title a {
            color: var(--text);
        }
        .card-title a:hover { color: var(--accent); }
        .card-meta {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin-top: auto;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .card-meta i { color: var(--accent); margin-right: 3px; }
        .reading-time {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: rgba(230, 57, 70, 0.1);
            color: var(--accent);
            padding: 3px 6px;
            border-radius: 4px;
            font-size: 0.72rem;
            font-weight: 600;
        }

        /* ====== HORIZONTAL CARD ====== */
        .news-card-horizontal {
            background: var(--card-bg);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
            margin-bottom: 20px;
            display: flex;
            align-items: stretch;
        }
        .news-card-horizontal:hover {
            transform: translateX(4px);
            box-shadow: var(--shadow-md);
            border-color: var(--accent);
        }
        .news-card-horizontal .img-wrapper {
            flex: 0 0 240px;
            max-width: 240px;
            min-height: 160px;
            position: relative;
            overflow: hidden;
        }
        .news-card-horizontal img {
            width: 100%;
            height: 100%;
            min-height: 160px;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .news-card-horizontal:hover img { transform: scale(1.08); }
        .news-card-horizontal .card-body {
            flex: 1;
            min-width: 0;
            padding: 22px 25px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .news-card-horizontal .card-title {
            font-size: 1.1rem;
            -webkit-line-clamp: 2;
            font-family: 'Merriweather', serif;
        }
        .news-card-horizontal .desc {
            font-size: 0.9rem;
            color: var(--text-muted);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin: 10px 0 15px;
            line-height: 1.6;
        }
        .news-card-horizontal .card-meta {
            padding-top: 12px;
            border-top: 1px dashed var(--border);
        }
        .news-card-horizontal .badge {
            border-radius: 4px;
        }

        /* ====== SLIDER ====== */
        .card-slider-wrapper { position: relative; margin-bottom: 40px; }
        .card-slider-container {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            gap: 20px;
            padding-bottom: 15px;
            scrollbar-width: thin;
            scrollbar-color: var(--border) transparent;
        }
        .card-slider-container::-webkit-scrollbar { height: 6px; }
        .card-slider-container::-webkit-scrollbar-track { background: transparent; }
        .card-slider-container::-webkit-scrollbar-thumb { background-color: var(--border); border-radius: var(--radius); }
        .slider-item {
            flex: 0 0 calc(33.333% - 14px);
            scroll-snap-align: start;
        }
        .slider-nav-btn {
            width: 40px; height: 40px;
            border-radius: var(--radius);
            background: var(--card-bg);
            border: 1px solid var(--border);
            color: var(--text);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .slider-nav-btn:hover {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
            transform: scale(1.05);
        }

        /* ====== SIDEBAR WIDGETS ====== */
        .widget {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            padding: 25px;
            margin-bottom: 25px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }
        .widget-title {
            font-size: 1.05rem;
            font-weight: 800;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--border);
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .widget-title::after {
            content: '';
            position: absolute;
            bottom: -2px; left: 0;
            width: 50px; height: 2px;
            background: var(--accent);
        }

        /* Trending */
        .trending-list { list-style: none; padding: 0; margin: 0; }
        .trending-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px solid var(--border);
            transition: all 0.2s;
        }
        .trending-item:last-child { border-bottom: none; padding-bottom: 0; }
        .trending-item:first-child { padding-top: 0; }
        .trending-item:hover { transform: translateX(4px); }
        .trending-number {
            font-family: 'Merriweather', serif;
            font-size: 2rem;
            font-weight: 850;
            background: linear-gradient(135deg, var(--accent), var(--gold));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
            min-width: 40px;
        }
        .trending-title {
            font-size: 0.92rem;
            font-weight: 600;
            margin-bottom: 6px;
            line-height: 1.4;
        }
        .trending-title a { color: var(--text); }
        .trending-title a:hover { color: var(--accent); }

        /* Ad Banner */
        .ad-banner {
            border-radius: var(--radius-lg);
            overflow: hidden;
            position: relative;
            margin-bottom: 25px;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border);
            aspect-ratio: 3 / 2;
        }
        .ad-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
        .ad-banner:hover img { transform: scale(1.03); }
        .ad-badge {
            position: absolute;
            top: 12px; right: 12px;
            background: rgba(0,0,0,0.7);
            color: #fff;
            font-size: 0.65rem;
            padding: 4px 8px;
            border-radius: 4px;
            letter-spacing: 1px;
            font-weight: 600;
            backdrop-filter: blur(10px);
        }

        /* Reusable compact news list */
        .sidebar-news-item {
            display: flex;
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px solid var(--border);
        }
        .sidebar-news-item:last-child { border-bottom: none; padding-bottom: 0; }
        .sidebar-news-item:first-child { padding-top: 0; }
        .sidebar-news-item img {
            width: 80px; height: 80px;
            min-width: 60px;
            border-radius: var(--radius);
            object-fit: cover;
            flex-shrink: 0;
        }
        .sidebar-news-title {
            font-size: 0.88rem;
            font-weight: 600;
            line-height: 1.4;
            margin-bottom: 6px;
        }
        .sidebar-news-title a { color: var(--text); }
        .sidebar-news-title a:hover { color: var(--accent); }
        .sidebar-news-item .badge { border-radius: 4px; }
        .sidebar-news-meta {
            color: var(--text-muted);
            font-size: 0.72rem;
        }
        .sidebar-news-meta i { color: var(--accent); }

        /* Weather Widget */
        .weather-widget {
            background: linear-gradient(135deg, #2a9d8f 0%, #264653 100%);
            color: white;
            border-radius: var(--radius-lg);
            padding: 25px;
            margin-bottom: 25px;
            position: relative;
            overflow: hidden;
        }
        .weather-widget::before {
            content: '';
            position: absolute;
            top: -30px; right: -30px;
            width: 120px; height: 120px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
        }
        .weather-widget .location { font-size: 0.85rem; opacity: 0.9; margin-bottom: 5px; }
        .weather-widget .temp { font-size: 2.5rem; font-weight: 800; line-height: 1; }
        .weather-widget .condition { font-size: 0.9rem; opacity: 0.9; margin-top: 5px; }
        .weather-widget .wave-info {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid rgba(255,255,255,0.2);
            display: flex;
            justify-content: space-between;
            font-size: 0.82rem;
        }

        /* Tags */
        .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
        .tag-pill {
            background: var(--bg);
            border: 1px solid var(--border);
            color: var(--text-muted);
            padding: 6px 12px;
            border-radius: var(--radius);
            font-size: 0.8rem;
            font-weight: 500;
            transition: all 0.2s;
        }
        .tag-pill:hover {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
            transform: translateY(-2px);
        }

        /* Newsletter */
        .newsletter-widget {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
            border-radius: var(--radius-lg);
            padding: 30px 25px;
            text-align: center;
            margin-bottom: 25px;
            position: relative;
            overflow: hidden;
        }
        .newsletter-widget::before {
            content: '\f42e';
            font-family: 'bootstrap-icons';
            position: absolute;
            top: -20px; right: -20px;
            font-size: 8rem;
            opacity: 0.08;
        }
        .newsletter-widget h5 {
            font-family: 'Merriweather', serif;
            font-size: 1.2rem;
            margin-bottom: 8px;
        }
        .newsletter-widget p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 18px; }
        .newsletter-widget .input-group {
            background: white;
            border-radius: var(--radius);
            padding: 4px;
        }
        .newsletter-widget input {
            border: none;
            background: transparent;
            padding: 8px 15px;
            font-size: 0.85rem;
            color: var(--text);
            border-radius: 4px;
        }
        .newsletter-widget input:focus { box-shadow: none; outline: none; }
        .newsletter-widget button {
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 8px 20px;
            font-weight: 600;
            font-size: 0.85rem;
        }

        /* Pagination */
        .pagination { gap: 6px; }
        .pagination .page-link {
            border: 1px solid var(--border);
            color: var(--text);
            padding: 8px 14px;
            border-radius: var(--radius) !important;
            font-weight: 600;
            font-size: 0.88rem;
            background: var(--card-bg);
        }
        .pagination .page-link:hover {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }
        .pagination .active .page-link {
            background: var(--accent);
            border-color: var(--accent);
            color: white;
        }

        /* Footer */
        footer {
            background: var(--footer-bg);
            color: var(--footer-text);
            padding: 60px 0 25px;
            margin-top: 70px;
            border-top: 1px solid var(--footer-border);
            transition: all 0.3s;
        }
        footer h5 {
            color: var(--footer-text);
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        footer h5::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0;
            width: 30px; height: 2px;
            background: var(--accent);
        }
        .footer-brand {
            font-family: 'Merriweather', serif;
            font-size: 1.8rem;
            font-weight: 900;
            color: var(--accent) !important;
        }
        .footer-brand span { color: var(--text); }
        .footer-links { list-style: none; padding: 0; }
        .footer-links li { margin-bottom: 10px; }
        .footer-links a {
            color: var(--footer-muted);
            font-size: 0.9rem;
            transition: all 0.2s;
        }
        .footer-links a:hover { color: var(--accent); padding-left: 5px; }
        .social-icons a {
            width: 38px; height: 38px;
            display: inline-flex;
            align-items: center; justify-content: center;
            background: var(--bg);
            color: var(--footer-text);
            border: 1px solid var(--footer-border);
            border-radius: var(--radius);
            margin-right: 8px;
            transition: all 0.3s;
        }
        .social-icons a:hover {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
            transform: translateY(-3px);
        }
        .footer-bottom {
            border-top: 1px solid var(--footer-border);
            padding-top: 25px;
            margin-top: 40px;
            font-size: 0.85rem;
            color: var(--footer-muted);
        }
        .footer-bottom a { color: var(--footer-muted); transition: color 0.2s; }
        .footer-bottom a:hover { color: var(--accent); }

        /* Back to top */
        .back-to-top {
            position: fixed;
            bottom: 30px; right: 20px;
            width: 44px; height: 44px;
            background: var(--accent);
            color: white;
            border-radius: var(--radius);
            display: flex; align-items: center; justify-content: center;
            box-shadow: var(--shadow-md);
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 999;
            border: none;
        }
        .back-to-top.show { opacity: 1; visibility: visible; }
        .back-to-top:hover { background: var(--primary); transform: translateY(-4px); }

        /* --- CUSTOM MOBILE UX ELEMENTS --- */
        
        /* Reading Progress Bar */
        .reading-progress-container {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: transparent;
            z-index: 1001;
        }
        .reading-progress-bar {
            width: 0%;
            height: 100%;
            background: linear-gradient(to right, var(--accent), var(--gold));
            transition: width 0.1s ease-out;
        }

        /* Mobile Bottom Nav */
        .mobile-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: calc(60px + env(safe-area-inset-bottom, 0px));
            min-height: calc(60px + env(safe-area-inset-bottom, 0px));
            background: rgba(var(--card-bg-rgb), 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 1050;
            box-shadow: 0 -4px 16px rgba(0,0,0,0.05);
            padding-bottom: env(safe-area-inset-bottom, 0px);
            transition: background-color 0.3s, border-color 0.3s;
        }
        .mobile-bottom-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 0.72rem;
            font-weight: 600;
            text-decoration: none !important;
            flex: 1 1 0;
            min-width: 56px;
            min-height: 60px;
            border: none;
            background: transparent;
            padding: 0;
            transition: color 0.2s;
        }
        .mobile-bottom-item i {
            font-size: 1.25rem;
            margin-bottom: 2px;
            transition: transform 0.2s;
        }
        .mobile-bottom-item:hover, .mobile-bottom-item.active {
            color: var(--accent);
        }
        .mobile-bottom-item:active i {
            transform: scale(0.9);
        }

        /* Mobile Search Overlay */
        .mobile-search-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(10, 37, 64, 0.98);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        [data-theme="dark"] .mobile-search-overlay {
            background: rgba(15, 20, 25, 0.98);
        }
        .mobile-search-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .btn-close-search {
            position: absolute;
            top: 20px; right: 20px;
            background: transparent;
            border: none;
            color: white;
            font-size: 1.8rem;
            width: 44px;
            height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .btn-close-search:hover {
            transform: rotate(90deg);
        }
        .search-overlay-content {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .search-overlay-content .input-group {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: var(--radius);
            padding: 5px;
            backdrop-filter: blur(10px);
        }
        .search-overlay-content .form-control {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.1rem;
            padding: 12px 20px;
        }
        .search-overlay-content .form-control::placeholder {
            color: rgba(255,255,255,0.6);
        }
        .search-overlay-content .form-control:focus {
            box-shadow: none;
            background: transparent;
            color: white;
        }
        .btn-search-overlay {
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 0 25px;
            font-size: 1.1rem;
            transition: background 0.2s;
        }
        .btn-search-overlay:hover {
            background: var(--accent-soft);
        }

        /* Offcanvas Sidebar Custom Adjustments */
        .offcanvas .nav-link {
            color: var(--text-muted);
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.2s;
            display: flex;
            align-items: center;
        }
        .offcanvas .nav-link:hover {
            color: var(--accent);
            background: rgba(230, 57, 70, 0.05);
            padding-left: 1.25rem !important;
        }
        .offcanvas .nav-link.active {
            color: var(--accent) !important;
            background: rgba(230, 57, 70, 0.1) !important;
        }
        
        /* Hide scrollbars globally for custom horizontal sliders */
        .card-slider-container {
            scrollbar-width: none !important;
        }
        .card-slider-container::-webkit-scrollbar {
            display: none !important;
        }

        /* ====== RESPONSIVE & LAYOUT OPTIMIZATIONS ====== */
        
        /* Tablet & Desktop sizes (>= 768px) */
        @media (min-width: 768px) {
            .mobile-bottom-nav { display: none !important; }
        }

        /* Screens < 992px (Tablets & Mobile) */
        @media (max-width: 991.98px) {
            .navbar-top { padding: 12px 0; }
            .search-container { display: none !important; }
            .navbar-bottom-wrapper {
                padding: 0;
                position: relative;
                border-bottom: 1px solid var(--border);
            }
            .navbar-bottom-wrapper::after {
                content: '';
                position: absolute;
                top: 0; right: 0; bottom: 0;
                width: 35px;
                background: linear-gradient(to right, transparent, var(--card-bg));
                pointer-events: none;
                z-index: 2;
            }
            /* Force nav items to display as horizontal row on mobile */
            .navbar-bottom-wrapper .navbar {
                display: block !important;
            }
            .navbar-bottom-wrapper .container-fluid {
                padding: 0;
            }
            .navbar-bottom-nav {
                display: flex !important;
                flex-direction: row !important;
                overflow-x: auto;
                flex-wrap: nowrap !important;
                white-space: nowrap;
                scrollbar-width: none;
                -webkit-overflow-scrolling: touch;
                padding: 0 4px;
            }
            .navbar-bottom-nav::-webkit-scrollbar {
                display: none;
            }
            .navbar-bottom-nav .nav-item {
                flex-shrink: 0;
            }
            .navbar-bottom-nav .nav-link {
                padding: 10px 14px !important;
                font-size: 0.85rem;
                white-space: nowrap;
            }
            
            /* Sidebar widgets padding adjustment on tablets */
            .widget { padding: 18px; margin-bottom: 20px; }
            .weather-widget { padding: 18px; margin-bottom: 20px; }
            .weather-widget .temp { font-size: 2rem; }
            .weather-widget .wave-info { font-size: 0.75rem; }
            
            .sidebar-news-item img { width: 65px; height: 65px; }
            .sidebar-news-title { font-size: 0.82rem; }
            
            /* News grid: 2 kolom di tablet */
            .news-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
            .slider-item { flex: 0 0 calc(50% - 10px); }
            .hero-title a { font-size: clamp(1.3rem, 3.5vw, 1.6rem); }
            /* hero-news menggunakan clamp, tidak perlu override height di tablet */
            
            /* Horizontal card on tablet: reduce image width */
            .news-card-horizontal .img-wrapper {
                flex: 0 0 190px;
                max-width: 190px;
                min-height: 150px;
            }
            .news-card-horizontal .card-body { padding: 16px 18px; }
            .news-card-horizontal .card-title { font-size: 1rem; }
            
            /* Newsletter fix on narrow sidebar */
            .newsletter-widget { padding: 22px 18px; }
            .newsletter-widget h5 { font-size: 1.05rem; }
            .newsletter-widget .input-group { flex-wrap: nowrap; }
            .newsletter-widget input { font-size: 0.8rem; padding: 8px 10px; min-width: 0; }
            .newsletter-widget button { padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; }

            /* Ad banner lebih kompak di tablet */
            .ad-banner { aspect-ratio: 16 / 7; }
        }

        /* Screens < 768px (Smartphones) */
        @media (max-width: 767.98px) {
            body {
                padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
            }
            .top-bar { display: none !important; }
            
            /* Back to top above bottom nav */
            .back-to-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); right: 16px; }
            
            /* Compact Navbar */
            .navbar-brand-top { font-size: 1.4rem; }
            .navbar-top { padding: 10px 0; }
            .navbar-top .theme-toggle { width: 44px; height: 44px; font-size: 0.95rem; }
            
            /* Container margin comfort */
            .container {
                padding-left: 14px;
                padding-right: 14px;
            }
            
            /* News grid: 1 kolom di mobile kecil (sudah ada 2 kolom untuk 480-767) */
            .news-grid-3 { grid-template-columns: 1fr; gap: 14px; }
            .slider-item { flex: 0 0 82%; }

            /* Horizontal card: stack vertikal */
            .news-card-horizontal {
                flex-direction: column;
            }
            .news-card-horizontal .img-wrapper {
                flex: auto;
                max-width: 100%;
                width: 100%;
                height: 190px;
                min-height: 0;
            }
            .news-card-horizontal img { min-height: 0; }
            .news-card-horizontal .card-body { padding: 16px; }
            .news-card-horizontal .card-title { font-size: 1.05rem; }
            .news-card-horizontal .desc { -webkit-line-clamp: 3; margin: 8px 0 12px; }
            
            /* Hero section */
            .hero-news { margin-bottom: 20px; border-radius: var(--radius); }
            .hero-title a { font-size: clamp(1.1rem, 5vw, 1.4rem); }
            .hero-overlay { padding: 16px 14px; }
            .hero-excerpt {
                font-size: 0.82rem;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                margin-bottom: 8px;
            }
            .hero-meta { gap: 6px 12px; font-size: 0.75rem; }
            .hero-meta .author img { width: 26px; height: 26px; }
            .hero-badge { margin-bottom: 8px; padding: 4px 8px; font-size: 0.65rem; }
            
            /* Section title */
            .section-title { font-size: 1.05rem; margin-bottom: 16px; }
            .section-title::before { width: 4px; height: 20px; }

            /* Breaking news ticker */
            .ticker-wrapper { margin-bottom: 18px; padding: 8px 10px; }
            .ticker-badge { font-size: 0.68rem; padding: 4px 8px; margin-right: 8px; }
            .ticker-track { gap: 35px; font-size: 0.78rem; }
            
            /* Better Touch Targets */
            .tag-pill { padding: 8px 14px; min-height: 44px; display: inline-flex; align-items: center; }
            .pagination {
                flex-wrap: nowrap;
                max-width: 100%;
                overflow-x: auto;
                padding-bottom: 4px;
                scrollbar-width: thin;
            }
            .pagination .page-link { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
            .footer-links a { display: block; padding: 6px 0; }
            .navbar-toggler,
            .btn,
            .slider-nav-btn {
                min-height: 44px;
            }
            input,
            select,
            textarea,
            .form-control,
            .form-select,
            .newsletter-widget input {
                font-size: 16px;
            }
            
            /* News card body padding */
            .news-card .card-body { padding: 14px; }
            .card-title { font-size: 0.95rem; margin-bottom: 10px; }
            
            /* Widget adjustments */
            .widget { padding: 16px; margin-bottom: 18px; border-radius: var(--radius); }
            .widget-title { font-size: 0.95rem; margin-bottom: 16px; padding-bottom: 10px; }
            .trending-number { font-size: 1.6rem; min-width: 32px; }
            .trending-title { font-size: 0.85rem; }
            .trending-item { gap: 10px; padding: 12px 0; }
            .weather-widget .temp { font-size: 2rem; }
            .sidebar-news-item img { width: 65px; height: 65px; }
            .sidebar-news-item { gap: 10px; }
            
            .newsletter-widget { padding: 24px 16px; }
            .newsletter-widget .input-group { flex-wrap: nowrap; }
            .newsletter-widget input { font-size: 0.8rem; padding: 8px 10px; min-width: 0; }
            .newsletter-widget button { padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; }
            
            /* Pagination compact */
            .pagination { gap: 4px; }
            .pagination .page-link { padding: 6px 10px; font-size: 0.82rem; }
            
            /* Slider nav */
            .slider-nav-btn { width: 44px; height: 44px; }
            
            /* Footer compact */
            footer { padding: 35px 0 20px; margin-top: 35px; }
            .footer-brand { font-size: 1.5rem; }
            footer h5 { font-size: 0.9rem; margin-bottom: 14px; }
            .social-icons a { width: 44px; height: 44px; }
            .footer-bottom { font-size: 0.78rem; margin-top: 25px; padding-top: 18px; }
            
            /* Ad banner */
            .ad-banner { margin-bottom: 18px; aspect-ratio: 16 / 9; }
        }
        
        /* Extra small phones (<= 375px) */
        @media (max-width: 375px) {
            .hero-title a { font-size: 1.05rem; }
            .hero-excerpt { display: none; }
            .navbar-brand-top { font-size: 1.25rem; }
            .slider-item { flex: 0 0 88%; }
            .news-card-horizontal .img-wrapper { height: 160px; }
            /* Grid tetap 1 kolom, tidak perlu override */
            .ticker-badge .pulse { display: none; }
        }

        /* ====== JADWAL KEBERANGKATAN KAPAL AUTOMATIC SLIDER ====== */
        .schedule-slider-container {
            margin-bottom: 30px;
        }
        .schedule-slider-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .schedule-slider-title i {
            color: var(--accent);
        }
        .schedule-slider {
            width: 100%;
            overflow: hidden;
            position: relative;
            padding: 5px 0;
        }
        .schedule-slider::before,
        .schedule-slider::after {
            content: "";
            height: 100%;
            position: absolute;
            width: 80px;
            z-index: 2;
            pointer-events: none;
            top: 0;
        }
        .schedule-slider::before {
            left: 0;
            background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
        }
        .schedule-slider::after {
            right: 0;
            background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
        }
        .schedule-track {
            display: flex;
            animation: scrollSchedules 35s linear infinite;
            width: max-content;
        }
        .schedule-track:hover {
            animation-play-state: paused;
        }
        .schedule-card-item {
            width: 290px;
            margin-right: 18px;
            flex-shrink: 0;
        }
        
        /* Card styling */
        .schedule-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 14px 16px;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .schedule-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
            border-color: var(--accent);
        }
        .schedule-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px dashed var(--border);
            padding-bottom: 8px;
        }
        .schedule-company {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .schedule-company-logo {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 800;
        }
        .schedule-company-name {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--text);
        }
        .schedule-status {
            font-size: 0.7rem;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 20px;
        }
        .status-ontime {
            background: rgba(42, 157, 143, 0.15);
            color: #2a9d8f;
        }
        .status-boarding {
            background: rgba(10, 37, 64, 0.1);
            color: var(--primary);
        }
        [data-theme="dark"] .status-boarding {
            background: rgba(230, 57, 70, 0.2);
            color: var(--primary-light);
        }
        .status-delayed {
            background: rgba(230, 57, 70, 0.15);
            color: var(--accent);
        }
        
        .schedule-ship-name {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text);
        }
        
        .schedule-route {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.78rem;
            color: var(--text-muted);
        }
        .schedule-route-port {
            font-weight: 600;
            color: var(--text);
        }
        .schedule-route-arrow {
            color: var(--accent);
        }
        
        .schedule-time {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            color: var(--text-muted);
        }
        .schedule-time i {
            color: var(--primary);
        }
        [data-theme="dark"] .schedule-time i {
            color: var(--primary-light);
        }
        .schedule-time-val {
            font-weight: 600;
            color: var(--text);
        }
        
        @keyframes scrollSchedules {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                scroll-behavior: auto !important;
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }
