:root {
  --primary-color: #6b0f1a;
  --primary-deep: #2c0710;
  --secondary-color: #d4a017;
  --secondary-soft: #f0d98c;
  --light-bg: #fdf8f2;
  --light-surface: #fffaf3;
  --dark-text: #2c2c2c;
  --muted-text: #68574b;
  --white: #ffffff;
  --border-soft: rgba(107, 15, 26, 0.12);
  --shadow-soft: 0 18px 40px rgba(44, 7, 16, 0.12);
  --shadow-strong: 0 24px 60px rgba(20, 8, 4, 0.3);
  --banner-card-width: 520px;
  --banner-card-height: 420px;
  --hero-poster-max-width: 600px;
  --hero-poster-aspect-ratio: 1322 / 1190;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(212, 160, 23, 0.07), transparent 30%),
    linear-gradient(180deg, #fffaf5 0%, #fdf8f2 48%, #f6ece0 100%);
  color: var(--dark-text);
  overflow-x: hidden;
}

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

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

p {
  color: var(--muted-text);
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}

main li,
main blockquote,
footer li {
  text-align: justify;
  text-justify: inter-word;
}

.section-space {
  padding: 72px 0;
}

.section-header {
  margin-bottom: 2.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--secondary-color);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.section-title,
.display-title,
.page-banner h1,
.hero-content h1,
.quote-card blockquote,
.feature-number,
.service-card h3,
.contact-card h3,
.footer-top h4,
.footer-top h5 {
  font-family: "Cormorant Garamond", serif;
}

.section-title,
.page-banner h1,
.hero-content h1 {
  color: var(--primary-deep);
  font-weight: 700;
  line-height: 1;
}

.section-title {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}

.display-title {
  font-size: clamp(2.25rem, 4.2vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 0.95;
}

.hero-section .display-title,
.hero-section .hero-content h1 {
  color: var(--white);
}

.display-title .text-highlight,
.hero-content .text-highlight {
  color: var(--secondary-color);
}

.custom-navbar {
  background:
    linear-gradient(90deg, rgba(66, 7, 14, 0.98), rgba(115, 15, 24, 0.95)),
    var(--primary-color);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212, 160, 23, 0.25);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--white);
  cursor: default;
}

.navbar-brand:hover,
.navbar-brand:focus,
.navbar-brand:active {
  color: var(--white);
}

.brand-mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  text-align: center;
}

.brand-copy strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-copy small {
  font-family: "Manrope", sans-serif;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  background-image: url("../images/navbar-toggle-white.svg");
}

.custom-navbar .nav-link {
  font-family: "Manrope", sans-serif;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-left: 0.75rem;
  position: relative;
  padding-bottom: 0.85rem;
  transition: color 0.25s ease;
}

.custom-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: #f3dfb3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active,
.custom-navbar .navbar-nav .nav-link.active,
.custom-navbar .navbar-nav .nav-link.show {
  color: #ffffff;
}

.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after,
.custom-navbar .navbar-nav .nav-link.active::after,
.custom-navbar .navbar-nav .nav-link.show::after {
  transform: scaleX(1);
}

.btn-enroll,
.btn-primary-custom,
.btn-outline-light-custom {
  font-family: "Manrope", sans-serif;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.btn-enroll,
.btn-primary-custom {
  background: linear-gradient(135deg, #f0bf3c, #c58b0c);
  color: #2d1706;
  border: 0;
  box-shadow: 0 10px 24px rgba(197, 139, 12, 0.3);
}

.custom-navbar .btn-enroll {
  padding: 0.72rem 1.35rem;
  font-size: 0.95rem;
}

.btn-enroll:hover,
.btn-primary-custom:hover {
  background: linear-gradient(135deg, #f4cf6c, #d39d24);
  color: #2d1706;
}

.btn-outline-light-custom {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
}

.btn-outline-light-custom:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hero-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 18%, rgba(212, 160, 23, 0.28), transparent 22%),
    linear-gradient(90deg, rgba(20, 8, 4, 0.96) 0%, rgba(48, 17, 11, 0.9) 38%, rgba(15, 11, 8, 0.82) 100%);
  color: var(--white);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36)),
    radial-gradient(circle at left center, rgba(107, 15, 26, 0.35), transparent 42%);
  pointer-events: none;
}

.hero-content,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 650px;
  padding: 2.5rem 0 4rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 248, 239, 0.86);
}

.hero-section .eyebrow {
  color: #f0bf3c;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-regs {
  margin-top: 1rem;
  font-size: 0.98rem;
  color: rgba(255, 248, 239, 0.78);
}

.hero-media {
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-frame {
  width: 100%;
  max-width: var(--banner-card-width);
  height: var(--banner-card-height);
  margin-top: 0;
  padding: 8px;
  border: 1px solid rgba(212, 160, 23, 0.65);
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.18), rgba(212, 160, 23, 0.04));
  box-shadow: 0 24px 60px rgba(20, 8, 4, 0.3);
  overflow: hidden;
}

.hero-frame,
.banner-art {
  opacity: 0;
  transform: translateX(80px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    box-shadow 0.35s ease;
}

.hero-frame.is-visible,
.banner-art.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.hero-portrait {
  width: 100%;
  height: 100%;
  max-height: none;
  margin-top: 0;
  border-radius: 32px;
  filter: none;
  object-fit: cover;
  object-position: center;
}

.hero-frame-poster {
  position: relative;
  isolation: isolate;
  width: min(100%, var(--hero-poster-max-width));
  max-width: var(--hero-poster-max-width);
  height: auto;
  aspect-ratio: var(--hero-poster-aspect-ratio);
  padding: 0;
  border: 1px solid rgba(212, 160, 23, 0.32);
  border-radius: 32px;
  background: rgba(20, 8, 4, 0.12);
  box-shadow: 0 24px 60px rgba(20, 8, 4, 0.3);
  overflow: hidden;
}

.hero-frame-poster::before,
.hero-frame-poster::after {
  content: none;
}

.hero-frame-poster::before {
  display: none;
}

.hero-frame-poster::after {
  display: none;
}

.hero-frame-poster .hero-portrait {
  opacity: 1;
  object-fit: contain;
  object-position: center;
  background: #080402;
}

.home-transition-band {
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  padding: 0 0 1rem;
  background:
    linear-gradient(180deg, var(--primary-deep) 0, var(--primary-deep) 58px, rgba(246, 236, 224, 0.94) 58px, rgba(246, 236, 224, 0.4) 100%);
}

.transition-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

.transition-card {
  min-height: 164px;
  padding: 1.35rem 1.35rem 1.2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.96),
    inset -1px -1px 0 rgba(107, 15, 26, 0.04),
    0 18px 40px rgba(44, 7, 16, 0.12);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    opacity 0.8s ease,
    filter 0.8s ease;
}

.transition-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 160, 23, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(254, 248, 236, 0.95));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.96),
    inset -2px -2px 10px rgba(212, 160, 23, 0.08),
    0 26px 48px rgba(44, 7, 16, 0.16);
}

.transition-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.9rem;
  display: grid;
  place-items: center;
  color: var(--secondary-color);
}

.transition-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.transition-card h3 {
  margin-bottom: 0.45rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 1.75vw, 1.8rem);
  font-weight: 700;
  color: var(--primary-color);
}

.transition-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4f463f;
}

.content-card,
.feature-card,
.service-card,
.contact-card,
.schedule-card,
.gallery-card,
.quote-card,
.timeline-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.content-card,
.service-card,
.contact-card,
.schedule-card,
.quote-card,
.timeline-card {
  padding: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.85rem;
  height: 100%;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -1px -1px 0 rgba(107, 15, 26, 0.05),
    0 16px 30px rgba(107, 15, 26, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(180deg, #f5df9b, #edc768);
  border-color: rgba(107, 15, 26, 0.18);
  box-shadow:
    inset 1px 1px 0 rgba(255, 248, 222, 0.95),
    inset -3px -3px 10px rgba(144, 92, 12, 0.12),
    0 24px 42px rgba(107, 15, 26, 0.16);
}

.feature-card:hover h3,
.feature-card:hover p {
  color: #341016;
}

.feature-number {
  font-size: 3rem;
  color: var(--secondary-color);
  line-height: 1;
}

.feature-card:hover .feature-number {
  color: #6b0f1a;
}

.split-image {
  position: relative;
}

.welcome-visual .image-frame {
  height: auto;
  background: transparent;
}

.welcome-visual .image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.welcome-visual .image-float {
  width: 45%;
  height: auto;
  background: var(--light-bg);
}

.welcome-visual .image-float img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

body[data-page="home"] .home-welcome-media {
  padding-bottom: 6rem;
}

.image-frame {
  height: 600px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(74, 35, 18, 0.08), rgba(74, 35, 18, 0.02));
  box-shadow: var(--shadow-soft);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.story-frame {
  height: 500px;
}

.image-float {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 48%;
  height: 260px;
  border-radius: 26px;
  overflow: hidden;
  border: 10px solid var(--light-bg);
  box-shadow: var(--shadow-soft);
}

.image-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-card {
  background:
    linear-gradient(180deg, rgba(107, 15, 26, 0.98), rgba(48, 7, 12, 0.98)),
    var(--primary-color);
}

.quote-card blockquote {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.quote-card p {
  margin-top: 1rem;
  color: rgba(255, 248, 239, 0.76);
}

.program-card {
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.program-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center top;
}

.program-card .program-body {
  padding: 1.8rem;
}

.program-card h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--primary-deep);
  font-size: 2rem;
}

.stats-bar {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-item {
  padding: 1.4rem 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-soft);
  text-align: center;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.9),
    inset -1px -1px 0 rgba(107, 15, 26, 0.06),
    0 14px 30px rgba(107, 15, 26, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg, rgba(107, 15, 26, 0.96), rgba(59, 15, 18, 0.94));
  border-color: rgba(240, 191, 60, 0.42);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.08),
    inset -3px -3px 8px rgba(0, 0, 0, 0.18),
    0 22px 40px rgba(107, 15, 26, 0.2);
}

.stat-item:hover strong,
.stat-item:hover span {
  color: #f7e2a4;
}

.stat-item strong {
  display: block;
  color: var(--primary-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.3rem;
  line-height: 1;
}

.page-banner {
  padding: 3.5rem 0 2.75rem;
  background:
    radial-gradient(circle at right top, rgba(212, 160, 23, 0.22), transparent 25%),
    linear-gradient(135deg, rgba(107, 15, 26, 0.95), rgba(34, 10, 17, 0.98));
  color: var(--white);
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2.35rem, 4.1vw, 4rem);
}

.page-banner p {
  max-width: 720px;
  color: rgba(255, 248, 239, 0.82);
  font-size: 1.08rem;
}

.page-banner-about {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(107, 15, 26, 0.72)),
    url("../../Images/Q34.jpeg") center top / 100% auto no-repeat;
  padding: 120px 20px;
}

.page-banner-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(1px);
}

.page-banner-about .container,
.page-banner-about .page-banner-copy,
.page-banner-about h1,
.page-banner-about p {
  position: relative;
  z-index: 1;
}

.page-banner-about h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--white);
}

.page-banner-about p {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--white);
}

.about-reference-page .page-banner-about {
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(107, 15, 26, 0.72)),
    url("../../Images/Q34.jpeg") center top / 100% auto no-repeat;
  padding: 120px 20px;
}

.about-reference-page .page-banner-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.03);
  animation: about-banner-glow 5s ease-in-out infinite alternate;
}

@keyframes about-banner-glow {
  from {
    backdrop-filter: blur(0);
  }

  to {
    backdrop-filter: blur(2px);
  }
}

.about-reference-page .page-banner-about .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-reference-page .page-banner-about h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1.2;
}

.about-reference-page .page-banner-about p {
  max-width: 850px;
  margin: 0 auto;
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1.8;
}

.about-reference-page .section-padding {
  padding: 24px 0;
}

.about-reference-page .section-pad-top-20 {
  padding-top: 0;
}

.text-maroon-deep {
  color: var(--primary-color);
}

.content-max-750 {
  max-width: 750px;
}

.about-reference-page .about-why-card,
.about-reference-page .about-card-small {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(44, 7, 16, 0.12);
}

.about-reference-page .about-card-small {
  margin-top: 1rem;
  border: 1px solid rgba(107, 15, 26, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-reference-page .about-card-academy .about-small-img {
  min-height: 100%;
  height: 100%;
  padding: 0;
  background: #1d0f0f;
}

.about-reference-page .about-card-academy .about-small-img img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: transparent;
  border-radius: 0;
}

.about-reference-page .about-card-academy .about-small-content {
  padding: 1.35rem 1.9rem;
}

.about-reference-page .about-card-academy .row {
  align-items: stretch !important;
}

.about-reference-page .about-card-academy .col-lg-5,
.about-reference-page .about-card-academy .col-lg-7 {
  display: flex;
}

.about-reference-page .about-card-academy .col-lg-5 {
  min-height: 340px;
}

.about-reference-page .about-card-academy .col-lg-5 .about-small-img,
.about-reference-page .about-card-academy .col-lg-7 .about-small-content {
  flex: 1 1 auto;
}

.about-reference-page .about-card-small::before,
.about-reference-page .about-why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(212, 160, 23, 0.12) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.about-reference-page .about-card-small:hover::before,
.about-reference-page .about-why-card:hover::before {
  transform: translateX(100%);
}

.about-reference-page .about-card-small:hover,
.about-reference-page .about-why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(44, 7, 16, 0.16);
}

.about-reference-page .about-why-card .row {
  align-items: stretch;
}

.about-reference-page .about-why-card .col-lg-5,
.about-reference-page .about-why-card .col-lg-7 {
  display: flex;
}

.about-reference-page .about-why-card .col-lg-5 {
  min-height: 520px;
}

.about-reference-page .about-small-img {
  position: relative;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  background: #1d0f0f;
}

.about-reference-page .about-small-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(107, 15, 26, 0.16));
}

.about-reference-page .about-small-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.about-reference-page .about-why-card .about-small-img img {
  object-position: 42% 22%;
}

.about-reference-page .about-card-small:hover .about-small-img img,
.about-reference-page .about-why-card:hover .about-small-img img {
  transform: scale(1.04);
}

.about-reference-page .about-small-content {
  padding: 2.2rem;
}

.about-reference-page .about-small-content small,
.about-reference-page .about-section-heading small {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--secondary-color);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-reference-page .about-small-content h3,
.about-reference-page .about-section-heading h2 {
  font-family: "Cormorant Garamond", serif;
  color: var(--primary-deep);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-reference-page .about-small-content p {
  color: var(--muted-text);
  line-height: 1.8;
}

.about-reference-page .about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0bf3c, #c58b0c);
  color: #2d1706;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(197, 139, 12, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.about-reference-page .about-btn:hover {
  color: #2d1706;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(197, 139, 12, 0.34);
  background: linear-gradient(135deg, #f4cf6c, #d39d24);
}

.about-reference-page .about-section-heading {
  margin-bottom: 0.8rem;
}

.about-reference-page .feature-box {
  height: 100%;
  padding: 2rem 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(107, 15, 26, 0.08);
  box-shadow: 0 18px 40px rgba(44, 7, 16, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.about-reference-page .feature-box:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg, #f8e6b3, #f3d07e);
  box-shadow: 0 24px 48px rgba(44, 7, 16, 0.14);
}

.about-reference-page .feature-box i {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-size: 2rem;
}

.about-reference-page .feature-box h5 {
  margin-bottom: 0.6rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: var(--primary-deep);
}

.about-reference-page .feature-box p {
  color: var(--muted-text);
}

.about-reference-page .reveal,
.about-reference-page .reveal-left,
.about-reference-page .reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-reference-page .reveal {
  transform: translateY(46px);
}

.about-reference-page .reveal-left {
  transform: translateX(-52px);
}

.about-reference-page .reveal-right {
  transform: translateX(52px);
}

.about-reference-page .reveal.active,
.about-reference-page .reveal-left.active,
.about-reference-page .reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

.about-reference-page .delay-1 {
  transition-delay: 0.08s;
}

.about-reference-page .delay-2 {
  transition-delay: 0.16s;
}

.about-reference-page .delay-3 {
  transition-delay: 0.24s;
}

.about-reference-page .delay-4 {
  transition-delay: 0.32s;
}

.services-reference-page .services-page-banner {
  position: relative;
  min-height: auto;
  color: var(--white);
}

.services-reference-page .services-page-banner .container {
  position: relative;
  z-index: 1;
}

.services-reference-page .services-page-banner .hero-copy {
  max-width: 620px;
}

.services-reference-page,
.services-reference-page * {
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
}

.services-reference-page {
  background: var(--light-bg);
  overflow-x: hidden;
}

.services-reference-page .services-page-banner .hero-content p {
  max-width: 36rem;
}

.services-reference-page .services-page-banner .hero-frame-poster {
  max-width: 430px;
  aspect-ratio: 820 / 1158;
}

.services-reference-page .services-page-banner .hero-portrait {
  object-fit: cover;
  object-position: center top;
  background: transparent;
}

.services-reference-page .section-padding {
  padding: 90px 0;
}

.services-reference-page .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.services-reference-page .section-title small {
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.services-reference-page .section-title h2 {
  margin-top: 0.75rem;
  color: var(--primary-color);
  font-size: 44px;
  font-weight: 700;
}

.services-reference-page .section-title p {
  font-size: 15px;
  line-height: 1.9;
}

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

.content-max-760 {
  max-width: 760px;
}

.services-reference-page .services-section {
  background: var(--light-bg);
}

.services-reference-page .service-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(123, 17, 19, 0.12);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.services-reference-page .service-card:hover {
  transform: translateY(-14px) scale(1.02);
  box-shadow: 0 30px 70px rgba(123, 17, 19, 0.25);
}

.services-reference-page .service-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.services-reference-page .service-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(107, 15, 26, 0.45));
}

.services-reference-page .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1s ease, filter 0.6s ease;
}

.services-reference-page .service-card:hover .service-img img {
  transform: scale(1.12);
  filter: brightness(1.05);
}

.services-reference-page .service-content {
  position: relative;
  padding: 32px 25px 30px;
}

.services-reference-page .service-icon {
  position: absolute;
  top: -35px;
  left: 25px;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 26px;
  transition: transform 0.6s ease, background 0.6s ease;
}

.services-reference-page .service-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.services-reference-page .service-card:hover .service-icon {
  transform: rotateY(180deg) scale(1.1);
  background: var(--secondary-color);
}

.services-reference-page .service-content h5 {
  margin-top: 18px;
  margin-bottom: 14px;
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 700;
}

.services-reference-page .service-content p {
  color: #555;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.services-reference-page .service-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.4s ease, letter-spacing 0.4s ease;
}

.services-reference-page .service-content a:hover {
  color: var(--secondary-color);
  letter-spacing: 1px;
}

.services-reference-page .service-content a i {
  margin-left: 5px;
  transition: transform 0.4s ease;
}

.services-reference-page .service-content .link-arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.4s ease;
}

.services-reference-page .service-content a:hover .link-arrow {
  transform: translateX(6px);
}

.services-reference-page .feature-box {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 35px 24px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(123, 17, 19, 0.12);
  transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}

.services-reference-page .feature-box::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 220%;
  height: 220%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  transform: rotate(25deg);
  transition: 0.9s ease;
}

.services-reference-page .feature-box:hover::before {
  top: -30%;
  left: -30%;
}

.services-reference-page .feature-box:hover {
  transform: translateY(-12px) scale(1.03);
  background: linear-gradient(135deg, var(--primary-color), #9b1c20);
  box-shadow: 0 25px 55px rgba(123, 17, 19, 0.24);
}

.services-reference-page .feature-box i,
.services-reference-page .feature-box-image {
  display: inline-block;
  margin-bottom: 16px;
  transition: transform 0.5s ease, color 0.5s ease;
}

.services-reference-page .feature-box i {
  font-size: 38px;
  color: var(--secondary-color);
}

.services-reference-page .feature-box-image {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.services-reference-page .feature-box:hover i,
.services-reference-page .feature-box:hover .feature-box-image {
  transform: scale(1.2) rotateY(180deg);
}

.services-reference-page .feature-box:hover i {
  color: #fff;
}

.services-reference-page .feature-box h5 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 12px;
  transition: color 0.5s ease;
}

.services-reference-page .feature-box p {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 0;
  transition: color 0.5s ease;
}

.services-reference-page .feature-box:hover h5,
.services-reference-page .feature-box:hover p {
  color: #fff;
}

.services-reference-page .section-bg-white {
  background: #fff;
}

.services-reference-page .stats-section {
  background: linear-gradient(135deg, #4b0507, #7b1113, #9b1c20);
  padding: 90px 0;
}

.services-reference-page .stats-section .section-title {
  max-width: 860px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.services-reference-page .stats-section .section-title small,
.services-reference-page .stats-section .section-title h2,
.services-reference-page .stats-section .section-title p {
  text-align: center;
}

.services-reference-page .stats-section .section-title p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.text-white-force {
  color: #fff !important;
}

.services-reference-page .stats-box {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.5s ease, letter-spacing 0.4s ease;
}

.services-reference-page .stats-box:hover {
  transform: translateY(-12px) scale(1.06);
}

.services-reference-page .stats-box h2 {
  color: var(--secondary-color);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  animation: services-floating 3s ease-in-out infinite;
}

.services-reference-page .stats-box:hover h2 {
  letter-spacing: 2px;
}

.services-reference-page .stats-box p {
  color: #fff;
  margin-bottom: 0;
  max-width: 14ch;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

@keyframes services-floating {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }

  100% {
    transform: translateY(0);
  }
}

.services-reference-page .reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease, transform 1s ease;
}

.services-reference-page .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.services-reference-page .delay-1 {
  transition-delay: 0.15s;
}

.services-reference-page .delay-2 {
  transition-delay: 0.3s;
}

.services-reference-page .delay-3 {
  transition-delay: 0.45s;
}

.banner-art {
  width: 100%;
  max-width: var(--banner-card-width);
  height: var(--banner-card-height);
  margin-left: auto;
  padding: 8px;
  border: 1px solid rgba(212, 160, 23, 0.65);
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.18), rgba(212, 160, 23, 0.04));
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 8, 4, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-art img {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  object-fit: cover;
  object-position: center;
}

.banner-art-reference {
  max-width: 640px;
  height: 440px;
}

.banner-art-reference img {
  object-fit: contain;
  background: rgba(11, 8, 6, 0.92);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(52px) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    filter 0.8s ease;
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-frame,
  .banner-art,
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.service-card {
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(44, 7, 16, 0.16);
}

.gallery-story-card:hover,
.gallery-feature-card:hover,
.gallery-spotlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(44, 7, 16, 0.16);
}

.service-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 2.05rem;
  color: var(--primary-deep);
}

.method-list {
  display: grid;
  gap: 1rem;
}

.method-item {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(212, 160, 23, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.18);
}

.timeline-card {
  height: 100%;
}

.timeline-card h3 {
  color: var(--primary-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.gallery-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(107, 15, 26, 0.08);
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 700;
}

.gallery-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.gallery-card {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 28px;
  break-inside: avoid;
}

.gallery-card img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid rgba(107, 15, 26, 0.08);
  box-shadow: 0 18px 36px rgba(44, 7, 16, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(12, 9, 7, 0.86));
}

.gallery-overlay span,
.gallery-overlay h3 {
  color: var(--white);
  margin: 0;
}

.gallery-overlay span {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-soft);
}

.gallery-overview-section {
  padding-bottom: 2.5rem;
}

.gallery-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-stat-card {
  padding: 1.35rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 243, 0.98));
  border: 1px solid rgba(107, 15, 26, 0.1);
  box-shadow: 0 18px 40px rgba(44, 7, 16, 0.08);
}

.gallery-stat-card strong {
  display: block;
  color: var(--primary-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.gallery-stat-card span {
  display: block;
  color: var(--muted-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.gallery-spotlight-card,
.gallery-story-card,
.gallery-feature-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(107, 15, 26, 0.1);
  box-shadow: 0 18px 40px rgba(44, 7, 16, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-spotlight-card {
  border-radius: 32px;
  overflow: hidden;
}

.gallery-spotlight-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-spotlight-content {
  padding: 1.75rem 1.75rem 1.9rem;
}

.gallery-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.gallery-spotlight-content h3,
.gallery-story-content h3,
.gallery-feature-card h3 {
  color: var(--primary-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  margin: 0.9rem 0 0.7rem;
}

.gallery-section-intro {
  max-width: 760px;
}

.gallery-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-story-card {
  border-radius: 28px;
  overflow: hidden;
  height: 100%;
}

.gallery-story-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-story-content {
  padding: 1.5rem 1.45rem 1.6rem;
}

.gallery-archive-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.gallery-archive-header p {
  max-width: 440px;
  margin: 0;
}

.gallery-archive-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-feature-card {
  grid-column: span 4;
  border-radius: 28px;
  overflow: hidden;
  margin: 0;
}

.gallery-feature-card-large {
  grid-column: span 7;
}

.gallery-feature-card-wide {
  grid-column: span 5;
}

.gallery-feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-feature-card-large img {
  aspect-ratio: 16 / 11;
}

.gallery-feature-card figcaption {
  padding: 1.45rem 1.45rem 1.55rem;
}

.gallery-feature-card p,
.gallery-story-content p,
.gallery-spotlight-content p {
  margin-bottom: 0;
}

.gallery-showcase-grid {
  margin-top: 0.5rem;
}

.gallery-showcase-grid .gallery-card {
  margin-bottom: 1rem;
}

.gallery-load-more {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.gallery-load-more-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.8rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #6b0f1a, #421019);
  color: #fff7ef;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(44, 7, 16, 0.18);
}

.gallery-load-more-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

@media (max-width: 991.98px) {
  .gallery-stat-grid,
  .gallery-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-archive-header {
    align-items: start;
    flex-direction: column;
  }

  .gallery-archive-header p {
    max-width: none;
  }

  .gallery-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-feature-card,
  .gallery-feature-card-large,
  .gallery-feature-card-wide {
    grid-column: span 1;
  }
}

@media (max-width: 767.98px) {
  .gallery-stat-grid,
  .gallery-story-grid,
  .gallery-archive-grid {
    grid-template-columns: 1fr;
  }

  .gallery-spotlight-content,
  .gallery-story-content,
  .gallery-feature-card figcaption {
    padding: 1.3rem 1.2rem 1.4rem;
  }

  .gallery-spotlight-content h3,
  .gallery-story-content h3,
  .gallery-feature-card h3 {
    font-size: 1.75rem;
  }
}

.contact-card h3,
.schedule-card h3 {
  color: var(--primary-deep);
  font-size: 2rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--muted-text);
  font-weight: 600;
}

.custom-form .form-control,
.custom-form .form-select {
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(107, 15, 26, 0.15);
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.custom-form .form-control:focus,
.custom-form .form-select:focus {
  border-color: rgba(212, 160, 23, 0.72);
  box-shadow: 0 0 0 0.18rem rgba(212, 160, 23, 0.14);
}

.custom-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.footer-top {
  background:
    radial-gradient(circle at top right, rgba(212, 160, 23, 0.12), transparent 20%),
    linear-gradient(180deg, #3b0911 0%, #26050c 100%);
  color: #fff;
  padding: 0 0 4.5rem;
}

.footer-top h4,
.footer-top h5 {
  color: var(--secondary-soft);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-top p,
.footer-top li,
.footer-top a {
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.55rem;
}

.footer-top a:hover {
  color: var(--secondary-soft);
}

.footer-bottom {
  background: #180308;
  color: #fff;
  padding: 1rem 0;
}

.footer-bottom p {
  margin: 0;
  color: inherit;
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.28);
}

.whatsapp-float:hover {
  color: var(--white);
  background: #21bc5b;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@media (max-width: 1199.98px) {
  .transition-card-grid,
  .feature-grid,
  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body[data-page="home"] .hero-content {
    order: 2;
  }

  body[data-page="home"] .hero-media {
    order: 1;
  }

  body[data-page="home"] .home-welcome-copy {
    order: 2;
  }

  body[data-page="home"] .home-welcome-media {
    order: 1;
    padding-bottom: 5rem;
  }

  body[data-page="gallery"] .gallery-banner-copy {
    order: 2;
  }

  body[data-page="gallery"] .gallery-banner-media {
    order: 1;
  }

  .hero-copy {
    padding: 2rem 0 1.5rem;
  }

  .hero-media {
    justify-content: center;
  }

  .hero-portrait {
    max-height: none;
    margin-top: 0;
  }

  .hero-frame {
    height: 360px;
  }

  .hero-frame-poster {
    max-width: 520px;
    height: auto;
  }

  .banner-art img {
    max-height: 460px;
  }

  .nav-link {
    margin-left: 0;
  }

  .nav-link::after {
    left: 0;
    right: 0;
    width: auto;
  }

  .banner-art {
    margin: 2rem auto 0;
  }

  .banner-art {
    height: 360px;
  }

  .page-banner-about {
    min-height: 320px;
    padding: 90px 15px;
    background-position: center;
  }

  .page-banner-about p {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .about-reference-page .page-banner-about {
    min-height: 320px;
    padding: 90px 15px;
  }

  .about-reference-page .page-banner-about p {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .services-reference-page .services-page-banner {
    padding: 0;
  }

  body[data-page="services"] .hero-content {
    order: 2;
  }

  body[data-page="services"] .hero-media {
    order: 1;
  }

  .services-reference-page .section-padding {
    padding: 65px 0;
  }

  .services-reference-page .section-title h2 {
    font-size: 2.2rem;
  }

  .services-reference-page .service-img {
    height: 220px;
  }

  .services-reference-page .service-content {
    padding: 28px 20px;
  }

  .services-reference-page .service-content h5 {
    font-size: 1.35rem;
  }

  .about-reference-page .about-why-card .col-lg-5,
  .about-reference-page .about-why-card .col-lg-7 {
    display: block;
  }

  .about-reference-page .about-why-card .col-lg-5 {
    min-height: 420px;
  }

  .about-reference-page .about-small-img {
    min-height: 280px;
  }

  .about-reference-page .about-small-content {
    padding: 1.8rem;
  }

  .about-reference-page .about-card-academy .about-small-img {
    min-height: 100%;
  }

  .about-reference-page .about-card-academy .col-lg-5,
  .about-reference-page .about-card-academy .col-lg-7 {
    display: block;
  }

  .about-reference-page .about-card-academy .col-lg-5 {
    min-height: 280px;
  }

  .banner-art-reference {
    height: 380px;
  }

  .home-transition-band {
    margin-top: -2rem;
  }

  .gallery-grid {
    column-count: 2;
  }

  .image-frame {
    height: 500px;
  }

  .story-frame {
    height: 420px;
  }

  .image-float {
    height: 220px;
  }

  .welcome-visual .image-frame,
  .welcome-visual .image-float {
    height: auto;
  }

  .image-float {
    right: 0;
    bottom: -10%;
  }
}

@media (max-width: 767.98px) {
  .section-space {
    padding: 56px 0;
  }

  .custom-navbar .container {
    row-gap: 1rem;
  }

  .custom-navbar .navbar-brand {
    max-width: calc(100% - 84px);
  }

  .custom-navbar .navbar-collapse {
    flex-grow: 0;
    width: min(100%, 340px);
    margin: 0.75rem auto 0;
    padding: 1.1rem 1rem 1.25rem;
    background: rgba(88, 10, 19, 0.92);
    border: 1px solid rgba(243, 223, 179, 0.18);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(22, 3, 8, 0.28);
    text-align: center;
  }

  .custom-navbar .navbar-nav {
    align-items: center;
    gap: 0.25rem;
  }

  .custom-navbar .nav-link {
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
    display: inline-flex;
    justify-content: center;
  }

  .custom-navbar .nav-link::after {
    left: 0;
    right: 0;
  }

  .custom-navbar .btn-enroll {
    display: inline-flex;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .display-title {
    line-height: 1;
  }

  .hero-portrait {
    max-height: none;
  }

  .hero-frame {
    height: 300px;
  }

  .hero-frame-poster {
    max-width: 100%;
    height: auto;
  }

  .banner-art img {
    max-height: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .transition-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

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

  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .home-transition-band {
    margin-top: -1rem;
    padding-bottom: 0.75rem;
    background:
      linear-gradient(180deg, var(--primary-deep) 0, var(--primary-deep) 34px, rgba(246, 236, 224, 0.94) 34px, rgba(246, 236, 224, 0.4) 100%);
  }

  .banner-art {
    height: 300px;
  }

  .page-banner-about h1 {
    font-size: 2.4rem;
  }

  .page-banner-about p {
    font-size: 1rem;
  }

  .about-reference-page .page-banner-about h1 {
    font-size: 2.4rem;
  }

  .about-reference-page .page-banner-about p {
    font-size: 1rem;
  }

  .services-reference-page .section-padding {
    padding: 52px 0;
  }

  .about-reference-page .about-why-card .col-lg-5 {
    min-height: 320px;
  }

  .about-reference-page .section-padding {
    padding: 20px 0;
  }

  .about-reference-page .about-small-img {
    min-height: 240px;
  }

  .about-reference-page .about-small-content {
    padding: 1.45rem;
  }

  .about-reference-page .about-card-academy .about-small-img {
    min-height: 100%;
  }

  .about-reference-page .about-card-academy .about-small-content {
    padding: 1.2rem 1.3rem;
  }

  .about-reference-page .about-card-academy .col-lg-5 {
    min-height: 220px;
  }

  .about-reference-page .about-small-content h3,
  .about-reference-page .about-section-heading h2 {
    font-size: 1.9rem;
  }

  .about-reference-page .reveal-left,
  .about-reference-page .reveal-right {
    transform: translateY(40px);
  }

  .banner-art-reference {
    height: 280px;
  }

  .transition-card {
    min-height: 172px;
    padding: 1.1rem 0.9rem 1rem;
    border-radius: 26px;
  }

  .transition-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 0.75rem;
  }

  .transition-card h3 {
    font-size: 1.05rem;
    line-height: 1.1;
    margin-bottom: 0.35rem;
  }

  .transition-card p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .home-welcome-copy .section-header {
    text-align: center;
  }

  .home-welcome-copy .eyebrow {
    justify-content: center;
  }

  .home-welcome-copy .section-title {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .home-welcome-copy p {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .footer-top {
    text-align: center;
    padding: 0 0 2.5rem;
  }

  .footer-top .row {
    display: grid;
    grid-template-columns: minmax(110px, 0.82fr) minmax(170px, 1.18fr);
    justify-content: center;
    align-items: start;
    gap: 1rem 0.85rem;
  }

  .footer-top .row > [class*="col-"]:first-child,
  .footer-top .row > [class*="col-"]:last-child {
    grid-column: 1 / -1;
  }

  .footer-top .row > [class*="col-"]:nth-child(3) {
    font-size: 0.95rem;
  }

  .footer-top .row > [class*="col-"] {
    margin-bottom: 0;
  }

  .footer-top h4,
  .footer-top h5 {
    margin-bottom: 0.7rem;
  }

  .footer-top p,
  .footer-links {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-top p {
    margin-bottom: 0.7rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .footer-links li + li {
    margin-top: 0.4rem;
  }

  .footer-top a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .stat-item {
    padding: 1.15rem 0.85rem;
    border-radius: 20px;
  }

  .stat-item strong {
    font-size: 2rem;
  }

  .stat-item span {
    display: block;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .feature-card {
    padding: 1.3rem 1.1rem;
    border-radius: 24px;
  }

  .feature-number {
    font-size: 2.25rem;
    margin-bottom: 0.4rem;
  }

  .feature-card h3 {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.55rem;
  }

  .feature-card p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0;
  }

  .gallery-grid {
    column-count: 1;
  }

  .image-frame {
    height: 400px;
  }

  .story-frame {
    height: 340px;
  }

  .image-float {
    height: 260px;
  }

  .welcome-visual .image-frame,
  .welcome-visual .image-float {
    height: auto;
  }

  .image-float {
    position: static;
    width: 100%;
    margin-top: 1rem;
    border-width: 0;
  }

  .welcome-visual {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 5.5rem;
  }

  .welcome-visual .image-frame {
    height: auto;
    border-radius: 28px;
    overflow: hidden;
  }

  .welcome-visual .image-float {
    position: absolute;
    right: -8%;
    bottom: -12%;
    width: 48%;
    max-width: none;
    height: auto;
    margin-top: 0;
    border-width: 10px;
    border-radius: 26px;
  }

  body[data-page="home"] .home-welcome-media {
    padding-bottom: 4rem;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }

  main :is(p, li, label, small),
  .footer-top :is(h4, h5, p, li, a),
  .footer-bottom p {
    text-align: justify !important;
    text-justify: inter-word;
  }
}
