/* ============================================================
   🌐 RESPONSIVE STYLESHEET – NUSANTARA NETWORK THEME (NO SIDEBAR)
   Versi: 2.0 | Final Mobile Clean Layout | 2025-11-11
   ============================================================ */


/* ============================================================
   1️⃣ STRUKTUR DASAR
   ============================================================ */
@media (max-width: 1024px) {
  .container, .content-area, .site-main {
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
}


/* ============================================================
   2️⃣ HEADER DAN ADS
   ============================================================ */
@media (max-width: 768px) {
  .site-header {
    background: #fff;
    text-align: center;
    border-bottom: 1px solid #e4e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }

  .header-top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
  }

  .header-top .main-menu,
  .header-top .header-right {
    display: none !important;
  }

  .header-top .logo img {
    max-height: 54px;
    height: auto;
  }

  .header-ads {
    margin: 8px 0;
    padding: 0 12px;
  }

  .header-ads img {
    width: 100%;
    border-radius: 8px;
  }
}


/* ============================================================
   3️⃣ LAYOUT UTAMA TANPA SIDEBAR
   ============================================================ */
@media (max-width: 768px) {
  main.site-main,
  .content-area,
  .single-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 12px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  /* Hapus sidebar total */
  .sidebar-area,
  aside.sidebar {
    display: none !important;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
  }

  /* Semua card/artikel melebar sempurna */
  .main-content,
  .single-content,
  article,
  .post-card,
  .news-card {
    width: 100%;
    max-width: 650px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  article img,
  .news-card img,
  .single-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 12px 0;
  }

  /* Headline section center */
  .headline-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 25px auto;
  }

  .slide img {
    height: 300px !important;
    object-fit: cover;
    border-radius: 12px;
  }

  .slide .caption {
    padding: 20px;
  }

  /* Judul & teks */
  article h1, article h2, .post-title, .single-content h1 {
    font-size: 1.25rem;
    line-height: 1.4;
    color: #004aad;
    margin-bottom: 10px;
  }

  p, .single-content p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
  }

  /* Meta info */
  .single-meta, .post-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 12px;
  }

  /* Button baca selengkapnya */
  .news-card a,
  .post-card a.read-more {
    display: inline-block;
    background: #004aad;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .news-card a:hover {
    background: #002f6c;
  }
}


/* ============================================================
   4️⃣ BAGIAN TOMBOL SHARE (SINGLE PAGE)
   ============================================================ */
@media (max-width: 768px) {
  .share-section {
    width: 100%;
    max-width: 650px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    padding: 18px 14px 22px;
    margin: 25px auto;
  }

  .share-section h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #004aad;
    text-align: left;
  }

  .share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .share-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    width: 100%;
    transition: all 0.2s ease;
  }

  .share-fb { background: #1877f2; }
  .share-tw { background: #1da1f2; }
  .share-wa { background: #25d366; }
  .share-copy { background: #444; }

  .share-buttons a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }
}


/* ============================================================
   5️⃣ ARTIKEL TERKAIT (RELATED)
   ============================================================ */
@media (max-width: 768px) {
  .related-articles {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 40px auto;
  }

  .related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .related-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .related-card a {
    display: block;
    padding: 12px;
    color: #004aad;
    font-weight: 600;
    text-decoration: none;
  }

  .related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  }
}


/* ============================================================
   6️⃣ FOOTER & BOTTOM NAV
   ============================================================ */
@media (max-width: 768px) {
  footer.site-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    padding: 25px 10px;
    background: #fff;
    border-top: 1px solid #e8ecf4;
  }

  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid #dce6f8;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 9999;
  }

  .mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    color: #004aad;
    font-weight: 600;
    font-size: 0.8rem;
  }

  .mobile-bottom-nav a span {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 2px;
  }
}

/* ============================================================
   🔧 FIX: BAGIKAN ARTIKEL (SHARE BUTTONS) AGAR SELALU RATA & SIMETRIS
   ============================================================ */
@media (max-width: 768px) {

  body.single-nusantara .share-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin: 25px auto;
    padding: 18px 16px 22px;
    width: 94%;
    max-width: 650px;
    box-sizing: border-box;
    overflow: hidden;
  }

  body.single-nusantara .share-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #004aad;
    text-align: left;
  }

  body.single-nusantara .share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  body.single-nusantara .share-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
    width: 100%;
    box-sizing: border-box;
  }

  .share-fb { background: #1877f2; }
  .share-tw { background: #1da1f2; }
  .share-wa { background: #25d366; }
  .share-copy { background: #444; }

  .share-buttons a:hover {
    transform: translateY(-1px);
    opacity: 0.9;
  }
}

/* ============================================================
   📰 FIX: TAMPILAN CARD ARTIKEL DARI RSS AGAR PROPORSIONAL
   ============================================================ */
@media (max-width: 768px) {

  /* Struktur utama card */
  .news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 18px;
  }

  /* Gambar wajib landscape */
  .news-card .thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
  }

  .news-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Konten teks */
  .news-card .content {
    padding: 14px 16px 18px;
    text-align: left;
  }

  .news-card .content h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #004aad;
  }

  .news-card .content h3 a {
    color: inherit;
    text-decoration: none;
  }

  .news-card .content .meta {
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 8px;
  }

  .news-card .content p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .news-card .content a {
    display: inline-block;
    background: #004aad;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s ease;
  }

  .news-card .content a:hover {
    background: #002f6c;
  }
}

/* ============================================================
   ⚖️ PERATAAN STRUKTUR GLOBAL
   ============================================================ */
@media (max-width: 768px) {
  body {
    background: #f8fafc;
    padding-bottom: 70px;
  }

  main.site-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px;
    box-sizing: border-box;
    gap: 25px;
  }

  .single-content,
  .share-section,
  .headline-container,
  .related-articles,
  article.news-card {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    box-sizing: border-box;
  }
}

/* ============================================================
   💡 FIX: WARNA TEKS JUDUL ARTIKEL DI BAWAH GAMBAR (RSS / NEWS CARD)
   ============================================================ */
.news-card .content h3 a {
  color: #004aad !important;           /* Warna teks biru tua */
  background: transparent !important;  /* Hapus background biru */
  text-decoration: none;
  display: inline !important;          /* Pastikan tidak jadi blok penuh */
  font-weight: 600;
}

.news-card .content h3 a:hover {
  color: #002f6c !important;           /* Biru lebih gelap saat hover */
  background: transparent !important;
  text-decoration: underline;          /* Tambah efek hover */
}

/* Pastikan paragraf & teks lainnya tetap rapi */
.news-card .content {
  background: #fff;
  color: #333;
}

