/* ===== CSS VARIABLES (overridden by inline settings) ===== */
:root {
  --color-primary: #c0392b;
  --color-primary-dark: #a93226;
  --color-secondary: #1a1a2e;
  --color-accent: #d4a853;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #f5f5f5;
  --color-link: #c0392b;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --font-heading: Georgia, serif;
  --font-body: system-ui, -apple-system, sans-serif;
  --font-size-base: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: .2s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
a { color: var(--color-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== UTILITY ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.row { display: flex; gap: 1.5rem; }
.col-main { flex: 1; min-width: 0; }
.col-sidebar { width: 320px; flex-shrink: 0; }
.text-center { text-align: center; }
.text-red { color: var(--color-primary); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 3px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: #fff; background: var(--color-primary);
}
.badge-accent { background: var(--color-accent); color: #111; }

/* ===== TOP ANNOUNCEMENT BAR ===== */
.top-bar {
  background: var(--color-secondary);
  color: #ccc;
  font-size: .78rem;
  padding: .4rem 0;
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; }
.top-bar .date-display { color: #aaa; }
.top-bar .social-links a { color: #ccc; margin-left: .8rem; font-size: .85rem; }
.top-bar .social-links a:hover { color: var(--color-accent); }

/* ===== BREAKING NEWS TICKER ===== */
.breaking-ticker {
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}
.ticker-label {
  background: var(--color-secondary);
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-list {
  display: flex;
  white-space: nowrap;
  flex-shrink: 0;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-list a {
  color: #fff;
  padding: 0 2rem;
  font-size: .85rem;
  display: inline-block;
}
.ticker-list a:hover { color: var(--color-accent); }
.ticker-list a::after { content: ' ●'; color: rgba(255,255,255,.4); }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== HEADER ===== */
.site-header {
  background: var(--color-white);
  padding: .75rem 0 0;
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
  padding-bottom: .5rem;
}

/* ===== NAVIGASI HEADER ===== */
.header-nav {
  border-top: 1px solid #efefef;
}
.header-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.header-nav ul li a {
  display: block;
  padding: .3rem .7rem;
  font-size: .72rem;
  color: #555;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
  border-right: 1px solid #e0e0e0;
  white-space: nowrap;
  line-height: 1.8;
}
.header-nav ul li:last-child a { border-right: none; }
.header-nav ul li a:hover { color: var(--color-primary); }
.header-nav ul li.active a { color: var(--color-primary); font-weight: 700; }
.site-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.site-logo img { height: 56px; width: auto; }
.logo-text .site-name {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-heading);
  line-height: 1.1;
}
.logo-text .site-tagline {
  display: block;
  font-size: .72rem;
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: .3px;
}
.header-search { flex: 1; max-width: 360px; }
.search-form { display: flex; border: 2px solid var(--color-border); border-radius: 25px; overflow: hidden; }
.search-form input {
  flex: 1; padding: .5rem 1rem; border: none; outline: none; font-size: .9rem; background: #f8f8f8;
}
.search-form button {
  background: var(--color-primary); color: #fff; border: none; padding: .5rem 1rem; cursor: pointer;
}
.search-form button:hover { background: var(--color-primary-dark); }

/* ===== NAVIGASI UTAMA (Kategori) ===== */
.main-nav { background: var(--color-secondary); position: relative; z-index: 100; }
.main-nav .container { position: static; display: flex; align-items: stretch; }
.nav-list { display: flex; align-items: stretch; flex-wrap: nowrap; margin: 0; padding: 0; list-style: none; overflow: visible; flex: 1; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .65rem .9rem;
  color: #ccc;
  font-size: .78rem;
  font-weight: 700;
  transition: color .2s, background .2s;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  border-bottom: 3px solid transparent;
}
.nav-list > li > a:hover { color: #fff; background: rgba(255,255,255,.07); border-bottom-color: var(--color-primary); }
.nav-list > li.active > a { color: #fff; background: var(--color-primary); border-bottom-color: var(--color-primary); }

/* ===== DROPDOWN ===== */
.has-dropdown { }
.nav-caret { font-size: .6rem; transition: transform .2s; opacity: .7; }
.has-dropdown:hover .nav-caret,
.has-dropdown.open .nav-caret { transform: rotate(180deg); opacity: 1; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  background: #fff;
  border-top: 3px solid var(--color-primary);
  min-width: 210px;
  list-style: none;
  margin: 0;
  padding: .4rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  z-index: 300;
  border-radius: 0 0 6px 6px;
}
.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1.1rem;
  color: #333;
  font-size: .8rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown li a .cat-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--cat-color, #999);
}
.nav-dropdown li a:hover {
  background: #f7f7f7;
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown.open .nav-dropdown { display: block; }

/* Mobile hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: #ddd; margin: 5px 0; transition: all .3s; }

/* ===== HERO SLIDER ===== */
.slider-section { position: relative; overflow: hidden; background: var(--color-secondary); }
.slider-container { position: relative; }
.slide { display: none; position: relative; }
.slide.active { display: block; }
.slide-image { width: 100%; height: 480px; object-fit: cover; opacity: .85; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
  display: flex; align-items: flex-end; padding: 2rem;
}
.slide-content { max-width: 700px; color: #fff; }
.slide-badge { margin-bottom: .5rem; }
.slide-title {
  font-size: 1.75rem; font-weight: 800; margin-bottom: .75rem;
  font-family: var(--font-heading); text-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.slide-subtitle { color: rgba(255,255,255,.85); margin-bottom: 1rem; font-size: .95rem; }
.slide-link { background: var(--color-primary); color: #fff; padding: .5rem 1.25rem; border-radius: 3px; font-weight: 600; font-size: .875rem; }
.slide-link:hover { background: var(--color-primary-dark); color: #fff; }
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); color: #fff; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
  z-index: 5;
}
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-prev:hover, .slider-next:hover { background: var(--color-primary); }
.slider-dots { position: absolute; bottom: 1rem; right: 1.5rem; display: flex; gap: .4rem; z-index: 5; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; border: none; transition: all .2s; }
.slider-dot.active { background: var(--color-primary); width: 22px; border-radius: 4px; }

/* ===== SECTION HEADERS ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 3px solid var(--color-primary); }
.section-title { font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--color-secondary); display: flex; align-items: center; gap: .5rem; }
.section-title::before { content: ''; display: block; width: 4px; height: 20px; background: var(--color-primary); border-radius: 2px; }
.section-link { font-size: .8rem; color: var(--color-primary); font-weight: 600; text-transform: uppercase; }
.section-link:hover { text-decoration: underline; }

/* ===== ARTICLE CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.article-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-image { position: relative; overflow: hidden; padding-top: 62%; }
.card-image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.article-card:hover .card-image img { transform: scale(1.05); }
.card-image .card-cat {
  position: absolute; top: .5rem; left: .5rem;
  background: var(--color-primary); color: #fff;
  font-size: .7rem; font-weight: 700; padding: .2rem .5rem;
  border-radius: 3px; text-transform: uppercase;
}
.no-image { background: var(--color-secondary); padding-top: 62%; position: relative; }
.no-image span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.5rem; opacity: .3; }
.card-body { padding: .875rem; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-size: .95rem; font-weight: 700; margin-bottom: .5rem;
  font-family: var(--font-heading); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a { color: var(--color-secondary); }
.card-title a:hover { color: var(--color-primary); }
.card-excerpt { font-size: .82rem; color: var(--color-text-light); margin-bottom: .75rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: #999; margin-top: auto; flex-wrap: wrap; }
.card-meta-cat { color: var(--color-primary); font-weight: 600; }
.card-meta-date { display: flex; align-items: center; gap: .25rem; }
.card-meta-views { display: flex; align-items: center; gap: .25rem; }

/* Large featured card */
.card-featured { display: flex; }
.card-featured .card-image { padding-top: 0; width: 200px; flex-shrink: 0; }
.card-featured .card-image img { position: static; width: 100%; height: 100%; object-fit: cover; }
.card-featured .card-body { padding: .75rem 1rem; }
.card-featured .card-title { font-size: .875rem; -webkit-line-clamp: 4; }

/* Headline article */
.headline-article { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 1.5rem; }
.headline-image { position: relative; padding-top: 45%; }
.headline-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.headline-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.headline-content { color: #fff; }
.headline-title { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; font-family: var(--font-heading); }
.headline-title a { color: #fff; }
.headline-title a:hover { color: var(--color-accent); }
.headline-meta { font-size: .8rem; color: rgba(255,255,255,.7); display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== MAIN CONTENT SECTIONS ===== */
.main-content { padding: 1.5rem 0; }
.section { margin-bottom: 2.5rem; }
.category-section { background: var(--color-white); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 2rem; }
.category-section-header { border-left: 5px solid var(--color-primary); padding-left: .75rem; margin-bottom: 1.25rem; }
.category-section-title { font-size: 1.1rem; font-weight: 800; color: var(--color-secondary); }
.category-section-link { font-size: .78rem; color: var(--color-primary); }

/* ===== SIDEBAR ===== */
.sidebar-widget { background: var(--color-white); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.widget-title { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--color-secondary); padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 2px solid var(--color-primary); }
.trending-list { }
.trending-item { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--color-border); align-items: flex-start; }
.trending-item:last-child { border-bottom: none; }
.trending-num { font-size: 1.5rem; font-weight: 900; color: var(--color-border); line-height: 1; min-width: 32px; font-family: var(--font-heading); }
.trending-item:first-child .trending-num { color: var(--color-primary); }
.trending-item:nth-child(2) .trending-num { color: var(--color-accent); }
.trending-content { flex: 1; }
.trending-title { font-size: .85rem; font-weight: 700; line-height: 1.3; margin-bottom: .25rem; font-family: var(--font-heading); }
.trending-title a { color: var(--color-secondary); }
.trending-title a:hover { color: var(--color-primary); }
.trending-meta { font-size: .72rem; color: #999; }
.trending-img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }

/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-chip {
  background: var(--color-bg); color: var(--color-text-light); padding: .25rem .65rem;
  border-radius: 20px; font-size: .75rem; border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.tag-chip:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===== ARTICLE DETAIL ===== */
.article-header { margin-bottom: 1.5rem; }
.article-category-badge { margin-bottom: .75rem; }
.article-title { font-size: 2rem; font-weight: 800; line-height: 1.25; margin-bottom: 1rem; font-family: var(--font-heading); color: var(--color-secondary); }
.article-meta { display: flex; align-items: center; gap: 1rem; color: var(--color-text-light); font-size: .85rem; flex-wrap: wrap; padding: .75rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin-bottom: 1.25rem; }
.article-meta-item { display: flex; align-items: center; gap: .35rem; }
.article-meta-item svg, .article-meta-item i { color: var(--color-primary); }
.article-featured-image { margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.article-featured-image img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.article-featured-image figcaption { font-size: .8rem; color: #999; text-align: center; padding: .5rem; font-style: italic; }

/* Article content */
.article-content { font-size: 1.05rem; line-height: 1.8; color: #2c2c2c; }
.article-content p { margin-bottom: 1.25rem; }
.article-content h2, .article-content h3 { margin: 1.75rem 0 .75rem; color: var(--color-secondary); }
.article-content img { border-radius: var(--radius); margin: 1rem 0; max-width: 100%; }
.article-content blockquote { border-left: 4px solid var(--color-primary); padding: 1rem 1.5rem; margin: 1.5rem 0; background: #fff8f8; color: var(--color-text-light); font-style: italic; }
.article-content ul, .article-content ol { margin: 1rem 0 1rem 1.5rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: .4rem; }
.article-content a { color: var(--color-primary); text-decoration: underline; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.article-content th, .article-content td { border: 1px solid var(--color-border); padding: .5rem .75rem; text-align: left; }
.article-content th { background: var(--color-bg); font-weight: 700; }

/* Article tags */
.article-tags { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid var(--color-border); margin-top: 1.5rem; }
.article-tags-label { font-weight: 700; font-size: .875rem; }

/* Share buttons */
.share-section { margin: 1.5rem 0; padding: 1.25rem; background: var(--color-bg); border-radius: var(--radius); }
.share-title { font-weight: 700; margin-bottom: .75rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .3px; }
.share-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 4px; font-size: .85rem; font-weight: 600; color: #fff;
  cursor: pointer; border: none; text-decoration: none; transition: opacity .2s;
}
.share-btn:hover { opacity: .85; color: #fff; }
.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-tg { background: #229ed9; }
.share-copy { background: var(--color-secondary); }

/* Source */
.article-source { font-size: .82rem; color: #999; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.article-source a { color: var(--color-primary); }

/* ===== RELATED ARTICLES ===== */
.related-section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 3px solid var(--color-primary); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ===== COMMENTS ===== */
.comments-section { margin-top: 2.5rem; }
.comment-item { padding: 1rem; background: var(--color-bg); border-radius: var(--radius); margin-bottom: .75rem; border-left: 3px solid var(--color-border); }
.comment-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.comment-author { font-weight: 700; font-size: .9rem; }
.comment-date { font-size: .75rem; color: #999; }
.comment-text { font-size: .9rem; line-height: 1.6; color: var(--color-text); }
.comment-form { background: var(--color-white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--color-border); margin-top: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.form-control { width: 100%; padding: .65rem .875rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: .9rem; transition: border-color .2s; }
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea.form-control { height: 100px; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.5rem; border-radius: var(--radius); font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-sm { padding: .4rem 1rem; font-size: .82rem; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; align-items: center; gap: .35rem; margin-top: 2rem; flex-wrap: wrap; }
.page-item a, .page-item span {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 .5rem;
  border: 1px solid var(--color-border); border-radius: 4px;
  font-size: .875rem; font-weight: 600; color: var(--color-text);
  transition: all .2s;
}
.page-item a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.page-item.active span { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.page-item.disabled span { color: #ccc; cursor: not-allowed; }

/* ===== SEARCH PAGE ===== */
.search-header { padding: 2rem 0; text-align: center; background: var(--color-secondary); color: #fff; margin-bottom: 2rem; }
.search-header h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.search-header .search-form { max-width: 500px; margin: 0 auto; }
.search-header .search-form input { background: rgba(255,255,255,.15); color: #fff; }
.search-header .search-form input::placeholder { color: rgba(255,255,255,.7); }

/* ===== CONTACT PAGE ===== */
.page-hero { background: var(--color-secondary); color: #fff; padding: 3rem 0; text-align: center; margin-bottom: 2.5rem; }
.page-hero h1 { font-size: 2rem; margin-bottom: .5rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
.contact-info-item { display: flex; gap: 1rem; padding: 1rem; background: var(--color-bg); border-radius: var(--radius); margin-bottom: 1rem; }
.contact-icon { width: 48px; height: 48px; background: var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; flex-shrink: 0; }

/* ===== FOOTER ===== */
.site-footer { background: var(--color-secondary); color: #ddd; margin-top: 3rem; }
.footer-main { padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-about { }
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 48px; }
.footer-logo .logo-text .site-name { font-size: 1.1rem; }
.footer-logo .logo-text .site-tagline { font-size: .7rem; }
.footer-desc { font-size: .875rem; color: #aaa; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: .9rem; transition: all .2s; }
.footer-social a:hover { background: var(--color-primary); color: #fff; }
.footer-heading { font-size: .95rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-links li a { color: #aaa; font-size: .875rem; display: block; padding: .3rem 0; transition: color .2s; }
.footer-links li a:hover { color: var(--color-accent); padding-left: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.footer-copyright { font-size: .82rem; color: #777; }
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a { color: #777; font-size: .82rem; }
.footer-bottom-links a:hover { color: #ccc; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px; background: var(--color-primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; border: none; z-index: 200;
  opacity: 0; transform: translateY(20px); transition: all .3s;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); }

/* ===== ALERTS ===== */
.alert { padding: .875rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

/* ===== READING PROGRESS ===== */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--color-primary); z-index: 9999; width: 0; transition: width .1s; }

/* ===== PAGE HEADER ===== */
.page-header { padding: 2rem 0; border-bottom: 3px solid var(--color-primary); margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.75rem; color: var(--color-secondary); }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: #999; margin-top: .5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb-sep { color: #ccc; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .col-sidebar { width: 280px; }
}

@media (max-width: 768px) {
  .container { padding: 0 .75rem; }
  .row { flex-direction: column; }
  .col-sidebar { width: 100%; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: .75rem; }
  .header-search { order: 3; width: 100%; max-width: 100%; }
  .header-nav { display: none; } /* hidden on mobile — use hamburger */
  .site-logo img { height: 44px; }
  .logo-text .site-name { font-size: 1.2rem; }
  .hamburger { display: flex; flex-direction: column; justify-content: center; }
  .main-nav .container { flex-wrap: wrap; }
  .nav-list { display: none; flex-direction: column; width: 100%; }
  .nav-list.open { display: flex; }
  .nav-list > li > a { padding: .7rem 1rem; border-bottom: 1px solid rgba(255,255,255,.05); border-left: none; }
  /* Mobile dropdown inline */
  .nav-dropdown { display: none; position: static; box-shadow: none; border: none; border-radius: 0; background: rgba(0,0,0,.2); padding: 0; min-width: 0; border-top: none; }
  .nav-dropdown li a { color: #bbb; padding: .55rem 1.5rem; font-size: .78rem; border-left: none; }
  .nav-dropdown li a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .has-dropdown.open .nav-dropdown { display: block; }
  .slide-image { height: 300px; }
  .slide-title { font-size: 1.25rem; }
  .headline-title { font-size: 1.15rem; }
  .article-title { font-size: 1.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .share-buttons { gap: .35rem; }
  .share-btn { font-size: .78rem; padding: .4rem .75rem; }
  .top-bar { display: none; }
  .category-section { padding: 1rem; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .card-featured { flex-direction: column; }
  .card-featured .card-image { width: 100%; padding-top: 56%; }
  .pagination { gap: .2rem; }
  .page-item a, .page-item span { min-width: 32px; height: 32px; font-size: .78rem; }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .main-nav, .sidebar-widget, .share-section, .site-footer, .back-to-top, .breaking-ticker, .top-bar { display: none; }
  .row { flex-direction: column; }
  .article-content { font-size: 12pt; }
  a { color: black; text-decoration: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}
