@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@600;700;800&display=swap");

:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3fb;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-alt: #f9fbff;
  --text: #18212f;
  --muted: #607085;
  --line: rgba(24, 33, 47, 0.08);
  --line-strong: rgba(24, 33, 47, 0.14);
  --primary: #29abe2;
  --primary-dark: #1a1a40;
  --primary-soft: rgba(41, 171, 226, 0.12);
  --accent: #e7f7ff;
  --shadow-sm: 0 10px 30px rgba(26, 26, 64, 0.06);
  --shadow: 0 24px 60px rgba(26, 26, 64, 0.10);
  --shadow-lg: 0 34px 90px rgba(26, 26, 64, 0.14);
  --radius-xs: 14px;
  --radius-sm: 20px;
  --radius: 28px;
  --radius-lg: 36px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(41,171,226,0.16), transparent 30%),
    radial-gradient(circle at 100% 10%, rgba(26,26,64,0.10), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 42%, #eef3fb 100%);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin-top: 0; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(920px, calc(100% - 40px)); }
.section-space { padding: 54px 0 110px; }
.card {
  background: var(--surface-strong);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.glass {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(244, 247, 251, 0.72);
  border-bottom: 1px solid rgba(24,33,47,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}
.brand-wrap { display: flex; align-items: center; gap: 14px; }
.site-title {
  font-size: 1.18rem;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.04em;
}
.site-logo img {
  max-height: 56px;
  width: auto;
  filter: drop-shadow(0 10px 18px rgba(26,26,64,0.08));
}
.menu {
  display: flex;
  list-style: none;
  gap: 12px;
  padding: 0;
  margin: 0;
  align-items: center;
}
.menu li a {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--primary-dark);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.menu li.current-menu-item a,
.menu li a:hover {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 26px rgba(26,26,64,0.08);
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
  padding: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-dark);
  margin: 6px 0;
}

.hero-section { padding: 72px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  align-items: center;
}
.hero-copy,
.hero-photo,
.about-card,
.timeline-item,
.cta-card,
.post-card,
.single-card,
.page-card,
.widget { padding: 36px; }
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(41,171,226,0.16), rgba(41,171,226,0.08));
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 18px;
  border: 1px solid rgba(41,171,226,0.12);
}
.hero-copy {
  position: relative;
  overflow: hidden;
}
.hero-copy::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -46px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,171,226,0.12), transparent 64%);
}
.hero-copy h1,
.section-heading h2,
.section-heading h1,
.cta-card h2,
.page-card h1,
.single-card h1,
.timeline-content h3,
.post-content h2,
.widget-title {
  font-family: "Manrope", "Inter", sans-serif;
  margin: 0 0 18px;
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--primary-dark);
}
.hero-copy h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
.hero-text {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 15px 24px;
  border-radius: 999px;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, border-color .28s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #56c9ff);
  color: #fff;
  box-shadow: 0 18px 34px rgba(41,171,226,0.30);
}
.btn-secondary {
  background: rgba(255,255,255,0.92);
  color: var(--primary-dark);
  border: 1px solid rgba(24,33,47,0.08);
}
.hero-photo {
  overflow: hidden;
  min-height: 560px;
  padding: 0;
  border-radius: var(--radius-lg);
  position: relative;
}
.hero-photo img,
.photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 560px;
}
.photo-placeholder {
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(41,171,226,.12), rgba(26,26,64,.08));
  text-align: center;
}
.section-heading {
  margin-bottom: 36px;
}
.section-heading h2,
.section-heading h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.prose { font-size: 1.06rem; }
.prose p,
.timeline-content p,
.post-content p,
.single-card p,
.page-card p,
.widget p,
.archive-description {
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
}
.about-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,251,255,0.94));
}
.about-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), rgba(41,171,226,0.12));
}

.timeline-section { position: relative; }
.timeline-list {
  position: relative;
  display: grid;
  gap: 30px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 84px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(41,171,226,0.86), rgba(41,171,226,0.10));
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 34px;
  align-items: start;
  padding: 40px 40px 40px 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,251,255,0.94));
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}
.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(41,171,226,0.16);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 76px;
  top: 44px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7edcff);
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 8px rgba(41,171,226,0.12), 0 12px 24px rgba(41,171,226,0.22);
}
.timeline-year {
  position: relative;
  z-index: 1;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--primary-dark);
  padding-top: 7px;
}
.timeline-content {
  position: relative;
  z-index: 1;
}
.timeline-content h3 {
  margin: 0 0 12px;
  font-size: 1.46rem;
  line-height: 1.12;
  color: var(--primary-dark);
}
.timeline-content p {
  margin: 0;
  color: var(--muted);
  max-width: none;
}

.cta-card {
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #eef9ff);
  position: relative;
  overflow: hidden;
}
.cta-card::before,
.cta-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,171,226,0.14), transparent 68%);
  pointer-events: none;
}
.cta-card::before { width: 180px; height: 180px; top: -60px; left: -40px; }
.cta-card::after { width: 220px; height: 220px; bottom: -90px; right: -70px; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card p { color: var(--muted); max-width: 660px; margin: 0 auto 22px; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.post-card {
  overflow: hidden;
  padding: 0;
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.post-thumb img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}
.post-content { padding: 26px; }
.post-content h2 {
  margin: 8px 0 10px;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--primary-dark);
}
.post-content p,
.post-meta,
.archive-description,
.site-footer p,
.widget p { color: var(--muted); }
.text-link {
  font-weight: 800;
  color: var(--primary-dark);
}
.single-card,
.page-card,
.widget {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,251,255,0.94));
}
.single-thumb { margin: 24px 0; overflow: hidden; border-radius: 20px; }
.pagination-wrap { margin-top: 28px; }
.sidebar-area { display: grid; gap: 18px; align-self: start; }
.widget-title { margin: 0 0 12px; color: var(--primary-dark); }
.content-grid.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}
.content-grid.no-sidebar > * {
  min-width: 0;
}
.single-card,
.page-card {
  overflow-wrap: anywhere;
}
.single-card .wp-block-image img,
.single-card iframe,
.single-card video,
.single-card table,
.page-card .wp-block-image img,
.page-card iframe,
.page-card video,
.page-card table {
  max-width: 100%;
}
.single-card .wp-block-embed,
.single-card .wp-block-image,
.single-card .wp-block-gallery,
.page-card .wp-block-embed,
.page-card .wp-block-image,
.page-card .wp-block-gallery {
  overflow: visible;
}

.site-footer {
  margin-top: 38px;
  padding: 34px 0 58px;
  border-top: 1px solid rgba(24,33,47,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.34));
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-menu {
  display: flex;
  list-style: none;
  gap: 14px;
  margin: 0;
  padding: 0;
}


.hero-copy,
.hero-photo,
.about-card,
.timeline-item,
.cta-card,
.post-card,
.widget {
  will-change: transform, opacity;
}

.js-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
}

.js-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy,
.hero-photo {
  animation: fadeLift .85s cubic-bezier(.22,1,.36,1) both;
}

.hero-photo {
  animation-delay: .08s;
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy,
  .hero-photo,
  .reveal-on-scroll,
  .timeline-item,
  .btn,
  .menu li a,
  .post-card,
  .single-card,
  .page-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .content-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo { min-height: 420px; }
  .hero-photo img, .photo-placeholder { min-height: 420px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: .25s ease;
  }
  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .menu {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(24,33,47,0.08);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 20px, var(--container)); }
  .hero-copy,
  .about-card,
  .timeline-item,
  .cta-card,
  .post-content,
  .single-card,
  .page-card,
  .widget { padding: 22px; }
  .hero-section { padding-top: 34px; }
  body { font-size: 16px; }
  .header-inner { min-height: 78px; }
  .hero-copy h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  .timeline-list { gap: 18px; }
  .timeline-item {
    grid-template-columns: 1fr;
    padding: 60px 22px 24px;
  }
  .timeline-list::before { left: 24px; top: 18px; bottom: 18px; }
  .timeline-item::before { left: 16px; top: 24px; width: 16px; height: 16px; border-width: 3px; box-shadow: 0 0 0 6px rgba(41,171,226,0.12); }
  .timeline-year { padding-top: 0; font-size: 0.98rem; }
  .single-card,
  .page-card,
  .single-card .entry-content,
  .single-card .post-content,
  .page-card .entry-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }
  .content-grid.no-sidebar {
    gap: 18px;
  }
  .hero-text,
  .prose p,
  .timeline-content p,
  .post-content p,
  .single-card p,
  .page-card p { text-align: left; }
  .timeline-content h3 { font-size: 1.22rem; }
}
