/*
Theme Name: News Aggregator Theme
Theme URI: https://nusantaranetwork.com/
Author: Qaf Media Kreasi
Author URI: https://qafmedia.com/
Description: Tema agregator berita modern dengan sistem RSS import otomatis dan posting internal (Nusantara News).
Version: 1.2.0-clean
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-aggregator-theme
Tags: news, magazine, aggregator, responsive, ads
*/
body{font-family:Arial,Helvetica,sans-serif;margin:0;background:#f6f7f9;color:#222;}
a{color:#0b63d6}
.header-inner{max-width:1100px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;}
.site-title{font-weight:700;font-size:20px}
.container{max-width:1100px;margin:36px auto;padding:0 16px;display:flex;gap:20px;align-items:flex-start}
.col{background:#fff;border-radius:8px;padding:18px;box-shadow:0 2px 6px rgba(0,0,0,0.04);flex:1}
.col.sidebar{max-width:320px;flex:0 0 320px}
.card{border-radius:6px;padding:12px;background:#fff;border:1px solid #eef2f6;margin-bottom:12px}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(max-width:900px){.container{flex-direction:column}.grid{grid-template-columns:1fr}.col.sidebar{max-width:100%;flex:1}}
.header-ads{max-width:1100px;margin:8px auto;padding:8px 0;text-align:center}
.ad-container{width:720px;height:90px;margin:0 auto;background:#f5f5f5;border:1px dashed #ccc;display:flex;align-items:center;justify-content:center}
.btn{display:inline-block;background:#0b63d6;color:#fff;padding:8px 12px;border-radius:6px;text-decoration:none}
.single-page{display:flex;gap:24px;max-width:1100px;margin:36px auto;padding:0 16px}
.main-content{flex:1;background:#fff;padding:20px;border-radius:8px}
.sidebar{width:320px}
.article-title{font-size:28px;margin-bottom:8px}
/* Navigation */
.main-menu { display:flex; align-items:center; }
.main-menu .menu-list { list-style:none; margin:0; padding:0; display:flex; gap:20px; }
.main-menu .menu-list li a { text-decoration:none; color:#0b63d6; font-weight:600; }
/* News card styles (news-aggregator-theme) */
.nat-news-card{
  background:#fff;border:1px solid #eef2f6;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;height:100%;
  box-shadow:0 2px 6px rgba(0,0,0,0.03);transition:transform .12s ease, box-shadow .12s ease;
}
.nat-news-card:hover{transform:translateY(-4px);box-shadow:0 6px 18px rgba(0,0,0,0.06);}
.nat-card-thumb{display:block;width:100%;height:170px;overflow:hidden;background:#f4f6f8}
.nat-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.nat-card-thumb--placeholder{display:flex;align-items:center;justify-content:center;color:#aaa;font-weight:600}
.nat-card-body{padding:14px 16px;display:flex;flex-direction:column;flex:1}
.nat-card-title{font-size:1rem;margin:0 0 8px 0;line-height:1.25}
.nat-card-title a{color:#0b63d6;text-decoration:none}
.nat-card-title a:hover{text-decoration:underline}
.nat-card-meta{font-size:0.82rem;color:#8b97a6;margin-bottom:8px}
.nat-card-excerpt{font-size:0.92rem;color:#536070;margin-top:auto}
@media(min-width:900px){
  .nusantara-grid .nat-news-card, .news-grid .nat-news-card{ min-height: 300px; display:flex; flex-direction:column; }
}
.nat-card-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nat-card-meta::before {
  content: "🗞️";
  margin-right: 4px;
}
/* === NUSANTARA NETWORK THEME STYLING === */

/* Global */
body {
  background: #f6f8fa;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Headline */
h1, h2, h3 {
  font-weight: 700;
  color: #222;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: #d32f2f;
}

/* === HOMEPAGE: NEWS GRID === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.news-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.news-card .content {
  padding: 15px;
}

.news-card h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.news-card .meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 15px;
  color: #444;
}

.news-card a.read-more {
  display: inline-block;
  background: #0056a8;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}
.news-card a.read-more:hover {
  background: #d32f2f;
}

/* === SHARE BUTTONS === */
.button-share {
  background: #eee;
  color: #333;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 6px;
  margin: 0 5px;
  display: inline-block;
  transition: all 0.2s ease;
}

.button-share:hover {
  transform: scale(1.05);
}

/* Specific colors */
.button-share.fb { background: #3b5998; color: #fff; }
.button-share.x { background: #000; color: #fff; }
.button-share.wa { background: #25D366; color: #fff; }

/* === SIDEBAR === */
.sidebar {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.sidebar h3 {
  font-size: 16px;
  margin-bottom: 10px;
  border-bottom: 2px solid #0056a8;
  padding-bottom: 4px;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 14px;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}
/* ===================== HOMEPAGE CLEAN LAYOUT ===================== */

/* Struktur utama */
.site-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 30px auto;
  align-items: flex-start;
}

.main-content {
  flex: 2;
  min-width: 65%;
}

.sidebar {
  flex: 1;
  min-width: 300px;
}

/* Berita utama */
.news-list article {
  border-bottom: 1px solid #eaeaea;
  padding: 16px 0;
  transition: background 0.2s ease;
}

.news-list article:hover {
  background: #fafafa;
}

.news-list h3 a {
  color: #0056b3;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-list h3 a:hover {
  color: #c62828;
}

.news-list .meta,
.news-list div[style*="font-size:0.85rem"] {
  font-size: 0.85rem !important;
  color: #777 !important;
}

/* Sidebar */
.sidebar .widget {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.sidebar .widget h2,
.sidebar .widget h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li a {
  color: #0056b3;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar ul li a:hover {
  color: #c62828;
}

/* Sponsor placeholder */
.sidebar .widget div[style*="background:#f2f2f2"] {
  border-radius: 6px;
  font-size: 14px;
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .site-main {
    flex-direction: column;
    gap: 30px;
  }
  .main-content,
  .sidebar {
    min-width: 100%;
  }
  .news-list article {
    padding: 12px 0;
  }
}

.site-header {
  background: linear-gradient(180deg, #e6f0ff 0%, #ffffff 100%);
  border-bottom: 1px solid #d0e0ff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.main-menu .menu-list a {
  color: #004aad;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.main-menu .menu-list a:hover {
  color: #002f6c;
}
