/* ============================================ */
/* VARIABLES & RESET */
/* ============================================ */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    --background: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 35px -8px rgba(0, 0, 0, 0.15);
    --radius: 20px;
    --radius-sm: 12px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --secondary: #f1f5f9;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --background: #0f172a;
    --white: #1e293b;
    --border: #334155;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* THEME TOGGLE */
/* ============================================ */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

#themeToggle {
    width: 60px;
    height: 60px;
    border: none;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

#themeToggle:hover {
    transform: scale(1.1);
}

[data-theme="light"] .dark-icon,
[data-theme="dark"] .light-icon {
    display: none;
}

/* ============================================ */
/* HEADER */
/* ============================================ */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: white;
    transform: rotate(-5deg);
    transition: var(--transition);
}

.logo-icon:hover {
    transform: rotate(0deg) scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
}

.main-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    border-radius: 40px;
    transition: var(--transition);
    font-size: 14px;
}

.nav-link:hover {
    background: var(--background);
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--background);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid var(--border);
}

.search-input {
    border: none;
    background: transparent;
    padding: 10px 15px;
    width: 250px;
    font-size: 14px;
    outline: none;
    color: var(--text);
}

.search-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary);
    color: white;
}
/* ============================================ */
/* PERBAIKAN SEARCH BUTTON UNTUK HP */
/* ============================================ */
@media (max-width: 768px) {
    /* Fix search form alignment */
    .search-form {
        display: flex;
        align-items: center;
        width: 100%;
        margin: 10px 0;
        padding: 0;
        gap: 0; /* Hapus gap */
    }
    
    .search-input {
        flex: 1;
        width: auto; /* Biarkan flex yang mengatur */
        min-width: 0; /* Biarkan mengecil */
        border-top-right-radius: 0;
        border-bottom-right-radius: 50;
        border-right: none;
    }
    
    .search-btn {
        width: 45px; /* Sedikit lebih besar untuk mudah diklik */
        height: 45px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 50;
        border-left: none;
        margin-left: 0; /* Pastikan tidak ada margin */
        flex-shrink: 0; /* Jangan mengecil */
    }
}

@media (max-width: 480px) {
    .search-btn {
        width: 50px; /* Lebih besar untuk HP kecil */
        height: 50px;
        font-size: 18px;
    }
    
    /* Pastikan tidak ada gap */
    .search-form {
        gap: 0;
        padding: 0;
        border: 2px solid var(--tinta); /* Sesuaikan dengan tema koran */
        border-radius: 50; /* Kotak saja untuk tema koran */
    }
    
    .search-input {
        border: none;
        padding: 12px;
        font-size: 14px;
    }
    
    .search-btn {
        border-radius: 0; /* Kotak sempurna untuk tema koran */
        background: var(--tinta);
        color: var(--kertas);
    }
}

/* ============================================ */
/* BREAKING NEWS - FIXED */
/* ============================================ */
.breaking-news {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 12px 0;
    margin-bottom: 30px;
    overflow: hidden;
}

.breaking-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.breaking-label {
    background: #ef4444;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,100%{opacity:1}
    50%{opacity:0.7}
}

.breaking-ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 30px;
}

.breaking-ticker-wrapper::before,
.breaking-ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.breaking-ticker-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, #0f172a, transparent);
}

.breaking-ticker-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, #0f172a, transparent);
}

.breaking-ticker {
    display: flex;
    gap: 40px;
    animation: ticker 40s linear infinite;
    white-space: nowrap;
    width: fit-content;
}

.breaking-ticker:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-block;
}

.ticker-item a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ticker-item a:hover {
    color: #fbbf24;
}

.ticker-source {
    color: #94a3b8;
    font-size: 12px;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.hero-section {
    margin-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main {
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.hero-main:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.hero-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-main:hover .hero-image img {
    transform: scale(1.05);
}

.hero-category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 16px;
    border-radius: 30px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.hero-content {
    padding: 20px;
}

.hero-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
    line-height: 1.4;
}

.hero-description {
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-side-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 15px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.hero-side-item:hover {
    transform: translateX(-5px);
    border-color: var(--primary);
}

.hero-side-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.hero-side-content {
    flex: 1;
}

.hero-side-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-side-time {
    font-size: 11px;
    color: var(--text-light);
}

/* ============================================ */
/* NEWS GRID */
/* ============================================ */
.news-grid[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-grid[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-grid[data-view="list"] .news-card .card-link {
    flex-direction: row;
}

.news-grid[data-view="list"] .news-card .card-image {
    width: 200px;
    height: 130px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.card-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.card-content {
    padding: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
}

.card-source {
    font-weight: 600;
    color: var(--primary);
}

.card-time {
    color: var(--text-light);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.card-category-tag {
    font-weight: 600;
}

.card-views {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================ */
/* SIDEBAR */
/* ============================================ */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.popular-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:hover {
    transform: translateX(5px);
}

.popular-number {
    width: 30px;
    height: 30px;
    background: var(--background);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-source {
    font-size: 11px;
    color: var(--text-light);
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-item:hover {
    background: var(--background);
    border-color: var(--border);
    transform: translateX(5px);
}

.category-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.category-name {
    flex: 1;
    font-weight: 600;
}

.category-count {
    background: var(--background);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    color: var(--text-light);
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.source-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--background);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.source-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.source-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.source-name {
    font-size: 11px;
    font-weight: 600;
}

/* ============================================ */
/* LOAD MORE */
/* ============================================ */
.load-more {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 40px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px var(--primary);
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 13px;
}

.footer-credit {
    margin-top: 10px;
    font-size: 11px;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-side {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 1;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        padding: 20px 0;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .search-form {
        order: 2;
        flex: 1;
    }
    
    .hero-side {
        grid-template-columns: 1fr;
    }
    
    .news-grid[data-view="grid"] {
        grid-template-columns: 1fr;
    }
    
    .news-grid[data-view="list"] .news-card .card-link {
        flex-direction: column;
    }
    
    .news-grid[data-view="list"] .news-card .card-image {
        width: 100%;
        height: 180px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .breaking-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .breaking-ticker-wrapper {
        width: 100%;
    }
    
    .hero-image {
        height: 200px;
    }
    
    .hero-title {
        font-size: 20px;
    }
}
/* ============================================ */
/* LATEST NEWS GRID - HEADER BARU */
/* ============================================ */
.latest-news-header {
    margin: 30px 0 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.latest-news-card {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.latest-news-card:hover {
    transform: translateY(-5px);
}

.latest-news-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.latest-news-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.latest-news-source {
    font-size: 10px;
    color: var(--text-light);
}

/* ============================================ */
/* HORIZONTAL NEWS GRID - BERBARIS KE SAMPING */
/* ============================================ */
.news-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.news-card-horizontal {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.news-card-horizontal:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.card-link-horizontal {
    display: flex;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}

.card-image-small {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.card-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title-small {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-meta-small {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: var(--text-light);
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 1024px) {
    .latest-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid-horizontal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
    
    .card-link-horizontal {
        flex-direction: column;
    }
    
    .card-image-small {
        width: 100%;
        height: 120px;
    }
}
/* ============================================ */
/* BREADCRUMB */
/* ============================================ */
.breadcrumb {
    padding: 15px 0;
    margin: 20px 0 10px;
    border-bottom: 1px solid var(--border);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-light);
    margin: 0 8px;
    font-size: 14px;
}

.breadcrumb .current {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================ */
/* CATEGORY ICON SMALL */
/* ============================================ */
.category-icon-small {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    font-size: 16px;
}

/* ============================================ */
/* TOTAL NEWS */
/* ============================================ */
.total-news {
    background: var(--background);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================ */
/* NO RESULTS */
/* ============================================ */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.no-results h3 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-light);
}

/* ============================================ */
/* PAGINATION */
/* ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.page-btn {
    padding: 10px 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 40px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: 0.3s;
}

.page-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-info {
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================ */
/* LATEST NEWS GRID */
/* ============================================ */
.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 20px 0 40px;
}

.latest-news-card {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.latest-news-card:hover {
    transform: translateY(-5px);
}

.latest-news-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.latest-news-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.latest-news-source {
    font-size: 10px;
    color: var(--text-light);
}

/* ============================================ */
/* HORIZONTAL NEWS GRID */
/* ============================================ */
.news-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.news-card-horizontal {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.news-card-horizontal:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.card-link-horizontal {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.card-image-small {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.card-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title-small {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-meta-small {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: var(--text-light);
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 1024px) {
    .latest-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid-horizontal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
    
    .card-link-horizontal {
        flex-direction: column;
    }
    
    .card-image-small {
        width: 100%;
        height: 120px;
    }
    
    .pagination {
        flex-direction: column;
    }
}
/* ============================================ */
/* SOURCE LINK - KLIKABLE */
/* ============================================ */
.source-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.source-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.source-clickable {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.source-clickable:hover {
    text-decoration: underline;
}

/* Sources Grid */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.source-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.source-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 5px 10px -3px rgba(37,99,235,0.2);
}

.source-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}

.source-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

/* Hero Side Source */
.hero-side-source {
    font-size: 10px;
    color: var(--primary);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .sources-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================ */
/* SOURCES GRID - PERBAIKAN LOGO */
/* ============================================ */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.source-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.source-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px -5px rgba(37,99,235,0.3);
    background: var(--white);
}

.source-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    background: #f1f5f9;
    padding: 2px;
}

.source-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fallback untuk logo yang tidak muncul */
.source-logo[src=""], 
.source-logo:not([src]) {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .sources-grid {
        grid-template-columns: 1fr;
    }
    
    .source-card {
        padding: 10px;
    }
    
    .source-name {
        white-space: normal;
        font-size: 12px;
    }
}
/* ============================================ */
/* LOGO SVG STYLING */
/* ============================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 100px;
    text-decoration: none;
}

.logo-svg {
    height: 250px;
    width: auto;
    max-width: 310px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-svg:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dark mode support */
[data-theme="dark"] .logo-svg {
    filter: brightness(1.0);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-svg {
        height: 35px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .logo-svg {
        height: 90px;
    }
    
    .logo-text {
        font-size: 18px;
    }
}
/* ============================================ */
/* CONTACT PAGE STYLES - SEDERHANA & RESPONSIF */
/* ============================================ */

.contact-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.contact-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 15px;
}

.contact-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

.contact-text a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 20px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 30px 20px;
    }
    
    .contact-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .contact-card {
        padding: 25px 15px;
    }
    
    .contact-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .contact-card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .contact-text {
        font-size: 14px;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 20px 15px;
    }
    
    .contact-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .map-container {
        height: 250px;
    }
}