/*
Theme Name: Black Earth
Theme URI: https://benedictaantwiboasiako.com
Author: Benedicta Antwi Boasiako
Author URI: https://benedictaantwiboasiako.com
Description: Custom portfolio theme built for Benedicta’s professional website.
Version: 1.0
Text Domain: black-earth
*/


/* -------- 0) Base -------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Source+Serif+4:wght@700&display=swap');

:root{
  --ink:#0B1320;
  --blue:#1E3A8A;
  --hero-image:url('assets/bg/source-earth.jpg');

  --header-h:84px;
  --footer-h:56px;          /* change this to adjust belt height */

  /* NEW: unify overlay transparencies so header/footer match */
  --header-veil: linear-gradient(
    to bottom,
    rgba(9,16,27,.75) 20%,
    rgba(9,16,27,.35) 70%,
    rgba(11,19,32,.56) 100%
  );
  --footer-veil: linear-gradient(
    to top,
    rgba(11,19,32,.86) 0%,
    rgba(11,19,32,.55) 60%,
    rgba(11,19,32,0) 100%
  );

  /* footer colors (unchanged) */
  --footer-bg: #0b1320e8;
  --footer-fg: #FFFFFF;
}

/* Single global image behind everything (HOME uses this) */
body::before{
  content:"";
  position:fixed; inset:0; z-index:-2;
  background-image:var(--hero-image);
  background-size:cover; background-position:center 45%;
  background-repeat:no-repeat;
}

/* Kill the global background image on non-home pages */
body:not(.home)::before { content: none !important; }

/* ====== BODY BACKGROUNDS (FIX #1) ====== */
/* Base body: text defaults only (no decorative background) */
body{
  margin:0; color:var(--ink);
  font:16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
/* Home only: soft ambient gradients */
body.home{
  background:
    radial-gradient(1200px 700px at 85% 6%, rgba(201,216,240,.14), transparent 60%),
    linear-gradient(180deg, #F8FAFD 0%, #EFF3F7 100%);
}
/* Inner pages: calm light canvas */
body:not(.home){ background:#F6F8FB; }

/* -------- 1) Global HEADER (dark readable band) -------- */

/* Non-home: header gets the image behind it */
body:not(.home) .site-header{
  background: transparent !important;
  position: sticky; top: 0; z-index: 1000; isolation: isolate;
}
body:not(.home) .site-header::before{
  /* the photo sits under the veil (z-index:-2) */
  content:""; position:absolute; inset:0; z-index:-2;
  background-image: var(--hero-image);
  background-size: cover; background-position: center 45%; background-repeat: no-repeat;
  filter: saturate(.95) contrast(.95);
}

header.site-header,
.site-header{
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  color: #fff; background: transparent; isolation: isolate;

  /* make the header itself a flex row */
  display: flex; align-items: center;
}

/* NEW (FIX #2): single, consistent dark veil for header on ALL pages */
.site-header::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background: var(--header-veil);
  pointer-events: none;
}

.site-header,
.site-header .container{
  display:flex;
  align-items:center;            /* not 'right' */
  justify-content:flex-end;      /* shove contents (the nav) to the right */
}

/* hide theme site title/branding (NOT the admin bar) */
.site-header .site-branding,
.site-header .site-title,
.site-header .site-title a{ display:none !important; }

/* push nav block to the RIGHT */
.site-header #site-navigation,
.site-header .main-navigation{ margin-left:auto !important; }

/* horizontal nav, right-aligned */
.site-header #site-navigation > ul,
.site-header .main-navigation > ul,
.site-header .menu{
  display:flex !important; align-items:center !important; gap:28px !important;
  margin:0 !important; padding:0 !important; list-style:none !important;

  /* critical: let the list fill the row so it can align right */
  flex:1 1 auto;                /* let it fill the row */
  width:100%;
  justify-content:flex-end;

  float:none !important;
}

/* links */
.site-header .menu a,
.site-header .main-navigation a,
.site-header #site-navigation a{
  color:#fff !important; text-decoration:none !important;
  font-weight:500 !important; line-height:1 !important;
  padding:15px 0 !important; position:relative !important; display:block !important;
}

/* --- ACTIVE MENU ITEM STYLE (for current page) --- */
.site-header .menu .current-menu-item > a,
.site-header .main-navigation .current-menu-item > a,
.site-header #site-navigation .current-menu-item > a {
  color: #1E90FF !important;            /* your accent color */
  font-weight: 600 !important;
  position: relative;
}

/* Optional: thicker underline for the active link */
.site-header .menu .current-menu-item > a::after,
.site-header .main-navigation .current-menu-item > a::after,
.site-header #site-navigation .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: #1E90FF;                  /* same accent */
  opacity: 1;                           /* visible always */
  transform: none;
}

/* underline on hover/active */
.site-header .menu a::after,
.site-header .main-navigation a::after,
.site-header #site-navigation a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background: currentColor; opacity:0; transform: translateY(2px);
  transition: opacity .15s, transform .15s;
}

/* no hamburger on desktop */
.menu-toggle{ display:none !important; }

.site-header nav a::after {
  height: 3px; /* slightly thicker */
}
.site-header nav a:hover::after {
  opacity: 1;
  background: #fff;
}

/* -------- 2) HOME HERO — true center + tight line spacing -------- */
/* Center the hero text perfectly on the page */
.hero {
  display: flex;                 /* activates flexible alignment */
  flex-direction: column;        /* stack h1 and p vertically */
  justify-content: center;       /* vertical centering */
  align-items: center;           /* horizontal centering */
  min-height: 72vh;             /* fill the full viewport height */
  text-align: center;
}

/* Main heading style */
.hero h1 {
  font-size: clamp(42px, 6vw, 68px); /* responsive scaling */
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;                 /* tighten vertical space */
  margin-bottom: 0.4em;             /* slight gap before roles */
  color: #fff;
}

/* Role line style */
.hero .roles {
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.92);
  margin-top: 0;                    /* remove excess space */
}

/* ===== CTA CARD STYLES (Option 2: Solid + Outline) =================== */
/* ===== Subtle Dark Cards for CTAs ===== */

.hero .cta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  justify-content: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none !important;
  color: #fff !important;
  background: rgba(15, 25, 45, 0.75); /* semi-dark background */
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.btn:hover {
  background: rgba(30, 144, 255, 0.8); /* slight blue tint on hover */
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  background: rgba(30, 144, 255, 0.8);
}

.btn-primary:hover {
  background: rgba(30, 144, 255, 1);
}

/* Slightly different tint for contrast */
.btn-ghost {
  background: rgba(15, 25, 45, 0.75);
}
.btn-ghost:hover {
  background: rgba(30, 144, 255, 0.8);
}

/* Mobile layout */
@media (max-width:640px) {
  .hero .cta {
    flex-wrap: wrap;
    gap: 12px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===================== 3) FOOTER ===================== */

/* HOME: solid dark belt (unchanged behavior) */
body.home footer,
body.home .site-footer,
body.home #colophon{
  background: var(--footer-bg);
}

/* HOME: ensure no photo layers */
body.home footer::before,
body.home .site-footer::before,
body.home #colophon::before,
body.home footer::after,
body.home .site-footer::after,
body.home #colophon::after{
  content:none !important;
}

/* INNER PAGES: image + matching veil (consistent with header) */
body:not(.home) footer,
body:not(.home) .site-footer,
body:not(.home) #colophon{
  background: transparent !important;  /* no solid fill */
  isolation: isolate;
}
body:not(.home) footer::before,
body:not(.home) .site-footer::before,
body:not(.home) #colophon::before{
  content:""; position:absolute; inset:0; z-index:-2;
  background-image: var(--hero-image);
  background-size: cover; background-position: center 80%;
  background-repeat: no-repeat;
}
body:not(.home) footer::after,
body:not(.home) .site-footer::after,
body:not(.home) #colophon::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background: var(--footer-veil);
  pointer-events:none;
}

/* Footer structure (FIX #3: no background here) */
footer, .site-footer, footer.site-footer, #colophon{
  position: fixed !important;
  left: 0; right: 0; bottom: 0;
  height: var(--footer-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; gap: 16px;
  color: var(--footer-fg) !important;
  border-top: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 9990;
}

footer a, .site-footer a, #colophon a{
  color: var(--footer-fg) !important;        /* readable links */
  text-decoration: none;
}
footer a:hover{ text-decoration: underline; }

/* footer right icon row */
footer .socials{
  display:flex; align-items:center; gap:12px;
  margin-left:auto;           /* pushes it to the right */
}

/* size the icon; your file is wide, so we constrain height */
footer .socials .icon{
  height: 30px;
  width: auto;
  display: block;
  opacity: 0.9;
  filter: brightness(0) invert(1); /* converts blue → white */
  transition: opacity 0.2s ease, transform 0.2s ease;
}
footer .socials .icon:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(30,144,255,0.6)); /* white with blue glow */
}

/* Keep room so content doesn’t sit under the bar */
body{ padding-bottom: calc(var(--footer-h) + 20px) !important; }

/* === Responsive tuning (put near the bottom of your CSS) === */
@media (max-width: 1024px){
  .hero{ min-height: 68vh; }
  .hero h1{ font-size: clamp(34px, 5.2vw, 52px); }
}
@media (max-width: 640px){
  .hero{ min-height: 60vh; padding: 0 16px; }
  .hero h1{ font-size: clamp(30px, 7vw, 42px); line-height: 1.06; }
  .hero .roles{ font-size: 16px; }
  .hero .cta{ flex-wrap: wrap; gap: 10px; margin-top: 10px; }
  .btn{ width: 100%; padding: 12px 16px; }
}



/* ========================
   ABOUT PAGE LAYOUT
   (text left, image right)
   ======================== */

.about{
  /* top/bottom spacing; leaves room for fixed footer */
  padding: 48px 20px 96px;
  background: transparent;          /* keep inner pages light (you already set body bg) */
  color: var(--ink);                 /* dark text on light surface */
}

.about-container{
  max-width: 1120px;                 /* comfortable reading width */
  margin: 0 auto;
}

.about-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* text a bit wider than the photo */
  gap: 48px;
  align-items: center;
}

/* --- Left column (copy) --- */
.about .eyebrow{
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}

.about h1{
  margin: 0 0 14px;
  font: 700 clamp(25px, 4.2vw, 38px)/1.15 "Source Serif 4", Georgia, serif;
  color: var(--ink);
}

.about p{
  margin: 12px 0;
  font-size: 16px;
  text-align: justify;        /* ✅ makes text justified */
  text-justify: inter-word;   /* ✅ balances spacing between words */
  line-height: 1.8;
}

.about-quote{
  margin: 18px 0 26px;
  padding-left: 16px;
  border-left: 3px solid rgba(30,144,255,.6); /* echo your accent */
  font-style: italic;
  opacity: .9;
  text-align: justify;
}

.about-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Make your existing buttons read clearly on a light page */
.about .btn{
  /* your global .btn has a semi-dark bg; on light pages it can be heavy.
     This softens it without changing global behavior elsewhere. */
  background: rgba(15,25,45,.75);
  border-color: rgba(0,0,0,.08);
}
.about .btn-primary{
  background: rgba(30,144,255, .92);
}
.about .btn-primary:hover{
  background: rgba(30,144,255, 1);
}

/* --- Right column (photo) --- */
.about-photo-wrap{
  /* creates a tasteful oval card feel without heavy frames */
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25));
  box-shadow:
    0 10px 30px rgba(0,0,0,.10),
    inset 0 0 0 1px rgba(11,19,32,.06);
}

.about-photo{
  display: block;
  width: 100%;
  height: auto;

  border-radius: 22px;               /* soft shape on the image itself */
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  object-fit: cover;
}

/* --- Responsive tweaks --- */
@media (max-width: 768px){
  .about-grid{
    grid-template-columns: 1fr;      /* stack on small screens */
    gap: 28px;
  }
  .about-photo-wrap{
    order: -1;                        /* photo above text on mobile (optional) */
  }
}

/* Make both columns start at the top edge */
.about-grid { align-items: start; }    

/* Remove any extra internal top shift from the image card */
.about-photo-wrap { margin-top: 0; padding-top: 14px; }  /* keep your look */
.about h1 { margin-top: 0; }




/* Focus Areas Section */
.values {
  margin-top: 5px; /* moves it upward */
  margin-bottom: 30px; /* leaves some space before the footer */
  text-align: center;
  max-width: 1100px;
  padding: 0 20px;
}

.values h3 {
  font-size: 1.8rem;
  margin-bottom: 32px;
  color: #0B1320;
  font-weight: 700;
}


.values-grid div {
  flex: 1;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values-grid div:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.values-grid h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #1E3A8A;
}

.values-grid {
  display: flex;
  justify-content: center; /* centers the cards */
  gap: 24px;               /* keeps equal spacing between them */
  flex-wrap: wrap;         /* stacks neatly on smaller screens */
  margin: 0 auto;          /* centers the grid container */
}

/* Responsive tweak for mobile */
@media (max-width: 768px) {
  .values-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Tablet & Fold: force side-by-side layout */
@media (min-width: 769px) and (max-width: 1024px) {
  .about {
    padding-top: 32px;        /* a little closer to the header */
    padding-bottom: 48px;     /* slightly less bottom space */
  }
  
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .about-photo-wrap {
    max-width: 420px;
    margin: 0; /* no weird top gap */
    order: 2 !important; /* ensure image stays on the RIGHT */
  }

  .about-photo {
    max-width: 420px;
    max-height: 520px;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* pull “My Focus Areas” a bit closer so the gap under the text isn’t huge */
  .values {
    margin-top: 15px;
  }
}



/* ==== Projects page layout (new) ==== */

/* Outer wrapper */
.projects-page {
  padding: 40px 20px 96px;
}

/* Top heading section */
.projects-hero-inner {
  max-width: 1100px;
  margin: 0 auto 32px;
  
}

.projects-hero-inner h1 {
  margin: 0 0 8px;
  font: 700 clamp(30px, 4vw, 42px)/1.1 "Source Serif 4", Georgia, serif;
}

.projects-hero-inner p {
  margin: 0;
  opacity: 0.85;
}

/* ===== Featured project card ===== */

.projects-featured {
  max-width: 1100px;
  margin: 0 auto 30px;
}

.project-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 24px 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.project-card__text h2 {
  margin: 0 0 10px;
}

.project-card__tagline {
  margin: 0 0 10px;
  font-weight: 500;
}

.project-card__summary {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #111827;
}

.project-card__meta {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: #4b5563;
}

.project-card__meta-separator {
  margin: 0 6px;
  opacity: 0.6;
}

/* Featured image */
.project-card__image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
}

/* ===== Other projects grid ===== */

.projects-list {
  max-width: 1100px;
  margin: 0 auto;
}

.projects-list__header {
  margin-bottom: 20px;
}

.projects-list__header h2 {
  margin: 0 0 4px;
}

.projects-list__header p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.98rem;
}

/* Grid layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Small cards */
.project-card--small {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  display: flex;
  flex-direction: column;
}

.project-card__thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.project-card__body {
  padding: 15px 18px 18px;
}

.project-card__title-small {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.project-card__summary-small {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #374151;
}

.project-card__meta-small {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #6b7280;
}

.project-card__tools-small {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #4b5563;
}

.project-card__link {
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  color: #1E90FF;
}

.project-card__link:hover {
  text-decoration: underline;
}

/* Message when there are no projects */
.no-projects {
  max-width: 1100px;
  margin: 40px auto 0;
  font-size: 0.95rem;
  color: #4b5563;
}

/* Overall single project page */
.project-single {
  background: #f5f7fb;
  padding: 1.5rem 1.5rem 4rem;
}

/* Title area */
.project-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.project-title {
  font-size: 2.2rem;
   margin-top: 0;        
  margin: 0 0 0.5rem;
}

/* Optional smaller tagline under title */
.project-tagline {
  font-size: 1rem;
  color: #4b5563;
}

/* Top row: image (left) + details (right) */
.project-top-row {
  margin-top: 1.5rem;
}

.project-top-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Feature image on the left – not too huge */
.project-feature-image img {
  width: 100%;
  height: auto;
  max-height: 380px;     /* adjust up/down if you like */
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* "Table-like" project details panel on the right */
.project-sidebar {
  border-radius: 8px;
  border: 2px solid #2563eb;  /* blue outline */
  padding: 1.2rem 1.3rem 1.4rem;
  box-shadow: none;           /* no card shadow */
  min-height: 330px; /* make it taller to match the image */
}

/* Title inside sidebar */
.project-sidebar h2 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0 0 1.1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #2563eb;
}

/* Remove default list styling */
.project-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each field block */
.project-sidebar li {
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

/* Make label on top, bold */
.project-sidebar li strong {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #111;
}

/* Values */
.project-sidebar li span {
  display: block;
  margin-top: 0.15rem;
  color: #444;
  font-size: 0.95rem;
}

/* Main body under the top row */
.project-body {
  margin-top: 2.5rem;
}

.project-body-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: #111827;
}

/* Mobile stacking */
@media (max-width: 768px) {
  .project-top-inner {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    margin-top: 1.2rem;
  }
}

/* Match Writing Button → Project Button */
.project-single__content a.button,
.project-single__content a.wp-block-button__link,
.project-single__button a {
  background: linear-gradient(90deg, #1e90ff, #3bb2f6);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.2s ease;
}

.project-single__content a.button:hover,
.project-single__content a.wp-block-button__link:hover,
.project-single__button a:hover {
  transform: translateY(-2px);
}



/* ========================
   WRITING PAGE LAYOUT
   ======================== */

/* Outer wrapper for the 3 equal columns */
.writing-columns {
  max-width: 1100px;          /* same as .writing-categories and .writing-hero-inner */
  margin: 24px auto 0;        /* centered, a bit of space under the category row */
}
  

.writing-page {
  padding: 40px 20px 96px;
}

.writing-hero-inner {
  max-width: 1100px;
  margin: 0 auto 28px;
}

.writing-hero-inner h1 {
  margin: 0 0 8px;
  font: 700 clamp(30px, 4vw, 42px)/1.1 "Source Serif 4", Georgia, serif;
  color: #0B1320;
}

.writing-hero-inner p {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  color: #4b5563;
}

/* --- Featured article card --- */

.writing-featured {
  margin: 0 auto 40px;
}

.writing-featured-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 26px;
  padding: 22px 24px;
  align-items: center;
}

.writing-featured-copy .eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
}

.writing-featured-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  color: #0B1320;
}

.writing-featured-excerpt {
  margin: 0 0 12px;
  font-size: 15px;
  color: #374151;
}

.writing-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: #e5f0ff;
  color: #1e3a8a;
  white-space: nowrap;
}

.writing-featured-btn {
  margin-top: 4px;
}

/* Featured image side */
.writing-featured-media {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.writing-featured-image img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.writing-featured-placeholder {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  background: #0b172a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5f5;
  font-size: 13px;
}

/* --- Category row (Interviews / Features / Technical) --- */

.writing-categories {
  max-width: 1100px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.writing-category-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.writing-category-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #0B1320;
}

.writing-category-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #4b5563;
}

.writing-cat-link {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #1E90FF;
}

.writing-cat-link:hover {
  text-decoration: underline;
}

/* --- All Writing grid --- */

.writing-grid-section {
  max-width: 1100px;
  margin: 0 auto;
}

.writing-grid-header {
  margin-bottom: 18px;
}

.writing-grid-header h2 {
  margin: 0 0 4px;
}

.writing-grid-header p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.writing-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.writing-card-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.writing-card-body {
  padding: 14px 16px 16px;
}

.writing-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0B1320;
}

.writing-card-excerpt {
  margin: 0 0 10px;
  font-size: 14px;
  color: #374151;
}

.writing-card-meta {
  margin-bottom: 6px;
}

.writing-card-category {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #e5e7eb;
  color: #111827;
}

.writing-card-link {
  display: inline-block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #1E90FF;
  text-decoration: none;
}

.writing-card-link:hover {
  text-decoration: underline;
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
  .writing-featured-inner {
    grid-template-columns: 1fr;
  }

  .writing-featured-media {
    order: -1; /* image on top on mobile */
  }
}

/* --- Writing: GoGeomatics archive CTA --- */

.writing-archive-cta {
  margin-top: 40px;
  padding: 32px 20px 0;
}

.writing-archive-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 22px;
  border-radius: 16px;
  background: #eef3ff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.writing-archive-inner h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: #0B1320;
}

.writing-archive-inner p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #374151;
}

.writing-archive-inner .btn {
  font-size: 0.95rem;
}

/* Single writing pages */
.writing-single__wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.writing-single__back {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.writing-single__back a {
  text-decoration: none;
  color: #3b82f6;
}

.writing-single__title {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/* Single writing feature image – tidy, not huge */
.writing-single__image {
  max-width: 820px;
  margin: 0 auto 1.8rem;   /* centered with nice gap below */
}

.writing-single__image img {
  width: 100%;
  max-height: 420px;       /* cap the height on desktop/tablet */
  object-fit: cover;       /* crop gently instead of squashing */
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}


.writing-single__content {
  font-size: 1rem;
  line-height: 1.7;
}

.writing-single__content p {
  margin-bottom: 1.25rem;
}

.writing-single__content a {
  display: inline-block;
  margin-top: 0.5rem;
}

.writing-single__content a.button,
.writing-single__content a.wp-block-button__link {
  background: linear-gradient(90deg, #1e90ff, #3bb2f6);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.2s ease;
}

.writing-single__content a.button:hover,
.writing-single__content a.wp-block-button__link:hover {
  transform: translateY(-2px);
}

/* Three columns */
/* Inner grid for the columns */
.writing-columns-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* always 3 columns on desktop */
  gap: 24px;
}



/* Cards inside columns */
.writing-mini-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 25px;
  width: 100%; 
}

.writing-mini-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.writing-mini-body {
  padding: 16px 18px 18px;
}

.writing-mini-title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.writing-mini-excerpt {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 12px;
}

.writing-mini-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.no-posts {
  font-size: 0.9rem;
  color: #777;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .writing-single__image img {
    max-height: 320px;     /* a bit shorter on phones */
  }
}


/* ========================
   MENTORSHIP PAGE
   ======================== */

.mentorship-page {
  padding: 40px 20px 96px;
}

/* ========================
   HERO SECTION
   ======================== */

.mentorship-hero-inner {
  max-width: 1100px;
  margin: 0 auto 28px;
  position: relative;
}

/* Globe badge */
.mentorship-hero-inner::after {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(59,130,246,0.65), rgba(30,64,175,0.9));
  box-shadow: 0 10px 22px rgba(15,23,42,0.22);
  opacity: 0.9;
}

.mentorship-hero-inner h1 {
  margin: 0 0 6px;
  font: 700 clamp(30px, 4vw, 42px)/1.1 "Source Serif 4", Georgia, serif;
  color: #0B1320;
}

.mentorship-hero-inner p {
  margin: 0 0 12px;
  max-width: 720px;
  font-size: 16px;
  color: #4b5563;
}

/* Soft divider under hero */
.mentorship-hero-divider {
  max-width: 1100px;
  margin: 0 auto 26px;
  height: 1px;
  background: linear-gradient(to right, rgba(148,163,184,0.35), rgba(209,213,219,0));
}

/* ========================
   PHILOSOPHY CARD
   ======================== */

.mentorship-philosophy {
  max-width: 1100px;
  margin: 0 auto 32px;
}

.mentorship-philosophy-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.mentorship-philosophy-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #0B1320;
}

.mentorship-philosophy-card p {
  margin: 8px 0;
  font-size: 15px;
  color: #374151;
}

/* ========================
   SECTION HEADERS
   ======================== */

.mentorship-section-header {
  max-width: 1100px;
  margin: 0 auto 18px;
}

.mentorship-section-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #0B1320;
}

.mentorship-section-header p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

/* ========================
   AREAS I SUPPORT
   ======================== */

.mentorship-areas {
  max-width: 1100px;
  margin: 0 auto 40px;
}

.mentorship-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

/* ========================
   EXPERIENCE (MENTORSHIP IN PRACTICE)
   ======================== */

.mentorship-experience {
  max-width: 1100px;
  margin: 0 auto 40px;
}

.mentorship-experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* ========================
   SHARED CARD STYLE
   ======================== */

.mentorship-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 32px 18px 18px; /* room for icon */
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  position: relative;
}

.mentorship-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #0B1320;
}

.mentorship-card p {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

/* ========================
   ICONS — AREAS I SUPPORT
   ======================== */

.mentorship-areas-grid .mentorship-card::before {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
}

.mentorship-areas-grid .mentorship-card:nth-child(1)::before {
  content: "🎓";
}

.mentorship-areas-grid .mentorship-card:nth-child(2)::before {
  content: "💼";
}

.mentorship-areas-grid .mentorship-card:nth-child(3)::before {
  content: "🙌";
}

.mentorship-areas-grid .mentorship-card:nth-child(4)::before {
  content: "🌍";
}

/* ========================
   ICONS — MENTORSHIP EXPERIENCE
   ======================== */

.mentorship-experience-grid .mentorship-card::before {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
}

.mentorship-experience-grid .mentorship-card:nth-child(1)::before {
  content: "🎓";
}

.mentorship-experience-grid .mentorship-card:nth-child(2)::before {
  content: "⭐";
}

.mentorship-experience-grid .mentorship-card:nth-child(3)::before {
  content: "🤝";
}

.mentorship-experience-grid .mentorship-card:nth-child(4)::before {
  content: "📝";
}

.mentorship-experience-grid .mentorship-card:nth-child(5)::before {
  content: "🌱";
}

/* ========================
   CTA
   ======================== */

.mentorship-cta {
  padding: 8px 20px 0;
 }

.mentorship-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  border-radius: 18px;
  background: #e8f1ff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.mentorship-cta-inner h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #0B1320;
}

.mentorship-cta-inner p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #374151;
}

/* ========================
   MOBILE
   ======================== */

@media (max-width: 640px) {
  .mentorship-philosophy-card {
    padding: 18px 16px;
  }
}

/* Remove any hero pseudo-orb on Mentorship page */
.mentorship-page .mentorship-hero-inner::before,
.mentorship-page .mentorship-hero-inner::after {
  display: none !important;
  content: none !important;
}

/* =========================
   CONTACT PAGE STYLING
   ========================= */

.contact-page {
	padding: 35px 0 80px;
}

.contact-page .page-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Centered heading + intro text */
.contact-header {
	text-align: center;
	margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.contact-header .page-title {
	font-size: 2.4rem;
	margin-bottom: 0.75rem;
}

.contact-tagline {
	max-width: 720px;
	margin: 0 auto;
	font-size: 0.98rem;
	line-height: 1.7;
	color: #4b5866;
}

/* Grid with 3 cards */
.contact-sections {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.8rem;
}

/* Stack nicely on smaller screens */
@media (max-width: 960px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}


/* Card design */
.contact-card {
	background: #ffffff;
	border-radius: 18px;
	padding: 1.8rem 2rem;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
	border-top: 3px solid #6cb6ff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:nth-child(2) {
	border-top-color: #ffd29a; /* warm / writing */
}

.contact-card:nth-child(3) {
	border-top-color: #8bd9a3; /* mentorship accent */
}

.contact-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 55px rgba(0, 0, 0, 0.09);
}

.contact-card__title {
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
}

.contact-card__text {
	font-size: 0.96rem;
	line-height: 1.65;
	color: #3b4551;
}

/* Email + LinkedIn buttons under the cards */

.contact-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.5rem;
}

.contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75rem 1.7rem;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.95rem;
	border: none;
	cursor: pointer;
	background: #007bff;
	color: #ffffff;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.contact-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 700;
}

/* Email chip */
.contact-btn__icon--email {
	background: #f29c35;
	color: #0e1c2f;
}

/* LinkedIn chip */
.contact-btn__icon--linkedin {
	background: #0a66c2;
	color: #ffffff;
}

.contact-btn:hover {
	opacity: 0.94;
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
  .contact-page {
    padding-top: 5px; /* phones */
  }
}

/*********************************************
 * MOBILE FLOATING MENU (OPTION C)
 *********************************************/

.mobile-nav-toggle {
  display: none; /* hidden on desktop */
}

/* ===== Mobile screens ===== */
@media (max-width: 768px) {

  /* Floating round button */
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    margin: 3.5px 0;
    background: #ffffff;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* Transform lines into an X when open */
  body.nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  body.nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Floating overlay menu as a centered card */
  .site-header .main-nav {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%); /* start slightly above center */
    z-index: 1000;

    width: 86%;
    max-width: 360px;
    min-height: 260px;
    max-height: 360px;

    background: rgba(5, 10, 20, 0.82);
    backdrop-filter: blur(10px);

    border-radius: 22px;
    padding: 28px 24px 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.32s ease, opacity 0.32s ease;
  }

  /* When menu is open: bring card into perfect center */
  body.nav-open .site-header .main-nav {
    transform: translate(-50%, -45%);
    opacity: 1;
    pointer-events: auto;
  }

  /* Menu list styling – nicely centered inside the card */
  .site-header .main-nav .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 0;
    margin: 0;
  }

  .site-header .main-nav .menu li {
    margin: 0;
    list-style: none;
  }

  .site-header .main-nav .menu a {
    color: #ffffff !important;
    font-size: 1.05rem;
    padding: 4px 0;
  }
} /* <-- closes the mobile-nav @media properly */


/* =========================
   ABOUT PAGE – MOBILE TUNING
   ========================= */
@media (max-width: 768px) {
  /* Overall page padding */
  .about {
    padding: 36px 16px 40px;
  }

  .about-container {
    max-width: 680px;
    margin: 0 auto;
  }

  /* Stack text + image, TEXT first */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Smaller, centered image card */
  .about-photo-wrap {
    max-width: 320px;
    order: 2;
    margin: 8px auto 0;
    padding: 10px;
    border-radius: 20px;
  }

  .about-photo {
    border-radius: 18px;
  }

  /* Heading + text sizing */
  .about h1 {
    font-size: clamp(24px, 6vw, 28px);
    line-height: 1.2;
  }

  .about p,
  .about-quote {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .about-quote {
    margin-top: 14px;
    margin-bottom: 18px;
  }

  /* CTA button – less “banner”, more button feeling */
  .about-cta {
    margin-top: 10px;
    gap: 10px;
  }

  .about-cta .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* ==== Focus Areas – tidy spacing ==== */
  .values {
    padding: 4px 16px 24px;
    margin-top: 5px;
    margin-bottom: 24px;
  }

  .values h3 {
    font-size: 1.4rem;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .values-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 0 auto;
  }

  .values-grid div {
    padding: 16px 18px;
  }
}

/* Projects page – fix featured button on mobile */
@media (max-width: 640px) {
  .projects-featured .project-card--featured .btn {
    width: auto;                /* no more full-width bar */
    max-width: 260px;
    padding: 12px 22px;
    align-self: flex-start;     /* sits nicely under the text */
    justify-content: center;
  }
}

/* Writing archive – mobile layout (stack the three columns) */
@media (max-width: 768px) {
  .writing-columns-inner {
    grid-template-columns: 1fr;   /* stack: Interviews, then Features, then Technical */
    gap: 10px;
  }

  .writing-columns-inner > * {
    padding-bottom: 4px;
  }
}

/* Default: on larger screens we hide the column titles
   (we only want the 3 white cards at the top) */
.writing-column-title {
  display: none;
}

/* Phones & small tablets: hide the 3 white cards,
   show the titles above each column */
@media (max-width: 768px) {
  .writing-categories {
    display: none;          /* 3 big cards disappear on phone */
  }

  .writing-column-title,
  .writing-columns h2.writing-column-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #0B1320;
  }

  .writing-column {
    margin-bottom: 18px;    /* spacing between sections */
  }
}

/* Tablet & desktop: keep the 3 cards and hide titles (no duplication) */
@media (min-width: 769px) {
  .writing-categories {
    display: grid;
  }

  .writing-column-title,
  .writing-columns h2.writing-column-title {
    display: none;
  }
}

/* Make writing buttons full-width on small screens */
@media (max-width: 640px) {
  .writing-featured-btn,
  .writing-archive-inner .btn {
    width: 100%;
    display: block;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Pull the GoGeomatics card closer to the last article */
.writing-archive-cta {
  margin-top: 24px;   /* was 40px */
  padding-top: 16px;  /* softens the gap a bit */
}

/* Fix CTA button alignment on mobile  MENTORSHIP PAGE*/
@media (max-width: 768px) {
  .mentorship-cta .btn,
  .writing-archive-cta .btn {
    width: 85%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  .mentorship-cta,
  .writing-archive-cta {
    text-align: center;
  }
}

/* -----------------------------------
   Single Writing Page – Back link spacing
----------------------------------- */
/* Remove extra top gap on the single-writing layout */
.writing-single {
  padding-top: 1.5rem; /* gentle space under the header */
}

.writing-single__wrap,
.writing-single__article {
  margin-top: 0;
  padding-top: 0;
}

/* Position the back links on Writing + Project singles nicely */
.writing-single__back,
.project-single__back {
  margin: 0 0 0.1rem;   /* small space below, none above */
  font-size: 0.95rem;
}

/* Link style (blue arrow text) */
.writing-single__back a,
.project-single__back a {
  text-decoration: none;
  color: #3b82f6;
}

.writing-single__back a:hover,
.project-single__back a:hover {
  text-decoration: underline;
}

/* Slightly tighter on smaller screens */
@media (max-width: 768px) {
  .writing-single {
    padding-top: 1rem;
  }

  .writing-single__back,
  .project-single__back {
    margin-top: 0.25rem;
  }
}


/* ===== Responsive tweaks – phones only ===== */
@media (max-width: 768px) {
  .project-card--featured {
    grid-template-columns: 1fr;
  }

  .project-card__image {
    order: -1;            /* image on top on small screens */
  }
}


