/*
Theme Name: Dooekpo Child
Theme URI: https://dooekpo.com/
Description: Newspaper-style homepage with a GeneratePress base: masthead, latest ticker, hero story, news grid and category sections, plus Voice-style post styling.
Author: Dooekpo
Author URI: https://dooekpo.com/
Template: generatepress
Version: 1.10.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dooekpo-child
*/

:root {
  --voice-contrast: #191919;
  --voice-contrast-2: #5b5b5b;
  --voice-base: #ffffff;
  --voice-accent: #b93434;
  --voice-accent-2: #ffebeb;
}

body {
  font-family: "Barlow Semi Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 19px;
  line-height: 1.65;
  color: #191919;
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.main-title a {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: #191919;
}

.entry-title { font-size: 2.1rem; }
.entry-title a { color: #191919; text-decoration: none; }
.entry-title a:hover { color: #b93434; }

.site-header { background: #ffffff; border-bottom: 1px solid #e5e5e5; }
.main-title a { font-size: 2rem; letter-spacing: -0.01em; }
.site-description { color: #5b5b5b; }

.main-navigation {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-navigation .main-nav ul li a {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #191919;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a { color: #b93434; }

.separate-containers .inside-article,
.one-container .inside-article { background: #ffffff; padding: 40px; }

.post-image { text-align: center; margin-bottom: 1.25rem; }
.post-image img { border-radius: 2px; width: 100%; height: auto; }
.entry-summary { font-size: 1.15rem; color: #333; }
.entry-meta, .posted-on, .byline, .cat-links, .tags-links {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5b5b5b;
}
.cat-links a { color: #b93434; text-decoration: none; }
.read-more, a.read-more { color: #b93434; font-weight: 600; }

.single .entry-content { font-size: 1.2rem; line-height: 1.7; }
.single .entry-content h2 { margin-top: 2rem; padding-top: 0.5rem; border-top: 1px solid #eee; }
.single .entry-content img { border-radius: 2px; }

a { color: #b93434; }
a:hover { color: #191919; }
.entry-content a { text-decoration: underline; text-decoration-color: #ffebeb; text-underline-offset: 3px; }
button, .button, input[type="submit"] { background: #b93434; color: #ffffff; border: 0; }
button:hover, .button:hover, input[type="submit"]:hover { background: #191919; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid #ddd; padding: 10px 12px; text-align: left; }
.entry-content blockquote { border-left: 4px solid #b93434; padding-left: 1rem; color: #5b5b5b; }

.site-footer { background: #ffffff; border-top: 1px solid #e5e5e5; color: #5b5b5b; font-size: 0.95rem; }
.site-footer a { color: #191919; }
.site-footer a:hover { color: #b93434; }
.footer-bar .widget_nav_menu ul li a { color: #191919; text-decoration: none; }
.footer-bar .widget_nav_menu ul li a:hover { color: #b93434; }

/* Blog archive image-above-title ordering (was Customizer CSS, now in the theme) */
.blog .inside-article, .archive .inside-article { display: flex; flex-direction: column; }
.blog .post-image, .archive .post-image { order: -1; }
.blog .entry-header, .archive .entry-header { order: 0; }

/* ============ Newspaper homepage ============ */
.newspaper-wrap { max-width: 1200px; margin: 0 auto; padding: 10px 20px 40px; }

.newspaper-masthead {
  text-align: center;
  padding: 28px 10px 18px;
  border-bottom: 4px double #191919;
  margin-bottom: 0;
}
.newspaper-masthead .np-date {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b5b5b;
}
.newspaper-masthead .np-title {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  margin: 10px 0 8px;
  letter-spacing: -0.02em;
}
.newspaper-masthead .np-title a { color: #191919; text-decoration: none; }
.newspaper-masthead .np-tagline {
  font-size: 18px;
  color: #5b5b5b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.np-ticker {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  overflow: hidden;
}
.np-ticker .np-label {
  background: #b93434;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.np-ticker .np-items { display: flex; gap: 24px; flex-wrap: wrap; }
.np-ticker .np-items a { color: #191919; text-decoration: none; font-weight: 600; }
.np-ticker .np-items a:hover { color: #b93434; }

.np-section-title {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 26px;
  border-bottom: 3px solid #191919;
  padding-bottom: 8px;
  margin: 36px 0 20px;
}
.np-section-title span { border-bottom: 3px solid #b93434; padding-bottom: 8px; }

.np-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 24px; }
.np-hero-main img { width: 100%; height: auto; border-radius: 2px; }
.np-hero-main h2 { font-size: 32px; margin: 14px 0 8px; }
.np-hero-main h2 a { color: #191919; text-decoration: none; }
.np-hero-main h2 a:hover { color: #b93434; }
.np-hero-side { display: flex; flex-direction: column; gap: 20px; }
.np-hero-side article { border-bottom: 1px solid #eee; padding-bottom: 16px; }
.np-hero-side img { width: 100%; height: auto; border-radius: 2px; }
.np-hero-side h3 { font-size: 20px; margin: 10px 0 4px; }
.np-hero-side h3 a { color: #191919; text-decoration: none; }
.np-hero-side h3 a:hover { color: #b93434; }

.np-cat-label {
  display: inline-block;
  background: #b93434;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  text-decoration: none;
}
.np-cat-label:hover { color: #fff; background: #191919; }
.np-meta { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: #5b5b5b; margin: 8px 0; }
.np-excerpt { color: #333; }

.np-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.np-card img { width: 100%; height: auto; border-radius: 2px; }
.np-card h3 { font-size: 20px; margin: 12px 0 4px; }
.np-card h3 a { color: #191919; text-decoration: none; }
.np-card h3 a:hover { color: #b93434; }

.np-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.np-cat-block h3.np-cat-heading { font-size: 22px; border-bottom: 2px solid #b93434; padding-bottom: 6px; }
.np-cat-block ul { list-style: none; margin: 0; padding: 0; }
.np-cat-block li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee; align-items: flex-start; }
.np-cat-block li img { width: 90px; height: auto; border-radius: 2px; flex-shrink: 0; }
.np-cat-block li a.np-cat-title { color: #191919; text-decoration: none; font-weight: 600; line-height: 1.3; }
.np-cat-block li a.np-cat-title:hover { color: #b93434; }

@media (max-width: 900px) {
  .np-hero { grid-template-columns: 1fr; }
  .np-grid { grid-template-columns: repeat(2, 1fr); }
  .np-cats { grid-template-columns: 1fr; }
  .newspaper-masthead .np-title { font-size: 44px; }
}
@media (max-width: 600px) {
  .np-grid { grid-template-columns: 1fr; }
  .entry-title { font-size: 1.6rem; }
  .separate-containers .inside-article,
  .one-container .inside-article { padding: 20px; }
  .newspaper-masthead .np-title { font-size: 36px; }
}

/* Single post: title first, then featured image, then content */
.single .inside-article { display: flex; flex-direction: column; }
.single .entry-header { order: 0; }
.single .featured-image { order: 1; margin-bottom: 1.25rem; }
.single .featured-image img { width: 100%; height: auto; border-radius: 2px; }
.single .entry-content { order: 2; }
/* Single post: tighten image-to-text gap (was ~82px: GeneratePress 2em below the
   featured image + 2em above entry-content, which beat the old 1.25rem rule) */
.single.separate-containers .inside-article > .featured-image,
.single.one-container .inside-article > .featured-image { margin-bottom: 0.75rem; }
.single .inside-article > .entry-content { margin-top: 0.5rem; }
.single .entry-footer { order: 3; }

/* Right sidebar on single posts: recent articles widget */
.sidebar .widget { background: #ffffff; border: 1px solid #e5e5e5; border-radius: 2px; }
.sidebar .widget-title {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 20px;
  border-bottom: 3px solid #b93434;
  padding-bottom: 8px;
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget ul li { padding: 10px 0; border-bottom: 1px solid #eee; }
.sidebar .widget ul li:last-child { border-bottom: 0; }
.sidebar .widget ul li a { color: #191919; text-decoration: none; font-weight: 600; line-height: 1.35; }
.sidebar .widget ul li a:hover { color: #b93434; }
.sidebar .widget .post-date { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: #5b5b5b; margin-top: 2px; }

/* Single post: no tags in the footer, category stays in the header meta */
.single .tags-links { display: none !important; }
.single .entry-header .cat-links { margin-left: 4px; }
.single .entry-header .cat-links a { color: #b93434; text-decoration: none; }

/* Single post flex order: header, image, content, footer, similar */
.single .inside-article > footer.entry-meta { order: 3; }
.single .np-similar { order: 4; margin-top: 32px; border-top: 3px solid #191919; padding-top: 16px; }
.np-similar-title { font-family: "Roboto Slab", Georgia, serif; font-size: 24px; margin: 0 0 16px; }
.np-similar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.np-similar-card img { width: 100%; height: auto; border-radius: 2px; }
.np-similar-card h3 { font-size: 18px; margin: 10px 0 4px; line-height: 1.35; }
.np-similar-card h3 a { color: #191919; text-decoration: none; }
.np-similar-card h3 a:hover { color: #b93434; }
@media (max-width: 900px) { .np-similar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .np-similar-grid { grid-template-columns: 1fr; } }

/* Reference-style cards (archive/category + homepage Latest News grid) */
.ref-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 0 0 20px;
  overflow: hidden;
}
.ref-card-image img { width: 100%; height: auto; display: block; }
.ref-card .ref-meta, .ref-card .ref-title, .ref-card .ref-read,
.np-card .ref-meta, .np-card .ref-title, .np-card .ref-read { padding-left: 20px; padding-right: 20px; }
.ref-meta { display: flex; gap: 12px; align-items: center; margin: 16px 0 8px; }
.ref-cat {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0066cc;
  text-decoration: none;
}
.ref-cat:hover { color: #191919; }
.ref-date { font-size: 15px; color: #5b5b5b; }
.ref-title, .np-card .ref-title { font-family: "Roboto Slab", Georgia, serif; font-size: 22px; line-height: 1.3; margin: 0 0 10px; }
.ref-title a, .np-card .ref-title a { color: #191919; text-decoration: none; }
.ref-title a:hover, .np-card .ref-title a:hover { color: #0066cc; }
.ref-read { font-size: 15px; color: #5b5b5b; }
.np-card { background: #ffffff; border: 1px solid #e5e5e5; border-radius: 4px; overflow: hidden; padding-bottom: 20px; }
.np-card img { display: block; }
.archive .inside-article.ref-card, .archive .ref-card-article { padding: 0; }

/* Voice-style header: red bar, centred white title, red nav */
.site-header { background: #b93434; border-bottom: 1px solid rgba(255,255,255,0.25); }
.inside-header { text-align: center; padding-top: 24px; padding-bottom: 24px; }
.site-branding { margin: 0 auto; text-align: center; }
.main-title a {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
}
.main-title a:hover { color: #ffebeb; }
.main-navigation { background: #b93434; border-bottom: 0; }
.main-navigation .inside-navigation { justify-content: center; }
.main-navigation .main-nav ul { justify-content: center; }
.main-navigation .main-nav ul li a { color: #ffffff; }
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a { color: #ffebeb; }
.main-navigation .menu-toggle { color: #ffffff; }

/* Voice-style footer: red background, 3 columns, black tag pills, centred copyright */
.site-footer, .footer-widgets, .site-info { background: #b93434; color: #ffffff; }
.footer-widgets { border-top: 0; }
.footer-widgets .widget { background: transparent; border: 0; padding: 30px 20px; }
.footer-widgets .widget-title {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ffffff;
  border-bottom: 0;
}
.footer-widgets, .footer-widgets p, .footer-widgets li { color: #ffffff; }
.footer-widgets a, .site-info a { color: #ffffff; text-decoration: none; }
.footer-widgets a:hover, .site-info a:hover { color: #ffebeb; }
.footer-widgets .widget_nav_menu ul li { border-bottom: 0; padding: 4px 0; }
.wp-block-tag-cloud a, .tagcloud a {
  background: #191919 !important;
  color: #ffffff !important;
  padding: 6px 12px !important;
  border-radius: 2px;
  display: inline-block;
  margin: 0 6px 6px 0;
  text-decoration: none;
  font-size: 14px !important;
}
.inside-site-info { text-align: center; }
.footer-bar .widget_nav_menu ul { justify-content: center; display: flex; flex-wrap: wrap; }
.copyright-bar { text-align: center; width: 100%; }

/* Homepage hero white-space fix: side stories in a row below the hero,
   instead of a tall side column that leaves empty space under the hero. */
.np-hero { display: block; }
.np-hero-main { max-width: 900px; }
.np-hero-side { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.np-hero-side article { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 900px) { .np-hero-side { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .np-hero-side { grid-template-columns: 1fr; } }

/* Homepage full width even if a sidebar layout is set globally */
body.home .site-content .content-area, body.home .content-area { width: 100%; }
body.home .newspaper-wrap { max-width: 1200px; }

/* v1.10: wider layout, full-width hero, polished sidebar */
.grid-container { max-width: 1280px !important; }
.newspaper-wrap { max-width: 1280px; }
.np-hero-main { max-width: none; }
.np-hero-main img { width: 100%; height: auto; display: block; }

/* Sidebar: no detached boxes, headings like Latest News, compact rows */
.sidebar .widget { background: transparent !important; border: 0 !important; padding: 0 0 24px !important; margin-bottom: 0 !important; }
.sidebar .widget-area .widget { padding: 0 0 24px !important; }
.sidebar .wp-block-heading, .sidebar .widget-title, .sidebar .popular-posts h2 {
  font-family: "Roboto Slab", Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 700;
  color: #191919;
  border-bottom: 3px solid #191919;
  padding-bottom: 8px;
  margin: 0 0 16px;
}
.sidebar .wp-block-heading::after, .sidebar .widget-title::after, .sidebar .popular-posts h2::after {
  content: ""; display: block; width: 48px; height: 3px; background: #b93434; margin-top: 8px; margin-bottom: -11px;
}
.sidebar .inside-right-sidebar { position: sticky; top: 80px; }

/* Recent Posts: thumbnail left, title + date right, in one grid row */
.sidebar .wp-block-latest-posts__list li {
  display: grid !important;
  grid-template-columns: 90px 1fr;
  grid-template-areas: "img title" "img date";
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 12px 0 !important;
  border-bottom: 1px solid #eee;
}
.sidebar .wp-block-latest-posts__featured-image { grid-area: img; margin: 0 !important; }
.sidebar .wp-block-latest-posts__featured-image img { width: 90px !important; height: 90px !important; object-fit: cover; border-radius: 2px; display: block; }
.sidebar .wp-block-latest-posts__post-title { grid-area: title; font-size: 16px !important; line-height: 1.35; font-weight: 600; color: #191919; text-decoration: none; }
.sidebar .wp-block-latest-posts__post-title:hover { color: #b93434; }
.sidebar .wp-block-latest-posts__post-date { grid-area: date; font-size: 13px; color: #5b5b5b; }

/* Popular Posts: same compact row, no orphan words under the thumbnail */
.sidebar .wpp-list { list-style: none; margin: 0; padding: 0; }
.sidebar .wpp-list li {
  display: grid !important;
  grid-template-columns: 90px 1fr;
  grid-template-areas: "img title" "img meta";
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 12px 0 !important;
  border-bottom: 1px solid #eee;
}
.sidebar .wpp-list li > a:first-of-type { grid-area: img; }
.sidebar .wpp-list li img { width: 90px !important; height: 90px !important; object-fit: cover; border-radius: 2px; display: block; }
.sidebar .wpp-list li > a:nth-of-type(2) { grid-area: title; font-size: 16px !important; line-height: 1.35; font-weight: 600; color: #191919; text-decoration: none; }
.sidebar .wpp-list li > a:nth-of-type(2):hover { color: #b93434; }
.sidebar .wpp-list li .wpp-meta { grid-area: meta; font-size: 13px; color: #5b5b5b; }
