/* ==========================================================================
   Binhoff Real Estate Agency Design System
   ========================================================================== */

:root {
  --ink: #171816;
  --paper: #edf2f4;
  --panel: #eaf1f3;
  --line: #d8deda;
  --line-strong: #bfc5bf;
  --acid: #ddff87;
  --coral: #b3484f;
  --muted: #6f716c;
}

/* Base resets & layout */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
}

/* Global typeface */
body,
body * {
  font-family: Poppins, Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300 !important;
}

.page-shell {
  width: min(90vw, 1280px);
  margin-inline: auto;
}

/* Site Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 11px;
  background: #eaf1f3;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.7s ease, transform 0.7s ease, background-color 0.4s ease, color 0.4s ease;
}

.site-header.page-shell {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  padding-inline: clamp(20px, 4.5vw, 64px);
}

.is-loaded .site-header {
  opacity: 1;
  transform: none;
}

.site-header.header--transparent {
  background: transparent !important;
  color: #ffffff !important;
}

.site-header.header--transparent .wordmark,
.site-header.header--transparent nav a,
.site-header.header--transparent .language,
.site-header.header--transparent .sign-in {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.site-header.header--transparent .sign-in:hover {
  background: #ffffff !important;
  color: #000000 !important;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
}

.brand-insignia {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

nav {
  display: flex;
  gap: 39px;
}

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

nav a {
  color: #575a55;
  transition: color 0.25s ease;
}

nav a:hover {
  opacity: 0.85;
}

.header-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.sign-in {
  border: 1px solid #bfc2ba;
  border-radius: 18px;
  padding: 7px 15px;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sign-in:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.language {
  border: 0;
  background: none;
  padding: 3px;
  font: inherit;
  cursor: pointer;
}

.language i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
  vertical-align: 3px;
  margin-left: 5px;
}

/* Hero section */
.hero {
  min-height: 100vh;
}

.hero .site-header {
  position: relative;
  background: transparent;
  display: none;
}

.hero-meta {
  height: 48px;
  margin-top: 64px;
  padding-right: 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.hero-content {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 58px;
}

.hero-copy {
  padding-top: 0;
}

.hero h1 {
  font-size: clamp(36px, 4.8vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-family: Manrope, sans-serif;
  font-weight: 300 !important;
  margin: 0;
}

.hero h1 span {
  color: #00a953;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 40px;
  align-items: center;
}

.button {
  font-size: 11px;
  padding: 15px 25px;
  border-radius: 10px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s;
  cursor: pointer;
}

.button-primary {
  background: #00b75a;
  color: #ffffff;
  font-weight: 600;
}

.button-primary:hover {
  background: #009e4d;
  transform: translateY(-3px);
}

.button-muted {
  border: 1px solid #718083;
  background: transparent;
  color: #202426;
}

.button-muted:hover {
  transform: translateY(-3px);
}

.scroll-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #6f716d;
  margin-top: 105px;
}

.scroll-note span {
  display: block;
  border: 1px solid #8a8d86;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: relative;
  animation: scrollPulse 2.1s ease-in-out infinite;
}

.scroll-note span::after {
  content: "↓";
  position: absolute;
  left: 6px;
  top: 1px;
  font-size: 12px;
}

/* Hero 3D Vector Floating Showcase (Replaces building-slices) */
.hero .hero-vector-stage {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -30px;
  isolation: isolate;
}

.hero-vector-ambient {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 183, 90, 0.16) 0%, rgba(163, 240, 71, 0.08) 50%, transparent 70%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 1;
  animation: ambientFloatPulse 5s ease-in-out infinite alternate;
}

@keyframes ambientFloatPulse {
  0% { transform: scale(0.9) translateY(0); opacity: 0.6; }
  100% { transform: scale(1.1) translateY(-10px); opacity: 1; }
}

.hero-vector-slides {
  position: relative;
  width: 100%;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-vector-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.94) translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-vector-slide.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Floating 3D Vector Levitation Animation */
.hero-vector-float {
  width: 100%;
  max-width: 480px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hero3dFloat 3.8s ease-in-out infinite;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.1));
}

.hero-vector-stage:hover .hero-vector-float {
  animation-play-state: paused;
}

@keyframes hero3dFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

.hero-vector-float img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  transition: transform 0.3s ease;
}

.hero-vector-float:hover img {
  transform: scale(1.03);
}

/* Intro Reference Section */
.intro {
  min-height: 580px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.intro::before {
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(23, 24, 22, 0.09);
}

.intro::after {
  width: 8px;
  height: 8px;
  background: #00b75a;
  box-shadow: 0 0 0 9px rgba(0, 183, 90, 0.09);
  transform: translate(230px, -156px);
}

.intro-copy {
  width: min(100%, 610px);
}

.intro h2 {
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 0.93;
  font-weight: 800;
  font-family: Manrope, sans-serif;
  letter-spacing: -0.075em;
  margin: 0;
}

.intro-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 23px;
  color: #6d706b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro-kicker span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00b75a;
}

.intro-copy p {
  max-width: 455px;
  font-size: 13px;
  color: #6d6f6b;
  line-height: 1.65;
  margin: 27px auto 23px;
}

.intro-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #a8afa8;
  padding-bottom: 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.25s ease, color 0.25s ease, gap 0.25s ease;
}

.intro-link:hover {
  gap: 13px;
  border-color: #00b75a;
  color: #008a43;
}

/* ==========================================================================
   Full Width Scroll-Driven Sticky Deck Gallery (5 Cards)
   ========================================================================== */
.gallery-deck-track {
  display: none !important;
  position: relative;
  height: 500vh;
  width: 100%;
}

.gallery-deck {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0d1211;
  z-index: 10;
}

.deck-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.deck-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  will-change: transform, opacity;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.72) contrast(1.05);
}

.deck-card-content {
  position: absolute;
  left: clamp(24px, 8vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  max-width: 540px;
  z-index: 2;
}

.deck-card-tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--acid);
  margin-bottom: 14px;
}

.deck-card-title {
  font-family: Manrope, sans-serif;
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 0 0 18px;
}

.deck-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #d1d9d4;
  margin: 0;
}

.deck-progress {
  position: absolute;
  bottom: 30px;
  left: clamp(24px, 8vw, 120px);
  right: clamp(24px, 8vw, 120px);
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.deck-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--acid);
  transition: width 0.1s linear;
}

/* Mission Section */
.mission {
  height: 480px;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  margin-top: 60px;
}

.mission > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-shade {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 10, 0.66);
}

.mission-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  margin: 0 0 22px;
  color: #d9ded7;
}

.mission h2 {
  font-family: Manrope, sans-serif;
  font-size: 52px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.mission p:not(.eyebrow) {
  max-width: 455px;
  font-size: 12px;
  line-height: 1.6;
  color: #e6eae4;
  margin: 22px auto;
}

.mission-link {
  font-size: 11px;
  color: var(--acid);
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  padding: 130px 0 145px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 41px;
}

.section-kicker {
  margin: 0 0 12px;
  color: #6c716b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: Manrope, sans-serif;
  font-size: clamp(35px, 4.1vw, 60px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.07em;
  margin: 0;
}

.slider-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b706a;
  font-size: 11px;
}

.slider-control b { color: var(--ink); }

.slider-control button {
  width: 35px;
  height: 35px;
  border: 1px solid #bdc6be;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.slider-control button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.quote-row {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 42px;
  max-width: 930px;
  min-height: 350px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 66px);
  background: #f6f9f7;
  border: 1px solid rgba(23, 24, 22, 0.07);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(26, 43, 35, 0.06);
  overflow: hidden;
}

.quote-row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(0, 183, 90, 0.2);
  border-radius: 0 0 0 100%;
}

.quote-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 38px;
}

.quote-symbol {
  font-family: Georgia, serif;
  font-size: 118px;
  line-height: 0.65;
  color: #00b75a;
}

blockquote {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.31;
  letter-spacing: -0.045em;
  max-width: 660px;
}

.quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 19px;
  border-top: 1px solid #dce4dd;
}

.client {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.client strong, .client small {
  display: block;
}

.client strong {
  font-size: 10px;
}

.client small {
  font-size: 9px;
  color: #7b7e77;
  margin-top: 4px;
}

.quote-count {
  color: #8b928b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.quote-count i {
  display: inline-block;
  width: 24px;
  height: 1px;
  margin: 0 8px 3px;
  background: #00b75a;
}

/* News Section */
.news {
  padding: 0 0 140px;
}

.news-grid.news-reference {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.news-column {
  display: grid;
  gap: 36px;
}

.news-column-right {
  margin-top: 40px;
}

.news-card {
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.news-card.featured img {
  height: 380px;
}

.news-card p {
  font-size: 9px;
  color: #878a82;
  margin: 12px 0 6px;
}

.news-card h3 {
  font-family: Manrope, sans-serif;
  font-size: 18px;
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 10px;
}

.news-card a {
  font-size: 10.5px;
  color: #00b75a;
  font-weight: 600;
}

/* Compact editorial news grid, matching the reference layout */
.news {
  position: relative;
  padding: 128px 0 108px;
}

.news .section-head {
  justify-content: center;
  margin-bottom: 54px;
  text-align: center;
}

.news .section-head h2 {
  font-size: clamp(38px, 4.1vw, 59px);
  position: relative;
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  filter: blur(4px);
  transform: translateY(18px);
  transition: clip-path 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s ease, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.news .section-head h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -11px;
  width: 0;
  height: 2px;
  background: #00b75a;
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.news .section-head.visible h2 {
  clip-path: inset(0 0 0 0);
  filter: blur(0);
  transform: translateY(0);
}

.news .section-head.visible h2::after {
  width: 34px;
}

.news .text-link {
  display: none;
}

.news-grid.news-reference {
  width: min(100%, 760px);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px 28px;
}

.news-grid .news-column {
  display: contents;
}

.news-grid .news-column-right {
  margin-top: 0;
}

.news-card,
.news-card.featured,
.news-card.small-card,
.news-card.tower {
  overflow: visible;
}

.news-card img,
.news-card.featured img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(24, 42, 33, 0.07);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.news-card:hover img {
  transform: translateY(-5px);
  box-shadow: 0 18px 32px rgba(24, 42, 33, 0.13);
}

.news-card p {
  display: none;
}

.news-card h3 {
  min-height: 37px;
  margin: 13px 0 8px;
  font-size: 14px;
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.news-card a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0;
}

.news-card a::before,
.news-card a::after {
  font-size: 10.5px;
}

.news-card a::before {
  content: "More details";
}

.news-card a::after {
  content: "↗";
}

.news-card a span {
  display: none;
}

.news-card a:hover::after {
  transform: translate(2px, -2px);
}

.news::after {
  content: "See more  ↓";
  display: block;
  width: max-content;
  margin: 55px auto 0;
  border-bottom: 1px solid #bac4bc;
  padding-bottom: 6px;
  color: #737971;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Features */
.features {
  padding: 0 0 140px;
}

.features-heading {
  text-align: center;
}

.features-heading h2 {
  font-family: Manrope, sans-serif;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.feature {
  padding: 34px 34px 30px;
  min-height: 240px;
  background: #f4f8f7;
  border-radius: 4px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.45s;
}

.feature:hover {
  transform: translateY(-8px);
  background: #e4f1d0;
  box-shadow: 0 16px 32px rgba(91, 129, 48, 0.12);
}

.feature-highlight {
  background: #f4f8f7;
}

.feature-icon {
  display: grid;
  place-items: center;
  border: 1px solid #575a55;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 16px;
  margin-bottom: 30px;
}

.feature h3 {
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.feature p {
  font-size: 11px;
  line-height: 1.55;
  color: #70736c;
  margin: 0 0 18px;
}

.feature a {
  font-size: 10px;
  color: #00b75a;
  font-weight: 600;
}

/* CTA */
.cta {
  height: 440px;
  position: relative;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  border-radius: 4px;
}

.cta > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-cover {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 12, 0.78);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-family: Manrope, sans-serif;
  font-size: clamp(38px, 4.3vw, 58px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.06em;
  margin: 0;
}

.cta form {
  display: flex;
  margin: 28px auto 0;
  width: min(90vw, 400px);
}

.cta input {
  height: 44px;
  flex: 1;
  border: 0;
  padding: 0 15px;
  font-family: inherit;
  font-size: 11px;
  outline: 0;
}

.cta button {
  border: 0;
  background: #00b75a;
  color: #fff;
  padding: 0 20px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.cta button:hover {
  background: #009e4d;
}

/* Full-bleed image panels */
.mission.page-shell,
.cta.page-shell {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  border-radius: 0;
}

/* ==========================================================================
   Footer Styling & Layout
   ========================================================================== */
.footer {
  padding-top: 67px;
  padding-bottom: 30px;
  border-top: 1px solid #e6eae5;
  margin-top: 50px;
}

.footer.page-shell {
  width: min(90vw, 1280px);
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 2.5vw, 32px);
  box-sizing: border-box;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 175px;
  gap: clamp(24px, 4vw, 60px);
}

.footer-brand {
  max-width: 280px;
  flex-shrink: 0;
}

.footer-tagline {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b706a;
}

.footer-links {
  display: flex;
  gap: clamp(24px, 4vw, 68px);
  flex-wrap: wrap;
}

.footer-links div {
  min-width: 105px;
}

.footer-links p {
  font-size: 10px;
  color: #85877f;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 15px;
}

.footer-links a {
  display: block;
  font-size: 11px;
  color: #676a65;
  text-decoration: none;
  margin: 0 0 9px;
  transition: opacity 0.2s ease;
}

.footer-bottom {
  border-top: 1px solid #dddeda;
  display: flex;
  justify-content: space-between;
  padding: 18px 0 22px;
  color: #888b84;
  font-size: 9.5px;
}

/* Footer menu: matches the About page and becomes an accordion on phones. */
.footer-group { min-width: 105px; }
.footer-group-toggle {
  display: block; width: 100%; margin: 0 0 15px; padding: 0; border: 0; background: none;
  color: #85877f; font: inherit; font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  text-align: left; text-transform: uppercase; pointer-events: none;
}
.footer-chevron { display: none; }
.footer-group-content a {
  display: block; margin: 0 0 9px; color: #676a65; font-size: 11px; text-decoration: none;
  transition: opacity 0.2s ease;
}

@media (max-width: 860px) {
  .footer { padding-right: 20px; padding-left: 20px; }
  .footer-top { flex-direction: column; gap: 20px; min-height: 0; }
  .footer-links { flex-direction: column; width: 100%; gap: 0; border-top: 1px solid #dde3df; }
  .footer-group { width: 100%; border-bottom: 1px solid #dde3df; }
  .footer-group-toggle {
    display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 14px 0;
    color: #171816; font-size: 11.5px; font-weight: 700; pointer-events: auto; cursor: pointer;
  }
  .footer-chevron {
    display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-right: 1.5px solid #222;
    border-bottom: 1.5px solid #222; transform: rotate(45deg); transition: transform 0.3s ease;
  }
  .footer-group.is-open .footer-chevron { transform: rotate(-135deg); }
  .footer-group-content { max-height: 0; overflow: hidden; padding: 0; opacity: 0; transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease; }
  .footer-group.is-open .footer-group-content { max-height: 200px; padding-bottom: 14px; opacity: 1; }
  .footer-group-content a { margin: 0; padding: 6px 0; font-size: 12px; }
  .footer-bottom { border-top: 0; }
}

/* Reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes scrollPulse {
  50% {
    transform: translateY(5px);
    opacity: 0.55;
  }
}

@media (max-width: 750px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .feature-row {
    grid-template-columns: 1fr;
  }
  .news {
    padding: 88px 0 80px;
  }
  .news .section-head {
    margin-bottom: 36px;
  }
  .news-grid.news-reference {
    grid-template-columns: 1fr;
    gap: 34px;
    width: min(100%, 390px);
  }
  .news-card h3 {
    min-height: 0;
    font-size: 15px;
  }
  .news::after {
    margin-top: 38px;
  }
  .quote-row {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 34px 25px 27px;
    border-radius: 14px;
  }
  .quote-symbol {
    height: 53px;
    font-size: 84px;
  }
  .quote-content {
    gap: 28px;
  }
  .quote-footer {
    align-items: flex-end;
  }
  .quote-count {
    display: none;
  }
  .section-head {
    align-items: center;
    margin-bottom: 28px;
  }
  .slider-control {
    gap: 4px;
  }
  .slider-control button {
    width: 31px;
    height: 31px;
  }
}

/* Reference-video layouts: property introduction and client testimonial */
.intro {
  min-height: 740px;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.68) 0, rgba(255, 255, 255, 0.2) 28%, transparent 62%);
}

.intro::before,
.intro::after {
  display: block;
  z-index: 0;
}

.intro::before {
  width: min(61vw, 690px);
  border-color: rgba(23, 24, 22, 0.1);
  background: radial-gradient(circle at 50% 50%, rgba(0, 183, 90, 0.035), transparent 64%);
  animation: introHalo 11s ease-in-out infinite;
}

.intro::after {
  top: 19%;
  left: calc(50% + min(26vw, 292px));
  width: 9px;
  height: 9px;
  background: #00b75a;
  box-shadow: 0 0 0 9px rgba(0, 183, 90, 0.09), 0 0 25px rgba(0, 183, 90, 0.22);
  transform: none;
  animation: introBeacon 3.4s ease-in-out infinite;
}

.intro-copy {
  position: relative;
  z-index: 1;
  width: 420px;
  margin-right: 0;
}

.intro h2 {
  font-size: clamp(32px, 3.3vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.intro h2 span {
  display: block;
  overflow: hidden;
}

.intro h2 i {
  display: block;
  font-style: normal;
  transform: translateY(112%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-copy.visible h2 i {
  transform: translateY(0);
}

.intro-copy.visible h2 span:nth-child(2) i {
  transition-delay: 0.12s;
}

.intro-kicker,
.intro-link {
  display: none;
}

.intro-copy p {
  max-width: none;
  margin: 27px auto 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease 0.35s, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.intro-copy::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin: 26px auto 0;
  background: #00b75a;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.62s;
}

.intro-copy.visible p {
  opacity: 1;
  transform: translateY(0);
}

.intro-copy.visible::after {
  width: 42px;
}

@keyframes introHalo {
  0%, 100% { transform: scale(0.97) rotate(0deg); opacity: 0.55; }
  50% { transform: scale(1.025) rotate(3deg); opacity: 1; }
}

@keyframes introBeacon {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 9px rgba(0, 183, 90, 0.09), 0 0 25px rgba(0, 183, 90, 0.22); }
  50% { transform: translateY(-10px) scale(1.12); box-shadow: 0 0 0 14px rgba(0, 183, 90, 0.035), 0 0 34px rgba(0, 183, 90, 0.32); }
}

.testimonials {
  padding: 120px 0 140px;
}

.testimonials .section-kicker,
.testimonials .slider-control {
  display: none;
}

.testimonials .section-head {
  display: block;
  margin-bottom: 41px;
  text-align: left;
}

.quote-row {
  display: grid;
  grid-template-columns: 15% minmax(300px, 1fr) 220px;
  gap: 35px;
  align-items: end;
  max-width: 1020px;
  min-height: 0;
  margin: 40px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.quote-row::before {
  display: none;
}

.quote-symbol {
  height: auto;
  font-size: 115px;
  line-height: 0.5;
}

.quote-content {
  display: block;
  grid-column: 2 / 4;
  min-width: 0;
}

.quote-content blockquote {
  max-width: 660px;
  font-size: 20px;
  line-height: 1.38;
  letter-spacing: -0.035em;
}

.quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 25px;
  padding-top: 0;
  border: 0;
}

.client img {
  width: 43px;
  height: 43px;
  border: 0;
  box-shadow: none;
}

.quote-count {
  display: inline-flex;
  align-items: center;
  color: #555a55;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.quote-count::before,
.quote-count::after {
  color: #9aa29b;
  font-size: 15px;
}

.quote-count::before {
  content: "←";
  margin-right: 12px;
}

.quote-count::after {
  content: "→";
  margin-left: 12px;
}

.quote-count i {
  display: none;
}

@media (max-width: 750px) {
  .intro {
    min-height: 460px;
    justify-content: center;
  }

  .intro::before {
    width: 88vw;
  }

  .intro::after {
    top: 15%;
    left: calc(50% + 35vw);
  }

  .intro-copy {
    width: min(100%, 420px);
    margin-right: 0;
  }

  .intro h2 {
    white-space: normal;
  }

  .quote-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    margin-top: 20px;
  }

  .quote-symbol {
    font-size: 74px;
  }

  .quote-content {
    grid-column: 2;
  }

  .quote-content blockquote {
    font-size: 17px;
  }

  .quote-footer {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro h2 i,
  .intro-copy p,
  .intro-copy::after,
  .intro::before,
  .intro::after,
  .news .section-head h2,
  .news .section-head h2::after {
    transition: none;
    animation: none;
  }
}

/* Course grid replacing the former property introduction section */
.courses {
  padding-top: 110px;
  padding-bottom: 120px;
}

.courses-heading {
  margin-bottom: 42px;
  text-align: center;
}

.courses-heading p {
  margin: 0 0 12px;
  color: #00a953;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.courses-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 55px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: none;
}

.course-card {
  display: flex;
  min-height: 445px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 27px;
  overflow: hidden;
  position: relative;
  border: 0;
  border-radius: 7px;
  background-color: #28352f;
  background-position: center;
  background-size: cover;
  color: #fff;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.course-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 8, 0.65) 0%, rgba(5, 11, 8, 0.78) 42%, rgba(5, 11, 8, 0.95) 100%);
  transition: background 0.25s ease;
}

.course-card:hover::before {
  background: linear-gradient(180deg, rgba(5, 11, 8, 0.54) 0%, rgba(5, 11, 8, 0.70) 42%, rgba(5, 11, 8, 0.92) 100%);
}

.course-card:nth-child(1),
.course-card[data-course="youtube"] {
  background-image: url('assets/course-youtube.jpg');
  background-position: center;
}

.course-card:nth-child(2),
.course-card[data-course="ebay"] {
  background-image: url('assets/course-ebay.jpg');
  background-position: center top;
}

.course-card:nth-child(3),
.course-card[data-course="amazon"] {
  background-image: url('assets/course-amazon.png');
  background-position: center top;
}

.course-card:nth-child(4),
.course-card[data-course="truck"] {
  background-image: url('https://images.unsplash.com/photo-1519003722824-194d4455a60c?auto=format&fit=crop&w=700&q=85');
  background-position: center;
}

.course-card:nth-child(5),
.course-card[data-course="etsy"] {
  background-image: url('assets/course-etsy.jpg');
  background-position: center;
}

.course-card:nth-child(6),
.course-card[data-course="drive"] {
  background-image: url('assets/course-drive.jpg');
  background-position: center;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(19, 35, 26, 0.22);
}

.course-card > span {
  color: #5effa2;
  font-size: 12px;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.course-card h3 {
  margin: 18px 0 13px;
  font-size: clamp(21px, 1.8vw, 29px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #ffffff;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.course-card p {
  margin: 0 0 auto;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 400 !important;
  line-height: 1.55;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.course-card a {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.course-card a b {
  display: inline-block;
  margin-left: 8px;
  color: #a8f2c7;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.course-card a:hover b { transform: translate(3px, -3px); }
.course-card-soon { border: 0; }

/* ==========================================================================
   Full Page Course Modal / Details Overlay
   ========================================================================== */
.course-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: block;
  visibility: hidden;
  background: #101813;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.course-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.course-modal-open {
  overflow: hidden;
}

.course-modal-image {
  position: absolute;
  inset: 0;
  min-height: 100%;
  background: #1c2822 center / cover no-repeat;
  filter: brightness(0.8);
}

.course-modal::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 16, 11, 0.94) 0%, rgba(8, 16, 11, 0.82) 48%, rgba(8, 16, 11, 0.32) 100%);
}

.course-modal-content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  width: min(100%, 780px);
  height: 100dvh;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: flex-start;
  gap: 22px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overscroll-behavior: contain;
  padding: clamp(64px, 8vh, 96px) clamp(32px, 6vw, 84px) clamp(44px, 6vh, 68px);
}

.course-modal-content::-webkit-scrollbar {
  display: none;
}

.course-modal-content > * {
  flex-shrink: 0;
}

.course-modal-label {
  margin: 0;
  color: #91f0ba;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.course-modal h2 {
  margin: 0;
  padding-top: 0.04em;
  color: #fff;
  font-size: clamp(38px, 4.5vw, 68px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.course-modal-summary {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.65;
}

.course-modal-details {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 34px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.course-modal-details span {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.course-modal-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.course-modal-list li {
  position: relative;
  padding-left: 17px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.4;
}

.course-modal-list li::before {
  content: "";
  position: absolute;
  top: 0.47em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00a953;
}

.course-modal-outcome .course-modal-list {
  margin-top: 14px;
}

.course-modal-extra {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
  line-height: 1.65;
}

.course-modal-action {
  align-self: flex-start;
  margin-top: 6px;
  padding: 14px 28px;
  border-radius: 100px;
  background: #00a953;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.course-modal-action:hover {
  background: #009348;
  transform: translateY(-2px);
}

.course-modal-action b {
  margin-left: 8px;
  font-size: 16px;
}

.course-modal-close {
  position: absolute;
  z-index: 3;
  top: 26px;
  right: 28px;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(23, 24, 22, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #171816;
  font-size: 29px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.course-modal-close:hover {
  background: #ffffff;
  transform: scale(1.08);
}

@media (max-width: 750px) {
  .course-modal::before {
    background: linear-gradient(180deg, rgba(8, 16, 11, 0.55) 0%, rgba(8, 16, 11, 0.94) 42%, rgba(8, 16, 11, 0.98) 100%);
  }
  .course-modal-content {
    width: 100%;
    min-height: 100dvh;
    gap: 20px;
    padding: 72px 22px 40px;
  }
  .course-modal-summary {
    font-size: 14px;
  }
  .course-modal-details {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 18px 0;
  }
  .course-modal-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}

/* ==========================================================================
   Popular Learning Paths (3x2 Light Card Grid - Before Latest Insights)
   ========================================================================== */
.popular-paths {
  padding: 60px 0 80px;
}

.courses-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.card-box-white {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 26px;
  border: 1px solid rgba(23, 24, 22, 0.11);
  border-radius: 16px;
  background: #f8faf8;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.card-box-white:hover {
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(19, 35, 26, 0.08);
}

.card-box-white > span {
  color: #00a953;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.card-box-white h3 {
  margin: 0 0 14px 0;
  font-size: clamp(23px, 1.8vw, 30px);
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: #171816;
  font-weight: 400 !important;
}

.card-box-white p {
  margin: 0 0 auto;
  color: #687069;
  font-size: 13px;
  line-height: 1.55;
  padding-bottom: 24px;
}

.card-box-white .card-link,
.card-box-white a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  margin-top: auto;
}

.card-box-white .card-link b,
.card-box-white a b {
  color: #00a953;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.card-box-white:hover .card-link b,
.card-box-white:hover a b {
  transform: translate(3px, -3px);
}

.card-box-white.card-soon {
  border: 1px dashed rgba(23, 24, 22, 0.25);
  background: #f9fbf9;
}

@media (max-width: 960px) {
  .courses-grid-3x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .courses-grid-3x2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card-box-white {
    padding: 22px;
    min-height: auto;
  }
}

@media (max-width: 750px) {
  .courses { padding-top: 70px; padding-bottom: 75px; }
  .courses-heading { margin-bottom: 28px; }
  .course-grid { grid-template-columns: repeat(6, 220px); gap: 12px; overflow-x: auto; padding: 0 2px 12px; scroll-snap-type: x mandatory; }
  .course-card { min-height: 350px; padding: 22px; scroll-snap-align: start; }
}

/* Phone & Tablet layout repairs - Maintaining Desktop 2-Column Composition */
@media (max-width: 860px) {
  body { overflow-x: hidden; }
  
  .site-header { height: 60px; }
  .site-header.page-shell { padding-inline: clamp(14px, 4vw, 24px); grid-template-columns: 1fr auto; }
  .site-header nav { display: none !important; }
  .site-header .header-end { gap: 8px; }
  .site-header .sign-in { padding: 6px 12px; font-size: 11px; }
  .site-header .language { display: none; }

  /* Hero: Desktop 2-Column Grid Maintained Side-by-Side */
  .hero {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 72px clamp(12px, 3.5vw, 24px) 24px !important;
    min-height: auto !important;
    box-sizing: border-box;
    overflow: hidden;
  }
  .hero-meta {
    margin-top: 0;
    margin-bottom: 6px;
    height: auto;
    font-size: clamp(9.5px, 2.5vw, 12px);
    font-weight: 600;
  }
  .hero-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) !important;
    gap: clamp(8px, 2.5vw, 18px) !important;
    align-items: center !important;
    min-height: auto !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .hero-copy {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
  .hero h1 {
    font-size: clamp(23px, 6.6vw, 44px) !important;
    line-height: 0.94 !important;
    letter-spacing: -0.06em !important;
    font-weight: 300 !important;
    margin: 0 !important;
  }
  .hero h1 span {
    color: #00a953;
  }
  .button-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: clamp(12px, 3.5vw, 22px) !important;
    width: 100% !important;
  }
  .button-row .button {
    font-size: clamp(8.5px, 2.4vw, 11px) !important;
    padding: clamp(8px, 2.2vw, 12px) clamp(8px, 2vw, 14px) !important;
    border-radius: 8px !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    box-sizing: border-box;
    white-space: nowrap;
  }
  .scroll-note {
    margin-top: clamp(12px, 3vw, 22px) !important;
    font-size: clamp(8px, 2vw, 9.5px) !important;
    gap: 5px !important;
  }
  .scroll-note span {
    width: 16px !important;
    height: 16px !important;
  }
  .scroll-note span::after {
    font-size: 10px !important;
    left: 4px !important;
    top: 0 !important;
  }

  /* Right Column: Hero 3D Vector Floating Showcase Mobile Scaling */
  .hero .hero-vector-stage {
    width: 100% !important;
    height: clamp(260px, 60vw, 360px) !important;
    margin: 16px 0 0 0 !important;
  }
  .hero-vector-slides {
    height: clamp(210px, 50vw, 290px) !important;
  }
  .hero-vector-float {
    max-width: clamp(240px, 70vw, 320px) !important;
    height: clamp(170px, 42vw, 230px) !important;
  }
  .hero-vector-badge {
    margin-top: 8px !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
  }

  /* Deck gallery, footer and other sections */
  .gallery-deck-track { height: 400vh; }
  .deck-card-content { left: 20px; right: 20px; top: 48%; transform: translateY(-50%); max-width: 100%; }
  .deck-card-title { font-size: clamp(28px, 8.5vw, 42px); line-height: 1.05; margin-bottom: 12px; }
  .deck-card-desc { font-size: 12px; line-height: 1.5; max-width: 320px; }
  .deck-progress { left: 20px; right: 20px; bottom: 20px; }

  .footer { padding-inline: 18px; margin-top: 40px; }
  .footer-top { flex-direction: column; gap: 28px; min-height: auto; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; border-top: none; }
  .footer-links div { min-width: 80px; flex: 1 1 90px; }
  .footer-bottom { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; font-size: 9px; padding-top: 16px; border-top: 1px solid #dde3df; width: 100%; }
}
