/* ─── Detuk Theme ──────────────────────────────
   Liputan6-inspired news theme
   ───────────────────────────────────────────── */

:root {
  --detuk-red: #dc2626;
  --detuk-red-dark: #b91c1c;
  --detuk-red-light: #fef2f2;
  --detuk-bg: #ffffff;
  --detuk-bg-gray: #f5f5f5;
  --detuk-text: #1a1a1a;
  --detuk-text-muted: #666;
  --detuk-border: #e0e0e0;
  --detuk-yellow: #f59e0b;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--detuk-bg-gray);
  color: var(--detuk-text);
  line-height: 1.6;
}

/* ─── Top Bar ─── */
.detuk-topbar {
  background: #111;
  color: #ccc;
  font-size: 0.75rem;
  padding: 6px 0;
}
.detuk-topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.detuk-topbar .social-links a {
  color: #999; margin-left: 12px; text-decoration: none;
}
.detuk-topbar .social-links a:hover { color: #fff; }

/* ─── Header / Logo Area ─── */
.detuk-header {
  background: #fff;
  border-bottom: 3px solid var(--detuk-red);
  padding: 16px 0;
}
.detuk-header .container {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.detuk-logo {
  font-size: 1.75rem; font-weight: 800;
  color: var(--detuk-red); text-decoration: none;
  text-transform: uppercase; letter-spacing: -1px;
}
.detuk-logo span { color: #111; }
.detuk-header-right { display: flex; align-items: center; gap: 12px; }
.detuk-date { font-size: 0.8rem; color: #666; }
.detuk-search-btn {
  background: none; border: 1px solid var(--detuk-border);
  border-radius: 4px; padding: 6px 12px; cursor: pointer;
  color: #555; font-size: 0.85rem;
}
.detuk-search-btn:hover { border-color: var(--detuk-red); color: var(--detuk-red); }

/* ─── Navigation ─── */
.detuk-nav {
  background: #fff;
  border-bottom: 1px solid var(--detuk-border);
  position: sticky; top: 0; z-index: 50;
}
.detuk-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
}
.detuk-nav-list {
  list-style: none; display: flex;
  overflow-x: auto; gap: 0;
}
.detuk-nav-list li a {
  display: block; padding: 10px 16px;
  font-size: 0.83rem; font-weight: 600;
  color: #333; text-decoration: none;
  white-space: nowrap; border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.detuk-nav-list li a:hover,
.detuk-nav-list li a.active {
  color: var(--detuk-red);
  border-bottom-color: var(--detuk-red);
}
.detuk-nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.2rem; padding: 10px 16px; cursor: pointer;
}

/* ─── Breaking News ─── */
.detuk-breaking {
  background: var(--detuk-red);
  color: #fff; font-size: 0.82rem; padding: 8px 0;
  overflow: hidden;
}
.detuk-breaking .container {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center;
}
.detuk-breaking-label {
  background: #fff; color: var(--detuk-red);
  font-weight: 700; padding: 2px 10px; border-radius: 2px;
  margin-right: 12px; font-size: 0.72rem; text-transform: uppercase;
  flex-shrink: 0;
}
.detuk-breaking-ticker {
  overflow: hidden; white-space: nowrap;
}
.detuk-breaking-ticker a {
  color: #fff; text-decoration: none; margin-right: 40px;
}
.detuk-breaking-ticker a:hover { text-decoration: underline; }

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ─── Layout Grid ─── */
.detuk-layout { display: flex; gap: 24px; padding: 20px 0; }
.detuk-main { flex: 1; min-width: 0; }
.detuk-sidebar { width: 320px; flex-shrink: 0; }

/* ─── Hero / Featured Article ─── */
.detuk-hero {
  background: #fff; border-radius: 4px; overflow: hidden;
  margin-bottom: 20px; position: relative;
}
.detuk-hero-img {
  width: 100%; height: 400px; object-fit: cover; display: block;
}
.detuk-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 40px 24px 24px;
}
.detuk-hero-category {
  display: inline-block; background: var(--detuk-red); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 10px; border-radius: 2px; margin-bottom: 10px;
}
.detuk-hero-title {
  font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.2;
  margin-bottom: 8px;
}
.detuk-hero-title a { color: #fff; text-decoration: none; }
.detuk-hero-title a:hover { text-decoration: underline; }
.detuk-hero-meta { font-size: 0.78rem; color: #ccc; }

/* ─── News Card ─── */
.detuk-card {
  background: #fff; border-radius: 4px; overflow: hidden;
  margin-bottom: 16px; transition: box-shadow 0.2s;
}
.detuk-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.detuk-card-horizontal {
  display: flex; gap: 0;
}
.detuk-card-horizontal .detuk-card-img-wrap {
  width: 280px; min-height: 160px; flex-shrink: 0;
  overflow: hidden;
}
.detuk-card-horizontal .detuk-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.detuk-card-body { padding: 16px; flex: 1; }

.detuk-card-vertical {}
.detuk-card-vertical .detuk-card-img-wrap {
  width: 100%; height: 180px; overflow: hidden;
}
.detuk-card-vertical .detuk-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}

.detuk-card-category {
  display: inline-block; color: var(--detuk-red);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  margin-bottom: 6px;
}
.detuk-card-title {
  font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 6px;
}
.detuk-card-title a { color: var(--detuk-text); text-decoration: none; }
.detuk-card-title a:hover { color: var(--detuk-red); }
.detuk-card-summary {
  font-size: 0.82rem; color: var(--detuk-text-muted);
  margin-bottom: 8px; line-height: 1.5;
}
.detuk-card-meta {
  font-size: 0.75rem; color: #999;
  display: flex; gap: 12px; align-items: center;
}

/* ─── Section Header ─── */
.detuk-section-header {
  display: flex; align-items: center; margin-bottom: 16px;
  border-bottom: 2px solid var(--detuk-red); padding-bottom: 8px;
}
.detuk-section-header h2 {
  font-size: 1.1rem; font-weight: 800; text-transform: uppercase;
  color: var(--detuk-red);
}
.detuk-section-header .detuk-section-link {
  margin-left: auto; font-size: 0.78rem;
  color: var(--detuk-text-muted); text-decoration: none;
}
.detuk-section-header .detuk-section-link:hover { color: var(--detuk-red); }

/* ─── News Grid ─── */
.detuk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detuk-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.detuk-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }

/* ─── Latest / List ─── */
.detuk-list-item {
  display: flex; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--detuk-border);
}
.detuk-list-item:last-child { border-bottom: none; }
.detuk-list-item .detuk-list-img {
  width: 120px; height: 80px; object-fit: cover;
  border-radius: 4px; flex-shrink: 0;
}
.detuk-list-item .detuk-list-content { flex: 1; }
.detuk-list-item .detuk-list-title {
  font-size: 0.9rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px;
}
.detuk-list-item .detuk-list-title a {
  color: var(--detuk-text); text-decoration: none;
}
.detuk-list-item .detuk-list-title a:hover { color: var(--detuk-red); }
.detuk-list-item .detuk-list-meta { font-size: 0.72rem; color: #999; }

/* ─── Sidebar ─── */
.detuk-sidebar-widget {
  background: #fff; border-radius: 4px; padding: 16px;
  margin-bottom: 16px;
}
.detuk-sidebar-widget h3 {
  font-size: 0.9rem; font-weight: 800; text-transform: uppercase;
  color: var(--detuk-red); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--detuk-red);
}
.detuk-sidebar-item {
  display: flex; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.detuk-sidebar-item:last-child { border-bottom: none; }
.detuk-sidebar-item img {
  width: 80px; height: 56px; object-fit: cover;
  border-radius: 3px; flex-shrink: 0;
}
.detuk-sidebar-item .detuk-sidebar-item-title {
  font-size: 0.8rem; font-weight: 600; line-height: 1.3;
}
.detuk-sidebar-item .detuk-sidebar-item-title a {
  color: #333; text-decoration: none;
}
.detuk-sidebar-item .detuk-sidebar-item-title a:hover { color: var(--detuk-red); }
.detuk-sidebar-item .detuk-sidebar-item-meta {
  font-size: 0.7rem; color: #999;
}

/* Sidebar Tags */
.detuk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detuk-tag {
  display: inline-block; background: var(--detuk-bg-gray);
  color: #555; font-size: 0.75rem; padding: 4px 10px;
  border-radius: 2px; text-decoration: none;
}
.detuk-tag:hover { background: var(--detuk-red); color: #fff; }

/* Sidebar Cat */
.detuk-cat-list { list-style: none; }
.detuk-cat-list li { border-bottom: 1px solid #f0f0f0; }
.detuk-cat-list li a {
  display: block; padding: 8px 0; font-size: 0.85rem;
  color: #444; text-decoration: none;
}
.detuk-cat-list li a:hover { color: var(--detuk-red); padding-left: 4px; }

/* ─── Ad Space ─── */
.detuk-ad { text-align: center; padding: 12px 0; }
.detuk-ad img { max-width: 100%; height: auto; }

/* ─── Breadcrumb ─── */
.detuk-breadcrumb {
  font-size: 0.8rem; color: #999; margin-bottom: 12px;
}
.detuk-breadcrumb a { color: var(--detuk-red); text-decoration: none; }
.detuk-breadcrumb a:hover { text-decoration: underline; }
.detuk-breadcrumb .sep { margin: 0 6px; color: #ccc; }

/* ─── Article Page ─── */
.detuk-article { background: #fff; border-radius: 4px; padding: 24px; }
.detuk-article .detuk-article-badge {
  display: inline-block; background: var(--detuk-red); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 10px; border-radius: 2px; margin-bottom: 12px;
}
.detuk-article h1.detuk-article-title {
  font-size: 1.8rem; font-weight: 800; line-height: 1.2;
  margin-bottom: 12px;
}
.detuk-article .detuk-article-summary {
  font-size: 1rem; color: #555; margin-bottom: 16px;
  line-height: 1.6;
}
.detuk-article-meta {
  font-size: 0.8rem; color: #888; margin-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.detuk-article-meta span { display: inline-flex; align-items: center; gap: 4px; }
.detuk-article .detuk-article-img {
  width: 100%; max-height: 500px; object-fit: cover;
  border-radius: 4px; margin-bottom: 20px;
}
.detuk-article .detuk-article-content {
  font-size: 1rem; line-height: 1.8; color: #333;
}
.detuk-article .detuk-article-content p { margin-bottom: 16px; }
.detuk-article .detuk-article-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 16px 0; }
.detuk-article .detuk-article-content h2,
.detuk-article .detuk-article-content h3 { margin-top: 24px; margin-bottom: 12px; }
.detuk-article-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--detuk-border); }
.detuk-article-tags .detuk-tag-label { font-weight: 600; font-size: 0.85rem; margin-right: 8px; }

/* ─── Share Buttons ─── */
.detuk-share { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.detuk-share a, .detuk-share button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 3px; font-size: 0.8rem;
  font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  color: #fff; transition: opacity 0.15s;
}
.detuk-share a:hover, .detuk-share button:hover { opacity: 0.85; }
.detuk-share .share-twitter { background: #1da1f2; }
.detuk-share .share-facebook { background: #1877f2; }
.detuk-share .share-whatsapp { background: #25d366; }
.detuk-share .share-copy { background: #666; }

/* ─── Comments ─── */
.detuk-comments { margin-top: 24px; }
.detuk-comment-item {
  padding: 12px 0; border-bottom: 1px solid #f0f0f0;
}
.detuk-comment-item:last-child { border-bottom: none; }
.detuk-comment-author { font-weight: 700; font-size: 0.85rem; }
.detuk-comment-date { font-size: 0.72rem; color: #999; margin-left: 8px; }
.detuk-comment-text { font-size: 0.85rem; color: #444; margin-top: 4px; }

/* ─── Form Elements ─── */
.detuk-form-control {
  width: 100%; padding: 8px 12px; border: 1px solid var(--detuk-border);
  border-radius: 4px; font-size: 0.85rem; outline: none;
}
.detuk-form-control:focus { border-color: var(--detuk-red); }
textarea.detuk-form-control { resize: vertical; }
.detuk-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 20px; border-radius: 4px; font-size: 0.85rem;
  font-weight: 600; border: none; cursor: pointer; text-decoration: none;
}
.detuk-btn-primary { background: var(--detuk-red); color: #fff; }
.detuk-btn-primary:hover { background: var(--detuk-red-dark); }
.detuk-btn-outline {
  background: none; border: 1px solid var(--detuk-border); color: #555;
}
.detuk-btn-outline:hover { border-color: var(--detuk-red); color: var(--detuk-red); }

/* ─── Search Page ─── */
.detuk-search-form {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.detuk-search-form input {
  flex: 1; padding: 10px 14px; border: 2px solid var(--detuk-border);
  border-radius: 4px; font-size: 0.9rem; outline: none;
}
.detuk-search-form input:focus { border-color: var(--detuk-red); }
.detuk-search-form button {
  padding: 10px 24px; background: var(--detuk-red); color: #fff;
  border: none; border-radius: 4px; font-weight: 600; cursor: pointer;
}

/* ─── Pagination ─── */
.detuk-pagination {
  display: flex; gap: 4px; justify-content: center; margin: 24px 0;
}
.detuk-pagination a {
  display: block; padding: 6px 12px; border: 1px solid var(--detuk-border);
  border-radius: 3px; color: #555; text-decoration: none; font-size: 0.8rem;
}
.detuk-pagination a:hover, .detuk-pagination a.active {
  background: var(--detuk-red); color: #fff; border-color: var(--detuk-red);
}

/* ─── Empty State ─── */
.detuk-empty {
  text-align: center; padding: 40px 20px; color: #999;
}
.detuk-empty svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.4; }

/* ─── Footer ─── */
.detuk-footer {
  background: #111; color: #ccc; padding: 32px 0 0;
  margin-top: 24px;
}
.detuk-footer .container {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.detuk-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  margin-bottom: 24px;
}
.detuk-footer h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; }
.detuk-footer p { font-size: 0.82rem; line-height: 1.6; }
.detuk-footer-links { list-style: none; }
.detuk-footer-links li { margin-bottom: 6px; }
.detuk-footer-links a {
  color: #999; text-decoration: none; font-size: 0.82rem;
}
.detuk-footer-links a:hover { color: var(--detuk-red); }
.detuk-footer-bottom {
  border-top: 1px solid #222; padding: 16px 0;
  text-align: center; font-size: 0.78rem; color: #666;
}

/* ─── Newsletter ─── */
.detuk-newsletter { margin-top: 24px; padding-top: 24px; border-top: 1px solid #222; text-align: center; }
.detuk-newsletter h4 { color: #fff; font-size: 0.85rem; margin-bottom: 8px; }
.detuk-newsletter-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.detuk-newsletter-form input {
  flex: 1; padding: 8px 12px; border: 1px solid #333;
  border-radius: 3px; background: #222; color: #fff; font-size: 0.82rem;
}
.detuk-newsletter-form button {
  padding: 8px 16px; background: var(--detuk-red); color: #fff;
  border: none; border-radius: 3px; cursor: pointer; font-weight: 600; font-size: 0.82rem;
}

/* ─── Page Header ─── */
.detuk-page-header {
  background: #fff; border-bottom: 1px solid var(--detuk-border);
  padding: 20px 0; margin-bottom: 20px;
}
.detuk-page-header h1 {
  font-size: 1.4rem; font-weight: 800; color: #111;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .detuk-layout { flex-direction: column; }
  .detuk-sidebar { width: 100%; }
  .detuk-grid-3, .detuk-grid-4 { grid-template-columns: 1fr 1fr; }
  .detuk-hero-img { height: 280px; }
  .detuk-hero-title { font-size: 1.2rem; }
  .detuk-article h1.detuk-article-title { font-size: 1.3rem; }
  .detuk-footer-grid { grid-template-columns: 1fr; }
  .detuk-card-horizontal { flex-direction: column; }
  .detuk-card-horizontal .detuk-card-img-wrap { width: 100%; height: 200px; }
}

@media (max-width: 600px) {
  .detuk-grid-2, .detuk-grid-3, .detuk-grid-4 { grid-template-columns: 1fr; }
  .detuk-nav-toggle { display: block; }
  .detuk-nav-list { display: none; flex-direction: column; }
  .detuk-nav-list.open { display: flex; }
  .detuk-hero-img { height: 200px; }
  .detuk-hero-title { font-size: 1rem; }
  .detuk-header { padding: 12px 0; }
  .detuk-logo { font-size: 1.3rem; }
  .detuk-date { display: none; }
  .detuk-newsletter-form { flex-direction: column; }
}