html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: grid;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(226, 232, 240, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.55) 1px, transparent 1px);
  background-size: 36px 36px;
}

.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  overflow: hidden;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.header-action::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: transform 520ms ease;
}

.header-action:hover {
  transform: translateY(-2px);
}

.header-action:hover::after {
  transform: translateX(120%) skewX(-18deg);
}

.header-action-login {
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
}

.header-action-login:hover {
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.14);
}

.header-action-register {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.24);
}


/* Subtle MB66 visual refresh */
header {
  border-top: 3px solid #dc2626;
  background: rgba(255, 251, 247, 0.94) !important;
  box-shadow: 0 12px 34px rgba(69, 10, 10, 0.1);
}

header nav a {
  transition: color 180ms ease, transform 180ms ease;
}

header nav a:hover {
  transform: translateY(-1px);
}

.hero-grid {
  background-color: #fffaf8;
  background-image:
    radial-gradient(circle at 78% 16%, rgba(220, 38, 38, 0.12), transparent 28rem),
    linear-gradient(rgba(254, 226, 226, 0.58) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254, 226, 226, 0.58) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.header-action {
  border-radius: 12px;
}

.header-action-register {
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
  animation: mb66-soft-pulse 2.4s ease-in-out infinite;
}

@keyframes mb66-soft-pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(220, 38, 38, 0.2); }
  50% { box-shadow: 0 14px 34px rgba(220, 38, 38, 0.38); }
}

#uu-diem article {
  box-shadow: 0 14px 34px rgba(71, 12, 12, 0.06);
}

footer {
  border-top: 4px solid #dc2626;
  background: linear-gradient(135deg, #120404, #1e293b 58%, #450a0a) !important;
}

.mobile-header-actions {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-header-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
  }

  .mobile-header-actions .header-action {
    min-width: 62px;
    padding: 0.55rem 0.6rem;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-action-register {
    animation: none;
  }
}

/* PDF content tables: added only for tables present in the supplied PDF */
.pdf-table-wrap{width:100%;overflow-x:auto;margin:24px 0;border:1px solid rgba(127,29,29,.18);border-radius:16px;background:#fff;box-shadow:0 12px 28px rgba(69,10,10,.06)}
.pdf-table{width:100%;min-width:640px;border-collapse:collapse;font-size:14px;line-height:1.55}
.pdf-table th{padding:14px 16px;text-align:left;font-weight:900;background:#7f1d1d;color:#fff;white-space:nowrap}
.pdf-table td{padding:14px 16px;border-top:1px solid #eadcdc;vertical-align:top;color:#4b2020}
.pdf-table tbody tr:nth-child(even){background:#fff7f7}
.pdf-content p{margin:0 0 16px;line-height:1.8}
.pdf-content h3{margin:28px 0 12px;font-size:1.25rem;font-weight:900;line-height:1.35}
.pdf-content ul,.pdf-content ol{margin:14px 0 20px;padding-left:24px;line-height:1.75}
.pdf-content li{margin:7px 0}
.pdf-section-image{width:100%;margin-top:22px;border-radius:18px;object-fit:cover;box-shadow:0 16px 36px rgba(69,10,10,.10)}
.pdf-section-body{margin-top:30px}
@media(max-width:700px){.pdf-table{min-width:560px}.pdf-table th,.pdf-table td{padding:12px;font-size:13px}}

/* FAQ accordion: collapsible Q&A while preserving each project's existing visual theme */
.faq-accordion{display:grid;gap:12px;margin-top:22px}
.faq-item{border:1px solid rgba(127,29,29,.16);border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(69,10,10,.05)}
.faq-question{width:100%;border:0;background:transparent;color:inherit;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;text-align:left;font:inherit;font-weight:900;cursor:pointer}
.faq-icon{flex:0 0 30px;width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:rgba(127,29,29,.08);font-size:20px;line-height:1;transition:transform .28s ease}
.faq-answer{display:grid;grid-template-rows:0fr;transition:grid-template-rows .32s ease}
.faq-answer-inner{overflow:hidden;padding:0 20px}
.faq-item.is-open .faq-answer{grid-template-rows:1fr}
.faq-item.is-open .faq-answer-inner{padding-bottom:18px}
.faq-item.is-open .faq-icon{transform:rotate(45deg)}
.faq-answer-inner> :first-child{margin-top:0}
.faq-answer-inner> :last-child{margin-bottom:0}
@media(max-width:700px){.faq-question{padding:16px}.faq-answer-inner{padding-left:16px;padding-right:16px}}

/* Compact hero image-with-text layout */
.hero-image-text{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(360px,.9fr)!important;align-items:center!important;gap:clamp(28px,4vw,56px)!important;}
.hero-text-column{min-width:0;}
.hero-image-column{min-width:0;}
.hero-image-column img, img.hero-image-column{display:block;width:100%!important;max-height:360px!important;aspect-ratio:16/9!important;object-fit:cover!important;border-radius:24px!important;}
.hero-grid{padding-top:6.5rem!important;}
.hero-grid .hero-image-text{padding-top:1.5rem!important;padding-bottom:3rem!important;}
.hero-grid h1,.hero-two h1,.hero-three h1{font-size:clamp(32px,4vw,52px)!important;line-height:1.08!important;}
.hero-grid .pdf-content p,.hero-two .hero-pdf p,.hero-three .hero-pdf p{font-size:clamp(15px,1.2vw,17px)!important;line-height:1.65!important;}
.hero-two{padding:48px 0!important;}
.hero-three{padding-top:36px!important;padding-bottom:44px!important;}
@media(max-width:900px){.hero-image-text{grid-template-columns:1fr!important;gap:24px!important}.hero-image-column{order:2!important}.hero-text-column{order:1!important}.hero-image-column img,img.hero-image-column{max-height:280px!important}.hero-grid{padding-top:5rem!important}.hero-grid .hero-image-text{padding-top:1rem!important;padding-bottom:2.25rem!important}.hero-two{padding:34px 0!important}.hero-three{padding-top:26px!important;padding-bottom:34px!important}}

/* Hero image-with-text refinement */
.hero-image-text{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(320px,.92fr)!important;align-items:center!important;gap:clamp(2rem,5vw,4.5rem)!important;}
.hero-text-column{min-width:0;}
.hero-text-column h1{max-width:760px;}
.hero-image-column,.hero-picture{min-width:0;}
.hero-image-column img,.hero-picture img,img.hero-image-column{display:block;width:100%;max-height:520px;object-fit:cover;border-radius:28px;}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:28px;}
.hero-cta-primary,.hero-cta-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:999px;font-weight:800;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;}
.hero-cta-primary{background:#f59e0b;color:#111827;box-shadow:0 12px 28px rgba(245,158,11,.22);}
.hero-cta-secondary{border:1px solid rgba(15,23,42,.18);color:#0f172a;background:rgba(255,255,255,.78);}
.hero-cta-primary:hover,.hero-cta-secondary:hover,.hero-secondary-action:hover{transform:translateY(-2px);}
.hero-secondary-action{background:transparent!important;}
@media (max-width: 900px){.hero-image-text{grid-template-columns:1fr!important;gap:1.75rem!important;}.hero-text-column{order:1}.hero-image-column,.hero-picture,img.hero-image-column{order:2}.hero-image-column img,.hero-picture img,img.hero-image-column{max-height:420px}.hero-actions{margin-top:22px}}
@media (max-width: 560px){.hero-actions>*{width:100%;}.hero-image-column img,.hero-picture img,img.hero-image-column{max-height:300px;border-radius:20px;}.hero-text-column h1{font-size:clamp(2rem,10vw,3rem)!important;line-height:1.08!important;}}

/* Requested layout update: full hero image + stacked full-width content sections */
.hero-image-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-column img.hero-full-image,
.hero-image-column .hero-full-image {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 24px !important;
}

.section-stack {
  width: 100%;
  display: block;
}

.section-stack-title {
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
}

.section-full-image {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 0 32px;
  border-radius: 24px;
  object-fit: contain !important;
  object-position: center;
  box-shadow: 0 16px 36px rgba(69,10,10,.10);
}

.section-full-content {
  width: 100%;
  max-width: none !important;
  margin: 0;
}

/* The introductory content block below the hero also starts with its title. */
main > section:nth-of-type(2) .pdf-content {
  max-width: none !important;
  width: 100%;
}

main > section:nth-of-type(2) .pdf-content > h2:first-child {
  margin-top: 0;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .hero-image-column img.hero-full-image,
  .hero-image-column .hero-full-image {
    max-height: none !important;
  }

  .section-stack-title {
    margin-bottom: 18px;
  }

  .section-full-image {
    margin-bottom: 24px;
    border-radius: 18px;
  }
}
