/*
Theme Name: EditorialRise
Author: Timelison Media
Description: A flexible, responsive news and magazine theme with a featured-story hero, Top News column, latest posts, dynamic category sections and advertising widget areas.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: editorialrise
Tags: news, blog, entertainment, grid-layout, one-column, two-columns, three-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --er-accent: #e31b3d;
  --er-ink: #15171b;
  --er-muted: #70757d;
  --er-line: #e5e7eb;
  --er-soft: #f5f6f7;
  --er-paper: #ffffff;
  --er-container: 1210px;
  --er-radius: 4px;
  --er-shadow: 0 12px 30px rgba(18, 24, 32, .08);
  --er-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--er-paper); color: var(--er-ink); font-family: var(--er-font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus { color: var(--er-accent); }
button, input { font: inherit; }
button { cursor: pointer; }
.er-container { width: min(var(--er-container), calc(100% - 40px)); margin-inline: auto; }
.er-skip-link { position: absolute; left: -9999px; top: 10px; z-index: 9999; background: #111; color: #fff; padding: 10px 14px; }
.er-skip-link:focus { left: 10px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; display: block; height: auto; width: auto; left: 8px; top: 8px; z-index: 100000; background: #fff; color: #111; padding: 12px; }

/* Top strip and masthead */
.er-topbar { background: #15171b; color: #d9dce0; font-size: 12px; letter-spacing: .02em; }
.er-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 34px; }
.er-topbar-date { color: #c6c9ce; }
.er-topbar-links { display: flex; align-items: center; gap: 16px; }
.er-topbar-links a { color: #e9eaec; }
.er-masthead { padding: 26px 0 22px; }
.er-masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.er-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.custom-logo { max-height: 74px; width: auto; }
.er-brand-text { min-width: 0; }
.er-site-title { margin: 0; font-size: clamp(27px, 3vw, 40px); line-height: 1.04; font-weight: 850; letter-spacing: -.055em; }
.er-site-title a { color: var(--er-ink); }
.er-site-description { margin: 6px 0 0; color: var(--er-muted); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.er-header-ad { width: min(100%, 470px); min-height: 70px; display: flex; justify-content: flex-end; align-items: center; }
.er-header-ad .widget { width: 100%; }

/* Navigation */
.er-nav-wrap { border-top: 1px solid var(--er-line); border-bottom: 1px solid var(--er-line); background: #fff; }
.er-nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 54px; gap: 18px; }
.er-primary-nav { flex: 1; min-width: 0; }
.er-primary-nav ul { display: flex; align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0; }
.er-primary-nav li { position: relative; }
.er-primary-nav a { display: block; padding: 17px 15px 15px; color: #17191d; font-size: 13px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; border-bottom: 3px solid transparent; }
.er-primary-nav .current-menu-item > a, .er-primary-nav .current_page_item > a, .er-primary-nav a:hover { border-color: var(--er-accent); color: #111; }
.er-primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 99; min-width: 210px; padding: 8px 0; background: #fff; border: 1px solid var(--er-line); box-shadow: var(--er-shadow); }
.er-primary-nav li:hover > .sub-menu, .er-primary-nav li:focus-within > .sub-menu { display: block; }
.er-primary-nav .sub-menu a { padding: 10px 15px; border: 0; text-transform: none; font-weight: 650; }
.er-nav-actions { display: flex; align-items: center; gap: 8px; }
.er-icon-button, .er-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--er-line); border-radius: 50%; background: #fff; color: var(--er-ink); }
.er-icon-button:hover, .er-menu-toggle:hover { border-color: var(--er-accent); color: var(--er-accent); }
.er-menu-toggle { display: none; }
.er-search-panel { display: none; padding: 15px 0; border-top: 1px solid var(--er-line); }
.er-search-panel.is-open { display: block; }
.er-search-form { display: flex; max-width: 600px; margin-left: auto; }
.er-search-form input[type="search"] { width: 100%; min-width: 0; border: 1px solid var(--er-line); padding: 11px 13px; outline-color: var(--er-accent); }
.er-search-form button { border: 0; background: var(--er-accent); color: #fff; padding: 0 18px; font-weight: 750; }

/* Breaking ticker */
.er-breaking { background: #fff; border-bottom: 1px solid var(--er-line); }
.er-breaking-inner { min-height: 43px; display: flex; align-items: center; gap: 14px; overflow: hidden; }
.er-breaking-label { flex: 0 0 auto; background: var(--er-accent); color: #fff; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; }
.er-breaking-items { display: flex; align-items: center; gap: 26px; overflow: hidden; white-space: nowrap; font-size: 13px; font-weight: 650; }
.er-breaking-items a { overflow: hidden; text-overflow: ellipsis; }

/* General section headings */
.er-section { margin: 44px 0; }
.er-section-heading { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
.er-section-heading:before { content: ""; display: block; width: 48px; height: 4px; background: var(--er-accent); }
.er-section-heading h2 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 850; letter-spacing: -.025em; text-transform: uppercase; }
.er-section-heading .er-view-all { margin-left: auto; color: var(--er-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.er-section-heading .er-view-all:hover { color: var(--er-accent); }
.er-ad-slot { margin: 30px auto; text-align: center; color: #a1a5ab; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.er-ad-slot .widget { min-height: 30px; }

/* Hero and top news */
.er-hero-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); gap: 38px; align-items: stretch; margin-top: 34px; }
.er-featured-card { min-height: 430px; position: relative; overflow: hidden; background: #17191d; color: #fff; isolation: isolate; }
.er-featured-card > a:first-child { position: absolute; inset: 0; z-index: 0; }
.er-featured-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.er-featured-card:hover img { transform: scale(1.035); }
.er-featured-card:after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.74) 48%, rgba(0,0,0,.08) 100%); }
.er-featured-content { position: absolute; z-index: 2; left: 0; bottom: 0; width: min(78%, 590px); padding: 34px 34px 30px; }
.er-kicker { display: inline-block; color: var(--er-accent); font-size: 11px; line-height: 1.2; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.er-featured-title { margin: 10px 0 13px; color: #fff; font-size: clamp(28px, 3.2vw, 43px); line-height: 1.08; font-weight: 850; letter-spacing: -.045em; }
.er-featured-title a:hover { color: #fff; }
.er-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--er-muted); font-size: 12px; }
.er-meta .er-category { color: var(--er-accent); font-weight: 850; text-transform: uppercase; letter-spacing: .045em; }
.er-meta .er-meta-divider { width: 1px; height: 15px; background: #cdd0d4; }
.er-featured-meta { color: rgba(255,255,255,.82); }
.er-featured-excerpt { max-width: 520px; margin: 15px 0 0; color: rgba(255,255,255,.88); font-size: 14px; line-height: 1.65; }
.er-top-news { min-width: 0; }
.er-top-news .er-section-heading { gap: 13px; margin: 2px 0 14px; }
.er-top-news .er-section-heading:before, .er-top-news .er-section-heading:after { content: ""; display: block; flex: 1; height: 4px; background: var(--er-accent); }
.er-top-news .er-section-heading h2 { flex: 0 0 auto; font-size: 17px; }
.er-top-news-list { display: grid; }
.er-top-news-item { padding: 18px 0 17px; border-bottom: 1px solid #d7d9dc; }
.er-top-news-item:first-child { padding-top: 10px; }
.er-top-news-title { margin: 0 0 12px; font-size: clamp(17px, 1.65vw, 22px); line-height: 1.28; letter-spacing: -.025em; font-weight: 720; }

/* Post cards */
.er-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.er-post-card { min-width: 0; }
.er-card-image { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #eceef0; margin-bottom: 13px; }
.er-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.er-post-card:hover .er-card-image img { transform: scale(1.04); }
.er-image-placeholder { width: 100%; height: 100%; min-height: 130px; display: grid; place-items: center; background: linear-gradient(135deg, #e7eaee, #cfd5dc); color: #7a828c; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.er-card-title { margin: 7px 0 9px; font-size: 19px; line-height: 1.26; font-weight: 780; letter-spacing: -.025em; }
.er-card-excerpt { color: #646a72; font-size: 13px; line-height: 1.6; margin: 0; }
.er-latest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.er-latest-grid .er-card-title { font-size: 18px; }
.er-latest-grid .er-card-image { aspect-ratio: 16 / 9; }
.er-latest-grid .er-meta { margin-top: 2px; }

/* Category blocks */
.er-category-section { padding-top: 4px; }
.er-category-section + .er-category-section { border-top: 1px solid var(--er-line); padding-top: 34px; }
.er-category-layout-list { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; }
.er-category-lead .er-card-image { aspect-ratio: 16 / 9; }
.er-category-lead .er-card-title { font-size: clamp(22px, 2.1vw, 28px); }
.er-category-side { display: grid; gap: 16px; align-content: start; }
.er-horizontal-card { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--er-line); }
.er-horizontal-card:last-child { border-bottom: 0; }
.er-horizontal-card .er-card-image { aspect-ratio: 1 / .78; margin: 0; }
.er-horizontal-card .er-card-title { margin: 2px 0 8px; font-size: 16px; }
.er-horizontal-card .er-meta { font-size: 11px; }
.er-category-layout-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.er-category-layout-grid .er-card-title { font-size: 16px; }

/* Trending */
.er-trending-panel { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--er-line); }
.er-trending-column { padding: 20px 22px; }
.er-trending-column + .er-trending-column { border-left: 1px solid var(--er-line); }
.er-trending-column h3 { margin: 0 0 15px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.er-ranked-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin: 0 0 14px; }
.er-rank { color: var(--er-accent); font-size: 20px; font-weight: 900; line-height: 1.1; }
.er-ranked-item a { font-size: 14px; line-height: 1.35; font-weight: 700; }

/* Archive and article layouts */
.er-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 42px; margin: 42px auto 60px; }
.er-main-content { min-width: 0; }
.er-page-title { margin: 0 0 24px; padding-bottom: 15px; border-bottom: 3px solid var(--er-accent); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.04em; }
.er-archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 22px; }
.er-single-header { margin-bottom: 24px; }
.er-single-title { margin: 10px 0 14px; font-size: clamp(32px, 4vw, 49px); line-height: 1.08; letter-spacing: -.045em; font-weight: 850; }
.er-single-featured { margin: 0 0 25px; }
.er-single-featured img { width: 100%; max-height: 560px; object-fit: cover; }
.er-entry-content { font-size: 17px; line-height: 1.8; overflow-wrap: break-word; }
.er-entry-content h2, .er-entry-content h3, .er-entry-content h4 { line-height: 1.25; margin-top: 1.7em; }
.er-entry-content a { color: var(--er-accent); text-decoration: underline; text-underline-offset: 3px; }
.er-entry-content blockquote { border-left: 4px solid var(--er-accent); margin: 28px 0; padding: 7px 22px; color: #535962; background: var(--er-soft); }
.er-entry-content figure { max-width: 100%; }
.er-post-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.er-post-tags a { padding: 5px 9px; border: 1px solid var(--er-line); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.er-post-navigation { display: flex; justify-content: space-between; gap: 20px; margin: 35px 0; padding: 20px 0; border-top: 1px solid var(--er-line); border-bottom: 1px solid var(--er-line); }
.er-post-navigation a { max-width: 48%; font-size: 14px; font-weight: 750; }
.er-comments { margin-top: 40px; }
.er-comments h2 { font-size: 22px; }
.er-sidebar .widget { margin-bottom: 28px; padding: 20px; border: 1px solid var(--er-line); }
.er-sidebar .widget-title { margin: 0 0 15px; font-size: 16px; font-weight: 850; text-transform: uppercase; }
.er-sidebar ul { margin: 0; padding-left: 18px; }
.er-sidebar li { margin: 0 0 9px; }
.er-pagination { margin-top: 35px; }
.er-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; margin: 0 4px 4px 0; padding: 0 10px; border: 1px solid var(--er-line); font-size: 13px; font-weight: 800; }
.er-pagination .current, .er-pagination a:hover { color: #fff; background: var(--er-accent); border-color: var(--er-accent); }

/* Footer */
.er-footer { margin-top: 60px; background: #15171b; color: #d8dbe0; }
.er-footer-widgets { display: grid; grid-template-columns: repeat(3,1fr); gap: 35px; padding: 42px 0; }
.er-footer .widget-title { margin: 0 0 14px; color: #fff; font-size: 15px; text-transform: uppercase; }
.er-footer ul { padding-left: 18px; margin: 0; }
.er-footer li { margin-bottom: 8px; }
.er-footer a { color: #e1e3e6; }
.er-footer a:hover { color: #fff; }
.er-footer-bottom { border-top: 1px solid rgba(255,255,255,.13); padding: 17px 0; }
.er-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #aeb3ba; font-size: 12px; }
.er-footer-nav ul { display: flex; flex-wrap: wrap; gap: 15px; margin: 0; padding: 0; list-style: none; }
.er-footer-nav a { font-size: 12px; }

/* WordPress generated elements */
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption, .wp-block-image figcaption { color: var(--er-muted); font-size: 12px; }
.sticky { outline: 2px solid transparent; }
.bypostauthor { display: block; }
.er-empty { padding: 35px; text-align: center; background: var(--er-soft); }

@media (max-width: 980px) {
  .er-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(285px, .82fr); gap: 24px; }
  .er-featured-card { min-height: 390px; }
  .er-featured-content { width: 90%; padding: 25px; }
  .er-primary-nav a { padding-inline: 10px; font-size: 12px; }
  .er-content-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 28px; }
  .er-category-layout-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .er-container { width: min(var(--er-container), calc(100% - 28px)); }
  .er-topbar-inner { min-height: 31px; }
  .er-topbar-links { display: none; }
  .er-masthead { padding: 17px 0; }
  .er-masthead-inner { align-items: center; }
  .custom-logo { max-height: 54px; }
  .er-site-title { font-size: 29px; }
  .er-site-description { font-size: 9px; letter-spacing: .08em; }
  .er-header-ad { display: none; }
  .er-nav-inner { min-height: 50px; }
  .er-menu-toggle { display: inline-flex; }
  .er-primary-nav { display: none; position: absolute; top: auto; left: 0; right: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--er-line); box-shadow: var(--er-shadow); }
  .er-primary-nav.is-open { display: block; }
  .er-primary-nav ul { display: block; padding: 8px 14px 14px; }
  .er-primary-nav a { padding: 11px 8px; border-bottom: 1px solid var(--er-line); }
  .er-primary-nav .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 0 15px; border: 0; box-shadow: none; }
  .er-nav-inner { position: relative; }
  .er-nav-actions { margin-left: auto; }
  .er-breaking-inner { min-height: 40px; gap: 9px; }
  .er-breaking-label { font-size: 9px; padding: 5px 7px; }
  .er-breaking-items { font-size: 12px; }
  .er-hero-layout { grid-template-columns: 1fr; gap: 26px; margin-top: 22px; }
  .er-featured-card { min-height: 420px; }
  .er-featured-content { width: 100%; padding: 24px 22px; }
  .er-featured-title { font-size: clamp(29px, 8vw, 39px); }
  .er-top-news .er-section-heading { margin-bottom: 8px; }
  .er-top-news-item { padding: 14px 0; }
  .er-top-news-title { font-size: 18px; }
  .er-section { margin: 34px 0; }
  .er-post-grid, .er-latest-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 15px; }
  .er-card-title { font-size: 16px; }
  .er-card-excerpt { display: none; }
  .er-category-layout-list { grid-template-columns: 1fr; gap: 20px; }
  .er-category-lead .er-card-title { font-size: 22px; }
  .er-trending-panel { grid-template-columns: 1fr; }
  .er-trending-column + .er-trending-column { border-left: 0; border-top: 1px solid var(--er-line); }
  .er-content-layout { grid-template-columns: 1fr; gap: 35px; margin-top: 28px; }
  .er-sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .er-sidebar .widget { margin-bottom: 0; padding: 15px; }
  .er-footer-widgets { grid-template-columns: 1fr 1fr; gap: 25px; padding: 30px 0; }
  .er-footer-bottom-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .er-post-grid, .er-latest-grid, .er-archive-grid, .er-category-layout-grid { grid-template-columns: 1fr; }
  .er-featured-card { min-height: 390px; }
  .er-featured-card:after { background: linear-gradient(0deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.58) 58%, rgba(0,0,0,.06) 100%); }
  .er-featured-content { padding: 20px; }
  .er-featured-excerpt { font-size: 13px; }
  .er-horizontal-card { grid-template-columns: 105px minmax(0,1fr); gap: 12px; }
  .er-horizontal-card .er-card-title { font-size: 14px; }
  .er-sidebar { grid-template-columns: 1fr; }
  .er-footer-widgets { grid-template-columns: 1fr; }
  .er-single-title { font-size: 31px; }
  .er-entry-content { font-size: 16px; }
}
