/* /public/fe/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #080B11;
    --bg-secondary: #0F1420;
    --bg-tertiary: #171E30;
    --accent-primary: #6366F1;
    --accent-secondary: #06B6D4;
    --accent-purple: #8B5CF6;
    --accent-pink: #EC4899;

    --grad-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --grad-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    --grad-premium: linear-gradient(135deg, #FF007F 0%, #7F00FF 50%, #00F0FF 100%);
    --grad-dark-overlay: linear-gradient(to top, rgba(8, 11, 17, 1) 0%, rgba(8, 11, 17, 0.8) 30%, rgba(8, 11, 17, 0) 100%);

    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(99, 102, 241, 0.2);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(23, 30, 48, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.glass-panel-interactive:hover {
    background: rgba(23, 30, 48, 0.8);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

/* Headers & Navigation */
header.navbar-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 11, 17, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

/* Turbolinks Progress Bar */
.turbolinks-progress-bar {
    height: 3px;
    background: var(--grad-premium);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
    z-index: 9999 !important;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--grad-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-form {
    position: relative;
}

.search-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 20px 10px 45px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 240px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    width: 280px;
}

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

.search-input:focus+.search-btn {
    color: var(--accent-primary);
}

/* Hero/Featured Section — Split Card (Image Top, Text Below) */
.hero-section {
    position: relative;
    padding: 30px 0 20px;
}

.hero-split-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.3s ease;
}

.hero-split-card:hover {
    box-shadow: var(--shadow-glow);
}

.hero-split-img {
    display: block;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.hero-split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}

.hero-split-card:hover .hero-split-img img {
    transform: scale(1.04);
}

.hero-split-body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-time-ago {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

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

.hero-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 800px;
}

/* Sub-Featured Row (3-column text headlines beneath Hero) */
.sub-featured-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.sub-featured-col {
    padding: 20px 20px 20px 0;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-featured-col:last-child {
    border-right: none;
    padding-right: 0;
}

.sub-featured-col:first-child {
    padding-left: 0;
}

.sub-featured-col:not(:first-child) {
    padding-left: 20px;
}

.sub-featured-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sub-featured-category {
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-featured-bullet {
    color: var(--text-muted);
    font-size: 0.6rem;
}

.sub-featured-time {
    color: var(--text-muted);
}

.sub-featured-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sub-featured-title a:hover {
    color: var(--accent-primary);
}

/* Terpopuler Widget (Numbered List — Liputan6 Style) */
.popular-widget {
    padding-bottom: 16px;
}

.popular-list {
    display: flex;
    flex-direction: column;
}

.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

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

.popular-item:first-child {
    padding-top: 0;
}

.popular-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    min-width: 36px;
    color: var(--accent-primary);
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.popular-item:hover .popular-number {
    opacity: 1;
}

.popular-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.popular-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.popular-category {
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.popular-bullet {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.popular-time {
    color: var(--text-muted);
}

.popular-item-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-item-title a:hover {
    color: var(--accent-primary);
}

/* Legacy classes kept for other pages */
.featured-card {
    position: relative;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.featured-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.featured-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.featured-card:hover .featured-img-container img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-dark-overlay);
    z-index: 2;
}

.featured-content {
    position: relative;
    z-index: 3;
    padding: 48px;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tag-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--grad-glow);
    border: 1px solid var(--border-glow);
    color: var(--accent-secondary);
    width: fit-content;
    align-self: flex-start;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.featured-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.featured-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--grad-primary);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.btn-read-more:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Post Grid & Layout */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title-line {
    flex-grow: 1;
    height: 1px;
    background: var(--border-color);
    margin-left: 20px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding-bottom: 80px;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Horizontal compact card — style lampiran 2 */
.post-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    background: rgba(23, 30, 48, 0.45);
    box-shadow: var(--shadow-sm);
    padding: 18px;
    gap: 20px;
}

.post-card:first-child {
    /* Standalone card style */
}

.post-card:hover {
    transform: translateY(-2px);
    background: rgba(23, 30, 48, 0.6) !important;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.post-thumb {
    position: relative;
    width: 160px;
    min-width: 160px;
    height: 110px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.06);
}

.post-card-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
    justify-content: center;
    min-width: 0;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-title a:hover {
    color: var(--accent-primary);
}

.post-card-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    border-top: none;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Sticky sidebar */
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.widget {
    padding: 30px;
    border-radius: var(--radius-md);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

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

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item {
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-cloud-item:hover {
    background: var(--grad-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.tag-count {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.tag-cloud-item:hover .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* List/Search Header */
.list-header {
    padding: 40px 0 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.list-header-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.list-header-meta {
    color: var(--text-secondary);
    font-size: 1rem;
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.page-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.page-link:hover,
.page-link.active {
    background: var(--grad-primary);
    color: white;
    border-color: transparent;
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Detail Page */
.detail-layout {
    padding: 40px 0 80px;
    max-width: 900px;
    margin: 0 auto;
}

.detail-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
}

.detail-back-btn:hover {
    color: var(--accent-primary);
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-hero-img {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.detail-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-img-copyright {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(8, 11, 17, 0.72);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-body {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.detail-body p {
    margin-bottom: 24px;
}

.detail-body blockquote {
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 100% !important;
}

/* Embedded Code (YouTube/Spotify) */
.embed-container {
    margin: 32px auto;
    max-width: 720px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.embed-container iframe,
.embed-container img {
    width: 100% !important;
    max-width: 100%;
    display: block;
    border: none;
    height: auto;
}

/* Support for responsive iframe aspect ratio if needed */
.embed-youtube,
.embed-spotify {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
}

.embed-youtube iframe,
.embed-spotify iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Specific styling adjust for Spotify playlists */
.embed-spotify-playlist {
    padding-bottom: 0;
    height: 380px;
    max-width: 720px;
}

.embed-spotify-playlist iframe {
    height: 380px !important;
}

/* Detail Tags */
.detail-tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 50px 0;
}

.detail-tags-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    margin-right: 10px;
}

/* Related Posts Section */
.related-posts {
    margin-top: 60px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* Footer Section */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    color: var(--text-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
}

.footer-links-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-links-list a:hover {
    color: var(--accent-primary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* Icons via Font Awesome SVG or inline */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
}

.detail-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

/* Responsive Breakpoints & Desktop Utilities */
.nav-links-desktop,
.nav-actions-desktop {
    display: flex;
}

.mobile-nav-actions {
    display: none;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-drawer {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(8, 11, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 30px 0;
}

.mobile-nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-search-form {
    margin-bottom: 30px;
}

.mobile-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 2px 6px 2px 20px;
}

.mobile-search-wrap input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 0;
    flex-grow: 1;
    width: 100%;
}

.mobile-search-icon {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 1.05rem;
}

.mobile-search-wrap button {
    background: var(--grad-primary);
    color: white;
    border: none;
    outline: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-wrap button:hover {
    box-shadow: var(--shadow-glow);
}

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

.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.mobile-nav-links li a i {
    width: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
    background: var(--grad-glow);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.mobile-nav-links li a:hover i,
.mobile-nav-links li a.active i {
    color: var(--accent-primary);
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 40px;
    }

    .sub-featured-row {
        grid-template-columns: 1fr 1fr;
    }

    .sub-featured-col:nth-child(3) {
        grid-column: 1 / -1;
        border-right: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
    }
}

@media (max-width: 768px) {

    .nav-links-desktop,
    .nav-actions-desktop {
        display: none;
    }

    .mobile-nav-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .hamburger-btn {
        display: flex;
    }

    .navbar {
        height: 80px;
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
    }

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

    .post-card {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
    }

    .post-thumb {
        width: 100%;
        min-width: 100%;
        height: 220px;
        border-radius: 0;
    }

    .post-card-content {
        padding: 20px;
    }

    .featured-card {
        height: 380px;
    }

    .featured-content {
        padding: 24px;
    }

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

    .featured-desc {
        font-size: 0.95rem;
    }

    /* New hero split card responsive */
    .hero-split-img {
        height: 260px;
    }

    .hero-split-body {
        padding: 20px;
    }

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

    .hero-desc {
        font-size: 0.9rem;
    }

    .sub-featured-row {
        grid-template-columns: 1fr;
    }

    .sub-featured-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px 0;
    }

    .sub-featured-col:last-child {
        border-bottom: none;
    }

    .sub-featured-col:not(:first-child) {
        padding-left: 0;
    }

    .popular-number {
        font-size: 1.8rem;
        min-width: 28px;
    }

    .detail-title {
        font-size: 2rem;
    }

    .detail-hero-img {
        height: 280px;
    }

    .detail-content-wrapper {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Section headings: perkecil font di mobile agar tidak overflow */
    .section-title {
        font-size: 1.05rem !important;
    }

    .section-title span {
        font-size: inherit;
    }

    /* Widget titles di sidebar (inline style override) */
    .widget-title {
        font-size: 0.9rem !important;
    }
}

/* ==========================================================================
   Light Mode & Social Share Button Additions
   ========================================================================== */

/* Light Theme Variables */
body.light-theme,
.light-theme {
    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(99, 102, 241, 0.1);
    --grad-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

.light-theme .mobile-nav-drawer {
    background: rgba(249, 250, 251, 0.98);
}

.light-theme .search-input {
    background: #F3F4F6;
    border-color: rgba(0, 0, 0, 0.08);
    color: #111827;
}

.light-theme .search-input:focus {
    background: #FFFFFF;
    border-color: var(--accent-primary);
}

.light-theme .tag-cloud-item {
    background: #FFFFFF;
}

.light-theme .logo {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme header.navbar-container {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border-color);
}

.light-theme .glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.light-theme .glass-panel-interactive:hover {
    background: rgba(255, 255, 255, 1);
}

/* Sun/Moon Icon Toggling */
.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

.light-theme .sun-icon {
    display: none;
}

.light-theme .moon-icon {
    display: block;
}

/* Social Share SVG Button Styles */
.share-btn-svg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.share-btn-svg:hover {
    color: white;
    transform: translateY(-4px);
}

.share-btn-svg.tw:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    box-shadow: 0 6px 15px rgba(29, 161, 242, 0.3);
}

.share-btn-svg.fb:hover {
    background: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.3);
}

.share-btn-svg.wa:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.share-btn-svg.tg:hover {
    background: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 6px 15px rgba(0, 136, 204, 0.3);
}

/* =============================================
   Reading Progress Bar
   ============================================= */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 9999;
    background: var(--grad-primary);
    border-radius: 0 2px 2px 0;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* =============================================
   Key Takeaway Box
   ============================================= */
.key-takeaway-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 40px;
    padding: 24px 28px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-primary);
    background: var(--grad-glow);
    border-top: 1px solid var(--border-glow);
    border-right: 1px solid var(--border-glow);
    border-bottom: 1px solid var(--border-glow);
}

.key-takeaway-icon {
    font-size: 1.6rem;
    color: var(--accent-primary);
    opacity: 0.6;
    flex-shrink: 0;
    margin-top: 2px;
}

.key-takeaway-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.key-takeaway-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-primary);
}

.key-takeaway-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
}

/* =============================================
   Section: Artikel dari Topik Ini
   ============================================= */
.topik-section {
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.topik-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.topik-post-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.topik-post-item:first-child {
    border-top: 1px solid var(--border-color);
}

.topik-post-item:hover {
    padding-left: 8px;
}

.topik-post-thumb {
    width: 100px;
    height: 70px;
    min-width: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.topik-post-item:hover .topik-post-thumb img {
    transform: scale(1.06);
}

.topik-post-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.topik-post-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.topik-post-item:hover .topik-post-title {
    color: var(--accent-primary);
}

.topik-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =============================================
   Section: Berita Terbaru dengan Infinite Scroll
   ============================================= */
.latest-news-infinite-section {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.fade-in-item {
    animation: fadeInNews 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes fadeInNews {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Section: Berita Terkait Lainnya (Vertical Card style)
   ============================================= */
.related-posts-grid-vertical {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.post-card-vertical {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    background: rgba(23, 30, 48, 0.45);
    box-shadow: var(--shadow-sm);
}

.post-card-vertical:hover {
    transform: translateY(-4px);
    background: rgba(23, 30, 48, 0.6) !important;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.post-thumb-vertical {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.post-thumb-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card-vertical:hover .post-thumb-vertical img {
    transform: scale(1.05);
}

.post-card-content-vertical {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.post-card-title-vertical {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-title-vertical a:hover {
    color: var(--accent-primary);
}

.post-card-desc-vertical {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.post-card-meta-vertical {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.light-theme .post-card-vertical {
    background: rgba(255, 255, 255, 0.8);
}

.light-theme .post-card-vertical:hover {
    background: rgba(255, 255, 255, 1) !important;
}

@media (max-width: 992px) {
    .related-posts-grid-vertical {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-posts-grid-vertical {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Section: Artikel dari Topik Ini - Collage Layout
   ============================================= */
.topik-collage-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: repeat(2, 190px);
    gap: 20px;
    margin-top: 25px;
}

.topik-collage-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.topik-collage-item.featured-collage {
    grid-row: span 2;
}

.topik-collage-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.topik-collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.topik-collage-item:hover .topik-collage-img img {
    transform: scale(1.06);
}

.topik-collage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 11, 17, 0.92) 0%, rgba(8, 11, 17, 0.4) 60%, rgba(8, 11, 17, 0.1) 100%);
    z-index: 2;
    transition: all 0.3s ease;
}

.topik-collage-item:hover .topik-collage-overlay {
    background: linear-gradient(to top, rgba(8, 11, 17, 0.98) 0%, rgba(8, 11, 17, 0.5) 60%, rgba(8, 11, 17, 0.2) 100%);
}

.topik-collage-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.topik-collage-content {
    position: relative;
    z-index: 3;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.topik-collage-item:not(.featured-collage) .topik-collage-content {
    padding: 16px 20px;
    gap: 4px;
}

.topik-collage-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topik-collage-item.featured-collage .topik-collage-title {
    font-size: 1.4rem;
    line-height: 1.3;
}

.topik-collage-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.light-theme .topik-collage-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.05) 100%);
}

.light-theme .topik-collage-item:hover .topik-collage-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.light-theme .topik-collage-title {
    color: #ffffff;
    /* Keep title white over dark overlay in light theme for legibility */
}

.light-theme .topik-collage-meta {
    color: #cccccc;
}

@media (max-width: 768px) {
    .topik-collage-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .topik-collage-item.featured-collage {
        grid-row: span 1;
        height: 240px;
    }

    .topik-collage-item:not(.featured-collage) {
        height: 180px;
    }
}