/*
Theme Name: finance
Theme URI: https://quickfixlab.online
Author: quickfixlab.online
Author URI: https://quickfixlab.online
Description: Professional news magazine theme optimized for Google AdSense approval. Clean navigation, E-E-A-T compliant structure, YMYL-ready with author profiles, breadcrumbs, and essential pages.
Version: 2.0.0
Requires at least: 6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quickfixlab.online
Tags: news, magazine, blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --dd-primary: #1a1a2e;
  --dd-secondary: #16213e;
  --dd-accent: #e94560;
  --dd-accent-hover: #d63a55;
  --dd-text: #2d2d2d;
  --dd-text-light: #6b7280;
  --dd-text-muted: #9ca3af;
  --dd-bg: #f8f9fa;
  --dd-bg-white: #ffffff;
  --dd-bg-light: #f1f3f5;
  --dd-border: #e5e7eb;
  --dd-border-light: #f0f0f0;
  --dd-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --dd-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --dd-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --dd-radius: 8px;
  --dd-radius-sm: 4px;
  --dd-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --dd-font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --dd-font-mono: 'JetBrains Mono', monospace;
  --dd-container: 1200px;
  --dd-gap: 24px;
  --dd-transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--dd-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dd-text);
  background: var(--dd-bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dd-transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--dd-font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dd-primary);
}

ul, ol {
  list-style: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.dd-container {
  width: 100%;
  max-width: var(--dd-container);
  margin: 0 auto;
  padding: 0 20px;
}

.dd-grid {
  display: grid;
  gap: var(--dd-gap);
}

.dd-grid--main {
  grid-template-columns: 1fr 340px;
}

/* ============================================
   TOP BAR (Ticker / Breaking News)
   ============================================ */
.dd-topbar {
  background: var(--dd-primary);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
  position: relative;
  z-index: 100;
}

.dd-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dd-topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dd-topbar__date {
  opacity: 0.8;
  white-space: nowrap;
}

.dd-topbar__breaking {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex: 1;
}

.dd-topbar__breaking-label {
  background: var(--dd-accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.dd-topbar__breaking-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dd-topbar__breaking-text a:hover {
  color: var(--dd-accent);
}

.dd-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dd-topbar__social a {
  opacity: 0.7;
  transition: opacity var(--dd-transition);
}

.dd-topbar__social a:hover {
  opacity: 1;
  color: var(--dd-accent);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.dd-header {
  background: var(--dd-bg-white);
  border-bottom: 3px solid var(--dd-accent);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--dd-shadow-md);
}

.dd-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: 64px;
}

.dd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dd-logo img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.dd-logo__text {
  font-family: var(--dd-font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--dd-primary);
  letter-spacing: -0.5px;
}

.dd-logo__text span {
  color: var(--dd-accent);
}

/* Primary Navigation */
.dd-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.dd-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.dd-nav__item {
  position: relative;
}

.dd-nav__link {
  display: flex;
  align-items: center;
  padding: 20px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dd-text);
  transition: all var(--dd-transition);
  white-space: nowrap;
  font-family: var(--dd-font-heading);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

.dd-nav__link:hover,
.dd-nav__link--active {
  color: var(--dd-accent);
  border-bottom-color: var(--dd-accent);
}

.dd-nav__link svg {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  transition: transform var(--dd-transition);
}

.dd-nav__item:hover .dd-nav__link svg {
  transform: rotate(180deg);
}

/* Dropdown */
.dd-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dd-bg-white);
  border-radius: 0 0 var(--dd-radius) var(--dd-radius);
  box-shadow: var(--dd-shadow-lg);
  border: 1px solid var(--dd-border);
  border-top: 2px solid var(--dd-accent);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.dd-nav__item:hover .dd-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dd-nav__dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--dd-text);
  border-bottom: 1px solid var(--dd-border-light);
  transition: all var(--dd-transition);
}

.dd-nav__dropdown a:hover {
  background: var(--dd-bg-light);
  color: var(--dd-accent);
  padding-left: 24px;
}

.dd-nav__dropdown a:last-child {
  border-bottom: none;
}

/* Search */
.dd-header__search {
  display: flex;
  align-items: center;
}

.dd-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dd-text);
  transition: color var(--dd-transition);
  border-radius: 50%;
}

.dd-search-toggle:hover {
  color: var(--dd-accent);
  background: var(--dd-bg-light);
}

.dd-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  backdrop-filter: blur(4px);
}

.dd-search-overlay--active {
  display: flex;
}

.dd-search-box {
  background: var(--dd-bg-white);
  border-radius: var(--dd-radius);
  padding: 8px;
  width: 100%;
  max-width: 640px;
  box-shadow: var(--dd-shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dd-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 18px;
  font-family: var(--dd-font-body);
  color: var(--dd-text);
}

.dd-search-box button {
  background: var(--dd-accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--dd-radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background var(--dd-transition);
}

.dd-search-box button:hover {
  background: var(--dd-accent-hover);
}

/* Mobile Menu Toggle */
.dd-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--dd-text);
}

.dd-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.dd-breadcrumbs {
  padding: 12px 0;
  font-size: 13px;
  color: var(--dd-text-muted);
  border-bottom: 1px solid var(--dd-border-light);
  background: var(--dd-bg-white);
}

.dd-breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dd-breadcrumbs a {
  color: var(--dd-text-light);
}

.dd-breadcrumbs a:hover {
  color: var(--dd-accent);
}

.dd-breadcrumbs__separator {
  color: var(--dd-text-muted);
  font-size: 10px;
}

.dd-breadcrumbs__current {
  color: var(--dd-text);
  font-weight: 500;
}

/* ============================================
   HERO / FEATURED SECTION
   ============================================ */
.dd-hero {
  padding: 24px 0;
}

.dd-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.dd-hero__main {
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--dd-radius);
  overflow: hidden;
  min-height: 420px;
}

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

.dd-hero__main:hover img {
  transform: scale(1.03);
}

.dd-hero__main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}

.dd-hero__main-overlay .dd-category-badge {
  background: var(--dd-accent);
  color: #fff;
}

.dd-hero__main-overlay h2 {
  font-size: 24px;
  color: #fff;
  margin-top: 10px;
  line-height: 1.35;
}

.dd-hero__main-overlay h2 a:hover {
  color: var(--dd-accent);
}

.dd-hero__side {
  position: relative;
  border-radius: var(--dd-radius);
  overflow: hidden;
  min-height: 200px;
}

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

.dd-hero__side:hover img {
  transform: scale(1.03);
}

.dd-hero__side-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}

.dd-hero__side-overlay h3 {
  font-size: 15px;
  color: #fff;
  margin-top: 6px;
  line-height: 1.4;
}

.dd-hero__side-overlay h3 a:hover {
  color: var(--dd-accent);
}

/* ============================================
   CATEGORY BADGE
   ============================================ */
.dd-category-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--dd-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 3px;
  font-family: var(--dd-font-heading);
}

.dd-category-badge--tech { background: #2563eb; }
.dd-category-badge--finance { background: #059669; }
.dd-category-badge--news { background: var(--dd-accent); }
.dd-category-badge--history { background: #7c3aed; }
.dd-category-badge--science { background: #0891b2; }
.dd-category-badge--geek { background: #d97706; }

/* ============================================
   TRENDING / TICKER BAR
   ============================================ */
.dd-trending {
  background: var(--dd-bg-white);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.dd-trending__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--dd-accent);
  white-space: nowrap;
  font-family: var(--dd-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dd-trending__label svg {
  width: 18px;
  height: 18px;
}

.dd-trending__list {
  display: flex;
  gap: 24px;
  overflow: hidden;
  flex: 1;
}

.dd-trending__item {
  font-size: 14px;
  white-space: nowrap;
}

.dd-trending__item a:hover {
  color: var(--dd-accent);
}

.dd-trending__num {
  font-weight: 800;
  color: var(--dd-accent);
  margin-right: 6px;
  font-family: var(--dd-font-heading);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.dd-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--dd-primary);
}

.dd-section-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dd-primary);
  position: relative;
  padding-left: 14px;
}

.dd-section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  background: var(--dd-accent);
  border-radius: 2px;
}

.dd-section-header__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--dd-accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dd-section-header__more:hover {
  text-decoration: underline;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */

/* Standard Card (Vertical) */
.dd-card {
  background: var(--dd-bg-white);
  border-radius: var(--dd-radius);
  overflow: hidden;
  box-shadow: var(--dd-shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--dd-border-light);
}

.dd-card:hover {
  box-shadow: var(--dd-shadow-md);
  transform: translateY(-2px);
}

.dd-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

.dd-card:hover .dd-card__image img {
  transform: scale(1.05);
}

.dd-card__body {
  padding: 16px 20px 20px;
}

.dd-card__category {
  margin-bottom: 8px;
}

.dd-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.dd-card__title a:hover {
  color: var(--dd-accent);
}

.dd-card__excerpt {
  font-size: 14px;
  color: var(--dd-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dd-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--dd-text-muted);
}

.dd-card__author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dd-card__author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.dd-card__author-name {
  font-weight: 600;
  color: var(--dd-text);
}

.dd-card__date {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Horizontal Card (List Style) */
.dd-card--horizontal {
  display: flex;
  gap: 0;
}

.dd-card--horizontal .dd-card__image {
  width: 260px;
  min-width: 260px;
  aspect-ratio: auto;
}

.dd-card--horizontal .dd-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Small List Card */
.dd-card--small {
  display: flex;
  gap: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--dd-border-light);
  border-radius: 0;
}

.dd-card--small:hover {
  box-shadow: none;
  transform: none;
}

.dd-card--small .dd-card__image {
  width: 110px;
  min-width: 110px;
  aspect-ratio: 1;
  border-radius: var(--dd-radius-sm);
  overflow: hidden;
}

.dd-card--small .dd-card__body {
  padding: 0;
  flex: 1;
}

.dd-card--small .dd-card__title {
  font-size: 14px;
  margin-bottom: 6px;
}

/* Numbered Card (Popular) */
.dd-card--numbered {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--dd-border-light);
}

.dd-card--numbered:last-child {
  border-bottom: none;
}

.dd-card--numbered__num {
  font-family: var(--dd-font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--dd-bg-light);
  min-width: 40px;
  line-height: 1;
  -webkit-text-stroke: 1px var(--dd-border);
}

.dd-card--numbered:hover .dd-card--numbered__num {
  color: var(--dd-accent);
  -webkit-text-stroke: 1px var(--dd-accent);
}

.dd-card--numbered__content {
  flex: 1;
}

.dd-card--numbered__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.dd-card--numbered__title a:hover {
  color: var(--dd-accent);
}

.dd-card--numbered__meta {
  font-size: 12px;
  color: var(--dd-text-muted);
}

/* Card Grid */
.dd-card-grid {
  display: grid;
  gap: var(--dd-gap);
}

.dd-card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.dd-card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.dd-card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   SIDEBAR
   ============================================ */
.dd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dd-widget {
  background: var(--dd-bg-white);
  border-radius: var(--dd-radius);
  border: 1px solid var(--dd-border-light);
  overflow: hidden;
}

.dd-widget__header {
  padding: 14px 20px;
  border-bottom: 2px solid var(--dd-accent);
  font-family: var(--dd-font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--dd-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dd-widget__body {
  padding: 16px 20px;
}

/* About Widget */
.dd-widget--about {
  text-align: center;
}

.dd-widget--about .dd-widget__body {
  padding: 24px 20px;
}

.dd-widget--about p {
  font-size: 14px;
  color: var(--dd-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.dd-widget--about .dd-btn {
  font-size: 13px;
}

/* Category Widget */
.dd-widget--categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--dd-border-light);
  font-size: 14px;
  color: var(--dd-text);
}

.dd-widget--categories a:last-child {
  border-bottom: none;
}

.dd-widget--categories a:hover {
  color: var(--dd-accent);
}

.dd-widget--categories span {
  background: var(--dd-bg-light);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--dd-text-muted);
}

/* Newsletter Widget */
.dd-widget--newsletter {
  background: var(--dd-primary);
  color: #fff;
  border: none;
}

.dd-widget--newsletter .dd-widget__header {
  color: #fff;
  border-bottom-color: var(--dd-accent);
}

.dd-widget--newsletter .dd-widget__body {
  padding: 24px 20px;
}

.dd-widget--newsletter p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 16px;
  line-height: 1.6;
}

.dd-widget--newsletter input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: var(--dd-radius-sm);
  margin-bottom: 10px;
  font-size: 14px;
  font-family: var(--dd-font-body);
}

.dd-widget--newsletter input::placeholder {
  color: rgba(255,255,255,0.5);
}

.dd-widget--newsletter .dd-btn {
  width: 100%;
  background: var(--dd-accent);
  border: none;
}

.dd-widget--newsletter .dd-btn:hover {
  background: var(--dd-accent-hover);
}

/* ============================================
   BUTTONS
   ============================================ */
.dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--dd-font-heading);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--dd-radius-sm);
  cursor: pointer;
  transition: all var(--dd-transition);
  border: none;
  text-align: center;
}

.dd-btn--primary {
  background: var(--dd-accent);
  color: #fff;
}

.dd-btn--primary:hover {
  background: var(--dd-accent-hover);
}

.dd-btn--outline {
  background: transparent;
  color: var(--dd-accent);
  border: 1px solid var(--dd-accent);
}

.dd-btn--outline:hover {
  background: var(--dd-accent);
  color: #fff;
}

/* ============================================
   SINGLE POST / ARTICLE
   ============================================ */
.dd-article {
  background: var(--dd-bg-white);
  border-radius: var(--dd-radius);
  border: 1px solid var(--dd-border-light);
  overflow: hidden;
  margin-bottom: 24px;
}

.dd-article__header {
  padding: 32px 32px 0;
}

.dd-article__title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin: 12px 0 16px;
}

.dd-article__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--dd-border-light);
  font-size: 14px;
  color: var(--dd-text-light);
  flex-wrap: wrap;
}

.dd-article__author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dd-article__author-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.dd-article__author-info strong {
  display: block;
  color: var(--dd-text);
  font-size: 14px;
}

.dd-article__author-info small {
  font-size: 12px;
  color: var(--dd-text-muted);
}

.dd-article__featured-image {
  margin: 24px 32px;
  border-radius: var(--dd-radius);
  overflow: hidden;
}

.dd-article__featured-image img {
  width: 100%;
  height: auto;
}

.dd-article__featured-image figcaption {
  font-size: 13px;
  color: var(--dd-text-muted);
  padding: 8px 0;
  font-style: italic;
}

.dd-article__content {
  padding: 0 32px 32px;
  font-size: 17px;
  line-height: 1.85;
}

.dd-article__content h2 {
  font-size: 24px;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--dd-bg-light);
}

.dd-article__content h3 {
  font-size: 20px;
  margin: 28px 0 12px;
}

.dd-article__content p {
  margin-bottom: 20px;
}

.dd-article__content ul, .dd-article__content ol {
  margin: 0 0 20px 24px;
}

.dd-article__content ul {
  list-style: disc;
}

.dd-article__content ol {
  list-style: decimal;
}

.dd-article__content li {
  margin-bottom: 8px;
}

.dd-article__content blockquote {
  border-left: 4px solid var(--dd-accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--dd-bg-light);
  border-radius: 0 var(--dd-radius-sm) var(--dd-radius-sm) 0;
  font-style: italic;
  color: var(--dd-text-light);
}

.dd-article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.dd-article__content th {
  background: var(--dd-primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.dd-article__content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--dd-border);
}

.dd-article__content tr:nth-child(even) td {
  background: var(--dd-bg-light);
}

.dd-article__content a {
  color: var(--dd-accent);
  text-decoration: underline;
  text-decoration-color: rgba(233,69,96,0.3);
  text-underline-offset: 2px;
}

.dd-article__content a:hover {
  text-decoration-color: var(--dd-accent);
}

.dd-article__content img {
  border-radius: var(--dd-radius);
  margin: 16px 0;
}

/* Article Tags */
.dd-article__tags {
  padding: 20px 32px;
  border-top: 1px solid var(--dd-border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dd-article__tags span {
  font-weight: 700;
  font-size: 14px;
  color: var(--dd-text);
}

.dd-article__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--dd-bg-light);
  color: var(--dd-text-light);
  border-radius: 20px;
  font-size: 13px;
  transition: all var(--dd-transition);
}

.dd-article__tag:hover {
  background: var(--dd-accent);
  color: #fff;
}

/* Author Box */
.dd-author-box {
  background: var(--dd-bg-white);
  border-radius: var(--dd-radius);
  border: 1px solid var(--dd-border-light);
  padding: 28px;
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.dd-author-box__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dd-author-box__info h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.dd-author-box__info .dd-author-box__role {
  font-size: 13px;
  color: var(--dd-accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.dd-author-box__info p {
  font-size: 14px;
  color: var(--dd-text-light);
  line-height: 1.6;
}

/* Related Posts */
.dd-related {
  margin-bottom: 24px;
}

/* ============================================
   DISCLAIMER BANNER (for YMYL articles)
   ============================================ */
.dd-disclaimer {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-left: 4px solid #f59e0b;
  border-radius: var(--dd-radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: #92400e;
  line-height: 1.6;
}

.dd-disclaimer strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

/* ============================================
   PAGINATION
   ============================================ */

/* ============================================
   PAGINATION (VERSI ANTI-GAGAL)
   ============================================ */

/* 1. Wadah Utama & Handle jika outputnya List (ul) */
.dd-pagination,
.dd-pagination ul {
    display: flex !important;       /* PAKSA baris ke samping */
    flex-direction: row !important; /* Pastikan arah horizontal */
    flex-wrap: wrap;
    justify-content: center;        /* Posisi tengah */
    align-items: center;
    gap: 8px;                       /* Jarak antar tombol */
    margin-top: 40px;
    width: 100%;
    list-style: none !important;    /* Hilangkan titik bullet list */
    padding: 0;
}

/* 2. Handle jika ada item list (li) */
.dd-pagination li {
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Style Tombol (Angka & Panah) */
.dd-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s ease;
    line-height: 1;
}

/* Efek Hover */
.dd-pagination .page-numbers:hover {
    background-color: var(--dd-accent); /* Pakai warna merah tema */
    border-color: var(--dd-accent);
    color: #fff !important;
}

/* Tombol Aktif (Current Page) */
.dd-pagination .page-numbers.current {
    background-color: var(--dd-primary); /* Pakai warna biru gelap tema */
    color: #fff;
    border-color: var(--dd-primary);
}

/* Hilangkan border pada titik-titik (...) */
.dd-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}
/* ============================================
   FOOTER
   ============================================ */
.dd-footer {
  background: var(--dd-primary);
  color: rgba(255,255,255,0.8);
  margin-top: 48px;
}

.dd-footer__main {
  padding: 48px 0;
}

.dd-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.dd-footer__brand h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 14px;
}

.dd-footer__brand h3 span {
  color: var(--dd-accent);
}

.dd-footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.dd-footer__social {
  display: flex;
  gap: 10px;
}

.dd-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: all var(--dd-transition);
}

.dd-footer__social a:hover {
  background: var(--dd-accent);
}

.dd-footer__col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--dd-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dd-footer__links a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  opacity: 0.75;
  transition: all var(--dd-transition);
}

.dd-footer__links a:hover {
  opacity: 1;
  color: var(--dd-accent);
  padding-left: 6px;
}

.dd-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* ============================================
   STATIC PAGES (About, Privacy, Contact, Disclaimer)
   ============================================ */
.dd-page {
  background: var(--dd-bg-white);
  border-radius: var(--dd-radius);
  border: 1px solid var(--dd-border-light);
  padding: 40px;
  margin-bottom: 24px;
}

.dd-page h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.dd-page .dd-page__updated {
  font-size: 13px;
  color: var(--dd-text-muted);
  margin-bottom: 28px;
}

.dd-page__content {
  font-size: 16px;
  line-height: 1.85;
}

.dd-page__content h2 {
  font-size: 22px;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dd-border-light);
}

.dd-page__content h3 {
  font-size: 18px;
  margin: 24px 0 10px;
}

.dd-page__content p {
  margin-bottom: 16px;
}

.dd-page__content ul, .dd-page__content ol {
  margin: 0 0 16px 24px;
}

.dd-page__content ul { list-style: disc; }
.dd-page__content ol { list-style: decimal; }

.dd-page__content li {
  margin-bottom: 6px;
}

/* Contact Form */
.dd-contact-form {
  max-width: 600px;
}

.dd-form-group {
  margin-bottom: 20px;
}

.dd-form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--dd-text);
}

.dd-form-group input,
.dd-form-group textarea,
.dd-form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius-sm);
  font-size: 15px;
  font-family: var(--dd-font-body);
  color: var(--dd-text);
  transition: border var(--dd-transition);
}

.dd-form-group input:focus,
.dd-form-group textarea:focus {
  outline: none;
  border-color: var(--dd-accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

.dd-form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   COMMENTS
   ============================================ */
.dd-comments {
  background: var(--dd-bg-white);
  border-radius: var(--dd-radius);
  border: 1px solid var(--dd-border-light);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.dd-comments h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

.dd-comment {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--dd-border-light);
}

.dd-comment:last-child {
  border-bottom: none;
}

.dd-comment__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dd-comment__meta {
  font-size: 13px;
  margin-bottom: 6px;
}

.dd-comment__meta strong {
  color: var(--dd-text);
}

.dd-comment__meta time {
  color: var(--dd-text-muted);
  margin-left: 8px;
}

.dd-comment__body p {
  font-size: 15px;
  color: var(--dd-text-light);
  line-height: 1.65;
}

/* ============================================
   404 PAGE
   ============================================ */
.dd-404 {
  text-align: center;
  padding: 80px 20px;
}

.dd-404 h1 {
  font-size: 120px;
  font-weight: 900;
  color: var(--dd-bg-light);
  line-height: 1;
}

.dd-404 h2 {
  font-size: 28px;
  margin: 16px 0 12px;
}

.dd-404 p {
  color: var(--dd-text-light);
  margin-bottom: 24px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.dd-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--dd-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: var(--dd-shadow-md);
}

.dd-back-to-top--visible {
  opacity: 1;
  visibility: visible;
}

.dd-back-to-top:hover {
  background: var(--dd-accent-hover);
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .dd-grid--main {
    grid-template-columns: 1fr;
  }
  
  .dd-hero__grid {
    grid-template-columns: 1fr;
  }
  
  .dd-hero__main {
    grid-row: auto;
    min-height: 300px;
  }
  
  .dd-hero__side {
    min-height: 180px;
  }
  
  .dd-card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dd-card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dd-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --dd-gap: 16px;
  }
  
  .dd-topbar {
    display: none;
  }
  
  .dd-header__inner {
    height: 56px;
  }
  
  .dd-nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dd-bg-white);
    z-index: 998;
    overflow-y: auto;
    padding: 20px;
  }
  
  .dd-nav--open {
    display: block;
  }
  
  .dd-nav__list {
    flex-direction: column;
    gap: 0;
  }
  
  .dd-nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--dd-border-light);
    margin-bottom: 0;
    width: 100%;
    justify-content: space-between;
  }
  
  .dd-nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    min-width: auto;
    display: none;
    padding-left: 20px;
  }
  
  .dd-nav__dropdown--open {
    display: block;
  }
  
  .dd-menu-toggle {
    display: block;
  }
  
  .dd-logo__text {
    font-size: 18px;
  }
  
  .dd-card--horizontal {
    flex-direction: column;
  }
  
  .dd-card--horizontal .dd-card__image {
    width: 100%;
    min-width: auto;
    aspect-ratio: 16/9;
  }
  
  .dd-card-grid--2,
  .dd-card-grid--3,
  .dd-card-grid--4 {
    grid-template-columns: 1fr;
  }
  
  .dd-article__header {
    padding: 24px 20px 0;
  }
  
  .dd-article__title {
    font-size: 24px;
  }
  
  .dd-article__featured-image {
    margin: 20px;
  }
  
  .dd-article__content {
    padding: 0 20px 24px;
    font-size: 16px;
  }
  
  .dd-article__tags {
    padding: 16px 20px;
  }
  
  .dd-author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .dd-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .dd-page {
    padding: 24px 20px;
  }
  
  .dd-trending {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .dd-trending__list {
    flex-direction: column;
    gap: 8px;
  }

  .dd-trending__item {
    white-space: normal;
  }
  
  .dd-hero__main-overlay h2 {
    font-size: 18px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .dd-topbar, .dd-header, .dd-footer, .dd-sidebar, 
  .dd-back-to-top, .dd-search-overlay, .dd-related,
  .dd-trending {
    display: none !important;
  }
  
  body {
    background: #fff;
  }
  
  .dd-article, .dd-page {
    border: none;
    box-shadow: none;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--dd-accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dd-accent);
  color: #fff;
  padding: 10px 20px;
  z-index: 99999;
  border-radius: 0 0 var(--dd-radius-sm) var(--dd-radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}
