/* espressonews.bg — visual redesign layer (2026-09-15).
   Ported from storiesweneed.com. Loaded after style.css on every page;
   it overrides the ADMAG theme's look without touching the theme's markup.
   Category colours (.bgcolorN / .bordercolorN / .txtcolorN in style.css) use
   !important and keep winning, so each section keeps its own colour. */

:root {
  --paper: #f4f2ef;
  --card: #ffffff;
  --ink: #16191c;
  --body: #272b2e;
  --muted: #6b7074;
  --rule: #e3e0db;
  --accent: #d2373a;
  --accent-dark: #a8292c;
  --accent-soft: rgba(210,55,58,.1);
  --footer-bg: #16191c;
  --serif-display: "Playfair Display", "Noto Serif", Georgia, serif;
  --serif-text: "Noto Serif", Georgia, serif;
  --sans: "Roboto", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(22,25,28,.04), 0 10px 28px rgba(22,25,28,.07);
  --shadow-hover: 0 2px 4px rgba(22,25,28,.06), 0 18px 40px rgba(22,25,28,.13);
}

/* ---------- base ---------- */
body.light { background: var(--paper); color: var(--body); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
a:hover img { opacity: 1; }
h1, h2, h3, h4, h5, h6, .post-title { font-family: var(--serif-display); color: var(--ink); }
.main-content { background: transparent; box-shadow: none; margin-top: 0; padding-top: 24px; }
.mag-content { padding-left: 15px; padding-right: 15px; }
.btn-default, .btn-link {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 10px 22px; font-weight: 600; letter-spacing: .04em;
}
.btn-default:hover, .btn-link:hover { background: var(--accent-dark); color: #fff; }

/* ---------- header ---------- */
.header { background: #fff; box-shadow: none; border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) {
  .logo { display: flex; align-items: center; margin: 15px 0 13px !important; padding: 0; }
  .logo img { position: static !important; width: auto !important; height: 62px !important; padding: 0 !important; margin-right: 18px; flex: none; }
  /* the theme paints every span inside .logo as a red pill — undo that here */
  .logo .logo-tag {
    display: inline-block; background: none; border-radius: 0;
    font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .13em;
    text-transform: uppercase; color: var(--muted); line-height: 1.4;
    padding: 0 0 0 18px; margin: 0; border-left: 1px solid var(--rule);
  }
  .header .navbar-collapse.collapse { padding-left: 0; }
  #top-menu { border-top: 1px solid var(--rule); padding-bottom: 0 !important; }
  .navbar-nav > li > a {
    font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink); line-height: 1 !important; padding: 15px 11px 14px !important; border-bottom: 2px solid transparent;
  }
  .navbar-nav > li:first-child > a { padding-left: 0 !important; }
  .navbar-nav > li > a:hover, .navbar-nav > li > a:focus, .navbar-nav > li.open > a { color: var(--accent); border-bottom-color: var(--accent); }
  .navbar-nav > li > a.dropdown-toggle:after { border-top-color: #bbb; margin-bottom: 2px; }
  .navbar-nav > li > a:not([href]) { color: var(--rule); padding-left: 4px !important; padding-right: 4px !important; pointer-events: none; }
  .main-wrapper { padding-top: 136px; }
}
.dropdown-menu, .mega-menu .dropdown-menu {
  border: 1px solid var(--rule) !important; border-radius: 10px !important; padding: 8px 0 !important;
  box-shadow: 0 14px 36px rgba(22,25,28,.14) !important; min-width: 210px;
}
.mega-menu .dropdown-menu > li { border-bottom: none; }
.mega-menu .dropdown-menu > li > a { font-size: 14px; font-weight: 500; color: var(--ink); padding: 9px 18px !important; }
.mega-menu .dropdown-menu > li > a:hover { color: var(--accent); background: var(--paper); }

/* ---------- hero slider ---------- */
.featured-slider .slider-item .row { margin-left: 0; margin-right: 0; }
.featured-slider .slider-item .col-md-12 { padding-left: 0; padding-right: 0; }
.featured-big { border-radius: 14px; box-shadow: var(--shadow); }
.featured-big, .featured-big a.featured-href, .featured-big img { height: 430px; }
.featured-big img { object-fit: cover; width: 100%; }
.featured-header {
  background: linear-gradient(to top, rgba(18,17,16,.94) 0%, rgba(18,17,16,.6) 50%, rgba(18,17,16,0) 100%) !important;
  padding: 90px 40px 32px !important;
}
.featured-big .featured-header { padding: 90px 40px 32px !important; }
.featured-header .category, .featured-big .category {
  position: static; display: inline-block; margin: 0 0 13px; background: var(--accent);
  border-radius: 999px; font-size: 11px; letter-spacing: .12em; padding: 7px 13px; font-weight: 600; color: #fff;
}
.featured-big .featured-header h2 {
  font-family: var(--serif-display); font-size: 36px; line-height: 1.14; font-weight: 700; margin: 0 0 10px; color: #fff;
}
.featured-header .simple-share, .featured-header .article-date { color: rgba(255,255,255,.72); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.flex-direction-nav a { border-radius: 50%; }
.flex-control-nav { bottom: 18px !important; }

/* ---------- section titles ---------- */
.block-title, .top-title {
  font-family: var(--serif-display); font-size: 25px; font-weight: 700; text-transform: none; letter-spacing: 0;
  color: var(--ink); border-bottom: 1px solid var(--rule); height: auto; line-height: 1.2; padding: 0 0 12px; margin: 34px 0 22px;
}
.block-title span { border-bottom: 3px solid var(--accent); height: auto; line-height: inherit; padding-bottom: 12px; margin-bottom: -13px; }
.block-title a, .block-title a:hover { color: var(--ink); opacity: 1; }
.block-title a:hover { color: var(--accent); }
#latest .block-title { margin-top: 10px; }

/* ---------- cards ---------- */
.news-block {
  background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 30px; transition: transform .2s ease, box-shadow .2s ease;
}
.news-block:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.news-block .image-overlay { background: #e8e5e0; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.news-block .image-overlay img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-block:hover .image-overlay img { transform: scale(1.03); }
.news-details, .big-block .news-details {
  margin: 0 !important; padding: 22px 24px 20px !important; opacity: 1 !important; min-height: 0; background: var(--card);
}
.news-details h4, .news-title, .big-block .news-title, .small-block .news-title {
  font-family: var(--serif-display); font-size: 22px; line-height: 1.25; font-weight: 700; margin: 0 0 10px;
}
.news-details h4 a, .news-title a { color: var(--ink); }
.news-details h4 a:hover, .news-title a:hover { color: var(--accent); }
.news-details p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 12px; font-family: var(--sans); }
.simple-share, .simple-share a, .article-date { color: var(--muted); }
.news-details .simple-share { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.news-details .simple-share .fa { margin-right: 5px; opacity: .6; }
.news-block .category, .news-block .category:hover {
  top: 16px; left: 16px; z-index: 5; background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 11px; letter-spacing: .1em; padding: 7px 13px; font-weight: 600; line-height: 1.3;
}
.paging, .pagination > li > a { border-radius: 999px !important; }

/* ---------- sidebar ---------- */
.sidebar .widget { background: var(--card); border-radius: 14px; padding: 22px 24px 8px; box-shadow: var(--shadow); margin-bottom: 24px; border: none; }
.sidebar .block-title { margin-top: 0; font-size: 20px; margin-bottom: 6px; }
/* advert banners fill their card edge to edge */
.sidebar .author-widget { padding: 0; overflow: hidden; background: var(--card); text-align: left; border: none; }
.sidebar .author-widget img { display: block; width: 100%; height: auto; }
.sidebar .author-widget .author-meta { padding: 20px 24px; }
.eventwidget li { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.eventwidget li:last-child { border-bottom: none; }
.event-date {
  height: auto; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; display: flex; align-items: center;
}
.event-date div { margin: 0; }
.event-date i { display: inline-block; font-size: 7px; line-height: 1; margin-right: 7px; }
.event-side, .event-side.bordercolor {
  display: block; padding: 5px 0 0 !important; border-left: none !important;
  font-family: var(--sans); font-weight: 500; font-size: 15px; line-height: 1.4; color: var(--ink);
}
.event-side:hover { color: var(--accent); }
blockquote {
  font-family: var(--serif-display); font-style: italic; font-weight: 400; color: var(--ink); font-size: 20px; line-height: 1.45;
  padding: 6px 0 6px 22px; border-left: 3px solid var(--accent);
}
blockquote:before, blockquote:after { display: none; }

/* ---------- article ---------- */
.post-title { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 14px; padding: 0; }
.post-wrapper .post-header > p:not(.simple-share) {
  font-family: var(--sans); font-weight: 300; font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 24px; max-width: 720px;
}
.post-wrapper .post-header > .simple-share {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; font-family: var(--sans);
}
.post-wrapper .post-header > .simple-share > span { margin-right: 14px; }
.post-wrapper .post-header > .simple-share .fa { margin-right: 5px; opacity: .6; }
.post-wrapper .image-overlay {
  border-radius: 14px; overflow: hidden; margin-bottom: 32px; background: transparent;
  box-shadow: var(--shadow); min-height: 0; line-height: 0;
}
.post-wrapper .image-overlay img, .post-wrapper .slider-item img { width: 100%; height: 430px; object-fit: cover; }
.post-wrapper .image-overlay .flexslider, .post-wrapper .image-overlay .slider-one { margin: 0 !important; }
.post-wrapper .image-overlay .flex-direction-nav { margin: 0 !important; }
.post-wrapper .image-overlay .flex-viewport, .post-wrapper .image-overlay .slider-item, .post-wrapper .image-overlay .slider-item img { border-radius: 14px; }
.post-wrapper .image-overlay .slider-item .row { margin-left: 0; margin-right: 0; }
.post-wrapper .image-overlay .slider-item .col-md-12 { padding-left: 0; padding-right: 0; }
.post-content { font-family: var(--serif-text); font-size: 18px; line-height: 1.78; color: var(--body); max-width: 720px; }
.post-content p { margin-bottom: 1.3em; }
.post-content a { color: var(--accent); border-bottom: 1px solid rgba(210,55,58,.35); }
.post-content a:hover { color: var(--accent-dark); border-bottom-color: var(--accent-dark); }
.post-content img { max-width: 100%; height: auto; border-radius: 10px; }
.post-content h2, .post-content h3 { margin-top: 1.5em; }
.video-container { border-radius: 12px; overflow: hidden; }
.share-wrapper { border-color: var(--rule); }
.heading-primary { font-size: 22px; }
.tags-widget a, .tagwidget a {
  border-radius: 999px; background: var(--card); border: 1px solid var(--rule); color: var(--muted);
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .06em;
}
.tags-widget a:hover, .tagwidget a:hover { border-color: var(--accent); color: var(--accent); background: var(--card); }
.tagwidget .block-title { border-bottom: none; margin-bottom: 10px; }

/* ---------- footer (legacy blocks kept, restyled) ---------- */
.footer, .footer-main, .footer-bottom { background: var(--footer-bg); color: rgba(255,255,255,.72); }
#go-top-button { background: var(--accent); border-radius: 50%; color: #fff; }

/* ---------- phones ---------- */
@media (max-width: 767px) {
  /* below 410px the theme swaps in a CSS-background mobile mark and shrinks the <img> to a
     30px padded box; keep the real wordmark instead */
  .logo img { height: 40px !important; width: auto !important; padding: 0 !important; background: none !important; position: static !important; }
  .logo .logo-tag { display: none; }
  .logo-tag { display: none; }
  .main-content { padding-top: 20px; }
  .featured-big { border-radius: 12px; }
  .featured-big, .featured-big a.featured-href, .featured-big img, .featured-slider .slider-item img { height: 260px !important; }
  .featured-header, .featured-big .featured-header { padding: 60px 20px 20px !important; }
  .featured-big .featured-header h2 { font-size: 22px; }
  .news-details h4, .news-title, .big-block .news-title { font-size: 20px; }
  .news-details, .big-block .news-details { padding: 18px 18px 16px !important; }
  .post-title { font-size: 29px; }
  .post-wrapper .post-header > p:not(.simple-share) { font-size: 18px; }
  .post-wrapper .image-overlay img, .post-wrapper .slider-item img { height: 220px; }
  .post-content { font-size: 17px; }
  .sidebar .widget { padding: 18px 18px 6px; }
  .sidebar .author-widget { padding: 0; }
}
