*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark: #003366;
  --blue-mid: #1d3557;
  --blue-light: #4a90e2;
  --gold: #f4c20d;
  --gold-hover: #f9d03a;
  --bg: #f4f7fb;
  --text: #333;
  --muted: #5a6a7e;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Krub", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: "Krub", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s,
    color 0.2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn:hover::after {
  left: 160%;
}
.btn-primary {
  background: var(--gold);
  color: var(--blue-mid);
  box-shadow: 0 4px 16px rgba(244, 194, 13, 0.35);
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(244, 194, 13, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}
.btn-outline:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.68, 0, 1.2),
    transform 0.7s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.22s;
}
.reveal-d3 {
  transition-delay: 0.34s;
}

/* =============================================
       POST HEADER
    ============================================= */
.post-header {
  padding: 72px 24px 24px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.post-header__inner {
  max-width: 780px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--blue-dark);
}
.breadcrumb__sep {
  font-size: 0.78rem;
  color: rgba(0, 51, 102, 0.25);
}
.breadcrumb__current {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
}

.post-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 51, 102, 0.08);
  color: var(--blue-dark);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.post-header__title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}
.post-header__title em {
  font-style: italic;
  color: var(--gold);
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.post-meta-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

.post-author-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg);
  border-radius: 50px;
  border: 1.5px solid rgba(0, 51, 102, 0.08);
  margin-top: 24px;
  width: fit-content;
}
.post-author-chip__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.post-author-chip__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-dark);
}
.post-author-chip__role {
  font-size: 0.72rem;
  color: var(--muted);
}

/* =============================================
       POST BODY
    ============================================= */
.post-body {
  padding: 16px 24px 80px;
  background: var(--white);
}
.post-body__inner {
  max-width: 780px;
  margin: 0 auto;
}

.post-body__inner p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 24px;
}

.post-body__inner h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.25;
  margin: 44px 0 16px;
  position: relative;
  padding-left: 18px;
}
.post-body__inner h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 75%;
  background: var(--gold);
  border-radius: 2px;
}

.post-lead {
  font-size: 1.15rem !important;
  color: var(--blue-dark) !important;
  font-weight: 500 !important;
  line-height: 1.75 !important;
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 32px !important;
}

/* Highlight box */
.post-highlight {
  background: rgba(244, 194, 13, 0.08);
  border: 1.5px solid rgba(244, 194, 13, 0.3);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.post-highlight__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.post-highlight__text {
  font-size: 0.95rem;
  color: var(--blue-dark);
  line-height: 1.75;
  font-weight: 500;
}
.post-highlight__text strong {
  color: var(--blue-dark);
}

/* Tips list */
.post-tips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 28px;
}
.post-tips li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  padding: 18px 20px;
  background: var(--bg);
  border-radius: 12px;
  border: 1.5px solid rgba(0, 51, 102, 0.06);
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.post-tips li:hover {
  border-color: rgba(244, 194, 13, 0.35);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.07);
}
.tip-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(244, 194, 13, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
}
.post-tips li:hover .tip-icon {
  background: var(--gold);
  transform: scale(1.1) rotate(-5deg);
}

/* Mid-article image */
.post-mid-img {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin: 44px 0;
  box-shadow: 0 16px 48px rgba(0, 51, 102, 0.12);
  transition: transform 0.5s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.post-mid-img:hover {
  transform: scale(1.01);
}
.post-mid-img img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.post-mid-img figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  padding: 10px 16px;
  background: var(--bg);
  border-top: 1px solid rgba(0, 51, 102, 0.06);
  line-height: 1.5;
}

/* Signature */
.post-signature {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 51, 102, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
}
.post-signature__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-dark);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.post-signature__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  display: block;
  margin-bottom: 2px;
}
.post-signature__role {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Share */
.post-share {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 51, 102, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.post-share__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: "Krub", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1.5px solid rgba(0, 51, 102, 0.14);
  color: var(--blue-dark);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.share-btn:hover {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
}
.share-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Back */
.back-section {
  padding: 0 24px 64px;
  background: var(--white);
  text-align: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue-dark);
  transition:
    color 0.2s,
    gap 0.2s;
}
.back-link:hover {
  color: var(--gold);
  gap: 12px;
}
.back-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}
.back-link:hover svg {
  transform: translateX(-4px);
}

/* CTA */
.cta-section {
  padding: 80px 24px 100px;
  background: var(--bg);
  text-align: center;
}
.cta-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 28px;
  padding: 60px 48px;
  box-shadow: 0 16px 60px rgba(0, 51, 102, 0.08);
  position: relative;
  overflow: hidden;
  animation: ctaBreath 5s ease-in-out infinite;
}
@keyframes ctaBreath {
  0%,
  100% {
    box-shadow: 0 16px 60px rgba(0, 51, 102, 0.08);
  }
  50% {
    box-shadow: 0 24px 80px rgba(0, 51, 102, 0.14);
  }
}
.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--blue-dark), var(--gold));
}
.cta-box .cta-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 20px;
}
.cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.cta-box p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
}
.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .post-header {
    padding: 56px 20px 44px;
  }
  .post-body {
    padding: 48px 20px 64px;
  }
  .cta-box {
    padding: 40px 24px;
  }
  .post-highlight {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }
}
