/*
Theme Name: MH Magazine Lite Child
Template: mh-magazine-lite
Version: 1.0
Description: Celloraa News custom child theme. All customizations live here so theme updates never overwrite them.
*/

/* =====================================================
   CELLORAA NEWS — CUSTOM THEME
   Navy primary (#0a1e3f) · Red breaking accent (#dc2626)
   Sections are independent — remove any block to revert it.
   ===================================================== */

:root {
  --cel-navy:       #0a1e3f;
  --cel-navy-deep:  #061429;
  --cel-navy-light: #16335f;
  --cel-red:        #dc2626;
  --cel-gold:       #e0a838;
  --cel-text:       #1a1a1a;
  --cel-muted:      #667085;
  --cel-border:     #e6e8ec;
  --cel-bg:         #f4f5f7;
}

/* ============ 1. HEADER BANNER ============ */
/* Replace the stock header image with the Celloraa banner */
.mh-custom-header {
  background-image: url('images/Celloraa_Header.png') !important;
  background-size: cover !important;        /* fill the shorter band */
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: var(--cel-navy-deep) !important;
  height: 230px !important;                 /* ~1/4 screen instead of full tall banner */
  min-height: 0 !important;
  width: 100%;
  max-width: 1280px;             /* matches the wider container */
  margin: 0 auto;
}

/* Shorter header on smaller screens */
@media (max-width: 768px) {
  .mh-custom-header { height: 130px !important; }
}

/* The banner already contains the wordmark + tagline — hide the text versions */
.mh-header-text,
.mh-header-title,
.mh-header-tagline {
  display: none !important;
}

/* Remove any default min-height that leaves empty space */
.mh-header {
  background: #ffffff;
}

/* ============ 2. NAVIGATION — NAVY ============ */
.mh-navigation,
.mh-main-nav,
.mh-main-nav-wrap {
  background-color: var(--cel-navy) !important;
  border: none !important;
}

/* Top accent line: subtle red breaking-news strip */
.mh-main-nav-wrap {
  border-top: 3px solid var(--cel-red) !important;
}

/* Nav links */
.mh-main-nav .menu > li > a {
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 14px;
  border-bottom: 3px solid transparent;   /* reserve space so layout doesn't shift */
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Hover + current page — gold accent + underline (premium news-site look) */
.mh-main-nav .menu > li > a:hover,
.mh-main-nav .menu > li.current-menu-item > a,
.mh-main-nav .menu > li:hover > a {
  background-color: var(--cel-navy-light) !important;
  color: var(--cel-gold) !important;
  border-bottom: 3px solid var(--cel-gold) !important;
}

/* Submenu (dropdown) */
.mh-main-nav .sub-menu {
  background-color: var(--cel-navy) !important;
  border-top: 2px solid var(--cel-red) !important;
}
.mh-main-nav .sub-menu li a {
  color: #e8edf5 !important;
}
.mh-main-nav .sub-menu li a:hover {
  background-color: var(--cel-navy-light) !important;
}

/* ============ 3. TYPOGRAPHY ============ */
body {
  color: var(--cel-text);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--cel-bg);
}

/* Headlines — confident, tight */
h1, h2, h3, h4,
.entry-title, .mh-loop-title {
  color: var(--cel-navy) !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px;
  line-height: 1.25 !important;
}

/* Article post titles + hover */
.entry-title a, .mh-loop-title a {
  color: var(--cel-navy) !important;
  transition: color 0.2s ease;
}
.entry-title a:hover, .mh-loop-title a:hover {
  color: var(--cel-red) !important;
}

/* Body links */
.entry-content a {
  color: var(--cel-navy-light);
  text-decoration: underline;
}
.entry-content a:hover {
  color: var(--cel-red);
}

/* Body paragraph readability */
.entry-content p {
  margin-bottom: 1.25em;
  font-size: 16.5px;
}

/* ============ 4. CATEGORY LABELS — RED BREAKING ACCENT ============ */
.mh-meta-category a,
.post-categories a,
span.mh-category a {
  background-color: var(--cel-red) !important;
  color: #ffffff !important;
  padding: 2px 9px !important;
  border-radius: 3px;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ 5. CARDS & SPACING ============ */
.mh-content, .mh-sidebar {
  background: #ffffff;
}

/* Subtle separation on article loop items */
article.mh-loop-item {
  border-bottom: 1px solid var(--cel-border);
  padding-bottom: 22px;
  margin-bottom: 22px;
}

/* Widget titles in sidebar — navy with red underline */
.widget-title, .mh-widget-title {
  color: var(--cel-navy) !important;
  border-bottom: 2px solid var(--cel-red) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Buttons (search etc.) */
.search-submit, button, input[type="submit"] {
  background-color: var(--cel-navy) !important;
  color: #fff !important;
  border: none !important;
  transition: background 0.2s ease;
}
.search-submit:hover, button:hover, input[type="submit"]:hover {
  background-color: var(--cel-red) !important;
}

/* ============ 6. FOOTER ============ */
.mh-footer, #mh-footer {
  background-color: var(--cel-navy-deep) !important;
  color: #c6d0e0;
}
.mh-footer a { color: #ffffff !important; }

/* ============ 7. MOBILE RESPONSIVE ============ */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .entry-title, .mh-loop-title { font-size: 22px !important; }
}

/* =====================================================
   8. SLIGHTLY WIDER LAYOUT (safe, single-selector)
   MH Magazine Lite controls the whole layout via ONE rule:
   .mh-container { max-width: 1080px }. Everything inside scales
   proportionally, so we only override that one value. We do NOT
   touch content/sidebar widths or the header (that broke alignment
   before). 1280px fits a 970x250 billboard + 300x600 sidebar while
   keeping text line-length readable.
   ===================================================== */
.mh-container,
.mh-container-inner {
  max-width: 1280px !important;
}