/*
Theme Name: Lumera
Author: VR360
Author URI: https://vr360.one/
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.3
Text Domain: lumera
*/

/* ===== Single post — cinematic Andora ===== */
.single-post {
  --ad-ink: #062b32;
  --ad-deep: #08333f;
  --ad-cyan: #2de7fa;
  --ad-cream: #fefbf7;
  --ad-mist: #d8e6fa;
  --ad-blue: #00447c;
  --ad-muted: #5c7178;
  background: var(--ad-cream);
  color: var(--ad-ink);
}

.single-post__hero {
  position: relative;
  min-height: min(72vh, 640px);
  overflow: hidden;
  background: var(--ad-ink);
}

.single-post__hero-img,
.single-post__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.single-post__hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 43, 50, 0.15) 0%, rgba(6, 43, 50, 0.55) 45%, rgba(6, 43, 50, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 43, 50, 0.45) 0%, transparent 55%);
  z-index: 1;
}

.single-post__hero-copy {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 28vh 1.25rem 3.5rem;
  color: #fff;
  text-align: center;
}

.single-post__hero-copy .ad-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ad-cyan);
}

.single-post__hero-copy h1 {
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #fff;
}

.single-post__hero-copy time {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(254, 251, 247, 0.7);
}

.single-post__body {
  padding-top: 2.75rem;
  padding-bottom: 4rem;
}

.single-post__content {
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.single-post__other-title {
  color: var(--ad-blue);
}

/* Article body */
.ad-article {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ad-ink);
}

.ad-article .ad-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #10828f;
  margin: 0 0 0.85rem;
}

.ad-article .ad-lead {
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ad-deep);
  margin: 0 0 1.75rem;
}

.ad-article p {
  margin: 0 0 1.1rem;
  text-align: justify;
}

.ad-article .ad-figure {
  margin: 1.85rem 0 2.1rem;
}

.ad-article .ad-figure img,
.ad-article .ad-figure video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(6, 43, 50, 0.18);
}

.ad-article .ad-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  font-style: italic;
  color: var(--ad-muted);
  text-align: center;
  letter-spacing: 0.01em;
}

.ad-article .ad-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 0 0 2.25rem;
  padding: 1.35rem 1rem;
  background: linear-gradient(135deg, #08333f 0%, #0e4a55 55%, #10828f 100%);
  border-radius: 16px;
  color: #fff;
}

.ad-article .ad-stat {
  text-align: center;
  padding: 0.35rem 0.2rem;
}

.ad-article .ad-stat strong {
  display: block;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  font-weight: 650;
  color: var(--ad-cyan);
}

.ad-article .ad-stat span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(254, 251, 247, 0.78);
}

.ad-article .ad-section {
  margin: 2.6rem 0 1.15rem;
}

.ad-article .ad-section-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #10828f;
  margin-bottom: 0.3rem;
}

.ad-article .ad-section h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  color: var(--ad-blue);
  text-transform: none;
  margin: 0;
  line-height: 1.3;
}

.ad-article .ad-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 1.7rem;
  border-left: 3px solid var(--ad-cyan);
  background: linear-gradient(90deg, rgba(45, 231, 250, 0.12), rgba(216, 230, 250, 0.35));
  border-radius: 0 14px 14px 0;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ad-deep);
}

.ad-article .ad-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #10828f;
}

.ad-article .ad-timeline {
  position: relative;
  margin: 1.2rem 0 2rem;
  padding-left: 1.5rem;
}

.ad-article .ad-timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, #10828f, #2de7fa);
}

.ad-article .ad-timeline-item {
  position: relative;
  padding: 0 0 1.35rem 0.55rem;
}

.ad-article .ad-timeline-item:last-child {
  padding-bottom: 0;
}

.ad-article .ad-timeline-item::before {
  content: "";
  position: absolute;
  left: -1.32rem;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10828f;
  border: 2px solid #2de7fa;
  box-shadow: 0 0 0 3px rgba(16, 130, 143, 0.2);
}

.ad-article .ad-timeline-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-blue);
  margin-bottom: 0.25rem;
}

.ad-article .ad-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.ad-article .ad-card {
  padding: 1.3rem 1.2rem;
  background: linear-gradient(180deg, #d8e6fa 0%, #fefbf7 48%, #fff 100%);
  border-radius: 14px;
  border: 1px solid rgba(16, 130, 143, 0.18);
}

.ad-article .ad-card h3 {
  font-size: 1.15rem;
  color: var(--ad-blue);
  margin: 0 0 0.75rem;
}

.ad-article .ad-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ad-article .ad-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(6, 43, 50, 0.08);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ad-article .ad-card li:last-child {
  border-bottom: 0;
}

.ad-article .ad-card li em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #10828f;
  margin-bottom: 0.08rem;
}

.ad-article .ad-doc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.ad-article .ad-doc-list li {
  padding: 0.95rem 1rem 0.95rem 1.15rem;
  margin-bottom: 0.55rem;
  background: #fff;
  border-left: 3px solid #10828f;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 8px 22px rgba(6, 43, 50, 0.05);
  line-height: 1.55;
}

.ad-article .ad-doc-list li strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ad-blue);
  margin-bottom: 0.2rem;
}

.ad-article .ad-attach {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.7rem 0 1.4rem;
}
.ad-article .ad-attach br {
  display: none !important;
}
.ad-article .ad-attach > p {
  display: contents;
}
.ad-article .ad-attach a.ad-dl {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  row-gap: 0.06rem;
  align-items: center;
  padding: 0.5rem 0.7rem 0.5rem 0.5rem;
  background: #fff;
  border: 1px solid rgba(16, 130, 143, 0.28);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ad-ink);
  min-height: 52px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.ad-article .ad-attach a.ad-dl::before {
  content: "PDF";
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #08333f;
  color: #2de7fa;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-article .ad-attach a.ad-dl:hover {
  border-color: #10828f;
  background: linear-gradient(180deg, rgba(45, 231, 250, 0.12), #fff 72%);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(6, 43, 50, 0.1);
  color: var(--ad-deep);
}
.ad-article .ad-attach a.ad-dl .ad-dl-label {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 600;
}
.ad-article .ad-attach a.ad-dl .ad-dl-label::before {
  content: none;
}
.ad-article .ad-attach a.ad-dl .ad-dl-meta {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ad-muted);
}

.ad-article .ad-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0 2.2rem;
}

.ad-article .ad-gallery .ad-figure {
  margin: 0;
}

.ad-article .ad-gallery .ad-figure img {
  height: 230px;
  object-fit: cover;
}

.ad-article .ad-gallery .ad-figure:first-child img {
  height: 280px;
}

.ad-article .ad-note {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(6, 43, 50, 0.12);
  font-size: 0.86rem;
  color: var(--ad-muted);
  font-style: italic;
}

.ad-article ul.ad-bullets {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
}

.ad-article ul.ad-bullets li {
  margin-bottom: 0.4rem;
}

.ad-article .ad-video {
  margin: 1.5rem 0 2.1rem;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 22px 48px rgba(6, 43, 50, 0.18);
}

.ad-article .ad-video video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .single-post__hero {
    min-height: 70vh;
  }
  .single-post__hero-copy {
    padding-top: 32vh;
  }
  .ad-article .ad-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ad-article .ad-split,
  .ad-article .ad-gallery {
    grid-template-columns: 1fr;
  }
  .ad-article .ad-gallery .ad-figure img,
  .ad-article .ad-gallery .ad-figure:first-child img {
    height: 200px;
  }
}


@media (max-width: 560px) {
  .ad-article .ad-attach {
    grid-template-columns: 1fr;
  }
}

/*
 * Fix 2026-10-09: AOS chỉ init khi màn hình <= 825px (src/frontend.js),
 * nhưng CSS của AOS ẩn mọi [data-aos] (opacity:0) ở mọi kích thước
 * → desktop trắng các section. Trên desktop để animation_up + fullPage
 * (.fp-completely) điều khiển như trước khi có AOS.
 */
@media (min-width: 826px) {
  [data-aos][data-aos][data-aos] {
    transition-property: opacity, transform, filter;
  }
  .fp-completely [data-aos][data-aos][data-aos] {
    opacity: 1;
    transform: none;
    filter: none;
  }
  [data-aos][data-aos][data-aos]:not(.animation_up):not(.img_animation) {
    opacity: 1;
    transform: none;
  }
}
