:root {
  --accent: #3aa6b9;
  --accent-dark: #0f5662;
  --ink: #454f5e;
  --muted: #66727e;
  --soft: #e9f8f9;
  --page: #e9f8f9;
  --card: #ffffff;
  --line: rgba(58, 166, 185, 0.18);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.65;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent-dark);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 3000;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #fff;
  color: var(--accent-dark);
  box-shadow: var(--shadow);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid rgba(15, 86, 98, 0.68);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1500;
  padding: 1rem 2rem;
  background: rgba(233, 248, 249, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  min-height: 44px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.88;
}

.brand-logo {
  display: block;
  width: min(220px, 52vw);
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

.nav-links-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.nav-links a:hover,
.nav-links a.current-link {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.current-link::after {
  transform: scaleX(1);
}

.burger-btn {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.burger-btn span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.blog-main {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.75rem 0 5rem;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  text-align: center;
}

.eyebrow,
.article-category {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(58, 166, 185, 0.22);
  border-radius: 999px;
  background: rgba(58, 166, 185, 0.1);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.article-category:hover {
  transform: translateY(-1px);
  border-color: rgba(58, 166, 185, 0.5);
  background: rgba(58, 166, 185, 0.15);
}

.blog-hero h1,
.category-header h1,
.article-header h1 {
  margin: 0.85rem auto 1rem;
  color: var(--ink);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.1;
}

.blog-hero p,
.category-header > p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 1.1rem;
  opacity: 0.8;
}

.section-heading {
  margin: 3.5rem 0 1rem;
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1.2;
  text-align: center;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 1.5rem 0 0;
}

.category-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(58, 166, 185, 0.22);
  border-radius: 999px;
  background: rgba(58, 166, 185, 0.1);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.category-link:hover {
  transform: translateY(-1px);
  border-color: rgba(58, 166, 185, 0.5);
  background: rgba(58, 166, 185, 0.15);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.article-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(30, 79, 88, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-card-link {
  display: flex;
  width: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.article-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--soft);
}

.article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.article-card-meta,
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-card-meta span + span::before,
.article-meta span + span::before {
  content: "\2022";
  margin-right: 0.7rem;
  opacity: 0.55;
}

.article-card h2,
.article-card h3 {
  margin: 0.7rem 0 0.65rem;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.article-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.read-more {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
}

.breadcrumb {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.35rem;
  opacity: 0.5;
}

.article-shell {
  max-width: 920px;
  margin: 0 auto;
}

.article-page {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.article-header {
  padding: clamp(1.7rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 4rem) 1.8rem;
}

.article-header h1 {
  max-width: none;
  margin-left: 0;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.article-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 610px;
  object-fit: cover;
  background: var(--soft);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.7rem, 5vw, 3.7rem) clamp(1.25rem, 5vw, 3.25rem);
}

.article-body p {
  margin: 0 0 1.3rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-body .article-lede {
  margin-bottom: 1.8rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.55;
}

.article-body h2 {
  margin: 2rem 0 0.75rem;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.article-body h3 {
  margin: 1.6rem 0 0.65rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.article-question {
  margin: 2.25rem 0;
  padding: 1.5rem;
  border-left: 5px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--soft);
}

.article-question p {
  color: var(--ink);
  font-weight: 700;
}

.article-question p:last-child {
  margin-bottom: 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2rem 0;
}

.article-tag {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(58, 166, 185, 0.22);
  border-radius: 999px;
  background: rgba(58, 166, 185, 0.1);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
}

.share-box,
.service-callout,
.author-box {
  margin-top: 2rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
}

.share-box {
  text-align: center;
}

.share-box h2,
.service-callout h2,
.author-box h2 {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.share-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-top: 0.85rem;
}

.share-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.share-icon-link:hover {
  transform: translateY(-2px);
}

.share-icon-link img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.share-icon-link.x img {
  width: 20px;
  height: 20px;
}

.share-email-icon {
  color: #111;
  font-family: "Segoe UI Symbol", "Segoe UI", sans-serif;
  font-size: 25px;
  line-height: 1;
}

.service-callout a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(58, 166, 185, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.service-callout a:hover {
  transform: translateY(-1px);
  background: #3297a8;
  box-shadow: 0 14px 28px rgba(58, 166, 185, 0.3);
}

.service-callout a:focus-visible {
  outline: 3px solid rgba(58, 166, 185, 0.45);
  outline-offset: 3px;
}

.service-callout p,
.author-box p {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.author-box p:last-child {
  margin-bottom: 0;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.post-navigation a {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.post-navigation a:last-child {
  text-align: right;
}

.category-header {
  margin-bottom: 2.25rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.category-header h1 {
  margin-left: 0;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.site-footer {
  background: var(--soft);
  border-top: 1px solid rgba(58, 166, 185, 0.15);
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-social {
  margin-bottom: 1.5rem;
}

.footer-social-title {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.footer-social-link {
  display: inline-flex;
  width: 36px;
  height: 44px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.footer-social-link:hover {
  transform: translateY(-2px);
}

.footer-social-link img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-social-link.youtube img {
  width: 27px;
  height: 27px;
}

.footer-social-link.x img {
  width: 20px;
  height: 20px;
}

.footer-links,
.footer-contact-inline,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
}

.footer-links {
  margin: 0.25rem 0 1.5rem;
  font-size: 0.98rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted rgba(58, 166, 185, 0.55);
  padding: 0.15rem 0;
}

.footer-contact-inline {
  gap: 0.75rem;
  margin: 0 0 1.4rem;
  font-size: 0.98rem;
}

.footer-contact-inline a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted rgba(69, 79, 94, 0.35);
}

.footer-bottom {
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(69, 79, 94, 0.18);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .burger-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    padding: 0.85rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(233, 248, 249, 0.99);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.55rem 0.45rem;
  }
}

@media (max-width: 620px) {
  .blog-main {
    width: min(100% - 2rem, 1200px);
  }

  .blog-main {
    padding-top: 2rem;
  }

  .article-grid,
  .post-navigation {
    grid-template-columns: 1fr;
  }

  .article-header {
    padding-bottom: 1.3rem;
  }

  .article-body {
    padding-top: 2rem;
  }

  .post-navigation a:last-child {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .section-heading {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
