:root {
  --primary: #7e0d1c;
  --primary-dark: #5e0814;
  --text: #1d1d1d;
  --muted: #666;
  --bg: #f7f7f7;
  --white: #fff;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}


/* Spotlight final redesign */
.gallery-page-main .gallery-spotlight {
  display: grid;
  grid-template-columns: minmax(320px, 1.02fr) minmax(0, 0.98fr);
  gap: 1rem;
  align-items: stretch;
  min-height: 440px;
}

.gallery-page-main .gallery-spotlight-image {
  position: relative;
  height: 100%;
}

.gallery-page-main .gallery-spotlight-image img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e9d1d8;
}

.gallery-page-main .gallery-spotlight-image-tag {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #8a1124, #670a17);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.gallery-page-main .gallery-spotlight-copy {
  border: 1px solid #ecd3da;
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #fff8fb 100%);
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.gallery-page-main .gallery-spotlight-copy p {
  margin: 0;
  color: #565656;
}

.gallery-page-main .gallery-spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gallery-page-main .gallery-spotlight-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #71101d;
  background: #fff;
  border: 1px solid #eccad3;
}

.gallery-page-main .gallery-spotlight-points {
  margin-top: 0.15rem;
  gap: 0.6rem;
}

.gallery-page-main .gallery-spotlight-points article {
  border: 1px solid #ecd3da;
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.78rem;
}

.gallery-page-main .gallery-spotlight-points h3 {
  margin-bottom: 0.22rem;
  color: #6f0f1c;
  font-size: 1rem;
}

@media (max-width: 980px) {
  .gallery-page-main .gallery-spotlight {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .gallery-page-main .gallery-spotlight-image img {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .gallery-page-main .gallery-spotlight-copy {
    padding: 0.82rem;
  }

  .gallery-page-main .gallery-spotlight-image img {
    min-height: 240px;
  }
}

/* Gallery overview final redesign */
.gallery-page-main .gallery-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.gallery-page-main .gallery-overview-copy {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid #ecd3da;
  background: linear-gradient(170deg, #ffffff 0%, #fff8fb 100%);
}

.gallery-page-main .gallery-overview-copy ul {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.35rem;
}

.gallery-page-main .gallery-overview-visuals {
  position: relative;
  display: grid;
  gap: 0;
  align-content: center;
  padding: 0.6rem 0.4rem;
}

.gallery-page-main .gallery-overview-visuals img {
  width: min(100%, 460px);
  height: 238px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e7cfd7;
  box-shadow: 0 14px 26px rgba(27, 10, 14, 0.14);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gallery-page-main .gallery-overview-visuals img:first-child {
  justify-self: start;
  transform: rotate(-2.2deg);
  z-index: 1;
}

.gallery-page-main .gallery-overview-visuals img:last-child {
  justify-self: end;
  margin-top: -40px;
  transform: rotate(2.2deg);
  z-index: 2;
}

.gallery-page-main .gallery-overview-visuals img:first-child:hover,
.gallery-page-main .gallery-overview-visuals img:last-child:hover {
  transform: rotate(0deg) translateY(-3px) scale(1.01);
  box-shadow: 0 20px 30px rgba(27, 10, 14, 0.18);
}

@media (max-width: 980px) {
  .gallery-page-main .gallery-overview {
    grid-template-columns: 1fr;
  }

  .gallery-page-main .gallery-overview-visuals {
    padding: 0.25rem 0;
    gap: 0.72rem;
  }

  .gallery-page-main .gallery-overview-visuals img {
    width: 100%;
    height: 230px;
    transform: none !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 640px) {
  .gallery-page-main .gallery-overview-copy {
    padding: 0.82rem;
  }

  .gallery-page-main .gallery-overview-visuals img {
    height: 200px;
    border-radius: 12px;
  }
}

/* Unique image styling across gallery page */
.gallery-page-main .gallery-hero-strip img {
  border-radius: 14px;
  border: 1px solid #e7ced6;
  box-shadow: 0 12px 22px rgba(29, 11, 16, 0.12);
}

.gallery-page-main .gallery-hero-strip img:nth-child(1) {
  transform: rotate(-1.4deg);
}

.gallery-page-main .gallery-hero-strip img:nth-child(2) {
  transform: translateY(-4px);
}

.gallery-page-main .gallery-hero-strip img:nth-child(3) {
  transform: rotate(1.4deg);
}

.gallery-page-main .gallery-cards-grid .gallery-info-card {
  overflow: hidden;
}

.gallery-page-main .gallery-cards-grid .gallery-info-card:nth-child(3n+1) img {
  transform: scale(1.03) rotate(-0.9deg);
}

.gallery-page-main .gallery-cards-grid .gallery-info-card:nth-child(3n+2) img {
  transform: scale(1.02);
}

.gallery-page-main .gallery-cards-grid .gallery-info-card:nth-child(3n) img {
  transform: scale(1.03) rotate(0.9deg);
}

.gallery-page-main .gallery-cards-grid .gallery-info-card:hover img {
  transform: scale(1.06) rotate(0deg);
}

.gallery-page-main .gallery-spotlight-image img {
  box-shadow: 0 16px 30px rgba(29, 11, 16, 0.16);
}

@media (max-width: 980px) {
  .gallery-page-main .gallery-hero-strip img:nth-child(1),
  .gallery-page-main .gallery-hero-strip img:nth-child(2),
  .gallery-page-main .gallery-hero-strip img:nth-child(3),
  .gallery-page-main .gallery-cards-grid .gallery-info-card:nth-child(3n+1) img,
  .gallery-page-main .gallery-cards-grid .gallery-info-card:nth-child(3n+2) img,
  .gallery-page-main .gallery-cards-grid .gallery-info-card:nth-child(3n) img {
    transform: none;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 187, 210, 0.32) 0%, rgba(255, 187, 210, 0) 38%),
    radial-gradient(circle at 86% 86%, rgba(255, 190, 213, 0.24) 0%, rgba(255, 190, 213, 0) 42%),
    radial-gradient(circle at 50% 42%, rgba(255, 229, 238, 0.68) 0%, rgba(255, 229, 238, 0) 58%),
    linear-gradient(160deg, #fff7fa 0%, #fdebf2 48%, #f9e5ed 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  perspective: 900px;
  overflow: hidden;
}

.page-loader::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    repeating-linear-gradient(90deg, rgba(145, 36, 69, 0.1) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(145, 36, 69, 0.08) 0 1px, transparent 1px 42px);
  transform: rotateX(72deg) translateY(38%);
  transform-origin: center;
  opacity: 0.42;
  animation: loaderGridDrift 7s linear infinite;
}

.page-loader::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 166, 197, 0.22) 0%, rgba(255, 166, 197, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: loaderBackdropPulse 2.8s ease-in-out infinite;
}

.loader-scene {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  width: 340px;
  height: 340px;
  display: grid;
  place-items: center;
  animation: loaderSceneFloat 3.2s ease-in-out infinite;
}

.loader-scene::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 205, 222, 0.34) 0%, rgba(255, 205, 222, 0) 65%),
    conic-gradient(from 10deg, rgba(160, 36, 76, 0.1), rgba(255, 182, 207, 0.12), rgba(160, 36, 76, 0.1));
  filter: blur(1px);
  animation: loaderSceneAura 3.6s ease-in-out infinite;
}

.loader-scene::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c23463;
  box-shadow:
    -120px -70px 0 1px rgba(194, 52, 99, 0.8),
    -92px 88px 0 0 rgba(210, 86, 127, 0.78),
    -36px -136px 0 1px rgba(193, 57, 104, 0.74),
    44px 132px 0 0 rgba(201, 76, 118, 0.74),
    110px -84px 0 1px rgba(182, 41, 83, 0.76),
    138px 24px 0 0 rgba(228, 116, 152, 0.7);
  animation: loaderParticlesDrift 4.4s ease-in-out infinite;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-core {
  position: relative;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 252, 253, 0.98) 0%, rgba(255, 239, 246, 0.92) 30%, rgba(255, 232, 241, 0.52) 55%, rgba(255, 232, 241, 0.05) 76%),
    conic-gradient(from 120deg, rgba(152, 25, 64, 0.16), rgba(241, 139, 170, 0.1), rgba(152, 25, 64, 0.16));
  border: 1px solid rgba(166, 41, 80, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -18px 28px rgba(196, 80, 119, 0.14),
    0 28px 52px rgba(112, 19, 50, 0.24);
  transform: rotateX(9deg) rotateY(-8deg);
  animation: loaderCoreTilt 3.6s ease-in-out infinite;
}

.loader-core > * {
  position: relative;
  z-index: 2;
}

.loader-core::before {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203, 60, 104, 0.2) 0%, rgba(203, 60, 104, 0) 72%);
  animation: loaderHaloPulse 2s ease-in-out infinite;
  z-index: 0;
}

.loader-core::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(177, 64, 101, 0.28);
  box-shadow: inset 0 0 0 6px rgba(255, 222, 233, 0.2);
  animation: loaderCoreSweep 4.2s linear infinite;
  z-index: 1;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 221, 232, 0.2);
}

.loader-ring.ring-one {
  border-top-color: #9d1f45;
  border-right-color: #c93a67;
  animation: loaderSpin 1s linear infinite;
}

.loader-ring.ring-two {
  inset: 36px;
  border-left-color: #b82d57;
  border-bottom-color: #e06c8f;
  animation: loaderSpinReverse 1.22s linear infinite;
}

.loader-ring.ring-three {
  inset: 74px;
  border-top-color: #7e0d1c;
  border-right-color: #f2aac0;
  animation: loaderSpin 1.55s linear infinite;
}

.loader-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 274px;
  height: 274px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(146, 26, 61, 0.34);
  animation: loaderSpin 2.8s linear infinite;
  transform-style: preserve-3d;
}

.loader-orbit i {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #f38aad 70%, #b82355 100%);
  box-shadow: 0 0 14px rgba(195, 41, 86, 0.5);
}

.loader-orbit.orbit-two {
  width: 226px;
  height: 226px;
  animation-duration: 2.2s;
  animation-direction: reverse;
  transform: translate(-50%, -50%) rotateX(68deg);
}

.loader-orbit.orbit-three {
  width: 194px;
  height: 194px;
  animation-duration: 3.2s;
  transform: translate(-50%, -50%) rotateY(70deg);
}


.loader-logo-core {
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.98), rgba(255, 234, 243, 0.88) 68%, rgba(255, 219, 232, 0.75) 100%);
  border: 1px solid rgba(168, 42, 81, 0.3);
  box-shadow: 0 12px 22px rgba(111, 18, 48, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: loaderLogoPulse 1.45s ease-in-out infinite;
}

.loader-logo-core img {
  width: 98px;
  height: 98px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(111, 18, 48, 0.2));
}

@media (max-width: 640px) {
  .loader-core {
    width: 235px;
    height: 235px;
    transform: rotateX(7deg) rotateY(-7deg);
  }

  .loader-ring.ring-two {
    inset: 26px;
  }

  .loader-ring.ring-three {
    inset: 52px;
  }

  .loader-orbit {
    width: 206px;
    height: 206px;
  }

  .loader-orbit.orbit-two {
    width: 172px;
    height: 172px;
  }

  .loader-orbit.orbit-three {
    width: 142px;
    height: 142px;
  }

  .loader-logo-core {
    width: 98px;
    height: 98px;
  }

  .loader-logo-core img {
    width: 72px;
    height: 72px;
  }
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loaderSpinReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes loaderHaloPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes loaderLogoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes loaderOuterOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loaderCoreSweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loaderSceneFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes loaderSceneAura {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.86;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes loaderParticlesDrift {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.78;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@keyframes loaderCoreTilt {
  0%,
  100% {
    transform: rotateX(9deg) rotateY(-8deg);
  }
  50% {
    transform: rotateX(13deg) rotateY(8deg);
  }
}

@keyframes loaderGridDrift {
  to {
    transform: rotateX(72deg) translateY(36%) translateX(42px);
  }
}

@keyframes loaderBackdropPulse {
  0%,
  100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader::before,
  .page-loader::after,
  .loader-scene,
  .loader-scene::before,
  .loader-scene::after,
  .loader-core,
  .loader-ring,
  .loader-orbit,
  .loader-logo-core,
  .loader-core::before,
  .loader-core::after {
    animation: none;
  }
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  background: var(--primary);
  color: #fbeef0;
  font-size: 0.9rem;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.topbar a {
  color: #fff;
  font-weight: 600;
}

.navbar {
  background: #ffffff;
  border-bottom: 1px solid #ece3e6;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(24, 10, 14, 0.05);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo .logo-mark {
  display: block;
  width: 170px;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  font-weight: 500;
  margin-left: auto;
  margin-right: auto;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 0.35rem;
  color: #3f3f3f;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.2rem;
  height: 2px;
  background: linear-gradient(90deg, #b0162f, #7e0d1c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #e7d3d8;
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #7e0d1c;
  border-radius: 4px;
  display: block;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.nav-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #861023, #690a18);
  box-shadow: 0 8px 16px rgba(126, 13, 28, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.nav-cta span {
  transition: transform 0.25s ease;
}

.nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 82%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #760e1f, #570812);
  box-shadow: 0 12px 20px rgba(126, 13, 28, 0.28);
}

.nav-cta:hover span {
  transform: translateX(4px);
}

.nav-cta:hover::after {
  transform: translateX(120%);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}

.btn-light:hover {
  background: #f1f1f1;
}

.btn-ghost {
  background: #fff5f7;
  color: #7e0d1c;
  border: 1.5px solid #cc8e9b;
  box-shadow: 0 6px 14px rgba(126, 13, 28, 0.12);
}

.btn-ghost:hover {
  background: #7e0d1c;
  color: #fff;
  border-color: #7e0d1c;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(126, 13, 28, 0.28);
}

.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, #f8f9fc 0%, #eef2f8 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.28) 62%, rgba(255, 255, 255, 0) 100%);
}

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

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: start;
  gap: 1rem;
  width: 100%;
  min-height: 540px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.hero-copy {
  max-width: 700px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding-left: clamp(0.4rem, 4vw, 54px);
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100%;
  transform: translateY(-3%);
}

.hero-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero-actions .btn {
  min-height: 49px;
  align-items: center;
}

.hero-cta {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.hero-actions .btn-ghost {
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font-weight: 600;
  box-shadow: 0 8px 14px rgba(126, 13, 28, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
  position: relative;
  overflow: hidden;
}

.hero-actions .btn-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 80%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.hero-actions .btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 22px rgba(126, 13, 28, 0.24);
  background: linear-gradient(90deg, #8f1327, #6a0a17);
  color: #fff;
  border-color: #7e0d1c;
}

.hero-actions .btn-ghost:hover::after {
  transform: translateX(120%);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  height: 100%;
  padding-right: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: clamp(320px, 45vw, 540px);
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
  transform: translateX(-5%);
  border: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 11%, #000 89%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 11%, #000 89%, transparent 100%),
    radial-gradient(circle at top left, transparent 0%, #000 34%),
    radial-gradient(circle at top right, transparent 0%, #000 34%),
    radial-gradient(circle at bottom left, transparent 0%, #000 34%),
    radial-gradient(circle at bottom right, transparent 0%, #000 34%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 11%, #000 89%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 11%, #000 89%, transparent 100%),
    radial-gradient(circle at top left, transparent 0%, #000 34%),
    radial-gradient(circle at top right, transparent 0%, #000 34%),
    radial-gradient(circle at bottom left, transparent 0%, #000 34%),
    radial-gradient(circle at bottom right, transparent 0%, #000 34%);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(248, 249, 252, 0.76) 0%, rgba(248, 249, 252, 0.22) 20%, rgba(248, 249, 252, 0) 40%),
    linear-gradient(to left, rgba(238, 242, 248, 0.58) 0%, rgba(238, 242, 248, 0.16) 18%, rgba(238, 242, 248, 0) 36%),
    linear-gradient(to bottom, rgba(248, 249, 252, 0.52) 0%, rgba(248, 249, 252, 0.12) 16%, rgba(248, 249, 252, 0) 34%),
    linear-gradient(to top, rgba(248, 249, 252, 0.58) 0%, rgba(248, 249, 252, 0.14) 18%, rgba(248, 249, 252, 0) 36%);
  z-index: 2;
  pointer-events: none;
}

.hero-visual::after {
  content: none;
  position: absolute;
  inset: 0;
  box-shadow: none;
  z-index: 2;
  pointer-events: none;
}

.hero-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(248, 249, 252, 0.72) 0%, rgba(248, 249, 252, 0.22) 50%, rgba(248, 249, 252, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-subtitle,
.section-tag {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

.hero-copy .hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff2f5, #ffffff);
  border: 1px solid #efc8d0;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  box-shadow: 0 6px 14px rgba(126, 13, 28, 0.1);
  margin-bottom: 0;
}

.hero-copy .hero-subtitle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #961329;
  box-shadow: 0 0 0 0 rgba(150, 19, 41, 0.3);
  animation: heroSubtitlePulse 1.9s ease-out infinite;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fdecef;
  border: 1px solid #f3c7cf;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(126, 13, 28, 0.35);
  animation: sectionTagPulse 1.8s ease-out infinite;
}

.section-tag.center {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

#gallery .section-tag.center,
#certification .section-tag.center,
#contact .section-tag.center {
  min-width: 160px;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.45rem);
  line-height: 1.1;
  margin-bottom: 0;
  max-width: 690px;
}

.hero-highlight {
  color: #8f1127;
  display: inline-block;
  white-space: normal;
  min-width: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.hero-rotating-text {
  min-width: 16ch;
}

.hero-rotating-text.is-fading {
  opacity: 0.12;
  transform: translateY(3px);
}

.hero p {
  color: #323232;
  margin-bottom: 0;
}

.features {
  margin-top: -56px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(25, 12, 16, 0.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  position: relative;
  z-index: 2;
  gap: 0;
}

.features article {
  padding: 1.35rem 1rem 1.1rem;
  text-align: center;
  min-height: 162px;
  border-right: 1px solid #e9e1e3;
  position: relative;
  overflow: hidden;
  background: transparent;
  transition: background 0.25s ease;
}

.features article:last-child {
  border-right: none;
}

.features article::before {
  content: "";
  position: absolute;
  top: -80%;
  left: -40%;
  width: 70%;
  height: 240%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 233, 238, 0.72) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.25s ease;
  opacity: 0.35;
}

.features article:hover {
  background: #fff9fb;
}

.features article:hover::before {
  transform: rotate(18deg) translateX(170%);
  opacity: 0.55;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.6rem;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  animation: none;
}

.features article:nth-child(2) .feature-icon {
  animation-delay: 0.15s;
}

.features article:nth-child(3) .feature-icon {
  animation-delay: 0.3s;
}

.features article:nth-child(4) .feature-icon {
  animation-delay: 0.45s;
}

.feature-icon::after {
  display: none;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  fill: #8a1224;
  transition: transform 0.25s ease;
}

.features article:hover .feature-icon {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 6px 10px rgba(138, 18, 36, 0.2));
}

.features article:hover .feature-icon svg {
  transform: rotate(-3deg);
}

@keyframes featureIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes featureIconPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.06);
    opacity: 0;
  }
  100% {
    transform: scale(1.06);
    opacity: 0;
  }
}

.features h3 {
  font-size: 0.95rem;
  margin-bottom: 0.34rem;
  color: #2b2b2b;
  line-height: 1.2;
  text-transform: uppercase;
}

.features p {
  color: #595959;
  font-size: 0.86rem;
  line-height: 1.5;
  max-width: 180px;
  margin: 0 auto;
}

.about {
  background: radial-gradient(circle at top left, #fff6f7 0%, #f7f7f7 46%, #ffffff 100%);
  margin-top: 3.5rem;
  padding: 4.6rem 0 3.6rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 1.9rem;
  align-items: center;
}

.about-image-card {
  min-height: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(28, 19, 20, 0.17);
  border: 7px solid #ffffff;
  background: #e9edf3;
}

.about-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 22, 36, 0) 50%, rgba(15, 22, 36, 0.22) 100%);
  pointer-events: none;
  z-index: 2;
}

.about-image-card::after {
  content: "RX PHARMACY INSTITUTE";
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(126, 13, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.about-image-card img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.about-image-card:hover img {
  transform: scale(1.06);
}

.about-card {
  background: linear-gradient(160deg, #ffffff 0%, #fff8f9 100%);
  color: var(--text);
  padding: 2.3rem;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(30, 16, 19, 0.11);
  border-top: 6px solid var(--primary);
  border-right: 1px solid #f3d9de;
  border-bottom: 1px solid #f3d9de;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 18%, rgba(190, 28, 56, 0.14) 0%, rgba(190, 28, 56, 0) 48%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.about-card .section-tag {
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.about-card .section-tag::before {
  box-shadow: 0 0 0 4px rgba(126, 13, 28, 0.15);
}

.about-card h2 {
  margin-bottom: 0.95rem;
  line-height: 1.2;
  color: #1d1d1d;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.about-card p + p {
  margin-top: 0.75rem;
}

.about-tags {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.about-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, #fff5f7);
  border: 1px solid #eec9d1;
  color: #6f0d19;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 5px 12px rgba(126, 13, 28, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.about-tags span:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 16px rgba(126, 13, 28, 0.14);
  border-color: #e0acb7;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 44px rgba(49, 21, 29, 0.16);
  border-top-color: #b3162d;
}

.about-card:hover::after {
  opacity: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.about-stats {
  margin-top: 1.35rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
  gap: 1rem;
  box-shadow: none;
}

.stats-grid article {
  background: linear-gradient(145deg, #ffffff, #fff6f8);
  border-radius: 14px;
  padding: 0.95rem 0.85rem 0.75rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1d5db;
  text-align: center;
  min-height: 95px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.32s ease, box-shadow 0.32s ease, background 0.32s ease, border-color 0.32s ease;
  position: relative;
  overflow: hidden;
}

.stats-grid h3 {
  color: #7e0d1c;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 0.3rem;
}

.stats-grid p {
  color: #5a5a5a;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.45rem;
  padding-top: 0.42rem;
  border-top: 1px solid #efcfd6;
  transition: transform 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.stats-grid article:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 36px rgba(43, 15, 22, 0.16);
  background: #ffffff;
  border-color: #e8bac4;
}

.stats-grid article:hover h3 {
  transform: scale(1.04);
}

.stats-grid article:hover .stat-icon svg {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 6px 10px rgba(126, 13, 28, 0.24));
}

.stats-grid article:hover p {
  transform: translateY(-1px);
  color: #7b0f1c;
  border-color: #dfaeb8;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-bottom: 0.25rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.stat-icon svg {
  width: 31px;
  height: 31px;
  fill: #7e0d1c;
  animation: statIconFloat 2.6s ease-in-out infinite;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.stats-grid article:nth-child(1) .stat-icon {
  background: transparent;
  border: none;
}

.stats-grid article:nth-child(1) .stat-icon svg {
  fill: #95142a;
}

.stats-grid article:nth-child(2) .stat-icon {
  background: transparent;
  border: none;
}

.stats-grid article:nth-child(2) .stat-icon svg {
  fill: #1f4f96;
}

.stats-grid article:nth-child(3) .stat-icon {
  background: transparent;
  border: none;
}

.stats-grid article:nth-child(3) .stat-icon svg {
  fill: #1f7a45;
}

.stats-grid article:nth-child(4) .stat-icon {
  background: transparent;
  border: none;
}

.stats-grid article:nth-child(4) .stat-icon svg {
  fill: #9a5a12;
}

@keyframes statIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.courses,
.gallery,
.certification {
  padding: 4rem 0;
}

.why-us {
  padding: 4.2rem 0 1rem;
  position: relative;
}

.why-us h2 {
  text-align: center;
  margin-bottom: 0.45rem;
}

.why-subtitle {
  text-align: center;
  color: #5f5f5f;
  max-width: 760px;
  margin: 0 auto 1.6rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.why-card {
  background: linear-gradient(165deg, #ffffff 0%, #fff6f8 100%);
  border: 1px solid #efd3d9;
  border-radius: 14px;
  padding: 1.25rem 1.15rem;
  box-shadow: 0 12px 26px rgba(34, 15, 18, 0.08);
  border-top: 5px solid var(--primary);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  animation: whyCardFloat 5.5s ease-in-out infinite;
}

.why-card:nth-child(2) {
  animation-delay: 0.25s;
}

.why-card:nth-child(3) {
  animation-delay: 0.5s;
}

.why-card::before {
  content: "";
  position: absolute;
  inset: -120% auto auto -40%;
  width: 65%;
  height: 300%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(18deg);
  pointer-events: none;
  transition: transform 0.65s ease;
}

.why-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 36px rgba(42, 14, 21, 0.16);
  background: #fff;
}

.why-card:hover::before {
  transform: rotate(18deg) translateX(170%);
}

.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  font-size: 1.35rem;
  background: #fdecef;
  color: var(--primary);
  border: 1px solid #f3ccd3;
  margin-bottom: 0.65rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.why-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
  transform-origin: center;
  transition: transform 0.35s ease, filter 0.35s ease;
  animation: whyIconBreath 2.8s ease-in-out infinite;
}

.why-card:nth-child(2) .why-icon svg {
  animation-delay: 0.2s;
}

.why-card:nth-child(3) .why-icon svg {
  animation-delay: 0.4s;
}

.why-icon svg path {
  transform-origin: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.why-card:hover .why-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(126, 13, 28, 0.18);
  background: #fff2f5;
}

.why-card:hover .why-icon svg {
  transform: scale(1.12) rotate(-4deg);
  filter: drop-shadow(0 4px 6px rgba(126, 13, 28, 0.3));
}

.why-card:hover .why-icon svg path {
  transform: scale(1.04);
  opacity: 0.95;
}

.why-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.42rem;
  color: #1f1f1f;
}

.why-card p {
  color: #545454;
  font-size: 0.92rem;
}

@keyframes whyCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes whyIconBreath {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.06) rotate(2deg);
  }
}

@keyframes sectionTagPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(126, 13, 28, 0.35);
  }
  70% {
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(126, 13, 28, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(126, 13, 28, 0);
  }
}

@keyframes heroSubtitlePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(150, 19, 41, 0.3);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 7px rgba(150, 19, 41, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(150, 19, 41, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-card {
    animation: none;
  }

  .why-icon svg {
    animation: none;
  }

  .why-card,
  .why-card::before,
  .why-icon {
    transition: none;
  }
}

.courses h2,
.gallery h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.courses-subtitle {
  text-align: center;
  max-width: 840px;
  margin: -0.6rem auto 1.8rem;
  color: #565656;
}

.center {
  text-align: center;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.course-card {
  background: linear-gradient(160deg, #ffffff, #fff8f9);
  border: 1px solid #efd8dd;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(32, 13, 16, 0.09);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 36px rgba(35, 14, 19, 0.15);
}

.course-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin-bottom: 0.75rem;
  font-size: 1.06rem;
  color: #5d0915;
  background: #fff;
  border: 1px solid #e8c7ce;
  border-radius: 12px;
  padding: 0.55rem 0.9rem 0.55rem 1.55rem;
  min-height: 0;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(122, 16, 34, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  line-height: 1.2;
}

.card-body h3::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a3132a;
  box-shadow: 0 0 0 4px rgba(163, 19, 42, 0.15);
}

.card-body h3::after {
  display: none;
}

.course-card:hover .card-body h3 {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(122, 16, 34, 0.16);
  border-color: #dcaeb8;
}

.card-body p {
  color: #575757;
  font-size: 0.92rem;
}

.course-meta {
  list-style: none;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.28rem;
}

.course-meta li {
  font-size: 0.88rem;
  color: #444;
}

.course-meta strong {
  color: #7e0d1c;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #e2b7c0;
  color: #7e0d1c;
  font-weight: 600;
  font-size: 0.86rem;
  background: linear-gradient(90deg, #fff, #fff4f6);
  box-shadow: 0 5px 12px rgba(126, 13, 28, 0.08);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.course-link span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.course-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.58) 50%, rgba(255, 255, 255, 0) 80%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.course-link:hover {
  transform: translateY(-2px);
  background: #7e0d1c;
  color: #fff;
  border-color: #7e0d1c;
  box-shadow: 0 10px 18px rgba(126, 13, 28, 0.28);
}

.course-link:hover span {
  transform: translateX(4px);
}

.course-link:hover::after {
  transform: translateX(120%);
}

.gallery-intro {
  text-align: center;
  max-width: 820px;
  margin: -0.7rem auto 1.6rem;
  color: #5a5a5a;
  font-size: 1.03rem;
  line-height: 1.65;
}

.gallery-marquee {
  display: grid;
  gap: 1.25rem;
}

.gallery-row {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
  border: none;
  padding: 0;
  min-height: 405px;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 0.85rem;
  animation: galleryScrollLeft 36s linear infinite;
}

.row-two .gallery-track {
  animation-name: galleryScrollRight;
  animation-duration: 40s;
}

.gallery-row:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-row::before,
.gallery-row::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 54px;
  pointer-events: none;
  z-index: 2;
}

.gallery-row::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

.gallery-row::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

.gallery-item {
  width: clamp(230px, 30vw, 340px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #ffffff, #fff7f9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(26, 10, 14, 0.12);
  border: 1px solid #e9c9d0;
  padding: 0;
}

.gallery-track img {
  width: 100%;
  height: clamp(170px, 22vw, 250px);
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.gallery-item-text {
  padding: 0.75rem 0.7rem 0.55rem;
  flex: 1;
  min-height: clamp(118px, 13vw, 145px);
}

.gallery-item-text p {
  display: inline-flex;
  align-items: center;
  color: #7e0d1c;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  background: #fdecef;
  border: 1px solid #f2c6ce;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  margin-bottom: 0.35rem;
}

.gallery-item-text h4 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0.16rem 0 0.34rem;
  color: #1f1f1f;
  font-weight: 600;
}

.gallery-item-text span {
  color: #4d4d4d;
  font-size: 0.86rem;
  line-height: 1.45;
  display: block;
}

@keyframes galleryScrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes galleryScrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.certification {
  padding-top: 1rem;
}

.certification h2 {
  text-align: center;
  margin-bottom: 0.45rem;
}

.cert-subtitle {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 1.5rem;
  color: #585858;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
}

.cert-card {
  background: linear-gradient(160deg, #ffffff, #fff8f9);
  border: 1px solid #eed2d8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(30, 12, 17, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(42, 15, 20, 0.14);
}

.cert-card img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 0;
  border-radius: 0;
}

.cert-body {
  padding: 1.1rem;
}

.cert-body h3 {
  display: inline-block;
  color: #7e0d1c;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fdecef;
  border: 1px solid #f3c9d1;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
}

.cert-body h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #1e1e1e;
}

.cert-body p {
  color: #545454;
  font-size: 0.92rem;
}

.contact {
  padding: 4.8rem 0;
  position: relative;
  background: linear-gradient(160deg, #fff8fa 0%, #fff1f4 52%, #ffffff 100%);
  border: 1px solid #e7cfd6;
  border-radius: 24px;
  overflow: hidden;
}

.contact h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  line-height: 1.16;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  color: #23050a;
  letter-spacing: -0.01em;
}

.contact-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.15rem;
  color: #4d4d4d;
  font-size: 1.01rem;
  line-height: 1.74;
}

.contact .section-tag {
  background: #7e0d1c;
  color: #fff4f6;
  border-color: #7e0d1c;
}

.contact .section-tag::before {
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(126, 13, 28, 0.09) 0%, rgba(126, 13, 28, 0) 44%),
    radial-gradient(circle at 92% 88%, rgba(126, 13, 28, 0.09) 0%, rgba(126, 13, 28, 0) 42%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.88fr) minmax(340px, 1.12fr);
  gap: 1.25rem;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #e8d0d7;
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: 0 20px 40px rgba(33, 13, 18, 0.12);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .container {
    width: min(1120px, 94%);
  }
}

.contact-grid::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -170px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 13, 28, 0.12) 0%, rgba(126, 13, 28, 0) 74%);
  pointer-events: none;
  z-index: 0;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-content: start;
  position: relative;
  z-index: 1;
  padding: 0.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7fa 0%, #ffffff 100%);
  border: 1px solid #efd8dd;
}

.contact-card {
  background: linear-gradient(165deg, #ffffff 0%, #fff9fb 100%);
  border: 1px solid #e9d3d9;
  border-radius: 12px;
  padding: 1rem 0.95rem;
  box-shadow: 0 10px 20px rgba(31, 12, 17, 0.07);
  border-left: 4px solid #951126;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(31, 12, 17, 0.14);
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -70% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 13, 28, 0.08) 0%, rgba(126, 13, 28, 0) 70%);
  pointer-events: none;
}

.contact-card h3 {
  font-size: 0.98rem;
  color: #6f0d19;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: #fcecf0;
  border: 1px solid #f0cbd3;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  fill: #8a1023;
}

.contact-card p {
  color: #3a3a3a;
  margin-bottom: 0.18rem;
  word-break: break-word;
  line-height: 1.5;
  font-size: 0.87rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card a {
  color: #5e0814;
  font-weight: 600;
}

.enquiry-form {
  background: linear-gradient(165deg, #fff6f9 0%, #fff1f5 100%);
  border: 1px solid #e5ccd3;
  border-radius: 14px;
  padding: 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), 0 12px 24px rgba(29, 12, 17, 0.1);
  display: grid;
  gap: 0.42rem;
  border-top: 5px solid #931024;
  position: relative;
  overflow: hidden;
  height: 100%;
  z-index: 1;
}

.enquiry-form::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 36px;
  height: 8px;
  background:
    radial-gradient(circle, rgba(126, 13, 28, 0.4) 2px, transparent 2.5px) 0 0 / 12px 8px repeat-x;
  pointer-events: none;
}

.enquiry-form h3 {
  color: #7f1d31;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  position: relative;
  z-index: 1;
  margin-top: 0.1rem;
}

.enquiry-form h4 {
  font-size: 1.4rem;
  margin-top: -0.05rem;
  margin-bottom: 0.12rem;
  color: #1f1315;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.enquiry-form p {
  color: #5e5659;
  font-size: 0.82rem;
  margin-bottom: 0.32rem;
  position: relative;
  z-index: 1;
}

.enquiry-form label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a5456;
  position: relative;
  z-index: 1;
  margin-top: 0.08rem;
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  border: 1px solid #d8ced1;
  border-radius: 8px;
  padding: 0.68rem 0.78rem;
  font-family: inherit;
  font-size: 0.86rem;
  outline: none;
  background: #fffefe;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  z-index: 1;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  border-color: #991a30;
  box-shadow: 0 0 0 3px rgba(153, 26, 48, 0.12);
  background: #fff;
}

.enquiry-form textarea {
  resize: vertical;
  min-height: 104px;
}

.enquiry-form button {
  margin-top: 0.55rem;
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.18rem;
  background: linear-gradient(90deg, #8b1122, #6a0b17);
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(126, 13, 28, 0.26);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  z-index: 1;
  justify-self: stretch;
  width: 100%;
  text-align: center;
}

.enquiry-form button:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #7b0f1e, #560911);
  box-shadow: 0 12px 20px rgba(106, 10, 23, 0.32);
}

.contact-card,
.enquiry-form {
  animation: contactFadeUp 0.55s ease both;
}

.contact-card:nth-child(2) {
  animation-delay: 0.08s;
}

.contact-card:nth-child(3) {
  animation-delay: 0.16s;
}

.enquiry-form {
  animation-delay: 0.12s;
}

@keyframes contactFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta {
  background: transparent;
  color: inherit;
  padding: 2rem 0;
  border: none;
}

.cta-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  background:
    radial-gradient(circle at 0% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 35%),
    linear-gradient(110deg, #7e0d1c 0%, #971329 48%, #740c1a 100%);
  border: 1px solid rgba(255, 214, 226, 0.28);
  border-radius: 14px;
  padding: 1.05rem 1.1rem;
  box-shadow: 0 14px 26px rgba(37, 8, 14, 0.22);
  position: relative;
  overflow: hidden;
}

.cta-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.18;
}

.cta-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ffffff 0%, #f8eef2 45%, #ead5dd 100%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 14px 22px rgba(34, 8, 13, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -6px 10px rgba(126, 13, 28, 0.12);
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  animation: ctaIconFloat 3.6s ease-in-out infinite;
}

.cta-icon::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0) 75%);
  filter: blur(2px);
  animation: ctaIconGlow 3.6s ease-in-out infinite;
  pointer-events: none;
}

.cta-icon::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 10px;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(31, 6, 11, 0.3);
  filter: blur(4px);
  animation: ctaIconShadow 3.6s ease-in-out infinite;
  pointer-events: none;
}

.cta-icon img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(255, 255, 255, 0.2));
  transform: translateZ(2px);
  animation: ctaIconGraphicMotion 4s ease-in-out infinite;
}

@keyframes ctaIconFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-4px) rotateX(3deg) rotateY(-3deg);
  }
}

@keyframes ctaIconGlow {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.03);
  }
}

@keyframes ctaIconShadow {
  0%,
  100% {
    opacity: 0.34;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.2;
    transform: translateX(-50%) scale(0.86);
  }
}

@keyframes ctaIconGraphicMotion {
  0%,
  100% {
    transform: translateZ(2px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateZ(2px) rotate(-3deg) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-icon,
  .cta-icon::before,
  .cta-icon::after,
  .cta-icon img {
    animation: none;
  }
}

.cta-copy {
  display: grid;
  gap: 0.32rem;
  position: relative;
  z-index: 1;
}

.cta h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
  color: #fff;
}

.cta p {
  color: #ffe7ee;
  max-width: 650px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  min-height: 54px;
  padding: 0.78rem 1.3rem;
  text-align: center;
  border: 1px solid #f3e6eb;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fff3f7 100%);
  color: #6f0d19;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 18px rgba(19, 4, 8, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.68) 50%, rgba(255, 255, 255, 0) 82%);
  transform: translateX(-130%);
  transition: transform 0.58s ease;
  pointer-events: none;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #ffeaf0 100%);
  color: #5f0a15;
  box-shadow: 0 16px 24px rgba(19, 4, 8, 0.32), 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.cta-btn:hover::after {
  transform: translateX(130%);
}

.cta-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.cta-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.footer {
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 214, 226, 0.14) 0%, rgba(255, 214, 226, 0) 28%),
    radial-gradient(circle at 88% 88%, rgba(255, 214, 226, 0.1) 0%, rgba(255, 214, 226, 0) 30%),
    linear-gradient(160deg, #5c0c1c 0%, #7a0f25 48%, #4a0816 100%);
  color: #f6e8ec;
  padding-top: 3rem;
  border-top: 1px solid #8c2a43;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 24%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 26%);
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer img {
  width: clamp(180px, 22vw, 230px);
  max-width: 100%;
  height: auto;
  max-height: 88px;
  margin-bottom: 0.8rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: none;
  position: relative;
  z-index: 1;
}

.footer-brand-col {
  max-width: 260px;
  position: relative;
  padding: 0;
}

.footer-brand-col p {
  max-width: 260px;
}

.footer-socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.85rem;
  align-items: center;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #fff5f8 100%);
  border: 1px solid #e8c4cf;
  color: #7e0d1c;
  box-shadow: 0 8px 16px rgba(126, 13, 28, 0.14);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.footer-socials a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.footer-socials a svg path {
  fill: currentColor;
  stroke: none;
}

.footer-socials a:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #7e0d1c;
  background: linear-gradient(135deg, #8c1124, #680a18);
  color: #fff;
  box-shadow: 0 14px 22px rgba(126, 13, 28, 0.32);
}

.footer-socials a:hover svg,
.footer-socials a:hover svg path {
  fill: #fff;
}

.footer-socials a:focus-visible {
  outline: 2px solid #7e0d1c;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .footer-socials {
    gap: 0.55rem;
  }

  .footer-socials a {
    width: 38px;
    height: 38px;
  }

  .footer-socials a svg {
    width: 18px;
    height: 18px;
  }
}

.footer h4 {
  color: #ffd7e1;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.footer p,
.footer li {
  color: #e8cfd7;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.45rem;
}

.footer a:hover {
  color: #ffffff;
}

.footer a {
  color: #f4dbe3;
}

.footer-socials a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 222, 231, 0.34);
  color: #ffe8ee;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.copyright {
  border-top: 1px solid #6d2133;
  text-align: center;
  padding: 0.9rem 0;
  font-size: 0.85rem;
  color: #f0d7df;
}

.admission-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
}

.admission-modal.open {
  display: block;
}

.admission-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 14, 0.65);
  backdrop-filter: blur(4px);
}

.admission-modal-panel {
  position: relative;
  width: min(860px, 96%);
  margin: 2vh auto;
  max-height: 94vh;
  overflow-y: auto;
  background: #fbe9ec;
  border: 1px solid rgba(156, 65, 88, 0.26);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(16, 6, 11, 0.46);
  padding: clamp(1.1rem, 1.8vw, 1.6rem);
  color: #5a2732;
}

.admission-modal-panel .section-tag {
  margin-bottom: 0.65rem;
}

.admission-close {
  position: absolute;
  right: 1.05rem;
  top: 1.05rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(145, 47, 74, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(165deg, #fff8fa 0%, #ffdce4 100%);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  color: #7f1f3b;
  display: grid;
  place-items: center;
  box-shadow: 0 9px 20px rgba(90, 22, 43, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.26s ease, box-shadow 0.26s ease, background 0.26s ease, color 0.26s ease;
}

.admission-close:hover {
  transform: translateY(-2px) scale(1.04) rotate(90deg);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(165deg, #ffe6ed 0%, #ffc8d7 100%);
  color: #6f1632;
  box-shadow: 0 14px 26px rgba(90, 22, 43, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.admission-close:active {
  transform: translateY(0) scale(0.97) rotate(90deg);
  box-shadow: 0 6px 14px rgba(90, 22, 43, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.admission-close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 6px rgba(146, 37, 67, 0.3),
    0 12px 24px rgba(90, 22, 43, 0.24);
}

.admission-modal-panel h3 {
  margin-bottom: 0.38rem;
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  line-height: 1.2;
  color: #7a1736;
}

.admission-intro {
  color: #7a4d5a;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.55;
}

.admission-highlights {
  display: grid;
  gap: 0.62rem;
  margin-bottom: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admission-highlights p {
  background: #fff4f6;
  border: 1px solid rgba(175, 92, 116, 0.28);
  border-radius: 15px;
  padding: 0.78rem 0.88rem;
  font-size: 0.9rem;
  color: #6b3744;
  line-height: 1.45;
  min-height: 96px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  column-gap: 0.7rem;
  row-gap: 0.2rem;
  box-shadow: 0 8px 18px rgba(130, 40, 67, 0.08);
}

.admission-highlights p strong {
  grid-column: 2;
  display: block;
  margin-bottom: 0;
  font-size: 0.96rem;
  color: #7c1f3a;
  line-height: 1.25;
}

.admission-highlight-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.02rem;
  background: linear-gradient(180deg, #fffdfd, #ffe6ee);
  border: 1px solid rgba(169, 81, 107, 0.28);
  color: #8a1f40;
  line-height: 1;
  box-shadow: 0 5px 10px rgba(122, 33, 58, 0.14);
  transform-origin: center;
  animation: admissionIconFloat 3.2s ease-in-out infinite;
}

.admission-highlight-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.admission-highlight-text {
  grid-column: 2;
  display: block;
}

.admission-highlights p:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(130, 40, 67, 0.14);
  border-color: rgba(168, 75, 102, 0.45);
}

.admission-highlights p:nth-child(2) .admission-highlight-icon {
  animation: admissionIconPulse 2.8s ease-in-out infinite;
}

.admission-highlights p:nth-child(3) .admission-highlight-icon {
  animation: admissionIconOrbit 3s ease-in-out infinite;
}

.admission-highlights p:hover .admission-highlight-icon {
  animation-play-state: paused;
  transform: translateY(-1px) scale(1.08);
}

@keyframes admissionIconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  30% {
    transform: translateY(-2px) rotate(-5deg);
  }
  65% {
    transform: translateY(1px) rotate(4deg);
  }
}

@keyframes admissionIconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 5px 10px rgba(122, 33, 58, 0.14);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 10px 18px rgba(122, 33, 58, 0.22);
  }
}

@keyframes admissionIconOrbit {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  40% {
    transform: rotate(9deg) scale(1.05);
  }
  70% {
    transform: rotate(-8deg) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admission-highlight-icon,
  .admission-highlights p:nth-child(2) .admission-highlight-icon,
  .admission-highlights p:nth-child(3) .admission-highlight-icon {
    animation: none;
  }
}

.admission-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.72rem;
  background: #fff7f8;
  border: 1px solid rgba(184, 110, 132, 0.25);
  border-radius: 19px;
  padding: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  align-items: start;
}

.admission-form input,
.admission-form textarea {
  width: 100%;
  border: 1px solid rgba(184, 119, 140, 0.42);
  border-radius: 11px;
  padding: 0.78rem 0.88rem;
  font-family: inherit;
  font-size: 0.96rem;
  background: #fff0f3;
  color: #5f2a38;
}

.admission-form input::placeholder,
.admission-form textarea::placeholder {
  color: #9a6c79;
}

.admission-form textarea {
  grid-column: 1 / -1;
  min-height: 108px;
  resize: vertical;
}

.admission-form input {
  min-height: 46px;
}

.admission-form input:focus,
.admission-form textarea:focus {
  outline: none;
  border-color: #bf5f7d;
  box-shadow: 0 0 0 3px rgba(191, 95, 125, 0.16);
  background: #ffeef2;
}

.admission-form button {
  grid-column: 1 / -1;
  border: 1px solid #8d1c3c;
  border-radius: 12px;
  padding: 0.92rem 1.3rem;
  width: fit-content;
  min-width: 220px;
  min-height: 50px;
  background: linear-gradient(180deg, #a8234a 0%, #861739 100%);
  color: #fff6f8;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(95, 17, 43, 0.3), inset 0 1px 0 rgba(255, 190, 212, 0.28);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
  justify-self: start;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.admission-form button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0) 82%);
  transform: translateX(-130%);
  transition: transform 0.58s ease;
  pointer-events: none;
}

.admission-form button:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #9f2146;
  background: linear-gradient(180deg, #b82851 0%, #931b41 100%);
  color: #fffafb;
  box-shadow: 0 16px 26px rgba(95, 17, 43, 0.36), 0 0 0 3px rgba(168, 36, 75, 0.2);
}

.admission-form button:hover::after {
  transform: translateX(130%);
}

.admission-form button:active {
  transform: translateY(-1px) scale(0.99);
}

.admission-form button:focus-visible {
  outline: 2px solid #8f1e3f;
  outline-offset: 2px;
}

.contact-choice-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.contact-choice-modal.open {
  display: flex;
}

.contact-choice-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(20, 10, 14, 0.65);
  backdrop-filter: blur(4px);
}

.contact-choice-panel {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100% - 2rem));
  margin: 0;
  max-height: min(88vh, calc(100vh - 2rem));
  max-height: min(88vh, calc(100dvh - 2rem));
  overflow-y: auto;
  flex-shrink: 0;
  background: linear-gradient(165deg, #fff8fa 0%, #fbe9ec 55%, #ffe8ee 100%);
  border: 1px solid rgba(156, 65, 88, 0.28);
  border-radius: 22px;
  box-shadow: 0 28px 56px rgba(16, 6, 11, 0.42);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  color: #5a2732;
}

.contact-choice-panel .section-tag {
  margin-bottom: 0.55rem;
}

.contact-choice-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(145, 47, 74, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(165deg, #fff8fa 0%, #ffdce4 100%);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  color: #7f1f3b;
  display: grid;
  place-items: center;
  box-shadow: 0 9px 20px rgba(90, 22, 43, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.contact-choice-close:hover {
  transform: translateY(-2px) scale(1.04) rotate(90deg);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(165deg, #ffe6ed 0%, #ffc8d7 100%);
}

.contact-choice-close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 6px rgba(146, 37, 67, 0.3),
    0 12px 24px rgba(90, 22, 43, 0.24);
}

.contact-choice-panel h3 {
  margin: 0 2.5rem 0.4rem 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  color: #7a1736;
}

.contact-choice-intro {
  color: #7a4d5a;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-choice-number {
  text-align: center;
  margin: 0 0 1.35rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-choice-number a {
  color: #7a1736;
  text-decoration: none;
  border-bottom: 2px solid rgba(122, 23, 54, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-choice-number a:hover {
  color: #5c1028;
  border-bottom-color: rgba(92, 16, 40, 0.45);
}

.contact-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-choice-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 76px;
  box-sizing: border-box;
}

.contact-choice-btn:hover {
  transform: translateY(-3px);
}

.contact-choice-btn:active {
  transform: translateY(-1px);
}

.contact-choice-call {
  background: linear-gradient(145deg, #a82245 0%, #7a1530 100%);
  box-shadow: 0 14px 32px rgba(122, 23, 54, 0.38);
}

.contact-choice-call:hover {
  box-shadow: 0 18px 40px rgba(122, 23, 54, 0.45);
}

.contact-choice-wa {
  background: linear-gradient(145deg, #2fe077 0%, #128c7e 100%);
  box-shadow: 0 14px 32px rgba(18, 140, 126, 0.35);
}

.contact-choice-wa:hover {
  box-shadow: 0 18px 40px rgba(18, 140, 126, 0.42);
}

.contact-choice-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
}

.contact-choice-icon svg {
  display: block;
}

.contact-choice-btn-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  text-align: left;
  min-width: 0;
}

.contact-choice-btn-text strong {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
}

.contact-choice-btn-text small {
  font-size: 0.78rem;
  opacity: 0.94;
  font-weight: 400;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .admission-highlights {
    grid-template-columns: 1fr 1fr;
  }

  .admission-highlights p:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .admission-modal-panel {
    width: min(94vw, 560px);
    margin: 1.5vh auto;
    padding: 1rem;
    border-radius: 14px;
  }

  .admission-modal-panel h3 {
    font-size: 1.25rem;
  }

  .admission-intro {
    font-size: 0.9rem;
  }

  .admission-highlights {
    grid-template-columns: 1fr;
  }

  .admission-highlights p {
    min-height: auto;
    font-size: 0.86rem;
    padding: 0.72rem 0.78rem;
    grid-template-columns: 34px 1fr;
    column-gap: 0.6rem;
  }

  .admission-highlight-icon {
    width: 32px;
    height: 32px;
  }

  .admission-highlight-icon svg {
    width: 16px;
    height: 16px;
  }

  .admission-form {
    grid-template-columns: 1fr;
    padding: 0.86rem;
  }

  .admission-form button {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .contact-choice-panel {
    width: min(94vw, 420px);
    max-height: min(90vh, calc(100vh - 2rem));
    max-height: min(90vh, calc(100dvh - 2rem));
    margin: 0;
    padding: 1.1rem;
    border-radius: 16px;
  }

  .contact-choice-panel h3 {
    font-size: 1.2rem;
    margin-right: 2.25rem;
  }

  .contact-choice-intro {
    font-size: 0.88rem;
  }

  .contact-choice-actions {
    grid-template-columns: 1fr;
  }

  .contact-choice-btn {
    min-height: 72px;
  }
}

.gallery-page-main section {
  margin-bottom: 3.2rem;
}

/* Unified image hover behavior across website sections */
.about-image-card img,
.course-card img,
.cert-card img,
.gallery-track img,
.gallery-info-card img,
.gallery-overview-visuals img,
.gallery-spotlight-image img,
.gallery-hero-strip img {
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

.about-image-card:hover img,
.course-card:hover img,
.cert-card:hover img,
.gallery-item:hover img,
.gallery-info-card:hover img,
.gallery-overview-visuals img:hover,
.gallery-spotlight-image:hover img,
.gallery-hero-strip img:hover {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.03);
}

.gallery-page .gallery-hero h1,
.gallery-page .gallery-feature h2,
.gallery-page .gallery-overview h2,
.gallery-page .gallery-spotlight h2,
.gallery-page .gallery-collection h2,
.gallery-page .gallery-map h2,
.gallery-page .gallery-next h2 {
  text-align: center;
  margin-bottom: 0.55rem;
}

.gallery-page .gallery-lead {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 1rem;
  color: #575757;
}

.gallery-hero-actions,
.gallery-next-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.gallery-pillars {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-hero-strip {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.gallery-hero-strip img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(34, 14, 18, 0.12);
}

.gallery-pillars article,
.gallery-strip-note,
.gallery-map-grid article,
.gallery-next-points article {
  background: linear-gradient(160deg, #ffffff, #fff7f9);
  border: 1px solid #ebd1d7;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(34, 14, 18, 0.08);
}

.gallery-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.gallery-feature-copy {
  background: #fff;
  border: 1px solid #ecd4d9;
  border-radius: 14px;
  padding: 1rem;
}

.gallery-feature-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.gallery-feature-stats article {
  background: linear-gradient(160deg, #ffffff, #fff7f9);
  border: 1px solid #ecd4d9;
  border-radius: 12px;
  padding: 0.9rem;
}

.gallery-feature-stats h3 {
  color: #7e0d1c;
  font-size: 1.45rem;
}

.gallery-overview {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1rem;
  align-items: start;
}

.gallery-overview-copy {
  background: #fff;
  border: 1px solid #ecd4d9;
  border-radius: 14px;
  padding: 1rem;
}

.gallery-overview-copy ul {
  margin-top: 0.65rem;
  padding-left: 1rem;
}

.gallery-overview-visuals {
  display: grid;
  gap: 0.8rem;
}

.gallery-overview-visuals img,
.gallery-spotlight-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(33, 13, 18, 0.12);
}

.gallery-spotlight {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: start;
}

.gallery-spotlight-copy {
  background: #fff;
  border: 1px solid #ecd4d9;
  border-radius: 14px;
  padding: 1rem;
}

.gallery-spotlight-points {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.7rem;
}

.gallery-spotlight-points article {
  background: #fff7f9;
  border: 1px solid #edd4da;
  border-radius: 10px;
  padding: 0.7rem;
}

.gallery-strip-note {
  margin: 1rem 0;
}

.gallery-filters {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-filters span {
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: #fff2f5;
  border: 1px solid #efcbd3;
  color: #7a0f1c;
  font-size: 0.82rem;
  font-weight: 600;
}

.gallery-showing {
  text-align: center;
  margin: 0.8rem 0 1rem;
}

.gallery-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-info-card {
  background: #fff;
  border: 1px solid #ecd4d9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(34, 14, 18, 0.08);
}

.gallery-info-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.gallery-info-card > div {
  padding: 0.9rem;
}

.gallery-info-card > div > p:first-child {
  color: #7d0f1c;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
}

.gallery-info-card h4 {
  margin: 0.25rem 0;
}

.gallery-info-card ul {
  margin-top: 0.45rem;
  padding-left: 1rem;
}

.gallery-map > p:not(.section-tag),
.gallery-next > p:not(.section-tag) {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 1rem;
  color: #575757;
}

.gallery-map-grid,
.gallery-next-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.gallery-map-grid h4 span {
  color: #7e0d1c;
}

.gallery-map-grid a {
  color: #7e0d1c;
  font-weight: 600;
}

@media (max-width: 980px) {
  .gallery-pillars,
  .gallery-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-hero-strip {
    grid-template-columns: 1fr;
  }

  .gallery-feature,
  .gallery-overview,
  .gallery-spotlight {
    grid-template-columns: 1fr;
  }

  .gallery-map-grid,
  .gallery-next-points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .nav-content {
    position: relative;
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .logo {
    margin-right: auto;
  }

  .logo .logo-mark {
    width: 148px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.32rem;
    margin: 0.65rem 0 0;
    padding: 0.72rem;
    border: 1px solid #eddbe0;
    border-radius: 12px;
    background: #fff;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    list-style: none;
  }

  .nav-links a {
    width: 100%;
    height: auto;
    min-height: 42px;
    padding: 0.52rem 0.7rem;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    display: flex;
    align-items: center;
  }

  .nav-links a::after {
    left: 22%;
    right: 22%;
    bottom: 0.28rem;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible,
  .nav-links a:active {
    background: #fff2f5;
    color: #7e0d1c;
  }

  .nav-content .nav-cta {
    display: none;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .nav-content .nav-cta.open {
    display: inline-flex;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
    padding-bottom: 12px;
  }

  .hero-copy {
    margin-left: 0;
    padding-left: 0;
    transform: none;
  }

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

  .hero-visual img {
    height: 360px;
    width: min(520px, 100%);
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-image-card img {
    height: 380px;
  }

  .stats-grid,
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: auto;
  }

  .contact-info {
    grid-template-rows: none;
    height: auto;
  }

  .gallery-item {
    width: clamp(220px, 42vw, 285px);
  }

  .gallery-track img {
    height: clamp(165px, 30vw, 215px);
  }

  .gallery-row {
    min-height: 360px;
  }

  .gallery-item-text {
    min-height: 132px;
  }

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

@media (max-width: 640px) {
  .contact {
    border-radius: 14px;
    padding: 3.4rem 0;
  }

  .contact h2 {
    font-size: clamp(1.4rem, 5.6vw, 1.85rem);
  }

  .contact-intro {
    font-size: 0.91rem;
    margin-bottom: 1.2rem;
  }

  .contact-grid {
    border-radius: 14px;
    padding: 0.8rem;
  }

  .contact-card {
    min-height: 0;
    padding: 0.8rem 0.75rem;
  }

  .enquiry-form {
    padding: 0.85rem;
  }

  .nav-content {
    gap: 0.7rem;
  }

  .logo .logo-mark {
    width: 132px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .topbar-content {
    flex-direction: column;
    gap: 0.3rem;
  }

  .hero {
    min-height: 460px;
  }

  .hero-visual img {
    height: 300px;
  }

  .features,
  .about-grid,
  .stats-grid,
  .course-grid,
  .why-grid,
  .footer-grid,
  .cta-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .gallery-track {
    gap: 0.65rem;
  }

  .gallery-item {
    width: clamp(205px, 74vw, 240px);
  }

  .gallery-track img {
    height: clamp(150px, 52vw, 180px);
  }

  .gallery-row {
    min-height: 315px;
  }

  .gallery-item-text {
    min-height: clamp(104px, 34vw, 122px);
  }

  .gallery-item-text h4 {
    font-size: 0.82rem;
  }

  .gallery-item-text span {
    font-size: 0.71rem;
  }

  .about-image-card img {
    height: 320px;
  }

  .about-card {
    padding: 1.4rem;
  }

  .features article,
  .features article:nth-child(2) {
    border-right: 1px solid #ecd0d6;
    border-bottom: 1px solid #ecd0d6;
  }

  .features article:last-child {
    border-bottom: 1px solid #ecd0d6;
  }

  .cta-wrap {
    gap: 1rem;
  }

  .cta-btn {
    justify-self: start;
  }

  .gallery-pillars,
  .gallery-cards-grid,
  .gallery-map-grid,
  .gallery-next-points {
    grid-template-columns: 1fr;
  }
}

/* Gallery page premium redesign */
.gallery-page-main {
  background:
    radial-gradient(circle at 8% 3%, rgba(126, 13, 28, 0.08) 0%, rgba(126, 13, 28, 0) 28%),
    radial-gradient(circle at 92% 98%, rgba(126, 13, 28, 0.07) 0%, rgba(126, 13, 28, 0) 32%),
    linear-gradient(180deg, #fff9fb 0%, #fff5f8 44%, #ffffff 100%);
  padding: 1.4rem 0 3rem;
}

.gallery-page-main section {
  margin-bottom: 1.35rem;
  background: #fff;
  border: 1px solid #ead3d9;
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(32, 12, 17, 0.08);
  padding: 1.25rem;
}

.gallery-page-main .section-tag.center {
  min-width: 165px;
  justify-content: center;
}

.gallery-page-main h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.14;
  text-align: center;
}

.gallery-page-main h2 {
  font-size: clamp(1.55rem, 3.1vw, 2.1rem);
  line-height: 1.2;
}

.gallery-page-main .gallery-lead {
  max-width: 860px;
  margin: 0.35rem auto 0.95rem;
  color: #545454;
}

.gallery-hero {
  padding-top: 1.35rem;
}

.gallery-hero-actions {
  margin-top: 0.95rem;
}

.gallery-hero-actions .btn {
  min-height: 47px;
}

.gallery-hero-actions .btn-ghost {
  border-radius: 999px;
  padding: 0.74rem 1.1rem;
  min-width: 152px;
  background: linear-gradient(180deg, #ffffff 0%, #fff2f6 100%);
  border: 1.5px solid #e5bcc8;
  color: #6f0c19;
  box-shadow: 0 8px 14px rgba(126, 13, 28, 0.14);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.gallery-hero-actions .btn-ghost:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #8b1124, #680a18);
  border-color: #7e0d1c;
  color: #fff;
  box-shadow: 0 14px 22px rgba(126, 13, 28, 0.28);
}

.gallery-pillars {
  margin-top: 1.1rem;
  gap: 0.85rem;
}

.gallery-pillars article {
  background: linear-gradient(165deg, #ffffff 0%, #fff6f9 100%);
  border: 1px solid #edd4da;
  border-left: 4px solid #a5142a;
  border-radius: 14px;
  padding: 0.9rem;
}

.gallery-pillars h3 {
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
}

.gallery-pillars p {
  color: #595959;
  font-size: 0.9rem;
}

.gallery-hero-strip {
  margin-top: 1rem;
  gap: 0.7rem;
}

.gallery-hero-strip img {
  height: clamp(165px, 20vw, 230px);
  border-radius: 12px;
  border: 1px solid #ecd4d9;
}

.gallery-feature,
.gallery-overview,
.gallery-spotlight {
  gap: 1rem;
}

.gallery-feature-copy,
.gallery-overview-copy,
.gallery-spotlight-copy {
  border: 1px solid #ecd3d9;
  border-radius: 14px;
  background: linear-gradient(170deg, #ffffff 0%, #fff8fb 100%);
}

.gallery-feature-copy p,
.gallery-overview-copy p,
.gallery-spotlight-copy p {
  color: #585858;
}

.gallery-feature-stats article,
.gallery-spotlight-points article,
.gallery-map-grid article,
.gallery-next-points article,
.gallery-strip-note {
  border-radius: 12px;
  border: 1px solid #ecd3d9;
  background: linear-gradient(160deg, #ffffff 0%, #fff8fa 100%);
}

.gallery-feature-stats article h4 {
  color: #7b1020;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gallery-feature-stats article p {
  color: #5c5c5c;
  font-size: 0.86rem;
}

.gallery-overview-copy ul li {
  margin-bottom: 0.35rem;
}

.gallery-overview-visuals img,
.gallery-spotlight-image img {
  border: 1px solid #ead2d8;
}

.gallery-collection .gallery-lead {
  margin-bottom: 1.1rem;
}

.gallery-strip-note {
  border-left: 4px solid #9f1328;
  padding: 0.95rem 0.9rem;
}

.gallery-strip-note h3 {
  margin-bottom: 0.35rem;
  color: #6f0f1c;
}

.gallery-strip-note p {
  margin: 0;
  color: #5a5a5a;
}

.gallery-note-metrics {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gallery-note-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.66rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #6e0f1c;
  background: #fff;
  border: 1px solid #ecc8d2;
}

.gallery-filters {
  gap: 0.5rem;
}

.gallery-filters span {
  border: 1px solid #efccd4;
  background: #fff4f7;
  color: #75101e;
  font-weight: 600;
}

.gallery-cards-grid {
  gap: 0.9rem;
}

.gallery-info-card {
  border: 1px solid #e9d2d8;
  border-radius: 14px;
}

.gallery-info-card > div {
  padding: 0.82rem 0.88rem 0.9rem;
}

.gallery-info-card > div > p:first-child {
  font-size: 0.74rem;
}

.gallery-info-card h4 {
  font-size: 1rem;
}

.gallery-info-card ul li {
  font-size: 0.84rem;
}

.gallery-map h2,
.gallery-next h2 {
  text-align: center;
}

.gallery-map > p:not(.section-tag),
.gallery-next > p:not(.section-tag) {
  max-width: 880px;
}

.gallery-map-grid h3,
.gallery-next-points h3 {
  font-size: 1.04rem;
  margin-bottom: 0.2rem;
}

.gallery-map-grid p,
.gallery-next-points p {
  color: #565656;
}

.gallery-next-actions .btn {
  min-height: 46px;
}

@media (max-width: 980px) {
  .gallery-page-main {
    padding: 1rem 0 2.2rem;
  }

  .gallery-page-main section {
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .gallery-pillars,
  .gallery-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-map-grid,
  .gallery-next-points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery-page-main {
    padding: 0.85rem 0 1.8rem;
  }

  .gallery-page-main section {
    border-radius: 12px;
    padding: 0.82rem;
  }

  .gallery-page-main .section-tag.center {
    min-width: 145px;
  }

  .gallery-page-main h1 {
    font-size: clamp(1.45rem, 7.4vw, 1.95rem);
  }

  .gallery-page-main h2 {
    font-size: clamp(1.22rem, 5.8vw, 1.55rem);
  }

  .gallery-page-main .gallery-lead {
    font-size: 0.9rem;
  }

  .gallery-pillars,
  .gallery-cards-grid,
  .gallery-map-grid,
  .gallery-next-points,
  .gallery-hero-strip {
    grid-template-columns: 1fr;
  }

  .gallery-hero-strip img {
    height: 190px;
  }

  .gallery-info-card img {
    height: 175px;
  }
}

/* Final gallery redesign override */
.gallery-page-main {
  background: linear-gradient(180deg, #fff9fb 0%, #fff5f8 50%, #ffffff 100%);
  padding: 1.4rem 0 2.8rem;
}

.gallery-page-main section {
  margin-bottom: 1.15rem;
  background: #fff;
  border: 1px solid #ecd5db;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(30, 11, 16, 0.07);
  padding: 1.05rem;
}

.gallery-page-main h1,
.gallery-page-main h2 {
  color: #201517;
}

.gallery-page-main h1 {
  text-align: center;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  line-height: 1.15;
}

.gallery-page-main h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.22;
  margin-bottom: 0.5rem;
}

.gallery-page-main .gallery-lead,
.gallery-page-main p {
  color: #545454;
}

.gallery-page-main .section-tag.center {
  min-width: 160px;
  justify-content: center;
}

.gallery-hero {
  text-align: center;
}

.gallery-hero-actions {
  justify-content: center;
  margin-top: 0.8rem;
}

.gallery-pillars {
  margin-top: 1rem;
  gap: 0.75rem;
}

.gallery-pillars article {
  border: 1px solid #edd4da;
  border-left: 4px solid #9b1327;
  border-radius: 12px;
  background: linear-gradient(165deg, #ffffff, #fff8fb);
  padding: 0.82rem;
}

.gallery-hero-strip {
  margin-top: 0.85rem;
  gap: 0.65rem;
}

.gallery-hero-strip img {
  height: clamp(165px, 20vw, 220px);
  border-radius: 10px;
  border: 1px solid #ead2d9;
}

.gallery-feature,
.gallery-overview,
.gallery-spotlight {
  gap: 0.9rem;
}

.gallery-page-main .gallery-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.gallery-feature-copy,
.gallery-overview-copy,
.gallery-spotlight-copy {
  border-radius: 12px;
  border: 1px solid #ecd4da;
  background: linear-gradient(170deg, #ffffff, #fff8fb);
  padding: 0.95rem;
}

.gallery-page-main .gallery-feature-copy .section-tag {
  width: fit-content;
  display: inline-flex;
  align-self: start;
}

.gallery-page-main .gallery-feature-copy {
  height: 100%;
  display: grid;
  align-content: center;
}

.gallery-page-main .gallery-feature-stats {
  height: 100%;
}

.gallery-feature-stats {
  gap: 0.7rem;
}

.gallery-feature-stats article,
.gallery-spotlight-points article,
.gallery-strip-note,
.gallery-map-grid article,
.gallery-next-points article {
  border: 1px solid #ecd4da;
  border-radius: 12px;
  background: linear-gradient(160deg, #ffffff, #fff8fa);
  box-shadow: none;
}

.gallery-feature-stats article {
  padding: 0.82rem;
}

.gallery-feature-stats h4 {
  color: #7b1121;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gallery-feature-stats h3 {
  color: #7b1121;
}

.gallery-overview-visuals img,
.gallery-spotlight-image img {
  border: 1px solid #ecd3da;
  border-radius: 12px;
}

.gallery-strip-note {
  border-left: 4px solid #9f1328;
}

.gallery-filters span {
  border: 1px solid #edccd3;
  background: #fff3f7;
  color: #73101d;
}

.gallery-cards-grid {
  gap: 0.8rem;
}

.gallery-info-card {
  border: 1px solid #ead3d9;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(26, 10, 14, 0.06);
}

.gallery-info-card img {
  border-bottom: 1px solid #efd7dd;
}

.gallery-info-card > div {
  padding: 0.82rem;
}

.gallery-map h2,
.gallery-next h2 {
  text-align: center;
}

.gallery-map > p:not(.section-tag),
.gallery-next > p:not(.section-tag) {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 1rem;
}

.gallery-map-grid article,
.gallery-next-points article {
  padding: 0.9rem;
}

.gallery-map-grid h3,
.gallery-next-points h3 {
  color: #6f0f1c;
  margin-bottom: 0.25rem;
}

.gallery-map-grid h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-map-grid h4 span {
  color: #7e0d1c;
}

.gallery-next-actions .btn {
  min-width: 190px;
  justify-content: center;
}

.gallery-next-actions {
  margin-top: 0.9rem;
}

@media (max-width: 980px) {
  .gallery-page-main {
    padding: 1rem 0 2rem;
  }

  .gallery-page-main section {
    border-radius: 14px;
    padding: 0.92rem;
  }
}

@media (max-width: 640px) {
  .gallery-page-main {
    padding: 0.82rem 0 1.6rem;
  }

  .gallery-page-main section {
    border-radius: 12px;
    padding: 0.75rem;
  }

  .gallery-page-main .section-tag.center {
    min-width: 140px;
  }

  .gallery-page-main h1 {
    font-size: clamp(1.38rem, 7vw, 1.9rem);
  }

  .gallery-page-main h2 {
    font-size: clamp(1.15rem, 5.5vw, 1.5rem);
  }

  .gallery-page-main .gallery-lead {
    font-size: 0.9rem;
  }

  .gallery-note-metrics span {
    font-size: 0.72rem;
    min-height: 28px;
  }

  .gallery-filters button {
    font-size: 0.78rem;
    padding: 0.34rem 0.7rem;
  }
}

/* Gallery stats alignment and counter polish */
.gallery-page-main .gallery-feature-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-page-main .gallery-feature-stats article {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "label value"
    "desc desc";
  align-items: start;
  min-height: 114px;
  height: 114px;
  row-gap: 0.14rem;
  padding: 0.68rem 0.78rem 0.6rem;
}

.gallery-page-main .gallery-feature-stats article h4 {
  grid-area: label;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  justify-self: start;
  text-align: left;
  line-height: 1.2;
}

.gallery-page-main .gallery-feature-stats article h3 {
  grid-area: value;
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  line-height: 1;
  justify-self: end;
  text-align: right;
}

.gallery-page-main .gallery-feature-stats article p {
  grid-area: desc;
  margin: 0.04rem 0 0;
  max-width: none;
  font-size: 0.83rem;
  line-height: 1.45;
  text-align: left;
}

@media (max-width: 640px) {
  .gallery-page-main .gallery-feature-stats {
    grid-template-columns: 1fr;
  }

  .gallery-page-main .gallery-feature-stats article {
    min-height: 132px;
    height: auto;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(1120px, 95%);
  }

  .nav-content {
    padding: 0.62rem 0;
  }

  .logo .logo-mark {
    width: 122px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 430px;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 8vw, 1.95rem);
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact {
    border-radius: 12px;
    padding: 2.8rem 0;
  }

  .contact h2 {
    font-size: clamp(1.28rem, 6.2vw, 1.6rem);
  }

  .contact-intro {
    font-size: 0.86rem;
    margin-bottom: 1rem;
  }

  .contact-grid {
    padding: 0.72rem;
    border-radius: 12px;
  }

  .contact-card {
    padding: 0.72rem;
  }

  .contact-card h3 {
    font-size: 0.92rem;
  }

  .contact-card p {
    font-size: 0.82rem;
  }

  .enquiry-form {
    padding: 0.78rem;
  }

  .enquiry-form h4 {
    font-size: 1.15rem;
  }

  .enquiry-form input,
  .enquiry-form textarea {
    font-size: 0.82rem;
    padding: 0.58rem 0.68rem;
  }

  .enquiry-form textarea {
    min-height: 96px;
  }

  .enquiry-form button {
    width: 100%;
    justify-self: stretch;
    text-align: center;
  }
}

@media (min-width: 1440px) {
  .container {
    width: min(1240px, 90%);
  }

  .hero-layout {
    min-height: 600px;
  }

  .hero-visual img {
    min-height: 600px;
  }

  .contact-grid {
    padding: 1.5rem;
    gap: 1.35rem;
  }
}

/* --- Gallery page final polish override --- */
.gallery-page-main {
  background: linear-gradient(180deg, #fafafb 0%, #f6f7fb 55%, #ffffff 100%);
  padding: 1.2rem 0 2.6rem;
}

.gallery-page-main section {
  margin-bottom: 2.4rem;
}

.gallery-page-main .container {
  width: min(1120px, 92%);
}

.gallery-page-main h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.14;
}

.gallery-page-main h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.gallery-hero {
  background: #fff;
  border: 1px solid #ead6db;
  border-radius: 18px;
  padding: 1.25rem 1.15rem 1.3rem;
  box-shadow: 0 14px 28px rgba(30, 13, 16, 0.08);
}

.gallery-hero .gallery-lead {
  font-size: 1rem;
  max-width: 840px;
}

.gallery-hero-actions .btn {
  min-height: 46px;
}

.gallery-pillars article {
  border-left: 4px solid #a5142a;
}

.gallery-hero-strip img {
  height: 210px;
}

.gallery-feature,
.gallery-overview,
.gallery-spotlight,
.gallery-collection,
.gallery-map,
.gallery-next {
  background: #fff;
  border: 1px solid #ead6db;
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: 0 12px 24px rgba(30, 13, 16, 0.07);
}

.gallery-feature-stats article,
.gallery-spotlight-points article,
.gallery-map-grid article,
.gallery-next-points article {
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.gallery-feature-stats article:hover,
.gallery-spotlight-points article:hover,
.gallery-map-grid article:hover,
.gallery-next-points article:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(34, 13, 18, 0.12);
}

.gallery-overview-visuals img,
.gallery-spotlight-image img,
.gallery-info-card img {
  transition: transform 0.3s ease;
}

.gallery-overview-visuals img:hover,
.gallery-spotlight-image:hover img,
.gallery-info-card:hover img {
  transform: scale(1.04);
}

.gallery-strip-note {
  border-left: 4px solid #9f1328;
}

.gallery-filters {
  margin: 0.5rem 0 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.gallery-filters button {
  border: 1px solid #efccd4;
  background: #fff3f7;
  color: #73101d;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.36rem 0.78rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-filters button:hover {
  transform: translateY(-1px);
  background: #fbe7ec;
  border-color: #e7b9c5;
}

.gallery-filters button.is-active {
  background: linear-gradient(90deg, #8a1124, #6a0a17);
  color: #fff;
  border-color: #7e0d1c;
  box-shadow: 0 8px 14px rgba(126, 13, 28, 0.22);
}

.gallery-filters button:focus-visible {
  outline: 2px solid #8a1124;
  outline-offset: 2px;
}

.gallery-showing {
  font-size: 0.92rem;
  color: #555;
}

.gallery-cards-grid {
  margin-top: 0.65rem;
}

.gallery-info-card {
  border-radius: 16px;
}

.gallery-info-card > div {
  padding: 0.95rem;
}

.gallery-info-card h4 {
  font-size: 1.04rem;
}

.gallery-info-card ul li {
  font-size: 0.86rem;
  color: #5f5f5f;
}

@media (max-width: 980px) {
  .gallery-hero,
  .gallery-feature,
  .gallery-overview,
  .gallery-spotlight,
  .gallery-collection,
  .gallery-map,
  .gallery-next {
    border-radius: 14px;
    padding: 1rem;
  }

  .gallery-hero-strip img {
    height: 180px;
  }
}

/* Contact section redesign override */
.contact {
  padding: 4.2rem 0;
  border-radius: 18px;
  border: 1px solid #e7d1d8;
  background: linear-gradient(180deg, #fff8fa 0%, #fff4f7 54%, #fffdfd 100%);
}

.contact h2 {
  color: #1f1315;
  letter-spacing: -0.01em;
  max-width: 860px;
}

.contact-intro {
  max-width: 780px;
  font-size: 0.98rem;
  margin-bottom: 1.35rem;
}

.contact-grid {
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 1.06fr);
  gap: 1rem;
  border-radius: 14px;
  border: none;
  padding: 0.95rem 0.9rem 0.85rem;
  background:
    linear-gradient(110deg, rgba(126, 13, 28, 0.04) 0%, rgba(126, 13, 28, 0) 42%),
    transparent;
  box-shadow: none;
  align-items: stretch;
  position: relative;
}

.contact-grid::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  bottom: 0.7rem;
  left: calc(48.3% - 0.5px);
  width: 1px;
  background: linear-gradient(to bottom, rgba(126, 13, 28, 0), rgba(126, 13, 28, 0.16), rgba(126, 13, 28, 0));
  pointer-events: none;
}

.contact-side {
  border-radius: 12px;
  border: none;
  background:
    linear-gradient(145deg, rgba(126, 13, 28, 0.04) 0%, rgba(126, 13, 28, 0.01) 35%, rgba(255, 255, 255, 0) 100%),
    transparent;
  padding: 0.72rem 0.72rem 0.62rem;
  display: grid;
  gap: 0.85rem;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  align-self: stretch;
  height: 100%;
}

.contact-side::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 13, 28, 0.08) 0%, rgba(126, 13, 28, 0) 68%);
  pointer-events: none;
}

.contact-side-head h3 {
  color: #5f0d18;
  font-size: 1.14rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.contact-side-head p {
  margin-top: 0.42rem;
  color: #525252;
  font-size: 0.84rem;
  line-height: 1.62;
}

.contact-side-head {
  padding: 0.2rem 0.1rem 0.58rem;
  border-bottom: 1px solid #edd2d9;
  position: relative;
  z-index: 1;
}

.contact-info {
  gap: 0.75rem;
  padding: 0;
  border: none;
  background: transparent;
}

.contact-card {
  min-height: 0;
  border-left-width: 3px;
  border-radius: 12px;
  box-shadow: 0 9px 16px rgba(31, 12, 17, 0.06);
  padding: 0.72rem 0.72rem;
}

.contact-card h3 {
  font-size: 0.84rem;
  color: #721120;
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.78rem;
  line-height: 1.55;
  margin-bottom: 0.12rem;
}

.contact-card a {
  color: #5f0a16;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 22px rgba(31, 12, 17, 0.12);
}

.contact-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  padding: 0.5rem;
  border: 1px solid #edd0d8;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff6f9 0%, #fff 100%);
  position: relative;
  z-index: 1;
}

.contact-highlights span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
  min-height: 88px;
  padding: 0.56rem 0.4rem 0.5rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e9c7d0;
  color: #67101b;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 5px 12px rgba(126, 13, 28, 0.08);
  letter-spacing: 0.01em;
}

.contact-highlights span svg {
  width: 34px;
  height: 34px;
  fill: #7e0d1c;
  flex-shrink: 0;
}

.enquiry-form {
  border-radius: 12px;
  border-top-width: 4px;
  border: none;
  background: transparent;
  position: relative;
  align-self: stretch;
  min-height: 100%;
  padding: 0.72rem 0.72rem 0.7rem;
}

.enquiry-form::after {
  content: "";
  position: absolute;
  inset: auto 0.1rem 0.2rem 0.1rem;
  height: 1px;
  background: linear-gradient(to right, rgba(126, 13, 28, 0), rgba(126, 13, 28, 0.18), rgba(126, 13, 28, 0));
  pointer-events: none;
}

.enquiry-form h4 {
  font-size: 1.28rem;
}

.enquiry-form p {
  font-size: 0.8rem;
}

.enquiry-form label {
  font-size: 0.73rem;
}

.enquiry-form input,
.enquiry-form textarea {
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .contact {
    border-radius: 14px;
    padding: 3.3rem 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    padding: 0.82rem;
    gap: 0.9rem;
  }

  .contact-side,
  .enquiry-form {
    height: auto;
    min-height: 0;
  }

  .contact-grid::after {
    content: none;
  }

  .contact-side,
  .enquiry-form {
    padding: 0.82rem;
  }
}

@media (max-width: 640px) {
  .contact {
    border-radius: 12px;
    padding: 2.8rem 0;
  }

  .contact h2 {
    font-size: clamp(1.35rem, 5.7vw, 1.8rem);
  }

  .contact-intro {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .contact-grid,
  .contact-side,
  .enquiry-form {
    padding: 0.72rem;
    border-radius: 12px;
  }

  .contact-side-head h3 {
    font-size: 1.08rem;
  }

  .contact-side-head p {
    font-size: 0.84rem;
  }

  .contact-highlights {
    grid-template-columns: 1fr;
    padding: 0.45rem;
  }

  .contact-card {
    padding: 0.75rem 0.7rem;
  }

  .contact-card h3 {
    font-size: 0.84rem;
  }

  .contact-card p {
    font-size: 0.8rem;
  }

  .contact-highlights span {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 0.24rem;
    font-size: 0.78rem;
    min-height: 0;
    padding: 0.52rem 0.62rem;
  }

  .contact-highlights span svg {
    width: 26px;
    height: 26px;
  }
}

/* Full loader redesign override */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 18% 14%, rgba(178, 33, 69, 0.28) 0%, rgba(178, 33, 69, 0) 40%),
    radial-gradient(circle at 84% 84%, rgba(144, 24, 58, 0.25) 0%, rgba(144, 24, 58, 0) 45%),
    linear-gradient(160deg, #160309 0%, #300612 44%, #5d0b1e 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  animation: pageLoaderGridMove 10s linear infinite;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.6;
  pointer-events: none;
}

.page-loader-orb.orb-one {
  top: 8%;
  left: 8%;
  background: radial-gradient(circle, rgba(255, 154, 188, 0.66) 0%, rgba(255, 154, 188, 0) 72%);
  animation: pageLoaderOrbFloatA 5.6s ease-in-out infinite;
}

.page-loader-orb.orb-two {
  right: 6%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(255, 130, 171, 0.52) 0%, rgba(255, 130, 171, 0) 74%);
  animation: pageLoaderOrbFloatB 6.1s ease-in-out infinite;
}

.page-loader-card {
  position: relative;
  z-index: 1;
  width: min(520px, 94vw);
  border-radius: 26px;
  padding: 1.25rem 1.15rem 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    0 28px 52px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  animation: pageLoaderFloat 2.8s ease-in-out infinite;
}

.page-loader-logo-wrap {
  width: min(440px, 86vw);
  margin: 0 auto 0.86rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #0a0204 0%, #120308 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 14px 30px rgba(5, 1, 3, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: pageLoaderLogoPulse 1.5s ease-in-out infinite;
  overflow: hidden;
}

.page-loader-logo-wrap img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
}

.page-loader-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(1.08rem, 2.6vw, 1.3rem);
}

.page-loader-subtitle {
  margin: 0.26rem 0 0.88rem;
  color: rgba(255, 231, 238, 0.9);
  font-size: 0.9rem;
}

.page-loader-pulse {
  width: 132px;
  margin: 0.15rem auto 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.32rem;
}

.page-loader-pulse span {
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9bbf, #ffffff);
  animation: pageLoaderPulseBars 0.95s ease-in-out infinite;
}

.page-loader-pulse span:nth-child(1) {
  animation-delay: 0s;
}

.page-loader-pulse span:nth-child(2) {
  animation-delay: 0.14s;
}

.page-loader-pulse span:nth-child(3) {
  animation-delay: 0.28s;
}

.page-loader-progress {
  position: relative;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.page-loader-progress span {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd3e0, #ffffff, #ffd3e0);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.54);
  animation: pageLoaderProgress 1.35s ease-in-out infinite;
}

@keyframes pageLoaderPulseBars {
  0%,
  100% {
    height: 10px;
    opacity: 0.65;
  }
  50% {
    height: 26px;
    opacity: 1;
  }
}

@keyframes pageLoaderProgress {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(330%);
  }
}

@keyframes pageLoaderLogoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes pageLoaderFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pageLoaderGridMove {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(36px, 36px);
  }
}

@keyframes pageLoaderOrbFloatA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(22px, -16px) scale(1.12);
  }
}

@keyframes pageLoaderOrbFloatB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-18px, 18px) scale(1.1);
  }
}

@media (max-width: 640px) {
  .page-loader-card {
    border-radius: 18px;
    padding: 0.95rem 0.85rem 0.82rem;
  }

  .page-loader-logo-wrap {
    border-radius: 14px;
  }

  .page-loader-logo-wrap img {
    max-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader::before,
  .page-loader-orb,
  .page-loader-card,
  .page-loader-logo-wrap,
  .page-loader-pulse span,
  .page-loader-progress span {
    animation: none;
  }
}

/* Loader redesign final override */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 20%, #2a0710 0%, #130207 52%, #090104 100%);
  overflow: hidden;
}

.page-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.32;
  animation: loaderGridShift 12s linear infinite;
}

.page-loader-backdrop {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 48, 90, 0.35) 0%, rgba(195, 48, 90, 0) 68%);
  filter: blur(8px);
  animation: loaderGlowPulse 2.8s ease-in-out infinite;
}

.page-loader-center {
  position: relative;
  z-index: 2;
  width: min(440px, 92vw);
  border-radius: 24px;
  padding: 1.1rem 1rem 0.95rem;
  text-align: center;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.07) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  animation: loaderCardFloat 3s ease-in-out infinite;
}

.page-loader-logo-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #050103;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.page-loader-logo-wrap img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  display: block;
}

.page-loader-ring {
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 74px;
  height: 74px;
  margin-left: -37px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  animation: loaderRingSpin 1.1s linear infinite;
}

.page-loader-title {
  margin: 0.78rem 0 0;
  color: #ffffff;
  font-size: clamp(1rem, 2.8vw, 1.24rem);
  font-weight: 700;
}

.page-loader-subtitle {
  margin: 0.18rem 0 0.72rem;
  color: rgba(255, 235, 241, 0.9);
  font-size: 0.88rem;
}

.page-loader-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-loader-progress span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd8e4, #ffffff, #ffd8e4);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.58);
  animation: loaderProgressRun 1.35s ease-in-out infinite;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

@keyframes loaderProgressRun {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(310%); }
}

@keyframes loaderRingSpin {
  to { transform: rotate(360deg); }
}

@keyframes loaderGlowPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes loaderCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes loaderGridShift {
  from { transform: translate(0, 0); }
  to { transform: translate(32px, 32px); }
}

@media (max-width: 640px) {
  .page-loader-center {
    border-radius: 16px;
    padding: 0.82rem 0.75rem;
  }

  .page-loader-logo-wrap img {
    max-height: 185px;
  }

  .page-loader-ring {
    width: 58px;
    height: 58px;
    margin-left: -29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader::before,
  .page-loader-backdrop,
  .page-loader-center,
  .page-loader-ring,
  .page-loader-progress span {
    animation: none;
  }
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal,
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Global Device-Responsive + Interaction Polish ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

.container {
  width: min(1200px, 100% - clamp(20px, 4vw, 56px));
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

/* Unified controls: buttons, links-as-buttons, form controls */
.btn,
button,
input,
textarea,
select {
  font-family: inherit;
}

.btn,
button,
.enquiry-form button,
.admission-form button,
.nav-cta,
.cta-btn {
  min-height: 46px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, filter 0.22s ease;
}

input,
textarea,
select {
  min-height: 44px;
}

textarea {
  min-height: 110px;
}

/* Keep hover effects only on hover-capable devices */
@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  button:hover,
  .enquiry-form button:hover,
  .admission-form button:hover,
  .nav-cta:hover,
  .cta-btn:hover {
    transform: translateY(-2px);
  }
}

/* Remove sticky/awkward hover on touch devices */
@media (hover: none), (pointer: coarse) {
  .btn:hover,
  button:hover,
  .nav-cta:hover,
  .cta-btn:hover,
  .course-link:hover,
  .contact-card:hover,
  .why-card:hover,
  .course-card:hover,
  .cert-card:hover {
    transform: none !important;
    box-shadow: inherit;
  }
}

/* Better keyboard accessibility across website */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 2px solid #7e0d1c;
  outline-offset: 2px;
}

/* Popup / modal responsive reliability */
.admission-modal-panel {
  width: min(860px, 94vw);
  max-height: min(92vh, 920px);
}

.admission-form {
  gap: clamp(0.58rem, 1.6vw, 0.85rem);
}

/* Responsive typography scaling for major headings */
h1 {
  font-size: clamp(1.75rem, 4.8vw, 3.2rem);
}

h2 {
  font-size: clamp(1.35rem, 3.6vw, 2.45rem);
}

h3 {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

/* Stronger layout consistency across screen sizes */
@media (max-width: 1024px) {
  .hero-layout,
  .about-grid,
  .course-grid,
  .cert-grid,
  .contact-grid,
  .footer-grid {
    gap: clamp(0.75rem, 2.2vw, 1.1rem);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .stats-grid,
  .course-grid,
  .cert-grid,
  .footer-grid,
  .gallery-cards-grid,
  .gallery-map-grid,
  .gallery-next-points {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .contact-highlights {
    grid-template-columns: 1fr;
  }

  .admission-modal-panel {
    margin: 1.5vh auto;
    padding: 0.9rem;
    border-radius: 14px;
  }

  .admission-form {
    grid-template-columns: 1fr;
    padding: 0.82rem;
  }

  .admission-form button {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1200px, calc(100% - 20px));
  }

  .nav-content {
    padding: 0.62rem 0;
  }

  .logo .logo-mark {
    width: clamp(108px, 34vw, 128px);
  }

  .hero-actions .btn,
  .cta-btn,
  .enquiry-form button,
  .admission-form button {
    width: 100%;
    justify-content: center;
  }

  .contact,
  .admission-modal-panel,
  .contact-grid,
  .enquiry-form {
    border-radius: 12px;
  }
}

/* Respect reduced motion globally */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Gallery page final responsive system ===== */
.gallery-page-main {
  width: 100%;
  overflow-x: clip;
}

.gallery-page-main .container {
  width: min(1140px, calc(100% - clamp(20px, 4vw, 64px)));
}

.gallery-page-main section {
  margin-bottom: clamp(0.9rem, 2.2vw, 1.35rem);
}

.gallery-page-main .gallery-hero-actions .btn,
.gallery-page-main .gallery-next-actions .btn {
  min-height: 46px;
}

.gallery-page-main .gallery-cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1rem);
}

.gallery-page-main .gallery-map-grid,
.gallery-page-main .gallery-next-points {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.3vw, 0.95rem);
}

@media (max-width: 1024px) {
  .gallery-page-main .gallery-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-page-main .gallery-map-grid,
  .gallery-page-main .gallery-next-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-page-main .gallery-feature,
  .gallery-page-main .gallery-overview,
  .gallery-page-main .gallery-spotlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gallery-page-main {
    padding-top: 0.8rem !important;
    padding-bottom: 1.6rem !important;
  }

  .gallery-page-main .container {
    width: min(1140px, calc(100% - 18px));
  }

  .gallery-page-main section {
    padding: 0.82rem !important;
    border-radius: 12px !important;
  }

  .gallery-page-main .gallery-hero h1 {
    font-size: clamp(1.35rem, 6.5vw, 2rem);
    line-height: 1.2;
  }

  .gallery-page-main .gallery-lead {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .gallery-page-main .gallery-cards-grid,
  .gallery-page-main .gallery-map-grid,
  .gallery-page-main .gallery-next-points,
  .gallery-page-main .gallery-pillars,
  .gallery-page-main .gallery-hero-strip {
    grid-template-columns: 1fr;
  }

  .gallery-page-main .gallery-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-page-main .gallery-filters button {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .gallery-page-main .gallery-hero-actions,
  .gallery-page-main .gallery-next-actions {
    width: 100%;
    justify-content: stretch;
  }

  .gallery-page-main .gallery-hero-actions .btn,
  .gallery-page-main .gallery-next-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-page-main > section#cta .cta-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gallery-page-main > section#cta .cta-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .gallery-page-main .container {
    width: min(1140px, calc(100% - 14px));
  }

  .gallery-page-main section {
    padding: 0.72rem !important;
  }

  .gallery-page-main .gallery-info-card img,
  .gallery-page-main .gallery-hero-strip img {
    height: 170px !important;
  }

  .gallery-page-main .gallery-info-card > div {
    padding: 0.75rem;
  }
}

/* Footer dark redesign override */
.footer {
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 214, 226, 0.14) 0%, rgba(255, 214, 226, 0) 28%),
    radial-gradient(circle at 88% 88%, rgba(255, 214, 226, 0.1) 0%, rgba(255, 214, 226, 0) 30%),
    linear-gradient(160deg, #5c0c1c 0%, #7a0f25 48%, #4a0816 100%) !important;
  color: #f2dfe4 !important;
  border-top: 1px solid #8c2a43 !important;
}

.footer::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 24%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 26%) !important;
}

.footer h4 {
  color: #ffd7e1 !important;
}

.footer p,
.footer li {
  color: #e8cfd7 !important;
}

.footer a {
  color: #f4dbe3 !important;
}

.footer a:hover {
  color: #ffffff !important;
}

.footer-socials a {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 222, 231, 0.34) !important;
  color: #ffe8ee !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35) !important;
}

.footer-socials a:hover {
  background: linear-gradient(135deg, #8c1124, #680a18) !important;
  color: #fff !important;
  border-color: #7e0d1c !important;
}

.copyright {
  border-top: 1px solid #6d2133 !important;
  color: #f0d7df !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left !important;
  padding-left: clamp(10px, 2.5vw, 24px);
  padding-right: clamp(10px, 2.5vw, 24px);
}

.copyright p {
  margin: 0;
  text-align: left !important;
}

.copyright .copyright-credit {
  text-align: right !important;
}

.copyright .copyright-credit a {
  color: #ffe8ee;
  font-weight: 600;
}

.copyright .copyright-credit a:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .copyright {
    flex-direction: column;
    align-items: flex-start;
  }

  .copyright .copyright-credit {
    text-align: left !important;
  }
}

/* ===== Final Global Adaptive Layer (all pages/devices) ===== */
body {
  cursor: default !important;
}

a,
button,
label,
input[type="submit"],
input[type="button"] {
  cursor: pointer;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: min(1240px, calc(100% - clamp(18px, 4vw, 64px)));
}

.navbar {
  min-height: 74px;
}

.nav-content {
  min-height: 74px;
}

.nav-links {
  flex-wrap: wrap;
}

.nav-links a,
.btn,
button,
.course-link,
.cta-btn,
.nav-cta {
  font-size: clamp(0.86rem, 1.35vw, 1rem);
}

h1 {
  font-size: clamp(1.65rem, 4.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.3rem, 3.2vw, 2.4rem);
}

p,
li,
input,
textarea,
select {
  font-size: clamp(0.88rem, 1.5vw, 1rem);
}

@media (max-width: 992px) {
  .navbar {
    min-height: 70px;
  }

  .nav-content {
    min-height: 70px;
  }

  .hero-layout,
  .about-grid,
  .contact-grid,
  .gallery-feature,
  .gallery-overview,
  .gallery-spotlight {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1240px, calc(100% - 16px));
  }

  .navbar {
    min-height: 64px;
  }

  .nav-content {
    min-height: 64px;
    gap: 0.6rem;
  }

  .logo .logo-mark {
    width: clamp(118px, 32vw, 148px);
  }

  .nav-links {
    width: 100%;
    margin-top: 0.55rem;
  }

  .hero-actions,
  .gallery-hero-actions,
  .gallery-next-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.55rem;
  }

  .hero-actions .btn,
  .gallery-hero-actions .btn,
  .gallery-next-actions .btn,
  .cta-btn,
  .enquiry-form button,
  .admission-form button {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1240px, calc(100% - 12px));
  }

  .section-tag {
    min-width: 0 !important;
    width: fit-content;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .hero h1 {
    font-size: clamp(1.3rem, 7vw, 1.75rem);
  }

  .admission-modal-panel {
    width: min(96vw, 560px);
  }
}

/* Navbar always visible on scroll */
:root {
  --navbar-fixed-height: 92px;
}

.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200 !important;
}

body {
  padding-top: var(--navbar-fixed-height);
}

@media (max-width: 992px) {
  :root {
    --navbar-fixed-height: 76px;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-fixed-height: 70px;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: clamp(12px, 2.2vw, 24px);
  bottom: clamp(14px, 2.6vw, 30px);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: linear-gradient(160deg, #8b1124 0%, #680a18 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  z-index: 1300;
  box-shadow: 0 12px 20px rgba(63, 10, 22, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(160deg, #9f1630 0%, #760d1e 100%);
  box-shadow: 0 16px 24px rgba(63, 10, 22, 0.38);
}

.back-to-top:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .back-to-top {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
}

/* CTA mobile layout fix */
@media (max-width: 900px) {
  section#cta .cta-wrap {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 0.8rem;
    padding: 0.9rem !important;
  }

  section#cta .cta-icon {
    width: 72px;
    height: 72px;
    margin-inline: auto;
  }

  section#cta .cta-icon img {
    width: 62px;
    height: 62px;
  }

  section#cta .cta-copy {
    justify-items: center;
  }

  section#cta .cta-copy h2 {
    font-size: clamp(1.18rem, 5.3vw, 1.6rem);
    line-height: 1.2;
  }

  section#cta .cta-copy p {
    font-size: 0.92rem;
    max-width: 100%;
  }

  section#cta .cta-btn {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  section#cta {
    padding: 1.1rem 0 !important;
  }

  section#cta .cta-wrap {
    border-radius: 12px;
    padding: 0.8rem !important;
    gap: 0.68rem;
  }
}

/* Match Contact section-tag with other sections */
.contact .section-tag {
  background: #fdecef !important;
  color: var(--primary) !important;
  border: 1px solid #f3c7cf !important;
}

.contact .section-tag::before {
  background: var(--primary) !important;
  box-shadow: 0 0 0 0 rgba(126, 13, 28, 0.35) !important;
}

/* Keep gallery CTA exactly like homepage CTA */
.gallery-page-main > section#cta {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2rem 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.gallery-page-main > section#cta .cta-wrap {
  border-radius: 14px;
  padding: 1.05rem 1.1rem;
}

.gallery-page-main > section#cta .cta-copy h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.gallery-page-main > section#cta .cta-copy p {
  font-size: 1rem;
}

.gallery-page-main > section#cta .cta-copy h2,
.gallery-page-main > section#cta .cta-copy p {
  color: #ffffff !important;
}

/* ===== Final Production Touchup (All sections / All devices) ===== */
:root {
  --space-section-y: clamp(2.4rem, 6vw, 4.8rem);
  --radius-card: clamp(12px, 2vw, 18px);
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

section {
  scroll-margin-top: 92px;
}

.hero,
.about,
.why-us,
.courses,
.certification,
.gallery,
.contact,
.cta {
  margin-top: 0;
}

.about,
.why-us,
.courses,
.certification,
.gallery,
.contact {
  padding-top: var(--space-section-y);
  padding-bottom: var(--space-section-y);
}

.about-card,
.why-card,
.course-card,
.cert-card,
.contact-card,
.gallery-info-card {
  border-radius: var(--radius-card);
}

.nav-links a,
.course-link,
.btn,
button,
.nav-cta,
.cta-btn {
  -webkit-tap-highlight-color: transparent;
}

.enquiry-form input,
.enquiry-form textarea,
.admission-form input,
.admission-form textarea {
  font-size: 16px;
}

/* Prevent iOS zoom-on-focus and keep forms readable */
@supports (-webkit-touch-callout: none) {
  input,
  textarea,
  select {
    font-size: 16px;
  }
}

/* Device-scaled containers and key grids */
@media (min-width: 1400px) {
  .container {
    width: min(1240px, 90%);
  }
}

@media (max-width: 1200px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
}

@media (max-width: 992px) {
  .features {
    margin-top: -34px;
  }

  .hero-layout,
  .about-grid,
  .course-grid,
  .cert-grid,
  .contact-grid,
  .footer-grid {
    gap: 0.9rem;
  }

  .about-grid,
  .course-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    position: sticky;
    top: 0;
  }

  .features {
    margin-top: 0.9rem;
    border-radius: 12px;
    padding: 0.2rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout,
  .about-grid,
  .stats-grid,
  .course-grid,
  .cert-grid,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-copy {
    padding-left: 0;
    transform: none;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .cta-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  section {
    scroll-margin-top: 84px;
  }

  .container {
    width: min(1120px, calc(100% - 16px));
  }

  .section-tag {
    font-size: 0.72rem;
    min-height: 30px;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  .hero p,
  .contact-intro,
  .gallery-intro,
  .courses-subtitle,
  .cert-subtitle {
    font-size: 0.9rem;
  }

  .footer-brand-col {
    max-width: none;
  }

  .footer-brand-col p {
    max-width: none;
  }
}

/* Mobile button alignment fix (final) */
@media (max-width: 768px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .hero-actions .btn,
  .nav-content .nav-cta.open,
  .cta-btn,
  .enquiry-form button,
  .admission-form button,
  .gallery-page-main .gallery-hero-actions .btn,
  .gallery-page-main .gallery-next-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 46px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gallery-page-main .gallery-hero-actions,
  .gallery-page-main .gallery-next-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .nav-content .nav-cta.open {
    margin-top: 0.6rem;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn,
  .nav-content .nav-cta.open,
  .cta-btn,
  .enquiry-form button,
  .admission-form button,
  .gallery-page-main .gallery-hero-actions .btn,
  .gallery-page-main .gallery-next-actions .btn {
    min-height: 44px;
    font-size: 0.9rem;
    border-radius: 10px;
  }
}
