:root {
  --primary: #0085ec;
  --primary-dark: #0768b8;
  --accent: #bcff30;
  --light: #c4faff;
  --surface: #ffffff;
  --on-primary: #ffffff;
  --ink: #0b2e4d;
  --muted: #4f6b7a;
  --border: #bfe3f2;
  --danger: #bf405c;
  --danger-bg: #fbe4ea;
  --success: #1c6b40;
  --success-bg: #e4f2e8;
  --shadow: 0 4px 18px rgba(0, 91, 168, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.dialog-open {
  overflow: hidden;
}

/* Căn đều hai bên (như Word) cho toàn bộ đoạn văn và danh sách trên web */
p,
li,
dd,
blockquote,
figcaption {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

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

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

.page-width {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 0 clamp(28px, 12vw, 160px);
  background: rgba(234, 251, 255, 0.96);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  box-shadow: 0 3px 12px rgba(0, 91, 168, 0.28);
  backdrop-filter: blur(6px);
}

.logo-link img {
  width: clamp(148px, 13vw, 190px);
  height: 70px;
  object-fit: contain;
}

.main-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(34px, 5vw, 62px);
  font-weight: 700;
  color: #4f6b7a;
}

.main-nav a {
  padding: 28px 0;
  white-space: nowrap;
  transition: color 180ms ease;
}

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

.member-link {
  justify-self: end;
  min-width: 0;
  max-width: min(260px, 100%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(0, 133, 236, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 17px;
  font-weight: 700;
  color: #0b2e4d;
  white-space: nowrap;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.member-link span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-link:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--light);
}

.member-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 34%, var(--light) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 84%, var(--light) 0 9px, transparent 10px),
    var(--primary-dark);
}

.hero {
  margin-top: -1px;
  display: grid;
  place-items: center;
  aspect-ratio: 1280 / 500;
  background: url("assets/images/home/Carousel.png") center / cover no-repeat
    var(--light);
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.title-band {
  padding: 48px 24px 24px;
  text-align: center;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  color: #ffffff;
  font-size: clamp(42px, 6.2vw, 64px);
  line-height: 1.05;
}

.red-section {
  background: var(--primary);
  color: #ffffff;
}

.cream-section {
  background: var(--light);
}

.intro-section {
  padding-bottom: 54px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 32px;
  align-items: center;
}

.intro-grid > img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 91, 168, 0.24);
}

.intro-copy {
  font-size: 15.5px;
  font-style: italic;
  line-height: 1.45;
}

.intro-copy p + p {
  margin-top: 14px;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.cream-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #bfe3f2;
  border-radius: 5px;
  background: #ffffff;
  color: #0768b8;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.cream-button:hover {
  transform: translateY(-2px);
  background: #eafbff;
}

.about-section {
  padding: 42px 0 34px;
}

.section-heading {
  width: min(1170px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.section-heading img {
  width: 100%;
  height: 23px;
  object-fit: contain;
}

.section-heading h2 {
  color: var(--primary-dark);
  font-size: clamp(35px, 4.3vw, 50px);
  line-height: 1;
  white-space: nowrap;
}

.section-heading.light h2 {
  color: #ffffff;
}

.section-lead {
  margin-top: 26px;
  font-size: 17px;
  font-style: italic;
  color: #4f6b7a;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 86px;
  margin-top: 34px;
}

.feature img {
  width: 58px;
  height: 66px;
  object-fit: contain;
  margin-bottom: 12px;
}

.feature h3 {
  margin: 0 0 4px;
  color: var(--primary-dark);
  font-size: 20px;
  line-height: 1.2;
}

.feature p {
  margin: 0;
  color: #4f6b7a;
  font-size: 17px;
}

.detail-section {
  padding: 70px 0 0;
  overflow: hidden;
}

.detail-layout,
.value-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: start;
}

.detail-left h2,
.value-copy h2 {
  color: #ffffff;
  font-size: 42px;
  line-height: 1.08;
}

.detail-left > img:first-of-type {
  width: 314px;
  height: 23px;
  margin: 12px 0 18px;
  object-fit: contain;
  filter: brightness(2.5);
}

.detail-image {
  width: 360px;
  height: 215px;
  object-fit: cover;
  object-position: center;
  border-radius: 7px;
}

.detail-copy,
.value-copy {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.48;
}

.detail-copy p,
.value-copy p {
  margin: 0 0 12px;
}

.detail-copy ul {
  margin: 8px 0 12px;
  padding-left: 24px;
}

.detail-copy li {
  margin: 3px 0;
}

.value-layout {
  grid-template-columns: 1fr 359px;
  margin-top: 70px;
  padding-bottom: 78px;
  align-items: center;
}

.value-layout img {
  width: 359px;
  height: auto;
  border-radius: 4px;
  opacity: 0.86;
}

.value-copy h2 {
  text-align: right;
  margin-bottom: 26px;
}

.cta-section {
  padding: 40px 0 44px;
  text-align: center;
}

.red-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  min-height: 65px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 4px 9px rgba(0, 91, 168, 0.3);
  transition: background 180ms ease;
}

.red-button:hover {
  background: #a3e01f;
}

.why-section {
  padding: 64px 0 70px;
  overflow: hidden;
}

.why-section .section-heading h2 {
  font-size: clamp(34px, 4.6vw, 54px);
}

.why-track {
  width: min(1120px, calc(100% - 48px));
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 270px repeat(3, 196px);
  gap: 25px;
  justify-content: space-between;
  align-items: start;
}

.why-intro img {
  width: 270px;
  margin: 0 0 24px;
}

.why-intro {
  width: 270px;
}

.why-card {
  width: 196px;
}

.why-intro p,
.why-card p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.55;
}

.why-card img {
  width: 196px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border: 7px solid #ffffff;
}

.why-card h3 {
  margin: 18px 0 6px;
  color: #ffffff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  line-height: 1.15;
}

.quote-panel {
  position: relative;
  margin-top: 38px;
  padding: 34px 52px;
  border-radius: 16px;
  background: rgba(234, 251, 255, 0.76);
  color: #0b2e4d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.42;
}

.quote-panel p {
  margin: 0 0 12px;
}

.quote-panel p:last-of-type {
  margin-bottom: 0;
}

.quote-start,
.quote-end {
  position: absolute;
  width: 39px;
  height: 34px;
  object-fit: contain;
}

.quote-start {
  left: 18px;
  top: -18px;
}

.quote-end {
  right: 24px;
  bottom: -18px;
  transform: rotate(180deg);
}

.timeline-section {
  padding: 22px 0 54px;
}

.timeline-intro {
  text-align: center;
}

.timeline-intro h2 {
  color: var(--primary-dark);
  font-size: clamp(58px, 8vw, 104px);
  line-height: 1.18;
  letter-spacing: 0;
}

.timeline-intro p {
  width: min(680px, 100%);
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 17px;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 96px minmax(260px, 1fr);
  row-gap: 0;
  margin-top: 34px;
  counter-reset: timeline;
}

.timeline.reveal {
  transform: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  transform: translateX(-1px) scaleY(0);
  transform-origin: top;
  background: #0768b8;
  transition: transform 1100ms ease;
}

.timeline.visible::before {
  transform: translateX(-1px) scaleY(1);
}

.timeline-item {
  position: relative;
  min-height: 90px;
  color: #0b2e4d;
  font-size: 15px;
  line-height: 1.32;
  padding-bottom: 24px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}

.timeline.visible .timeline-item {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  grid-column: 1;
  text-align: right;
  padding-right: 40px;
}

.timeline-item:nth-child(even) {
  grid-column: 3;
  padding-left: 40px;
}

.timeline-item:nth-child(1) {
  grid-row: 1;
}

.timeline-item:nth-child(2) {
  grid-row: 2;
}

.timeline-item:nth-child(3) {
  grid-row: 3;
}

.timeline-item:nth-child(4) {
  grid-row: 4;
}

.timeline-item:nth-child(5) {
  grid-row: 5;
}

.timeline-item:nth-child(6) {
  grid-row: 6;
}

.timeline-item:nth-child(7) {
  grid-row: 7;
}

.timeline-item:nth-child(8) {
  grid-row: 8;
}

.timeline-item:nth-child(9) {
  grid-row: 9;
}

.timeline-item:nth-child(10) {
  grid-row: 10;
}

.timeline-item:nth-child(11) {
  grid-row: 11;
}

.timeline-item:nth-child(12) {
  grid-row: 12;
}

.timeline-number {
  position: absolute;
  top: -8px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  border: 2px solid #0768b8;
  color: #0768b8;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 7px rgba(0, 91, 168, 0.28);
  z-index: 2;
  transform: scale(0.72);
  transition: transform 420ms ease;
  transition-delay: calc(var(--i, 0) * 80ms + 120ms);
}

.timeline.visible .timeline-number {
  transform: scale(1);
}

.timeline-item:nth-child(odd) .timeline-number {
  right: -70px;
}

.timeline-item:nth-child(even) .timeline-number {
  left: -70px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 13px;
  width: 58px;
  height: 2px;
  background: #0768b8;
  transform: scaleX(0);
  transition: transform 420ms ease;
  transition-delay: calc(var(--i, 0) * 80ms + 180ms);
}

.timeline.visible .timeline-item::before {
  transform: scaleX(1);
}

.timeline-item:nth-child(odd)::before {
  right: -48px;
  transform-origin: right;
}

.timeline-item:nth-child(even)::before {
  left: -48px;
  transform-origin: left;
}

.timeline-year {
  display: block;
  color: #0768b8;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.timeline-item h3 {
  margin: 0 0 6px;
  color: #0768b8;
  font-size: 21px;
  line-height: 1.16;
  font-weight: 800;
}

.timeline-item p {
  margin: 0 0 14px;
  line-height: 1.32;
}

.timeline-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 162px;
  min-height: 40px;
  border: 2px solid #0768b8;
  border-radius: 999px;
  background: transparent;
  color: #0768b8;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.timeline-item a:hover {
  background: #0768b8;
  color: #ffffff;
  transform: translateY(-1px);
}

.blog-section {
  padding: 58px 0 72px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 76px;
  margin-top: 44px;
}

.blog-card {
  color: #ffffff;
}

.blog-card img {
  width: 100%;
  height: 141px;
  object-fit: cover;
  border: 4px solid #ffffff;
  border-radius: 4px;
}

.blog-card h3 {
  margin: 18px 0 8px;
  color: #ffffff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  line-height: 1.16;
}

.blog-card p {
  margin: 0;
  color: #cfe9f5;
  font-size: 14px;
}

.more-button {
  width: 152px;
  min-height: 45px;
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #ffffff;
  color: var(--primary-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 800;
}

.contact-section {
  padding: 36px 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 70px;
  color: #0b2e4d;
}

.contact-grid h2 {
  color: #0b2e4d;
  font-size: 36px;
}

.contact-grid h3 {
  margin: 8px 0 10px;
  color: #0b2e4d;
  font-size: 20px;
}

.contact-grid p,
.contact-grid a {
  color: #0b2e4d;
  font-size: 14px;
  line-height: 1.5;
}

.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 54px clamp(24px, 5vw, 72px) 22px;
  background:
    linear-gradient(180deg, rgba(0, 91, 168, 0.05), transparent 42%),
    var(--light);
  color: #0b2e4d;
  border-top: 1px solid rgba(0, 133, 236, 0.12);
}

.site-footer__inner {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 470px) minmax(320px, 600px);
  justify-content: space-between;
  gap: clamp(32px, 7vw, 120px);
  align-items: start;
}

.site-footer h2,
.site-footer h3,
.site-footer p {
  margin-top: 0;
}

.site-footer__eyebrow {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-footer h2 {
  max-width: 360px;
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
  font-weight: 900;
}

.site-footer h3 {
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 21px;
  line-height: 1.32;
  font-weight: 800;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.site-footer__intro p,
.site-footer__message p {
  max-width: 470px;
  margin-bottom: 18px;
}

.site-footer__message {
  justify-self: end;
  width: min(100%, 600px);
  padding-top: 8px;
  text-align: left;
}

.site-footer__email {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(0, 133, 236, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-footer__email:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--light);
  text-decoration: none;
  transform: translateY(-1px);
}

.site-footer__bottom {
  width: 100%;
  margin: 38px auto 0;
  padding-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(0, 133, 236, 0.16);
}

.copyright {
  margin-bottom: 0;
  color: rgba(11, 46, 77, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.student-project-note {
  max-width: 360px;
  margin: 0 0 0 auto;
  color: rgba(11, 46, 77, 0.62);
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.blog-page {
  background: var(--light);
}

.blog-list-page,
.booking-page {
  background: var(--light);
}

.blog-feed-shell {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.blog-feed-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(11, 46, 77, 0.18);
}

.blog-feed-header nav a {
  color: #0b2e4d;
  font-size: 15px;
  font-weight: 500;
}

.blog-search {
  width: 214px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #0b2e4d;
}

.blog-search span {
  width: 15px;
  height: 15px;
  border: 2px solid #0b2e4d;
  border-radius: 999px;
  position: relative;
}

.blog-search span::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  background: #0b2e4d;
  transform: rotate(45deg);
}

.blog-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0b2e4d;
  font: inherit;
}

.blog-feed-list {
  display: grid;
  gap: 34px;
  padding-top: 34px;
}

.blog-feed-empty {
  margin: 36px 0 0;
  color: #4f6b7a;
  font-size: 16px;
}

.post-blog-top {
  padding-bottom: 0;
}

.blog-feed-item {
  display: grid;
  grid-template-columns: 347px 1fr;
  min-height: 261px;
  border: 1px solid rgba(0, 91, 168, 0.18);
  background: #ffffff;
}

.blog-feed-item[hidden] {
  display: none;
}

.blog-feed-image img {
  width: 347px;
  height: 261px;
  object-fit: cover;
}

.blog-feed-content {
  padding: 28px 34px 16px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-width: 0;
}

.blog-feed-content h2 {
  color: #0b2e4d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
}

.blog-feed-desc {
  margin: 12px 0 20px;
  color: #0b2e4d;
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-feed-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  color: #4f6b7a;
  font-size: 12px;
}

.blog-feed-meta img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 999px;
}

.blog-feed-meta span + span::before {
  content: "•";
  margin-right: 10px;
  color: #8fabb8;
}

.product-page {
  background: var(--light);
}

.product-shell {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 545px) minmax(0, 1fr);
  gap: 44px;
  padding: 54px 0 62px;
  color: #0b2e4d;
}

.product-gallery {
  min-width: 0;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(11, 46, 77, 0.12);
}

.product-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.product-thumbs button {
  width: 52px;
  height: 52px;
  padding: 3px;
  border: 1px solid rgba(11, 46, 77, 0.28);
  background: transparent;
  cursor: pointer;
}

.product-thumbs button.active {
  border-color: #0b2e4d;
}

.product-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  color: #0b2e4d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}

.product-price {
  margin: 22px 0 24px;
  color: #0b2e4d;
  font-size: 20px;
}

.product-price span {
  display: block;
  margin-top: 2px;
  color: #4f6b7a;
  font-size: 12px;
}

.product-desc {
  color: #0b2e4d;
  font-size: 14px;
  line-height: 1.68;
}

.buy-now {
  width: 100%;
  min-height: 48px;
  margin: 28px 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease;
}

.buy-now:hover {
  background: #a3e01f;
  border-color: #a3e01f;
}

.product-accordions {
  border-top: 1px solid rgba(11, 46, 77, 0.22);
}

.product-accordions details {
  border-bottom: 1px solid rgba(11, 46, 77, 0.22);
  padding: 0;
}

.product-accordions summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #0b2e4d;
  font-size: 16px;
  font-weight: 500;
  list-style: none;
}

.product-accordions summary::-webkit-details-marker {
  display: none;
}

.product-accordions summary::after {
  content: "+";
  font-size: 22px;
}

.product-accordions details[open] summary::after {
  content: "−";
}

.product-accordions p {
  margin: 0 0 14px;
  color: #0b2e4d;
  font-size: 14px;
  line-height: 1.68;
}

/* ---- Form đặt hàng (dialog) ---------------------------------------------- */
.order-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(760px, calc(100% - 32px));
  max-height: min(88vh, 900px);
  border: none;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.order-dialog::backdrop {
  background: rgba(6, 26, 46, 0.55);
}

.order-dialog[open] {
  animation: order-dialog-in 200ms ease;
}

@keyframes order-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.order-dialog-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 46, 77, 0.08);
  color: #0b2e4d;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease;
}

.order-dialog-close:hover {
  background: rgba(11, 46, 77, 0.16);
}

.order-shell {
  width: 100%;
  max-height: min(88vh, 900px);
  overflow-y: auto;
  background: var(--light);
  border-radius: 10px;
  padding: 40px clamp(20px, 5vw, 48px) 44px;
  box-shadow: 0 18px 44px rgba(0, 91, 168, 0.28);
}

.order-head {
  text-align: center;
  margin-bottom: 30px;
}

.order-head h2 {
  color: var(--primary-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 900;
}

.order-head p {
  margin: 12px auto 0;
  max-width: 480px;
  color: #4f6b7a;
  font-size: 14.5px;
  line-height: 1.6;
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.field {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field > span {
  color: #0b2e4d;
  font-size: 13.5px;
  font-weight: 500;
}

.field > span em {
  color: var(--primary);
  font-style: normal;
}

.field input,
.field textarea,
.combo input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bfe3f2;
  border-radius: 6px;
  background: #ffffff;
  color: #0b2e4d;
  font: inherit;
  font-size: 15px;
  outline: 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus,
.combo input:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(0, 91, 168, 0.12);
}

.field input:disabled,
.combo input:disabled {
  background: #e4eef3;
  cursor: not-allowed;
  color: #7e96a3;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error .combo input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(191, 64, 92, 0.12);
}

.field-error {
  min-height: 15px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.3;
}

/* Combobox địa chỉ */
.combo {
  position: relative;
}

.combo-list {
  /* Vị trí thực (top/left/width) được JS tính và gán trực tiếp qua style,
     dùng position:fixed để danh sách luôn thoát khỏi vùng overflow:auto
     của .order-shell (không bao giờ bị cắt khi dialog phải cuộn nội bộ). */
  position: fixed;
  z-index: 2000;
  max-height: 244px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #ffffff;
  border: 1px solid #bfe3f2;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 91, 168, 0.18);
  overflow-y: auto;
}

.combo-list li {
  padding: 9px 11px;
  border-radius: 4px;
  color: #0b2e4d;
  font-size: 14.5px;
  cursor: pointer;
}

.combo-list li.active,
.combo-list li:hover {
  background: var(--primary);
  color: #ffffff;
}

.order-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(11, 46, 77, 0.2);
}

.order-summary span {
  color: #4f6b7a;
  font-size: 14px;
}

.order-summary strong {
  color: var(--primary-dark);
  font-size: 24px;
  font-weight: 700;
}

.order-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.order-status.success {
  background: var(--success-bg);
  color: var(--success);
}

.order-status.error {
  background: var(--danger-bg);
  color: var(--danger);
}

.order-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: background 180ms ease;
}

.order-submit:hover {
  background: #a3e01f;
  border-color: #a3e01f;
}

.order-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 620px) {
  .order-grid {
    grid-template-columns: 1fr;
  }

  .order-dialog {
    width: calc(100% - 20px);
    max-height: 92vh;
  }

  .order-shell {
    max-height: 92vh;
    padding: 34px 18px 32px;
  }
}

.login-page {
  background: var(--light);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px 18px;
  background: var(--light);
}

.auth-panel {
  position: relative;
  width: min(520px, 100%);
  color: #0b2e4d;
  text-align: center;
}

.auth-close {
  position: fixed;
  top: 26px;
  right: 26px;
  color: #0b2e4d;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  z-index: 5;
}

.auth-status {
  margin: 0 0 18px;
  color: #0b2e4d;
  font-size: 13px;
  line-height: 1.45;
}

.auth-status.success {
  color: #226943;
}

.auth-status.error {
  color: var(--danger);
}

.auth-view {
  display: none;
}

.auth-view.active {
  display: block;
}

.auth-view[hidden] {
  display: none;
}

.auth-view h1 {
  margin: 0 0 14px;
  color: #0b2e4d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
}

.auth-switch {
  margin: 0 0 32px;
  color: #4f6b7a;
  font-size: 16px;
  line-height: 1.45;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0085ec;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-submit {
  width: min(320px, 100%);
  min-height: 40px;
  border: 1px solid #bfe3f2;
  background: transparent;
  color: #0b2e4d;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.auth-options {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.auth-form {
  width: min(320px, 100%);
  display: grid;
  gap: 14px;
  text-align: left;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #0b2e4d;
  font-size: 14px;
  font-weight: 400;
}

.auth-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #bfe3f2;
  border-radius: 0;
  background: transparent;
  color: #0b2e4d;
  font: inherit;
  outline: 0;
}

.auth-form input:focus {
  border-color: #0b2e4d;
}

.auth-form input:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-submit {
  margin-top: 4px;
  border-color: #0b2e4d;
  background: #0b2e4d;
  color: var(--light);
}

.auth-submit:hover {
  background: #0768b8;
  border-color: #0768b8;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-google-button {
  margin-top: 0;
  border-color: #0b2e4d;
  background: #ffffff;
  color: #0b2e4d;
}

.auth-google-button:hover {
  background: #dcf4fb;
  border-color: #0b2e4d;
}

.auth-link-button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0085ec;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-account[hidden] {
  display: none;
}

.auth-account h1 {
  margin: 0 0 18px;
  color: #0b2e4d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
}

.auth-account-name {
  margin: 0 0 8px;
  color: #0b2e4d;
  font-size: 18px;
  font-weight: 600;
}

.auth-account-email {
  margin: 0 0 28px;
  color: #4f6b7a;
  font-size: 15px;
  line-height: 1.45;
}

.auth-account-actions {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.auth-home-link {
  width: min(320px, 100%);
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #bfe3f2;
  color: #0b2e4d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
}

.auth-note {
  width: min(520px, calc(100vw - 36px));
  margin: 48px 0 0;
  color: #4f6b7a;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.post-shell {
  width: min(740px, calc(100% - 48px));
  padding: 56px 0 64px;
  color: #0b2e4d;
}

.post-back {
  display: inline-flex;
  margin-bottom: 34px;
  color: #4f6b7a;
  font-size: 14px;
  transition: color 180ms ease;
}

.post-back:hover {
  color: var(--primary);
}

.post-head h1 {
  color: #0b2e4d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(34px, 4.6vw, 44px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0;
}

.post-head > p {
  margin: 10px 0 0;
  color: #4f6b7a;
  font-size: 13px;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 24px;
  color: #4f6b7a;
  font-size: 13px;
}

.post-meta img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: contain;
}

.post-meta span + span::before {
  content: "•";
  margin-right: 12px;
  color: #8fabb8;
}

.post-hero-image {
  width: 100%;
  margin-top: 32px;
  aspect-ratio: 740 / 410;
  object-fit: cover;
}

.post-original-content {
  margin-top: 34px;
}

.post-lead-quote {
  margin: 0 0 32px;
  padding: 0 20px;
  border-left: 3px solid rgba(0, 91, 168, 0.35);
  color: #0b2e4d;
  font-size: 18px;
  font-style: italic;
  line-height: 1.76;
}

.post-content-image {
  margin: 30px 0 34px;
}

.post-content-image img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.post-content-image figcaption {
  margin-top: 10px;
  color: #4f6b7a;
  font-size: 13px;
  text-align: center;
}

.post-inline-logo {
  width: 102px;
  margin: 34px auto 18px;
}

.post-inline-logo img {
  width: 100%;
  height: auto;
}

.post-inline-logo figcaption {
  display: none;
}

.post-original-toc {
  margin: 28px 0 34px;
  padding: 20px 24px;
  border: 1px solid rgba(0, 91, 168, 0.16);
  background: rgba(255, 255, 255, 0.62);
}

.post-original-toc h2,
.post-block-heading {
  margin: 0 0 14px;
  color: #0b2e4d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.post-original-toc ul,
.post-original-list {
  margin: 0 0 26px;
  padding-left: 24px;
}

.post-original-toc li,
.post-bullet,
.post-paragraph {
  color: #0b2e4d;
  font-size: 16px;
  line-height: 1.78;
}

.post-original-toc li + li,
.post-bullet + .post-bullet {
  margin-top: 6px;
}

.post-original-toc li a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.post-original-toc li a:hover,
.post-original-toc li a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.post-block-heading {
  margin-top: 34px;
  scroll-margin-top: 104px;
}

.post-paragraph {
  margin: 0 0 16px;
}

.post-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 32px 0 22px;
  padding: 18px 0;
  border-top: 1px solid rgba(0, 91, 168, 0.18);
  border-bottom: 1px solid rgba(0, 91, 168, 0.18);
}

.post-toc a {
  color: #0768b8;
  font-size: 14px;
  font-weight: 700;
}

.post-content-section {
  padding-top: 28px;
}

.post-content-section h2 {
  margin-bottom: 14px;
  color: #0b2e4d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
}

.post-content-section p,
.post-content-section li {
  color: #0b2e4d;
  font-size: 16px;
  line-height: 1.78;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.post-content-section p {
  margin: 0 0 16px;
}

.post-content-section ul {
  margin: 0;
  padding-left: 22px;
}

.post-pager {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 91, 168, 0.18);
}

.post-pager a {
  min-width: 128px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.post-pager a:hover {
  background: var(--primary);
  color: #ffffff;
}

.recent-posts {
  padding: 58px 0 72px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .page-width,
  .section-heading {
    width: calc(100% - 48px);
  }

  .site-header {
    height: auto;
    min-height: 84px;
    grid-template-columns: auto 1fr;
    padding: 10px 18px;
    gap: 16px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 26px;
    font-size: 14px;
  }

  .main-nav a {
    padding: 8px 0;
  }

  .member-link {
    font-size: 14px;
  }

  .intro-grid,
  .feature-grid,
  .detail-layout,
  .value-layout,
  .why-track,
  .blog-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .title-band {
    padding-top: 34px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading img {
    max-width: 260px;
    margin: 0 auto;
  }

  .section-heading h2 {
    white-space: normal;
  }

  .detail-layout,
  .value-layout {
    gap: 24px;
  }

  .detail-image,
  .value-layout img,
  .why-card img {
    width: 100%;
    height: auto;
  }

  .value-copy h2 {
    text-align: left;
  }

  .why-track {
    width: min(640px, calc(100% - 48px));
  }

  .why-intro img {
    width: 220px;
  }

  .timeline {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .timeline::before {
    left: 22px;
    top: 0;
  }

  .timeline-item.left,
  .timeline-item.right {
    grid-column: 1;
    text-align: left;
    padding-left: 68px;
    padding-right: 0;
  }

  .timeline-item.left .timeline-number,
  .timeline-item.right .timeline-number {
    left: 0;
    right: auto;
  }

  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 42px;
    right: auto;
    width: 26px;
    transform-origin: left;
  }

  .post-shell {
    width: calc(100% - 36px);
    padding-top: 38px;
  }

  .post-meta {
    align-items: flex-start;
  }

  .post-meta span + span::before {
    margin-right: 8px;
  }

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

@media (max-width: 1050px) {
  .site-header {
    padding: 0 clamp(18px, 6vw, 72px);
  }

  .intro-grid,
  .detail-layout,
  .value-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .detail-image,
  .value-layout img {
    width: min(100%, 520px);
    height: auto;
  }

  .value-copy h2 {
    text-align: left;
  }

  .blog-grid {
    gap: 32px;
  }
}

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

  .why-intro img,
  .why-card img {
    width: 100%;
    height: auto;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card img {
    height: auto;
    aspect-ratio: 260 / 141;
  }

  .blog-feed-item,
  .product-shell {
    grid-template-columns: 1fr;
  }

  .blog-feed-image img,
  .product-main-image {
    width: 100%;
    height: auto;
  }

  .blog-feed-image img {
    aspect-ratio: 347 / 261;
  }

  .product-main-image {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 760px) {
  .why-track,
  .blog-grid,
  .contact-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 42px clamp(18px, 5vw, 40px) 20px;
  }

  .site-footer__inner {
    width: 100%;
    gap: 24px;
  }

  .site-footer h2 {
    font-size: 30px;
  }

  .site-footer__message {
    justify-self: stretch;
    width: 100%;
    padding-top: 0;
  }

  .site-footer__email {
    width: 100%;
    justify-content: center;
    padding: 0 14px;
    font-size: 13px;
  }

  .site-footer__bottom {
    width: 100%;
    margin-top: 30px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .student-project-note {
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .blog-feed-shell,
  .product-shell {
    width: calc(100% - 36px);
  }

  .blog-feed-header {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 18px;
  }

  .blog-search {
    width: 100%;
  }

  .blog-feed-content {
    padding: 22px 20px 16px;
  }

  .blog-feed-content h2 {
    font-size: 22px;
  }
}

@media (max-width: 1180px) {
  .site-header {
    gap: 28px;
    padding: 0 48px;
  }

  .main-nav {
    gap: 34px;
  }

  .member-link {
    padding-inline: 12px;
    font-size: 15px;
  }

  .why-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .why-intro img,
  .why-card img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 980px) {
  .page-width,
  .section-heading,
  .blog-feed-shell,
  .product-shell,
  .post-shell {
    width: calc(100% - 40px);
  }

  .site-footer__inner,
  .site-footer__bottom {
    width: 100%;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    padding: 8px 28px;
  }

  .logo-link img {
    width: 150px;
    height: 60px;
  }

  .main-nav {
    justify-content: center;
    gap: 20px;
  }

  .member-link {
    min-height: 38px;
  }

  .intro-grid,
  .detail-layout,
  .value-layout,
  .product-shell {
    grid-template-columns: 1fr;
  }

  .product-shell {
    gap: 28px;
    padding-top: 40px;
  }

  .product-gallery,
  .product-info {
    width: min(100%, 640px);
    margin: 0 auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading img {
    max-width: 340px;
    margin: 0 auto;
  }

  .section-heading h2 {
    white-space: normal;
  }

  .timeline {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .timeline::before {
    left: 22px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    grid-column: 1;
    text-align: left;
    padding-left: 68px;
    padding-right: 0;
  }

  .timeline-item:nth-child(odd) .timeline-number,
  .timeline-item:nth-child(even) .timeline-number {
    left: 0;
    right: auto;
  }

  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 42px;
    right: auto;
    width: 26px;
    transform-origin: left;
  }

  .blog-feed-item {
    grid-template-columns: minmax(220px, 42%) 1fr;
  }

  .blog-feed-image img {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: auto 1fr;
    padding: 10px 18px 12px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 6px;
    order: 3;
    width: 100%;
    padding: 5px;
    border: 1px solid rgba(0, 133, 236, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
  }

  .main-nav a {
    flex: 1;
    min-width: 0;
    padding: 9px 4px;
    border-radius: 999px;
    text-align: center;
    font-size: 14px;
  }

  .main-nav a.active {
    background: var(--primary-dark);
    color: var(--light);
  }

  .member-link {
    justify-self: end;
    min-height: 38px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .site-footer {
    padding-top: 42px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer__message {
    justify-self: stretch;
    width: 100%;
    padding-top: 0;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .student-project-note {
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .hero {
    background-position: center top;
  }

  h1 {
    font-size: 38px;
  }

  .title-band {
    padding: 32px 18px 20px;
  }

  .feature-grid,
  .why-track,
  .blog-grid,
  .blog-feed-item {
    grid-template-columns: 1fr;
  }

  .detail-left h2,
  .value-copy h2 {
    font-size: 34px;
  }

  .value-layout {
    margin-top: 44px;
  }

  .red-button {
    width: min(100%, 320px);
  }

  .quote-panel {
    padding: 30px 24px;
  }

  .timeline-intro h2 {
    font-size: 52px;
    line-height: 1.18;
  }

  .blog-feed-image img {
    aspect-ratio: 347 / 261;
  }

  .blog-feed-content {
    min-height: 0;
  }

  .product-thumbs {
    flex-wrap: wrap;
  }

  .post-head h1 {
    font-size: 32px;
  }

  .post-lead-quote {
    padding: 0 16px;
    font-size: 16px;
  }

  .post-pager {
    flex-direction: column;
  }

  .post-pager a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-width,
  .section-heading,
  .blog-feed-shell,
  .product-shell,
  .post-shell {
    width: calc(100% - 28px);
  }

  .site-footer__inner,
  .site-footer__bottom {
    width: 100%;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 76px;
    gap: 8px 12px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .logo-link img {
    width: 118px;
    height: 50px;
  }

  .member-link {
    gap: 8px;
    width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
  }

  .member-link span:last-child {
    display: none;
  }

  .main-nav a {
    font-size: 13px;
  }

  .site-footer {
    padding-top: 34px;
  }

  .site-footer h3 {
    font-size: 19px;
  }

  h1 {
    font-size: 32px;
  }

  .section-heading h2,
  .why-section .section-heading h2 {
    font-size: 32px;
    line-height: 1.08;
  }

  .timeline-intro h2 {
    font-size: 40px;
  }

  .timeline-intro p,
  .section-lead,
  .feature p {
    font-size: 15px;
  }

  .timeline-item {
    padding-left: 58px;
    font-size: 14px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 58px;
  }

  .timeline-number {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 36px;
    width: 22px;
  }

  .timeline-year,
  .timeline-item h3 {
    font-size: 18px;
  }

  .timeline-item a {
    width: 100%;
  }

  .blog-feed-content h2,
  .product-info h1,
  .post-head h1 {
    font-size: 26px;
  }

  .product-shell {
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .product-accordions summary {
    gap: 16px;
    font-size: 15px;
  }

  .auth-page {
    min-height: 100vh;
    padding: 38px 14px;
  }

  .auth-view h1 {
    font-size: 34px;
  }

  .auth-switch {
    margin-bottom: 28px;
  }

  .site-footer h2 {
    font-size: 30px;
  }

  .site-footer__email {
    min-height: 44px;
    width: 100%;
    justify-content: center;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .main-nav {
    gap: 4px;
  }

  .main-nav a {
    font-size: 12px;
  }

  h1,
  .section-heading h2,
  .why-section .section-heading h2 {
    font-size: 28px;
  }

  .timeline-intro h2 {
    font-size: 34px;
  }

  .auth-panel {
    padding-inline: 20px;
  }

  .auth-view h1 {
    font-size: 30px;
  }
}
