/*
Theme Name: ESA BIC Estonia
Theme URI: https://esabic.ee
Author: ESA BIC Estonia
Author URI: https://esabic.ee
Description: Official theme for ESA BIC Estonia – European Space Agency Business Incubation Centre Estonia.
Version: 1.2.9
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: esabic
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --ds:        #003247;   /* Deep Space – primary dark */
  --az:        #009bdb;   /* Azure / Trusty – accent */
  --az-dark:   #00619e;   /* Azure Dark – button hover */
  --ns:        #e8e8e4;   /* Neutral Space – light backgrounds */
  --border:    #c8cfd4;   /* Border colour */
  --muted:     #335e6f;   /* Text muted */
  --white:     #ffffff;
  --black:     #111111;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --container: 1280px;
  --radius:    4px;
  --transition: 0.2s ease;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ds);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 700; }
h4 { font-size: 1.3rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem;   font-weight: 600; }

p {
  margin-bottom: 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   GLOBAL LINK STYLES
   ============================================================ */
a {
  color: var(--az);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--az-dark);
  text-decoration: underline;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.esabic-container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

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

/* --- Buttons --- */
.esabic-btn-az,
.esabic-btn-ghost {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  line-height: 1;
}

.esabic-btn-az {
  background: var(--az);
  color: var(--white);
  border-color: var(--az);
}

.esabic-btn-az:hover,
.esabic-btn-az:focus {
  background: var(--az-dark);
  border-color: var(--az-dark);
  color: var(--white);
  text-decoration: none;
}

.esabic-btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.esabic-btn-ghost:hover,
.esabic-btn-ghost:focus {
  background: var(--white);
  color: var(--ds);
  text-decoration: none;
}

/* --- Eyebrow --- */
.esabic-eyebrow {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--az);
  margin-bottom: 0.5rem;
}

/* --- Section heading utility --- */
.esabic-h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--ds);
  line-height: 1.15;
}

/* --- Lead text --- */
.esabic-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ============================================================
   SCREEN READER TEXT
   ============================================================ */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
  width: 1px;
}

/* ============================================================
   HEADER
   ============================================================ */
.esabic-site-header {
  background: var(--ds);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.esabic-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* Logo */
.esabic-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.esabic-logo-link:hover {
  text-decoration: none;
}

.esabic-logo-link img,
.esabic-logo-link .esabic-logo-svg {
  height: 36px;
  width: auto;
}

.esabic-site-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Custom logo from WP */
.header-logo img {
  height: 36px;
  width: auto;
}

/* Primary Navigation */
.esabic-primary-nav {
  display: flex;
  align-items: center;
}

.esabic-primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.esabic-primary-nav ul li a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--white);
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  position: relative;
  white-space: nowrap;
}

.esabic-primary-nav ul li a::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 2px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--az);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}

.esabic-primary-nav ul li a:hover::after,
.esabic-primary-nav ul li.current-menu-item > a::after,
.esabic-primary-nav ul li.current_page_item > a::after {
  transform: scaleX(1);
}

.esabic-primary-nav ul li a:hover,
.esabic-primary-nav ul li.current-menu-item > a,
.esabic-primary-nav ul li.current_page_item > a {
  color: var(--az);
  text-decoration: none;
}

/* Hamburger */
.esabic-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.esabic-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.esabic-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.esabic-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.esabic-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.esabic-site-footer {
  background: var(--ds);
  color: rgba(255,255,255,0.75);
  padding-top: 3.5rem;
}

.esabic-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.esabic-footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.esabic-footer-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
}

.esabic-footer-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.esabic-footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.esabic-footer-nav ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition);
}

.esabic-footer-nav ul li a:hover {
  color: var(--az);
  text-decoration: none;
}

.esabic-footer-contact p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.7);
}

.esabic-footer-contact a {
  color: var(--az);
}

.esabic-footer-contact a:hover {
  color: var(--white);
}

.esabic-footer-bottom {
  border-top: 2px solid var(--az);
  padding: 1.1rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.esabic-footer-bottom a {
  color: rgba(255,255,255,0.6);
}

.esabic-footer-bottom a:hover {
  color: var(--az);
  text-decoration: none;
}

/* ============================================================
   HERO (reusable)
   ============================================================ */
.esabic-hero {
  background: var(--ds);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.esabic-hero--large {
  padding: 6rem 0 5rem;
}

.esabic-hero__eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--az);
  margin-bottom: 0.85rem;
}

.esabic-hero__title {
  color: var(--white);
  margin-bottom: 1.1rem;
  max-width: 750px;
}

.esabic-hero__title .esabic-accent {
  color: var(--az);
}

.esabic-hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin-bottom: 2rem;
}

.esabic-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

/* Highlights Strip */
.esabic-strip {
  background: var(--az);
  padding: 2.5rem 0;
  color: var(--white);
}

.esabic-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  text-align: center;
}

.esabic-strip-item {
  padding: 0.75rem 0.5rem;
}

.esabic-strip-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--white);
  display: block;
}

.esabic-strip-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-top: 0.25rem;
  display: block;
}

/* About Section */
.esabic-about {
  padding: 5rem 0;
}

.esabic-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.esabic-about-text .esabic-eyebrow {
  margin-bottom: 0.75rem;
}

.esabic-about-text h2 {
  margin-bottom: 1.25rem;
}

.esabic-about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.esabic-about-text .esabic-btn-az {
  margin-top: 1rem;
}

.esabic-about-image {
  position: relative;
}

.esabic-about-image img {
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.esabic-about-image-placeholder {
  background: var(--ns);
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px dashed var(--border);
}

/* Programme Cards */
.esabic-programmes {
  padding: 5rem 0;
  background: var(--ns);
}

.esabic-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.esabic-section-header .esabic-eyebrow {
  display: block;
  text-align: center;
}

.esabic-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.esabic-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,50,71,0.08);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.esabic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,50,71,0.14);
}

.esabic-card-icon {
  background: var(--ds);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.esabic-card-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--az);
  stroke-width: 1.5;
}

.esabic-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.esabic-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--ds);
}

.esabic-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.esabic-card-body .esabic-btn-az {
  align-self: flex-start;
  font-size: 0.875rem;
  padding: 0.6rem 1.2rem;
}

/* Latest News */
.esabic-latest-news {
  padding: 5rem 0;
}

/* Post Cards */
.esabic-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.esabic-post-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.esabic-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,50,71,0.1);
}

.esabic-post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ns);
}

.esabic-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.esabic-post-card:hover .esabic-post-card__thumb img {
  transform: scale(1.04);
}

.esabic-post-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}

.esabic-post-card__thumb-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--border);
}

.esabic-post-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.esabic-post-card__date {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--az);
  margin-bottom: 0.5rem;
}

.esabic-post-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--ds);
  margin-bottom: 0.75rem;
}

.esabic-post-card__title a {
  color: var(--ds);
  text-decoration: none;
}

.esabic-post-card__title a:hover {
  color: var(--az);
  text-decoration: none;
}

.esabic-post-card__excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.esabic-read-more {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--az);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition), color var(--transition);
}

.esabic-read-more::after {
  content: '→';
}

.esabic-read-more:hover {
  color: var(--az-dark);
  gap: 0.55rem;
  text-decoration: none;
}

/* CTA Block */
.esabic-cta-block {
  background: var(--ds);
  padding: 5rem 0;
  text-align: center;
}

.esabic-cta-block h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.esabic-cta-block p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.esabic-cta-block .esabic-hero__actions {
  justify-content: center;
}

/* ============================================================
   BLOG INDEX
   ============================================================ */
.esabic-blog-hero {
  background: var(--ds);
  padding: 3.5rem 0;
}

.esabic-blog-hero h1 {
  color: var(--white);
}

.esabic-blog-listing {
  padding: 4rem 0;
}

.esabic-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.esabic-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ds);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.esabic-pagination .page-numbers:hover,
.esabic-pagination .page-numbers.current {
  background: var(--az);
  color: var(--white);
  border-color: var(--az);
  text-decoration: none;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.esabic-single-featured {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}

.esabic-single-featured img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.esabic-single-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.esabic-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.esabic-post-meta__date {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--az);
}

.esabic-post-meta__cats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.esabic-post-meta__cats a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--az);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  text-decoration: none;
}

.esabic-post-meta__cats a:hover {
  background: var(--az-dark);
  text-decoration: none;
}

.esabic-single-content h1 {
  margin-bottom: 1.5rem;
}

.esabic-single-content .entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #222;
}

.esabic-single-content .entry-content p,
.esabic-single-content .entry-content ul,
.esabic-single-content .entry-content ol,
.esabic-single-content .entry-content blockquote {
  margin-bottom: 1.3em;
}

.esabic-single-content .entry-content ul,
.esabic-single-content .entry-content ol {
  list-style: disc;
  padding-left: 1.75rem;
}

.esabic-single-content .entry-content ol {
  list-style: decimal;
}

.esabic-single-content .entry-content blockquote {
  border-left: 4px solid var(--az);
  padding: 0.75rem 1.25rem;
  background: var(--ns);
  color: var(--muted);
  font-style: italic;
}

.esabic-single-content .entry-content h2,
.esabic-single-content .entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.esabic-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-top: 2.5rem;
  transition: color var(--transition);
}

.esabic-back-link::before {
  content: '←';
}

.esabic-back-link:hover {
  color: var(--az);
  text-decoration: none;
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.esabic-page-hero {
  background: var(--ds);
  padding: 3.5rem 0;
}

.esabic-page-hero h1 {
  color: var(--white);
}

.esabic-page-body {
  padding: 4rem 0;
}

.esabic-page-content-area {
  max-width: 900px;
  margin: 0 auto;
}

.esabic-page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.esabic-page-main {
  min-width: 0;
}

.esabic-page-sidebar {
  min-width: 0;
}

.esabic-page-sidebar .widget {
  background: var(--ns);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.esabic-page-sidebar .widget-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--az);
}

.esabic-page-sidebar ul {
  list-style: none;
}

.esabic-page-sidebar ul li {
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0;
}

.esabic-page-sidebar ul li:last-child {
  border-bottom: none;
}

/* ============================================================
   ENTRY CONTENT (shared)
   ============================================================ */
.entry-content img {
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.entry-content a {
  color: var(--az);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--az-dark);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
}

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

/* Tablet ≤768px */
@media (max-width: 768px) {

  /* Header nav hidden, hamburger shown */
  .esabic-primary-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ds);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 998;
  }

  .esabic-primary-nav.is-open {
    display: block;
  }

  .esabic-primary-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .esabic-primary-nav ul li {
    width: 100%;
  }

  .esabic-primary-nav ul li a {
    padding: 0.75rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
  }

  .esabic-primary-nav ul li a::after {
    display: none;
  }

  .esabic-hamburger {
    display: flex;
  }

  /* Grids */
  .esabic-about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .esabic-about-image {
    order: -1;
  }

  .esabic-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .esabic-post-grid {
    grid-template-columns: 1fr 1fr;
  }

  .esabic-strip-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .esabic-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .esabic-footer-grid > *:first-child {
    grid-column: 1 / -1;
  }

  .esabic-page-with-sidebar {
    grid-template-columns: 1fr;
  }

}

/* Mobile ≤480px */
@media (max-width: 480px) {

  .esabic-cards-grid {
    grid-template-columns: 1fr;
  }

  .esabic-post-grid {
    grid-template-columns: 1fr;
  }

  .esabic-strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .esabic-strip-grid > *:last-child {
    grid-column: 1 / -1;
  }

  .esabic-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .esabic-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .esabic-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

}

/* ============================================================
   ILLUSTRATED HERO
   ============================================================ */

:root {
  --sand: #c4a06b;
  --sand-light: #d4b483;
  --planet: #1a6678;
}

.esabic-hero--illustrated {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Starfield */
.esabic-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.esabic-stars__svg {
  width: 100%;
  height: 100%;
  animation: esabic-twinkle 6s ease-in-out infinite alternate;
}
@keyframes esabic-twinkle {
  0%   { opacity: 0.7; }
  50%  { opacity: 1.0; }
  100% { opacity: 0.75; }
}

/* Planet — top-left, partially off-screen */
.esabic-hero-planet {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 440px;
  height: 440px;
  pointer-events: none;
  z-index: 1;
}
.esabic-hero-planet svg { width: 100%; height: 100%; }

/* Rocket — right side, floating */
.esabic-hero-rocket {
  position: absolute;
  right: 8%;
  bottom: 80px;
  width: 180px;
  pointer-events: none;
  z-index: 2;
  animation: esabic-float 5s ease-in-out infinite;
}
.esabic-hero-rocket svg { width: 100%; height: auto; }

@keyframes esabic-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* Content stays above decorations */
.esabic-hero__inner {
  position: relative;
  z-index: 3;
  padding-top: 5rem;
  padding-bottom: 3rem;
  max-width: 620px;
}

/* Sandy wave at bottom */
.esabic-hero-wave {
  position: relative;
  z-index: 4;
  line-height: 0;
  margin-top: auto;
}
.esabic-hero-wave svg { width: 100%; display: block; }

/* Typography overrides for illustrated hero */
.esabic-hero--illustrated .esabic-hero__title {
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  color: var(--ns);
  line-height: 0.95;
  margin-bottom: 0.75rem;
}
.esabic-hero--illustrated .esabic-accent {
  color: var(--az);
  font-size: 0.68em;
  display: block;
  margin-top: 0.4rem;
}
.esabic-hero--illustrated .esabic-hero__subtitle {
  color: rgba(255,255,255,0.72);
  max-width: 480px;
}

/* Subtle starfield on CTA block */
.esabic-cta-block {
  position: relative;
  overflow: hidden;
}
.esabic-cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.7) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 180px 180px, 130px 130px, 220px 220px;
  background-position: 20px 30px, 90px 70px, 150px 20px;
  pointer-events: none;
  opacity: 0.35;
}
.esabic-cta-block > * { position: relative; z-index: 1; }

/* Responsive illustrated hero */
@media (max-width: 768px) {
  .esabic-hero-planet { width: 260px; height: 260px; top: -60px; left: -60px; }
  .esabic-hero-rocket { width: 110px; right: 4%; bottom: 70px; }
  .esabic-hero__inner { max-width: 100%; padding-top: 3rem; }
  .esabic-hero--illustrated .esabic-hero__title { font-size: clamp(2.2rem, 8vw, 3.2rem); }
}

@media (max-width: 480px) {
  .esabic-hero-rocket { display: none; }
  .esabic-hero-planet { width: 180px; height: 180px; top: -30px; left: -30px; }
}

/* ============================================================
   HOMEPAGE (front-page.php) — section styles
   ============================================================ */

/* ── 1. Hero ── */
.esabic-fp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ds, #003247);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  text-align: center;
}
.esabic-fp-hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.esabic-fp-hero__stars svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.esabic-fp-hero[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,30,46,0.45);
  z-index: 1;
}
.esabic-fp-hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 6rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.esabic-fp-hero__deadline {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
}
.esabic-fp-hero__title {
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.01em;
}
.esabic-fp-hero__subtitle {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.80);
  max-width: 600px;
  margin: 0;
  line-height: 1.65;
}
.esabic-fp-hero__cta {
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 0.8rem 2.2rem;
}

/* ── 2. Value Proposition ── */
.esabic-fp-value {
  background: var(--ds, #003247);
  padding: 5rem 1rem;
}
.esabic-fp-value .esabic-container { max-width: 860px; }
.esabic-fp-value__title {
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
}
.esabic-fp-value__lead {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.esabic-fp-value__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.esabic-fp-value__list li {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}
.esabic-fp-value__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 2px;
  background: var(--az, #009bdb);
}

/* ── 3. Apply CTA strip ── */
.esabic-fp-apply-strip {
  background: var(--ns, #e8e8e4);
  padding: 3rem 1rem;
}
.esabic-fp-apply-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}
.esabic-fp-apply-strip__text {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 1.05rem;
  color: var(--ds, #003247);
  margin: 0;
  font-weight: 600;
}

/* ── 4. Latest News ── */
.esabic-fp-news {
  background: #fff;
  padding: 4.5rem 1rem;
}
.esabic-fp-news__title {
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--ds, #003247);
  margin: 0.25rem 0 2rem;
}
.esabic-fp-news__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
}
.esabic-fp-news__item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border, #c8cfd4);
}
.esabic-fp-news__item:first-child { border-top: 1px solid var(--border, #c8cfd4); }
.esabic-fp-news__date {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 0.78rem;
  color: var(--muted, #335e6f);
  white-space: nowrap;
  flex-shrink: 0;
}
.esabic-fp-news__link {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ds, #003247);
  text-decoration: none;
  transition: color 0.15s;
}
.esabic-fp-news__link:hover { color: var(--az, #009bdb); }
.esabic-fp-news__more { margin-top: 1.5rem; }
.esabic-fp-news__empty { color: var(--muted, #335e6f); font-style: italic; }

/* ── 5. KPI Dashboard ── */
.esabic-fp-kpi {
  background: #fff;
  border: 1px solid var(--border, #c8cfd4);
  border-radius: 10px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 2rem 2rem 0;
  box-shadow: 0 2px 12px rgba(0,50,71,0.06);
}
.esabic-fp-kpi__logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.esabic-fp-kpi__logo { height: 40px; width: auto; }
.esabic-fp-kpi__logo-text {
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ds, #003247);
}
.esabic-fp-kpi__logo-esa img,
.esabic-fp-kpi__logo-esa .header-logo { height: 36px; width: auto; }
.esabic-fp-kpi__heading {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ds, #003247);
  margin: 0 0 1rem;
}
.esabic-fp-kpi__heading span { font-weight: 700; color: var(--az, #009bdb); }
.esabic-fp-kpi__frame-wrap { position: relative; width: 100%; overflow: hidden; }
.esabic-fp-kpi__frame { width: 100%; min-height: 720px; border: none; display: block; }
@media (max-width: 768px) {
  .esabic-fp-kpi__frame { min-height: 80vh; }
}

/* ── Who Can Apply ── */
.esabic-who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 560px) {
  .esabic-who-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .esabic-who-grid { grid-template-columns: repeat(4, 1fr); }
}
.esabic-who-card {
  background: var(--ns, #e8e8e4);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 3px solid var(--az, #009bdb);
  transition: box-shadow 0.2s;
}
.esabic-who-card:hover {
  box-shadow: 0 4px 18px rgba(0,155,219,0.12);
}
.esabic-who-card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.esabic-who-card__title {
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ds, #003247);
  margin: 0;
  line-height: 1.25;
}
.esabic-who-card__desc {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 0.88rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}
.esabic-who-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ── 6. Footer CTA ── */
.esabic-fp-footer-cta {
  background: var(--ds, #003247);
  padding: 4rem 1rem;
}
.esabic-fp-footer-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.esabic-fp-footer-cta__text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 500px;
}
.esabic-fp-footer-cta__heading {
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.15;
}
.esabic-fp-footer-cta__sub {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.esabic-fp-footer-cta__social { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.esabic-fp-footer-cta__social-label {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.esabic-fp-footer-cta__social-links { display: flex; gap: 0.75rem; }
.esabic-fp-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  transition: opacity 0.15s, transform 0.15s;
}
.esabic-fp-social-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.esabic-fp-social-btn--li { background: #0a66c2; color: #fff; }
.esabic-fp-social-btn--fb { background: #1877f2; color: #fff; }

/* Custom content zone (Elementor editable) */
.esabic-fp-custom-content {
  background: var(--white);
}
.esabic-fp-custom-content > .elementor-section,
.esabic-fp-custom-content > .wp-block {
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .esabic-fp-hero__content { padding: 5rem 1.25rem 3rem; }
  .esabic-fp-footer-cta__inner { flex-direction: column; align-items: flex-start; }
  .esabic-fp-footer-cta__social { align-items: flex-start; }
  .esabic-fp-news__item { flex-direction: column; gap: 0.2rem; }
}
@media (max-width: 480px) {
  .esabic-fp-hero__title { font-size: 2.4rem; }
  .esabic-fp-apply-strip__inner { flex-direction: column; }
}

/* ============================================================
   NEWS LISTING (home.php)
   ============================================================ */
.esabic-news-hero {
  background: var(--ds);
  padding: 4rem 0 3.5rem;
}
.esabic-news-hero .esabic-eyebrow {
  color: var(--az);
}
.esabic-news-hero h1 {
  color: var(--white);
  margin: 0.4rem 0 0.75rem;
}
.esabic-news-hero__sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.6;
}

.esabic-news-listing {
  padding: 4rem 0 5rem;
  background: var(--ns);
}

/* Featured first post */
.esabic-news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,50,71,0.07);
}
.esabic-news-featured__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.esabic-news-featured__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.esabic-news-featured:hover .esabic-news-featured__thumb img {
  transform: scale(1.03);
}
.esabic-news-featured__body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.esabic-news-featured__date {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--az);
  margin-bottom: 0.5rem;
}
.esabic-news-cat {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--az);
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  text-decoration: none;
  margin: 0 0.3rem 0.75rem 0;
}
.esabic-news-featured__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: var(--ds);
  margin-bottom: 1rem;
}
.esabic-news-featured__title a {
  color: var(--ds);
  text-decoration: none;
}
.esabic-news-featured__title a:hover {
  color: var(--az);
}
.esabic-news-featured__excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Rest of posts — 3-col grid */
.esabic-news-rest {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.esabic-news-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .esabic-news-featured {
    grid-template-columns: 1fr;
  }
  .esabic-news-featured__thumb {
    aspect-ratio: 16/7;
  }
  .esabic-news-rest {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .esabic-news-rest {
    grid-template-columns: 1fr;
  }
  .esabic-news-featured__body {
    padding: 1.5rem;
  }
}

/* ============================================================
   EMBED SECTION (Partners / Startups / Alumni)
   ============================================================ */
.esabic-embed-section {
  padding: 2rem 0 3rem;
}
/* Full-width inner wrapper — no max-width cap */
.esabic-embed-section__inner {
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}
@media (min-width: 900px) {
  .esabic-embed-section__inner {
    padding: 0 2rem;
  }
}
/* All direct iframes go full-width with generous height */
.esabic-embed-section iframe,
.esabic-embed-section__inner iframe {
  width: 100% !important;
  min-height: 720px;
  border: none;
  display: block;
}
@media (max-width: 600px) {
  .esabic-embed-section iframe,
  .esabic-embed-section__inner iframe {
    min-height: 80vh;
  }
}

/* ============================================================
   SUBPAGE BOTTOM — KPI + TYPEFORM (footer.php)
   ============================================================ */

/* KPI ── */
.esabic-sub-kpi {
  background: #fff;
  padding: 4rem 0 0;
}
.esabic-sub-kpi__heading {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ds, #003247);
  text-align: center;
  margin: 0 0 1.5rem;
}
.esabic-sub-kpi__heading span {
  font-weight: 700;
  color: var(--az, #009bdb);
}
.esabic-sub-kpi__frame-wrap {
  width: 100%;
  overflow: hidden;
}
.esabic-sub-kpi__frame {
  width: 100%;
  min-height: 720px;
  border: none;
  display: block;
}
@media (max-width: 768px) {
  .esabic-sub-kpi__frame { min-height: 80vh; }
}

/* Typeform ── */
.esabic-sub-typeform {
  background: var(--ds, #003247);
  padding: 4rem 0 0;
}
.esabic-sub-typeform__heading {
  font-family: var(--font-head, 'Barlow Condensed', sans-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.esabic-sub-typeform__sub {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  margin: 0 0 2rem;
}
.esabic-sub-typeform__frame-wrap {
  width: 100%;
  overflow: hidden;
}
.esabic-sub-typeform__frame {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}
@media (max-width: 768px) {
  .esabic-sub-typeform__frame { min-height: 80vh; }
}

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */
.esabic-page-body--elementor {
  padding: 0;
}
.esabic-page-elementor-content {
  width: 100%;
}
/* Let Elementor sections go full-width inside our theme */
.esabic-page-body--elementor .elementor-section.elementor-section-stretched {
  left: 0 !important;
  width: 100% !important;
}
/* Hide the page hero title on Elementor pages (Elementor handles its own title) */
.elementor-default .esabic-page-hero {
  display: none;
}

/* ============================================================
   NAV — APPLY NOW CTA BUTTON
   ============================================================ */
.esabic-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  background: var(--az);
  color: var(--white) !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  margin-right: 0.75rem;
  flex-shrink: 0;
}
.esabic-nav__cta:hover {
  background: var(--az-dark);
  color: var(--white) !important;
  text-decoration: none;
  transform: translateY(-1px);
}
/* Hide on mobile — hamburger takes over */
@media (max-width: 768px) {
  .esabic-nav__cta { display: none; }
}

/* ============================================================
   SINGLE POST — READING TIME + POST NAVIGATION
   ============================================================ */
.esabic-post-meta__reading-time {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.esabic-post-nav {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.esabic-post-nav__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  background: var(--ns);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.esabic-post-nav__link:hover {
  background: var(--border);
  transform: translateY(-2px);
  text-decoration: none;
}
.esabic-post-nav__link--next {
  text-align: right;
}
.esabic-post-nav__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--az);
}
.esabic-post-nav__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ds);
}
@media (max-width: 560px) {
  .esabic-post-nav { flex-direction: column; }
  .esabic-post-nav__link--next { text-align: left; }
}

/* ============================================================
   FOOTER — SOCIAL LINKS
   ============================================================ */
.esabic-footer-powered {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.75rem;
}
.esabic-footer-powered a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.esabic-footer-powered a:hover {
  color: var(--az);
}

.esabic-footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.esabic-footer-social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition);
}
.esabic-footer-social__link:hover {
  color: var(--az);
  text-decoration: none;
}

/* ============================================================
   BLOG INDEX — eyebrow visible on dark hero
   ============================================================ */
.esabic-blog-hero .esabic-eyebrow {
  color: var(--az);
}
.esabic-blog-hero h1 {
  margin-top: 0.5rem;
}
