/* ==========================================================================
   Angsong Education - High-End Luxury Editorial Design Style Sheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
:root {
  /* Ultra-Premium Editorial Neutral Colors */
  --bg-pure: #fcfcfd;          /* Museum Pristine White */
  --bg-silk: #f4f4f7;          /* Soft Silk Gray */
  --text-primary: #111111;     /* Absolute Rich Carbon Charcoal */
  --text-muted: #6e6e73;       /* Apple/Leica Standard Gray */
  --text-dim: #929297;         /* Delicate Secondary Text Gray */
  --accent-gold: #c5a46e;      /* Matte Champagne Gold Accent */
  --accent-gold-rgb: 197, 164, 110;
  --border-delicate: rgba(0, 0, 0, 0.08); /* Pixel-Thin Light Divider */
  --border-dark: rgba(0, 0, 0, 0.18);     /* Focus State Divider */
  
  /* Modern Geometric & Elegant Sans-Serif Fonts */
  --font-primary: 'Inter', -apple-system, sans-serif;
  --font-luxury: 'Outfit', sans-serif;
  
  /* Silk Transitions */
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1); /* Elegant Cinematic Ease */
  --transition-silk: all 0.8s var(--ease-luxury);
  --transition-fast: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Pristine Baseline
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-pure);
  color: var(--text-primary);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-pure);
  min-height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-pure);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   3. WebGL Canvas & Luxury Micro Cursor
   -------------------------------------------------------------------------- */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Floats behind text content, but allows mouse interaction */
  pointer-events: none; /* Allows text selection and clicks to pass through */
}



/* --------------------------------------------------------------------------
   4. Minimalist Header Navigation
   -------------------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 64px;
  z-index: 100;
  background: transparent;
  transition: padding 0.6s var(--ease-luxury), background-color 0.6s var(--ease-luxury), border-bottom 0.6s var(--ease-luxury);
}

header.scrolled {
  padding: 24px 64px;
  background: rgba(252, 252, 253, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

header .logo img {
  height: 72px; /* Elite luxury brand presence */
  width: auto;
  object-fit: contain;
  transition: transform 0.4s var(--ease-luxury), height 0.6s var(--ease-luxury);
}

header.scrolled .logo img {
  height: 52px; /* Beautifully scale down on scroll to preserve visual neatness */
}

header .logo img:hover {
  transform: scale(1.02);
}

header nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

header nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  position: relative;
  padding: 6px 0;
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

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

header nav a.active::after {
  width: 100%;
}

/* Header CTAs */
header nav a.nav-cta {
  background: var(--text-primary);
  color: var(--bg-pure);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border: 1px solid var(--text-primary);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

header nav a.nav-cta::after {
  display: none;
}

header nav a.nav-cta:hover {
  background: transparent;
  color: var(--text-primary);
}

/* Luxury Outlined Download Button */
header nav a.nav-download {
  color: var(--accent-gold);
  font-weight: 500;
  border: 1px solid rgba(197, 164, 110, 0.3);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12.5px;
  transition: all 0.3s var(--ease-luxury);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.05em;
}

header nav a.nav-download::after {
  display: none !important;
}

header nav a.nav-download:hover {
  background: rgba(197, 164, 110, 0.08);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Mobile Menu Toggle button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-bar {
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s;
}

/* --------------------------------------------------------------------------
   5. Structural Layout & Content Container
   -------------------------------------------------------------------------- */
main {
  position: relative;
  z-index: 2; /* Floats perfectly above Three.js canvas */
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}

/* MASSIVE Whitespace Offsets to allow Editorial Breathing Room */
section {
  padding-top: 15vh;
  padding-bottom: 15vh;
  margin-bottom: 30vh; /* Incredible structural space */
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0; /* Animated by GSAP ScrollTrigger */
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease-luxury), transform 1.2s var(--ease-luxury);
}

section.visible,
section#hero {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   6. Editorial Headers & Typography
   -------------------------------------------------------------------------- */
.luxury-badge {
  font-family: var(--font-luxury);
  font-size: 11px;
  font-weight: 400;
  color: var(--accent-gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-luxury);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 200; /* Ultra-thin, breathtaking luxury brand aesthetic */
  color: var(--text-primary);
  letter-spacing: 0.15em;
  line-height: 1.15;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.section-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.section-header {
  margin-bottom: 80px;
}

/* --------------------------------------------------------------------------
   7. Section 1: Hero
   -------------------------------------------------------------------------- */
#hero {
  margin-bottom: 20vh;
  height: 100vh;
  min-height: 650px;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-container {
  width: 100%;
}

.hero-text-content {
  max-width: 780px;
}

.hero-title {
  font-family: var(--font-luxury);
  font-size: clamp(3.2rem, 6.5vw, 6.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.15em;
  margin-bottom: 36px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.hero-title span.title-light {
  font-weight: 300;
}

.hero-subtitle {
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.btn {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.15em;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
}

.btn-luxury {
  background: var(--text-primary);
  color: var(--bg-pure);
  padding: 16px 36px;
  border-radius: 4px;
  border: 1px solid var(--text-primary);
  font-family: var(--font-luxury);
}

.btn-luxury:hover {
  background: transparent;
  color: var(--text-primary);
}

.btn-link {
  color: var(--text-primary);
  position: relative;
  padding: 6px 0;
}

.btn-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-primary);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn-link:hover i {
  transform: translateX(6px);
}

.btn-link:hover::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   8. Section 2: South Korea Premium Education (Asymmetric Gallery)
   -------------------------------------------------------------------------- */
.gallery-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: start;
}

.gallery-prose {
  position: sticky;
  top: 180px;
}

.prose-title {
  font-family: var(--font-luxury);
  font-size: 24px;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.prose-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

/* Minimalist Cooperating Institutions List & Button Styling */
.gallery-institutions {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.institution-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.inst-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-delicate);
}

.inst-bullet {
  font-family: var(--font-luxury);
  color: var(--accent-gold);
  font-size: 14px;
  line-height: 1.4;
  user-select: none;
}

.inst-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inst-name {
  font-family: var(--font-luxury);
  font-size: 15.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  line-height: 1.4;
}

.inst-meta {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.btn-luxury-credentials {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-luxury);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.15em;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.btn-luxury-credentials:hover {
  background: var(--text-primary);
  color: var(--bg-pure);
  border-color: var(--text-primary);
}

.btn-luxury-credentials i {
  transition: transform 0.3s ease;
}

.btn-luxury-credentials:hover i {
  transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   8.1 Secondary Credentials Page Custom Grid & Style Rules
   -------------------------------------------------------------------------- */
.credentials-page .certificate-gallery {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 40px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.credentials-page .cert-card.offset-high,
.credentials-page .cert-card.offset-low,
.credentials-page .cert-card {
  transform: none !important; /* Level aligned, no stagger offsets */
}

/* Credentials page empty slot styling */
.credentials-page .cert-card.empty-slot {
  cursor: default !important;
}

.credentials-page .cert-card.empty-slot .cert-img-wrapper {
  border: 1.5px dashed rgba(197, 164, 110, 0.45);
  background: rgba(197, 164, 110, 0.02) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: none !important;
  aspect-ratio: 0.707;
  border-radius: 4px;
  transition: border-color 0.4s var(--ease-luxury), background-color 0.4s var(--ease-luxury);
}

.credentials-page .cert-card.empty-slot:hover .cert-img-wrapper {
  border-color: rgba(197, 164, 110, 0.8);
  background: rgba(197, 164, 110, 0.04) !important;
}

.credentials-page .cert-card.empty-slot .empty-slot-icon {
  font-size: 32px;
  color: var(--accent-gold);
  margin-bottom: 16px;
  opacity: 0.75;
  transition: transform 0.6s var(--ease-luxury);
}

.credentials-page .cert-card.empty-slot:hover .empty-slot-icon {
  transform: scale(1.15) rotate(180deg);
}

.credentials-page .cert-card.empty-slot .empty-slot-text {
  font-family: var(--font-luxury);
  font-size: 11px;
  font-weight: 400;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .credentials-page .certificate-gallery {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 640px) {
  .credentials-page .certificate-gallery {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
}

/* Asymmetric Museum hanging structure */
.certificate-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.cert-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.8s var(--ease-luxury);
}

.cert-card.offset-high {
  transform: translateY(0);
}

.cert-card.offset-low {
  transform: translateY(120px); /* Gorgeous stagger */
}

.cert-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-silk);
  aspect-ratio: 0.707; /* A4 vertical ratio */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.6s var(--ease-luxury);
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease-luxury);
}

/* Minimalist Overlay */
.cert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(252, 252, 253, 0.94); /* Museum clean tint */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease-luxury);
  padding: 32px;
  text-align: center;
}

.cert-overlay-icon {
  font-size: 24px;
  color: var(--accent-gold);
  margin-bottom: 16px;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-luxury);
}

.cert-overlay-text {
  font-family: var(--font-luxury);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-luxury) 0.1s;
}

.cert-card:hover .cert-img-wrapper {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.cert-card:hover .cert-img {
  transform: scale(1.04);
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

.cert-card:hover .cert-overlay-icon,
.cert-card:hover .cert-overlay-text {
  transform: translateY(0);
}

.cert-metadata {
  margin-top: 24px;
}

.cert-label {
  font-family: var(--font-luxury);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.cert-name {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.cert-card:hover .cert-name {
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   9. Section 3: Cross-border Ecosystem (Text-Only Delicacy)
   -------------------------------------------------------------------------- */
.eco-minimal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  margin-top: 40px;
}

.eco-item {
  position: relative;
  padding-top: 36px;
  border-top: 1px solid var(--border-delicate); /* Sleek top divider */
}

.eco-num {
  font-family: var(--font-luxury);
  font-size: 12px;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  position: absolute;
  top: 12px;
  left: 0;
}

.eco-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.eco-item-title {
  font-family: var(--font-luxury);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.eco-icon-delicate {
  font-size: 16px;
  color: var(--text-dim);
}

.eco-icon-logo-minimal img {
  height: 22px; /* Increased to 22px for better visual balance with adjacent text */
  width: auto;
  object-fit: contain;
  opacity: 0.85; /* Slightly increased opacity for premium elegance */
}

.eco-item-desc {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   10. Section 4: Value-added Services (Linear Accordion)
   -------------------------------------------------------------------------- */
.luxury-accordion {
  border-top: 1px solid var(--border-delicate);
  margin-top: 60px;
}

.accordion-item {
  border-bottom: 1px solid var(--border-delicate);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  padding: 32px 0;
  cursor: pointer;
  transition: padding-left 0.4s var(--ease-luxury);
}

.accordion-num {
  font-family: var(--font-luxury);
  font-size: 13px;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  width: 80px;
}

.accordion-title {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  flex-grow: 1;
}

.accordion-icon {
  font-size: 12px;
  color: var(--text-dim);
  transition: transform 0.4s var(--ease-luxury);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-luxury), padding-bottom 0.6s var(--ease-luxury);
  padding-left: 80px;
}

.accordion-text {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.05em;
  padding-bottom: 32px;
  max-width: 860px;
}

/* Accordion Open State */
.accordion-item.active .accordion-icon {
  transform: rotate(90deg);
}

.accordion-item.active .accordion-trigger {
  padding-bottom: 16px;
}

/* --------------------------------------------------------------------------
   11. Section 5: Contact / Reservation (Line-Form & Pedestal QRs)
   -------------------------------------------------------------------------- */
.contact-editorial-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 120px;
  align-items: start;
}

.contact-form-side {
  padding-right: 48px;
}

.form-editorial-title {
  font-family: var(--font-luxury);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 200;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.form-editorial-desc {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 64px;
}

/* Breathtakingly Clean Luxury Line-Form */
.luxury-line-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-line-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-line-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-line-group input,
.form-line-group textarea,
.form-line-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-delicate);
  padding: 12px 0;
  font-size: 14px;
  font-family: var(--font-primary);
  color: var(--text-primary);
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.4s ease;
  width: 100%;
}

.form-line-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.form-line-group select:focus {
  border-bottom-color: var(--text-primary);
}

.form-line-group input:focus,
.form-line-group textarea:focus {
  border-bottom-color: var(--text-primary);
}

/* Floating labels */
.form-line-group label {
  position: absolute;
  top: 12px;
  left: 0;
  font-size: 11px;
  font-family: var(--font-luxury);
  letter-spacing: 0.15em;
  color: var(--text-dim);
  pointer-events: none;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease-luxury), color 0.4s var(--ease-luxury);
  transform-origin: left top;
}

/* Label animations for input/textarea */
.form-line-group input:focus ~ label,
.form-line-group input:not(:placeholder-shown) ~ label,
.form-line-group textarea:focus ~ label,
.form-line-group textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-24px) scale(0.9);
  color: var(--accent-gold);
}

/* Static label for select drop downs */
.form-line-group label.select-label {
  transform: translateY(-24px) scale(0.9);
  color: var(--text-dim);
}

.btn-luxury-submit {
  background: var(--text-primary);
  color: var(--bg-pure);
  border: 1px solid var(--text-primary);
  padding: 18px 40px;
  font-family: var(--font-luxury);
  font-size: 12px;
  letter-spacing: 0.2em;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 24px;
  transition: var(--transition-fast);
  align-self: flex-start;
}

.btn-luxury-submit:hover {
  background: transparent;
  color: var(--text-primary);
}

/* Minimal Pedestal QR Side */
.contact-qr-side {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.qr-pedestals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.qr-pedestal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-image-wrapper {
  background: var(--bg-silk);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
  margin-bottom: 24px;
  transition: transform 0.6s var(--ease-luxury);
}

.qr-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.qr-pedestal-item:hover .qr-image-wrapper {
  transform: translateY(-8px);
}

.qr-pedestal-num {
  font-family: var(--font-luxury);
  font-size: 11px;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.qr-pedestal-title {
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.qr-pedestal-text {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.luxury-footer-legal {
  border-top: 1px solid var(--border-delicate);
  padding-top: 36px;
  margin-top: 20px;
}

.legal-badge {
  font-family: var(--font-luxury);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.luxury-footer-legal p:last-child {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.luxury-footer-legal .icp-info {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.luxury-footer-legal .icp-info a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.luxury-footer-legal .icp-info a:hover {
  color: var(--accent-gold);
}

/* Elegant Mathematical Captcha Styling */
.captcha-question-container {
  border-bottom: 1px solid var(--border-delicate);
  padding: 12px 0;
  min-height: 43px; /* Align perfectly with adjacent input height */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.4s ease;
}

.captcha-label {
  font-size: 11px;
  font-family: var(--font-luxury);
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.captcha-math-text {
  font-family: var(--font-luxury);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   12. Responsive Design for Seamless Fluidity
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  header {
    padding: 32px 48px;
  }
  header.scrolled {
    padding: 20px 48px;
  }
  .container {
    padding: 0 32px;
  }
  .contact-editorial-layout {
    gap: 80px;
  }
}

@media (max-width: 992px) {
  section {
    margin-bottom: 20vh;
    padding-top: 10vh;
    padding-bottom: 10vh;
  }
  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .gallery-prose {
    position: static;
  }
  .eco-minimal-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .contact-editorial-layout {
    grid-template-columns: 1fr;
    gap: 80px;
  }
  .contact-form-side {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  header {
    padding: 24px 32px;
  }
  header nav {
    display: none; /* Collapsed under mobile layout */
  }
  header nav a.nav-download {
    width: fit-content;
    margin: 4px 0;
  }
  .menu-toggle {
    display: flex;
  }
  .certificate-gallery {
    gap: 32px;
  }
  .cert-card.offset-low {
    transform: translateY(60px);
  }
}

@media (max-width: 576px) {
  .certificate-gallery {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .cert-card.offset-low {
    transform: translateY(0);
  }
  .qr-pedestals {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .form-line-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
