/*
Theme Name:   Mars Society Australia
Theme URI:    https://marssociety.org.au
Description:  OceanWP child theme for Mars Society Australia. 
Author:       Mars Society Australia
Author URI:   https://marssociety.org.au
Template:     oceanwp
Version:      2.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  oceanwp-mars-child
*/

/* ============================================================
   DESIGN TOKENS

   - White (#ffffff) page body
   - Black (#000000) header & footer
   - NASA Red (#e8102a) for all accents, CTAs, circle arrows
   - Inter / Helvetica — 800–900 weight headings, sentence case
   - Near-zero colour use in body — only photos bring colour
   ============================================================ */

:root {
  --black:          #000000;
  --white:          #ffffff;
  --nasa-red:       #e8102a;
  --nasa-red-hover: #c5001f;
  --body-bg:        #ffffff;
  --section-alt:    #f5f5f5;
  --border-light:   #e8e8e8;
  --text-primary:   #000000;
  --text-secondary: #444444;
  --text-muted:     #666666;
  --text-on-dark:   rgba(255,255,255,0.85);
  --text-muted-dark:rgba(255,255,255,0.55);

  --font-main:   'Inter', system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --radius-btn:  3px;
  --radius-icon: 50%;

  --max-width:   1280px;
  --gutter:      48px;

  --transition:  0.2s ease;
}

/* ============================================================
   BASE RESET
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--body-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* ============================================================
   TYPOGRAPHY — NASA.gov uses heavy weight, sentence case
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; font-weight: 800; }
h5 { font-size: 1rem;    font-weight: 800; letter-spacing: -0.01em; }
h6 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 0.5em;
}

p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 1em;
}

/* "X MIN READ" label — NASA.gov style */
.min-read,
.entry-read-time,
.post-read-time {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 6px;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container,
.oceanwp-row,
.elementor-section > .elementor-container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Full-bleed sections need no inner constraint */
.full-bleed { width: 100%; }

/* ============================================================
   HEADER — Black bar, centred logo, nav right
   Mirrors: NASA.gov exactly
   ============================================================ */

#site-header,
.site-header {
  background: var(--black) !important;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: none !important;
  box-shadow: none !important;
}

#site-header .inner-header,
.site-header .inner-header {
  max-width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: relative;
}

/* LEFT: Explore + Search */
.header-utility-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

/* CENTRE: Logo */
#site-logo,
.site-logo-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

#site-logo .custom-logo {
  height: 50px;
  width: auto;
}

/* Site title fallback (if no custom logo) */
.site-title {
  font-family: var(--font-main) !important;
  font-size: 0.875rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: var(--white) !important;
  line-height: 1.1 !important;
}

.site-title a { color: var(--white) !important; }

.site-description {
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--nasa-red);
  display: block;
}

/* RIGHT: Nav */
#site-navigation,
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

#site-navigation ul,
.main-navigation ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

#site-navigation ul li a,
.main-navigation ul li a {
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white) !important;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

#site-navigation ul li a:hover,
.main-navigation ul li a:hover {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none;
}

/* "LIVE" badge on last nav item */
#site-navigation ul li:last-child a::after,
.main-navigation ul li:last-child a::after {
  content: 'LIVE';
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--nasa-red);
  border: 1.5px solid var(--nasa-red);
  padding: 2px 4px;
  border-radius: 2px;
  margin-left: 4px;
}

/* Dropdowns */
#site-navigation .sub-menu,
.main-navigation .sub-menu {
  background: #111 !important;
  border-top: 2px solid var(--nasa-red);
  border-radius: 0;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

#site-navigation .sub-menu li a,
.main-navigation .sub-menu li a {
  font-size: 0.8125rem !important;
  padding: 10px 18px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.75);
}

#site-navigation .sub-menu li a:hover,
.main-navigation .sub-menu li a:hover {
  background: #222 !important;
  color: var(--white) ;
}

/* Search in header */
.header-search input[type="search"],
#search-form input[type="search"] {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-btn);
  color: var(--white);
  padding: 7px 14px;
  font-size: 0.8125rem;
  font-family: var(--font-main);
  width: 220px;
  outline: none;
}

.header-search input::placeholder { color: rgba(255,255,255,0.4); }

.header-search input:focus {
  border-color: rgba(255,255,255,0.7);
}

/* Mobile hamburger */
#oceanwp-mobile-menu-icon button,
.mobile-menu-icon button {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-btn);
  color: var(--white);
  padding: 6px 10px;
}

/* Mobile menu panel */
.sidr,
.mobile-menu-sidebar {
  background: #111 !important;
}

.sidr a,
.mobile-menu-sidebar a {
  color: rgba(255,255,255,0.8) !important;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidr a:hover { color: var(--white) !important; background: #222 !important; }

/* ============================================================
   ALERT / LIVE TICKER BAR (below header)
   ============================================================ */

.mars-alert-bar,
.live-alert-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 14px var(--gutter);
}

.mars-alert-bar .alert-label {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.mars-alert-bar .alert-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
}

.mars-alert-bar .alert-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex: 1;
}

.mars-alert-bar .alert-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex: 1.5;
  line-height: 1.55;
}

/* ============================================================
   CIRCLE ARROW — NASA.gov's signature red circle button
   ============================================================ */

.circle-arrow,
.mars-circle-arrow,
a.circle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-icon);
  background: var(--nasa-red);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}

.circle-arrow:hover,
.mars-circle-arrow:hover {
  background: var(--nasa-red-hover);
  transform: scale(1.08);
  color: var(--white);
  text-decoration: none;
}

/* Larger variant for hero CTAs */
.circle-arrow-lg {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}

/* ============================================================
   PAGE HEADER / BREADCRUMBS (OceanWP)
   ============================================================ */

#page-header,
.oceanwp-page-header {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border-light);
  padding: 32px var(--gutter);
}

#page-header h1,
.oceanwp-page-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.025em;
}

.breadcrumbs,
.site-breadcrumbs {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 6px;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--nasa-red); }

/* ============================================================
   HERO — Full-bleed photo, bottom-left text (NASA style)
   ============================================================ */

.hero-section,
#hero,
.elementor-section.msa-hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #0d1a2e; /* fallback before image loads */
}

/* Gradient overlay: dark bottom-left, transparent top-right */
.hero-section::before,
.elementor-section.msa-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.35) 55%,
    rgba(0,0,0,0.1) 100%
  ),
  linear-gradient(
    to top,
    rgba(0,0,0,0.5) 0%,
    transparent 50%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-section .hero-content,
.elementor-section.msa-hero .elementor-container {
  position: relative;
  z-index: 2;
  padding-bottom: 100px; /* room for strip */
}

/* Hero title — massive weight */
.hero-section h1,
.elementor-section.msa-hero .elementor-heading-title {
  font-size: clamp(3.5rem, 7vw, 6rem) !important;
  font-weight: 900 !important;
  color: var(--white) !important;
  letter-spacing: -0.04em !important;
  line-height: 0.95 !important;
  max-width: 620px;
  text-shadow: none;
}

/* Hero paragraph */
.hero-section p,
.elementor-section.msa-hero .elementor-widget-text-editor p {
  font-size: 1.125rem !important;
  color: rgba(255,255,255,0.88) !important;
  max-width: 480px;
  line-height: 1.6 !important;
  font-weight: 400 !important;
}

/* Hero CTA button — solid red, no border-radius fanciness */
.hero-section .elementor-button,
.hero-section .btn-hero,
.elementor-section.msa-hero .elementor-button {
  background: var(--nasa-red) !important;
  color: var(--white) !important;
  font-family: var(--font-main) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  padding: 14px 26px !important;
  border-radius: var(--radius-btn) !important;
  border: none !important;
  transition: background var(--transition) !important;
  text-transform: none !important;
}

.hero-section .elementor-button:hover,
.elementor-section.msa-hero .elementor-button:hover {
  background: var(--nasa-red-hover) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Hero bottom strip — dark translucent bar with related links */
.hero-strip,
.msa-hero-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(4px);
  display: flex;
}

.hero-strip-item {
  flex: 1;
  padding: 16px 28px;
  border-right: 1px solid rgba(255,255,255,0.14);
}

.hero-strip-item:last-child { border-right: none; }

.strip-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 5px;
}

.strip-link {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.strip-link:hover { color: rgba(255,255,255,0.75); }
.strip-link .circle-arrow { width: 22px; height: 22px; font-size: 0.7rem; }

/* ============================================================
   SECTION HEADERS — NASA style: bold left-aligned title +
   "Recently Published →" on right
   ============================================================ */

.msa-section-header,
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.msa-section-title,
.section-header-row h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin: 0;
}

.msa-section-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.msa-section-link:hover { color: var(--nasa-red); }

/* ============================================================
   NEWS CARDS — Full-bleed photo, gradient overlay, white text
   NASA.gov: 3-col asymmetric grid (large | medium | 2×small)
   ============================================================ */

.msa-news-grid,
.featured-news-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 0.55fr;
  gap: 4px;
  height: 440px;
}

.msa-news-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msa-news-right .news-card { flex: 1; }

/* Card base */
.news-card,
.msa-card {
  position: relative;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

/* Photo layer */
.news-card .card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .card-photo {
  transform: scale(1.04);
}

/* Gradient overlay */
.news-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(0,0,0,0.0) 100%
  );
}

/* Card content — always bottom-left */
.news-card .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 20px;
  z-index: 1;
}

/* Category type label */
.card-type-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.card-type-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: rgba(255,255,255,0.65);
  flex-shrink: 0;
  font-weight: 800;
}

.card-title {
  font-family: var(--font-main);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.news-card.card-large .card-title  { font-size: 1.375rem; }
.news-card.card-medium .card-title { font-size: 1.25rem;  }
.news-card.card-small .card-title  { font-size: 1.0625rem; }

/* Hover: subtle overlay shift */
.news-card:hover .card-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.05) 100%
  );
}

/* ============================================================
   SMALL NEWS LIST (4-col thumbnails below featured)
   ============================================================ */

.msa-small-news {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 32px 0 0;
}

.small-news-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

.small-news-thumb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #ddd;
}

.small-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-news-meta {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.small-news-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.small-news-item:hover .small-news-title {
  color: var(--nasa-red);
}

/* ============================================================
   TOPIC / SCIENCE GRID — 4 cards, darker style
   ============================================================ */

.msa-topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.topic-card {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #222;
  cursor: pointer;
}

.topic-card .card-photo,
.topic-card .topic-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.topic-card:hover .card-photo,
.topic-card:hover .topic-bg { transform: scale(1.05); }

.topic-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 70%);
}

.topic-card .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.topic-card .card-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.015em;
  line-height: 1.2;
  flex: 1;
  padding-right: 10px;
}

/* ============================================================
   FEATURE CALLOUT — Two-col, grey bg, "Learn More →"
   ============================================================ */

.msa-callout,
.feature-callout-section {
  background: var(--section-alt);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.msa-callout-text {
  padding: 64px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.msa-callout-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.msa-callout-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.msa-callout-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 440px;
}

.msa-learn-more {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
}

.msa-learn-more:hover { color: var(--nasa-red); }
.msa-learn-more:hover .circle-arrow { background: var(--nasa-red-hover); }

.msa-callout-image {
  overflow: hidden;
  background: #222; /* placeholder */
}

.msa-callout-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   CONTENT SECTIONS — White background with padding
   ============================================================ */

.msa-section {
  padding: 52px var(--gutter);
  background: var(--white);
}

.msa-section-alt {
  padding: 52px var(--gutter);
  background: var(--section-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ============================================================
   BLOG / ARCHIVE POSTS
   ============================================================ */

#content-wrap { background: var(--white); }

#main { padding: 0px 0; }

article.type-post,
.blog-entry {
  margin-bottom: 2px;
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  transition: background var(--transition);
}

article.type-post:hover,
.blog-entry:hover { background: var(--section-alt); }

/* Featured image */
.blog-entry .blog-entry-header,
.blog-entry .post-thumbnail {
  overflow: hidden;
  height: 180px;
}

.blog-entry .blog-entry-header img,
.blog-entry .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-entry:hover .post-thumbnail img { transform: scale(1.04); }

.blog-entry .blog-entry-content,
.blog-entry .entry-content-wrap {
  padding: 24px 28px;
}

/* Category chip */
.blog-entry .cat-links a,
.entry-category {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 6px;
}

/* Post title */
.blog-entry .entry-title,
.blog-entry .entry-title a {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  margin: 0 0 8px !important;
}

.blog-entry .entry-title a:hover { color: var(--nasa-red) !important; text-decoration: none; }

/* Post meta */
.entry-meta,
.blog-entry-meta {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ============================================================
   SINGLE POST
   ============================================================ */

.single-post #content {
  max-width: 740px;
  margin: 48px auto;
  padding: 0 var(--gutter);
}

.single-post .entry-title {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.08 !important;
  color: var(--text-primary) !important;
  margin-bottom: 20px !important;
}

.single-post .entry-content p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

#sidebar .widget,
.widget {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 24px;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.14em !important;
  color: var(--text-muted) !important;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 16px !important;
}

.widget ul li a {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}

.widget ul li a:hover { color: var(--nasa-red); text-decoration: none; }

/* ============================================================
   BUTTONS
   ============================================================ */

.button,
.btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  font-family: var(--font-main) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  padding: 13px 26px !important;
  border-radius: var(--radius-btn) !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background var(--transition) !important;
  text-decoration: none;
  display: inline-block;
}

/* Primary — NASA red */
.button,
.btn,
.wp-block-button__link,
input[type="submit"] {
  background: var(--nasa-red) !important;
  color: var(--white) !important;
  border: none !important;
}

.button:hover,
.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  background: var(--nasa-red-hover) !important;
  color: var(--white) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Ghost / outline */
.button-ghost,
.btn-ghost {
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 2px solid var(--text-primary) !important;
}

.button-ghost:hover {
  background: var(--text-primary) !important;
  color: var(--white) !important;
}

/* ============================================================
   FORMS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
textarea,
select {
  font-family: var(--font-main);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid #ccc;
  border-radius: var(--radius-btn);
  padding: 11px 16px;
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--nasa-red);
}

label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

/* CF7 / WPForms */
.wpcf7-submit, .wpforms-submit {
  background: var(--nasa-red) !important;
  color: var(--white) !important;
  font-family: var(--font-main) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.01em !important;
  padding: 13px 28px !important;
  border: none !important;
  border-radius: var(--radius-btn) !important;
  cursor: pointer !important;
}

.wpcf7-submit:hover, .wpforms-submit:hover {
  background: var(--nasa-red-hover) !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.page-numbers {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 40px 0;
}

.page-numbers a,
.page-numbers span {
  font-family: var(--font-main);
  font-size: 0.8125rem;
  font-weight: 700;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-light);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition);
}

.page-numbers a:hover { border-color: var(--nasa-red); color: var(--nasa-red); }
.page-numbers span.current { background: var(--nasa-red); color: var(--white); border-color: var(--nasa-red); }

/* ============================================================
   ELEMENTOR GLOBAL OVERRIDES
   ============================================================ */

/* Section backgrounds */
.elementor-section.msa-white   { background: var(--white) !important; }
.elementor-section.msa-grey    { background: var(--section-alt) !important; }
.elementor-section.msa-black   { background: var(--black) !important; }

/* Default section padding to match NASA spacing */
.elementor-section.msa-section > .elementor-container {
  padding-top: 52px;
  padding-bottom: 52px;
}

/* Headings */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-main) !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
}

/* Text */
.elementor-widget-text-editor p {
  font-family: var(--font-main) !important;
  color: var(--text-secondary) !important;
}

/* Image */
.elementor-widget-image img { border-radius: 0; }

/* Buttons */
.elementor-button {
  font-family: var(--font-main) !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  border-radius: var(--radius-btn) !important;
}

.elementor-button.elementor-button-link {
  background: var(--nasa-red) !important;
  color: var(--white) !important;
}

.elementor-button.elementor-button-link:hover {
  background: var(--nasa-red-hover) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Divider */
.elementor-divider-separator { border-color: var(--border-light) !important; }

/* Counter — NASA has no counter widget but if used */
.elementor-counter-number-wrapper {
  font-family: var(--font-main) !important;
  font-weight: 900 !important;
  color: var(--text-primary) !important;
}

/* Posts grid widget */
.elementor-posts .elementor-post__title a {
  font-family: var(--font-main) !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  letter-spacing: -0.015em !important;
  font-size: 1.0625rem !important;
}

.elementor-posts .elementor-post__title a:hover { color: var(--nasa-red) !important; }

/* ============================================================
   FOOTER — Black, NASA meatball top-left, multi-col nav
   ============================================================ */

#footer,
.site-footer {
  background: var(--black) !important;
}

/* Footer widget area */
#footer-widgets {
  background: var(--black) !important;
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr auto;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

#footer-widgets .widget,
.footer-widget {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.footer-widget .widget-title,
#footer-widgets .widget-title {
  font-size: 0 !important; /* hide default widget title */
  display: none !important;
}

/* Footer links */
#footer-widgets a,
#footer-widgets p,
.footer-widget a,
.footer-widget p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  display: block;
  margin-bottom: 2px;
  text-decoration: none;
}

#footer-widgets a:hover,
.footer-widget a:hover {
  color: var(--white);
  text-decoration: none;
}

/* Footer about text */
.footer-about p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* Follow / social row */
.footer-follow-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.42);
  margin-bottom: 14px;
  display: block;
}

.footer-social-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}

.footer-social-icon:hover { background: rgba(255,255,255,0.2); }

/* Footer bottom bar */
#footer-bottom {
  background: var(--black) !important;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#footer-bottom p,
#footer-bottom span,
.footer-bottom-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  padding: 3px 14px;
  border-right: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
}

.footer-bottom-links a:first-child { padding-left: 0; }
.footer-bottom-links a:last-child { border-right: none; }
.footer-bottom-links a:hover { color: var(--white); }

/* Acknowledgement of Country */
.acknowledgement-of-country {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.32);
  text-align: center;
  padding: 12px var(--gutter) 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-style: italic;
  line-height: 1.65;
  background: var(--black);
}

/* ============================================================
   TABLES
   ============================================================ */

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  text-align: left;
}
tbody td { padding: 10px 16px; border-bottom: 1px solid var(--border-light); }
tbody tr:hover { background: var(--section-alt); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Section label — "MISSION UPDATES" small caps above heading */
.msa-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

/* Red underline accent */
.msa-underline {
  display: inline-block;
  border-bottom: 3px solid var(--nasa-red);
  padding-bottom: 2px;
}

/* NASA red text */
.text-red { color: var(--nasa-red) !important; }

/* "Recently published" link style */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.link-arrow:hover { color: var(--nasa-red); }
.link-arrow:hover .circle-arrow { background: var(--nasa-red-hover); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  :root { --gutter: 32px; }

  .msa-news-grid,
  .featured-news-grid {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .msa-news-right {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .msa-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .msa-callout     { grid-template-columns: 1fr; }
  .msa-callout-image { min-height: 280px; }
  .msa-small-news  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  #site-header .inner-header { padding: 0 20px; }

  .hero-section { min-height: 440px; }

  .hero-section h1,
  .elementor-section.msa-hero .elementor-heading-title {
    font-size: 3rem !important;
  }

  .msa-news-grid { grid-template-columns: 1fr; height: auto; }
  .msa-news-grid .news-card { height: 260px; }
  .msa-news-right { flex-direction: column; }

  .hero-strip { display: none; }

  .msa-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }

  .msa-callout-text { padding: 40px var(--gutter); }

  .msa-topics-grid { grid-template-columns: 1fr 1fr; }

  #footer-widgets {
    grid-template-columns: 1fr 1fr;
    padding: 36px var(--gutter);
  }
}

@media (max-width: 480px) {
  .msa-small-news { grid-template-columns: 1fr; }
  .msa-topics-grid { grid-template-columns: 1fr; }
  #footer-widgets { grid-template-columns: 1fr; }

  article.type-post,
  .blog-entry { grid-template-columns: 1fr; }
}
