/* =====================================================
   FONTS & TYPOGRAPHY
===================================================== */

/* Google Font: Primary body font */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Eastman Grotesque (local font family for headings) */
@font-face {
  font-family: 'Eastman-Grotesque';
  src: url('../fonts/Eastman-Grotesque-Light-trial.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Eastman-Grotesque';
  src: url('../fonts/Eastman-Grotesque-Demi-Bold-trial.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Eastman-Grotesque';
  src: url('../fonts/Eastman-Grotesque-Bold-trial.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

/* Base typography */
body {
  background-color: #272c69;
  color: #212721;
  font-family: 'Nunito Sans', sans-serif;
}

/* Headings use Eastman Grotesque */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Eastman-Grotesque', sans-serif;
}

/* Link styling */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Navigation links */
.nav-link {
  text-transform: uppercase;
  font-size: small;
}


/* =====================================================
   LAYOUT STRUCTURE (HEADER / MAIN / FOOTER)
===================================================== */

header {
  background-color: #272c69;
  color: white;
  text-align: center;
  padding: 1.25rem 0;
  border-bottom: #e25425 5px solid;
}

main { 
  background-color: white;
}

footer {
  background-color: #e25425;
  color: white;
  text-align: center;
  padding: 1.25rem 0;
}


/* =====================================================
   HEADER BEHAVIOR (SHRINK ON SCROLL)
===================================================== */

/* Default header */
#siteHeader {
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

/* Shrunk header state */
#siteHeader.shrink {
  padding: 0.2rem 0;
}

/* Logo sizing */
#siteHeader img {
  height: 40px;
  transition: all 0.3s ease;
}

#siteHeader.shrink img {
  height: 30px;
}

/* Remove Bootstrap focus outline from toggler */
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
  outline: none;
  box-shadow: none;
}


/* =====================================================
   FOOTER TYPOGRAPHY OVERRIDES
===================================================== */

/* Footer uses Nunito Sans for body text */
footer,
.footer {
  font-family: 'Nunito Sans', sans-serif;
}

/* Footer headings use Eastman */
footer h3,
.footer h3 {
  font-family: 'Eastman-Grotesque', sans-serif;
  font-weight: 500;
}

/* Footer body text + links */
footer p,
footer a,
.footer p,
.footer a {
  font-family: 'Nunito Sans', sans-serif;
}

/* Force consistent heading behavior in footer */
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
  font-family: 'Eastman-Grotesque', sans-serif;
  font-weight: 500;
  cursor: default;
}

/* Footer logo styling */
.footer-logo {
  cursor: default;
}

.footer-logo h3 {
  font-family: 'Eastman-Grotesque', sans-serif;
  font-weight: 500;
}


/* =====================================================
   POST TEMPLATE (CORE STRUCTURE)
===================================================== */

/* Category / kicker label */
.post-kicker {
  color: #e25425;
  letter-spacing: 0.08em;
}

/* Hero section background (final override version) */
.post-hero {
  background: #ffffff;
}

/* Placeholder (used before dynamic image was added) */
.post-image-placeholder {
  min-height: 420px;
  background: linear-gradient(135deg, #272c69 0%, #722a81 55%, #e25425 100%);
  color: white;
}

/* Main post content wrapper */
.post-content {
  background-color: #ffffff;
}

/* Typography inside content */
.post-content p,
.post-content li {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Heading spacing inside content */
.post-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}


/* =====================================================
   POST CTA (CALL TO ACTION)
===================================================== */

.post-cta {
  background: linear-gradient(135deg, #272c69 0%, #722a81 55%, #e25425 100%);
  color: white;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

/* CTA button styling */
.post-cta .btn {
  font-weight: 600;
  transition: all 0.2s ease;
}

/* CTA button hover */
.post-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* CTA glow overlay */
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1), transparent 40%);
  pointer-events: none;
}


/* =====================================================
   RELATED POSTS (CARD SYSTEM)
===================================================== */

/* Card image (basic setup) */
.post-related .card-img-top {
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
}

/* Card hover movement */
.post-related .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-related .card:hover {
  transform: translateY(-4px);
}

/* Additional image handling (wrapper-based system) */
.post-related .card img {
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Ensure block display */
.post-related .card-img-top {
  display: block;
}

/* Optional hover zoom (currently disabled visually by choice) */
.post-related .card-img-wrap img {
  transition: transform 0.3s ease;
}

.post-related .card:hover .card-img-wrap img {
  transform: scale(1.05);
}


/* =====================================================
   FEATURE CARDS (REUSABLE COMPONENT)
===================================================== */

/* Base feature card styling */
.hdg-feature-card {
  background: linear-gradient(135deg, #272c69 0%, #722a81 55%, #e25425 100%);
  color: white;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Decorative glow shapes */
.hdg-feature-card::before,
.hdg-feature-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hdg-feature-card::before {
  width: 220px;
  height: 220px;
  top: -80px;
  left: -80px;
  background: rgba(255, 255, 255, 0.08);
}

.hdg-feature-card::after {
  width: 200px;
  height: 200px;
  bottom: -80px;
  right: -80px;
  background: rgba(255, 255, 255, 0.05);
}

/* Hover effect */
.hdg-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.2);
}

/* Icon styling */
.icon-wrap i {
  color: #ffffff;
  opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}