/*
Theme Name: JAMD Technologies
Theme URI: https://jamdtechnologies.com
Author: JAMD Technologies
Description: Custom theme for JAMD Technologies - App Development, AI, Process Improvement & SEO
Version: 1.0
License: Proprietary
Text Domain: jamd
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  /* Primary Palette */
  --navy: #0B1D3A;
  --navy-light: #122B52;
  --navy-mid: #1A3A6B;
  --teal: #00D4AA;
  --teal-dark: #00B892;
  --teal-glow: rgba(0, 212, 170, 0.15);
  --amber: #F5A623;
  --amber-light: #FFB84D;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-100: #E8ECF1;
  --gray-200: #CED4DC;
  --gray-400: #8A95A5;
  --gray-600: #5A6577;
  --gray-800: #2D3748;
  --black: #0A0F1A;

  /* Functional */
  --text-primary: #1A1F2E;
  --text-secondary: #5A6577;
  --text-on-dark: #E8ECF1;
  --text-on-dark-muted: #8A95A5;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11, 29, 58, 0.08);
  --shadow-md: 0 4px 16px rgba(11, 29, 58, 0.1);
  --shadow-lg: 0 8px 32px rgba(11, 29, 58, 0.12);
  --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; }

p {
  margin-bottom: 1.25em;
  color: var(--text-secondary);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background: var(--navy);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark p {
  color: var(--text-on-dark-muted);
}

.section--alt {
  background: var(--off-white);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 29, 58, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(11, 29, 58, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
  z-index: 1001;
}

.site-logo .logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.site-logo span {
  color: var(--teal);
}

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  position: relative;
  padding: 0.5rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-200);
  transition: color 0.3s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.1rem;
  right: 1.1rem;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 1rem;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2rem 2rem;
    background: var(--navy);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    gap: 0.25rem;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 0.75rem 0;
  }

  .main-nav a::after { display: none; }

  .nav-cta { margin-left: 0; margin-top: 1rem; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn--secondary:hover {
  background: var(--teal-glow);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--large {
  padding: 1.05rem 2.4rem;
  font-size: 1rem;
}

.btn svg,
.btn .btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover svg,
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(245, 166, 35, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  color: var(--teal);
  position: relative;
}

.hero .hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--gray-200);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Animated grid background */
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  opacity: 0.4;
  pointer-events: none;
}

.grid-pattern {
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  background: var(--teal-glow);
  border-radius: var(--radius-sm);
  color: var(--teal-dark);
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-dark);
  transition: gap 0.3s var(--ease-out);
}

.service-card:hover .card-link {
  gap: 0.7rem;
}

/* ============================================
   FEATURE SECTIONS (for inner pages)
   ============================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-content h2 {
  margin-bottom: 1.25rem;
}

.feature-content p {
  margin-bottom: 1rem;
}

.feature-visual {
  position: relative;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.feature-visual--dark {
  background: var(--navy-light);
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-row.reverse { direction: ltr; }
}

/* Platform icons grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.platform-card {
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s var(--ease-out);
}

.platform-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.platform-card .platform-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.platform-card h4 {
  margin-bottom: 0.5rem;
}

.platform-card p {
  font-size: 0.85rem;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  position: relative;
  padding: calc(80px + var(--section-pad)) 0 var(--section-pad);
  background: var(--navy);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 166, 35, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero .page-hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--gray-200);
  max-width: 600px;
}

/* ============================================
   WHY SECTION / STATS
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.section--dark .stat-number {
  color: var(--teal);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-400);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

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

.cta-banner p {
  color: var(--gray-200);
  max-width: 540px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail .detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--teal-glow);
  border-radius: var(--radius-sm);
  color: var(--teal-dark);
  flex-shrink: 0;
}

.contact-detail h4 {
  margin-bottom: 0.15rem;
}

.contact-detail p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-group label .required {
  color: var(--amber);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--off-white);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--teal-glow);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-message--success {
  background: rgba(0, 212, 170, 0.1);
  color: var(--teal-dark);
  border: 1px solid var(--teal);
}

.form-message--error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid #dc3545;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand .site-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-400);
  max-width: 320px;
}

.footer-links h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--teal);
}

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

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-steps {
  counter-reset: step;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  counter-increment: step;
}

.process-step:last-child { margin-bottom: 0; }

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--teal-glow);
  border: 2px solid var(--teal);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--teal-dark);
  flex-shrink: 0;
}

.section--dark .step-number {
  background: rgba(0, 212, 170, 0.1);
  color: var(--teal);
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

@media (max-width: 500px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ============================================
   CHECKLIST STYLE
   ============================================ */
.check-list {
  list-style: none;
  margin: 1.5rem 0;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--teal);
}

.section--dark .check-list li {
  color: var(--text-on-dark-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-up:nth-child(3) { transition-delay: 0.2s; }
.stagger > .fade-up:nth-child(4) { transition-delay: 0.3s; }
.stagger > .fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-amber { color: var(--amber); }

/* ============================================
   BLOG
   ============================================ */
.blog-listing {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.blog-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.blog-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (max-width: 640px) {
  .blog-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.blog-card-image {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
}

.blog-card-meta {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.blog-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.blog-card-title a {
  color: var(--navy);
  transition: color 0.3s;
}

.blog-card-title a:hover {
  color: var(--teal-dark);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.blog-pagination {
  margin-top: 3rem;
  text-align: center;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all 0.3s;
}

.blog-pagination .page-numbers:hover {
  background: var(--off-white);
  color: var(--navy);
}

.blog-pagination .page-numbers.current {
  background: var(--teal);
  color: var(--navy);
}

/* Post Content Typography */
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1.5em;
  color: var(--text-secondary);
}

.post-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.post-content a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover {
  color: var(--navy);
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.post-content li {
  margin-bottom: 0.5em;
}

.post-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--off-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--gray-600);
}

.post-content pre,
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.post-content pre {
  background: var(--navy);
  color: var(--gray-200);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 2rem 0;
}

.post-content code {
  background: var(--off-white);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--navy);
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Hide reCAPTCHA badge (text attribution is in the form) */
.grecaptcha-badge { visibility: hidden; }
