/*
 * ==========================================================
 * ASTI Homepage
 * home.css
 * ----------------------------------------------------------
 * تنسيقات محتوى الصفحة الرئيسية فقط.
 * لا يحتوي على الهيدر، الفوتر، الشات، قائمة الجوال أو الوضع العام.
 * ==========================================================
 */

:root {
  --home-primary: #173f2f;
  --home-primary-dark: #0f2d22;
  --home-primary-soft: #e9f1ec;
  --home-gold: #c6a15b;
  --home-gold-dark: #a9823d;

  --home-bg: #f7f5ef;
  --home-surface: #ffffff;
  --home-surface-soft: #f1eee5;
  --home-text: #243129;
  --home-muted: #667269;
  --home-border: #e4dfd3;

  --home-radius-sm: 12px;
  --home-radius-md: 18px;
  --home-radius-lg: 26px;

  --home-shadow-sm: 0 8px 24px rgba(23, 63, 47, 0.07);
  --home-shadow-md: 0 16px 42px rgba(23, 63, 47, 0.11);
  --home-shadow-lg: 0 28px 70px rgba(10, 34, 24, 0.18);
}

/* ==========================================================
   Homepage base
========================================================== */

.homepage-content {
  background: var(--home-bg);
  color: var(--home-text);
  overflow: hidden;
}

.homepage-content *,
.homepage-content *::before,
.homepage-content *::after {
  box-sizing: border-box;
}

.homepage-content section {
  position: relative;
}

.homepage-content h1,
.homepage-content h2,
.homepage-content h3,
.homepage-content h4,
.homepage-content p {
  margin-top: 0;
}

.homepage-content a,
.homepage-content button {
  -webkit-tap-highlight-color: transparent;
}

.homepage-content button {
  font: inherit;
}

/* ==========================================================
   Shared section headings
========================================================== */

.homepage-content .line-anim {
  position: relative;
  display: inline-block;
  margin-bottom: 6px;
  color: var(--home-primary) !important;
}

.homepage-content .line-anim::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -14px;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--home-gold),
    var(--home-primary)
  );
  transform: translateX(50%);
}

/* ==========================================================
   Hero
========================================================== */

.hero-s {
  isolation: isolate;
  min-height: 670px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(
      circle at 18% 24%,
      rgba(198, 161, 91, 0.24),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 75%,
      rgba(81, 134, 104, 0.2),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #173f2f 0%,
      #123427 52%,
      #0b241a 100%
    ) !important;
  color: #ffffff;
  padding: 92px 0 104px;
}

.hero-s::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(247, 245, 239, 0.08)
  );
}

.hero-s .hero-grid {
  width: 100%;
}

.hero-s .hero-content h1 {
  color: #ffffff !important;
  letter-spacing: -0.02em;
}

.hero-s .hero-content p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.hero-s .hero-content > div:first-child span {
  border: 1px solid rgba(198, 161, 91, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #f1d89f !important;
  backdrop-filter: blur(8px);
}

#heroRegisterBtn {
  min-height: 52px;
  background: linear-gradient(
    135deg,
    #d7b76f,
    var(--home-gold)
  ) !important;
  color: #183629 !important;
  font-weight: 800;
}

#heroRegisterBtn:hover {
  background: #e1c784 !important;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(198, 161, 91, 0.28) !important;
}

.hero-s .hero-content a {
  min-height: 52px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.hero-s .hero-content a:hover {
  border-color: var(--home-gold) !important;
  background: rgba(198, 161, 91, 0.12);
  transform: translateY(-3px);
}

.shadow-anim {
  position: relative;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.13),
      rgba(255, 255, 255, 0.055)
    ) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: var(--home-shadow-lg) !important;
  backdrop-filter: blur(14px);
}

.shadow-anim::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12),
      transparent 42%
    );
}

@keyframes home-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Supports the inline animation name already used in the HTML. */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ==========================================================
   Statistics
========================================================== */

.stat-s {
  padding: 46px 0;
  background: var(--home-surface) !important;
  border-bottom: 1px solid var(--home-border);
}

.stat-s .reveal-scale {
  position: relative;
  padding: 22px 16px;
  border-radius: var(--home-radius-md);
}

.stat-s .reveal-scale:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25%;
  left: -12px;
  width: 1px;
  height: 50%;
  background: var(--home-border);
}

.stat-s .counter {
  color: var(--home-primary) !important;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.stat-s p {
  margin-top: 8px !important;
  color: var(--home-muted) !important;
}

/* ==========================================================
   Academic programs
========================================================== */

.prog-s {
  padding: 94px 0;
  background:
    linear-gradient(
      180deg,
      var(--home-bg),
      #f3efe5
    ) !important;
}

.card-b {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--home-surface) !important;
  border: 1px solid var(--home-border) !important;
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.card-b::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 86px;
  height: 86px;
  border-radius: 100% 0 0 0;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(198, 161, 91, 0.1)
  );
  pointer-events: none;
}

.card-b:hover {
  transform: translateY(-8px);
  border-color: rgba(198, 161, 91, 0.65) !important;
  box-shadow: var(--home-shadow-md);
}

.prog-card-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(23, 63, 47, 0.11);
  border-radius: 22px;
  font-size: 31px;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease;
}

.card-b:hover .prog-card-icon {
  transform: translateY(-4px) rotate(-4deg) scale(1.06);
  box-shadow: 0 12px 24px rgba(23, 63, 47, 0.12);
}

.prog-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 15px;
  padding: 4px 13px;
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: 999px;
  background: rgba(198, 161, 91, 0.13);
  color: #8b682d;
  font-size: 11px;
  font-weight: 800;
}

.reg-btn {
  min-height: 44px;
  background: linear-gradient(
    135deg,
    var(--home-primary),
    #245943
  ) !important;
  box-shadow: 0 9px 22px rgba(23, 63, 47, 0.17) !important;
}

.reg-btn:hover {
  background: var(--home-primary-dark) !important;
  transform: translateY(-2px);
}

/* ==========================================================
   Services
========================================================== */

#servicesSection {
  padding: 94px 0 !important;
  background: var(--home-surface) !important;
}

.svcc {
  position: relative;
  min-height: 235px;
  padding: 34px 28px;
  overflow: hidden;
  background: var(--home-surface-soft) !important;
  border: 1px solid var(--home-border) !important;
  border-radius: var(--home-radius-md);
  text-align: center;
  box-shadow: var(--home-shadow-sm);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.svcc:hover {
  transform: translateY(-7px);
  background: #ffffff !important;
  box-shadow: var(--home-shadow-md);
}

.svcc .sico {
  width: 66px;
  height: 66px;
  position: relative;
  margin-bottom: 21px !important;
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      var(--home-primary),
      #2c6a50
    );
  box-shadow: 0 12px 28px rgba(23, 63, 47, 0.18);
}

.svcc .sico::after {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 25px;
}

/* ==========================================================
   News
========================================================== */

#newsSection {
  padding: 94px 0 !important;
  background: var(--home-bg) !important;
}

.news-card {
  height: 100%;
  overflow: hidden;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.news-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--home-shadow-md);
}

.news-card-img {
  height: 172px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(198, 161, 91, 0.28),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      var(--home-primary-soft),
      #f5ecd7
    );
  color: var(--home-primary);
  font-size: 52px;
}

.news-card-body {
  padding: 24px;
}

.news-tag {
  display: inline-flex;
  margin-bottom: 11px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--home-primary-soft);
  color: var(--home-primary);
  font-size: 11px;
  font-weight: 800;
}

.news-date {
  margin-bottom: 9px;
  color: #8d958f;
  font-size: 12px;
}

.news-card-body h3 {
  margin-bottom: 10px;
  color: var(--home-primary) !important;
  font-size: 17px;
  line-height: 1.55;
}

.news-card-body p {
  color: var(--home-muted) !important;
  font-size: 13.5px;
  line-height: 1.8;
}

/* ==========================================================
   Events
========================================================== */

#eventsSection {
  padding: 94px 0 !important;
  background: var(--home-surface) !important;
}

.event-item {
  min-height: 148px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.event-item:hover {
  transform: translateY(-5px);
  border-color: rgba(198, 161, 91, 0.55);
  box-shadow: var(--home-shadow-md);
}

.event-date-box {
  min-width: 64px;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    var(--home-primary),
    #28624a
  );
  color: #ffffff;
  box-shadow: 0 11px 22px rgba(23, 63, 47, 0.19);
}

.event-date-box .eday {
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.event-date-box .emon {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.86;
}

.event-badge {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(198, 161, 91, 0.15);
  color: #8b682d;
  font-size: 11px;
  font-weight: 800;
}

.event-info h4 {
  margin-bottom: 6px;
  color: var(--home-primary) !important;
  font-size: 15.5px;
}

.event-info p {
  color: var(--home-muted) !important;
  font-size: 13px;
  line-height: 1.7;
}

/* ==========================================================
   Virtual tour
========================================================== */

#vtourSection {
  padding: 94px 0 !important;
  background: var(--home-bg) !important;
}

.vtour-box {
  min-height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(198, 161, 91, 0.34);
  border-radius: var(--home-radius-lg);
  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(198, 161, 91, 0.25),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      var(--home-primary),
      var(--home-primary-dark)
    );
  box-shadow: var(--home-shadow-lg);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.vtour-box:hover {
  transform: translateY(-5px) scale(1.006);
  box-shadow: 0 34px 80px rgba(10, 34, 24, 0.23);
}

.vtour-overlay {
  position: relative;
  z-index: 2;
  padding: 44px 26px;
}

.vtour-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 2px solid var(--home-gold);
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.19);
  color: var(--home-gold);
  font-size: 32px;
  animation: home-pulse-gold 2.6s ease-in-out infinite;
}

.vtour-icon::before {
  content: "▶";
  margin-inline-start: 4px;
}

@keyframes home-pulse-gold {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.38);
  }

  50% {
    box-shadow: 0 0 0 17px rgba(198, 161, 91, 0);
  }
}


/* ==========================================================
   Reveal animations
========================================================== */

.homepage-content .reveal,
.homepage-content .reveal-left,
.homepage-content .reveal-right,
.homepage-content .reveal-scale,
.homepage-content .reveal-rotate {
  opacity: 0;
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.homepage-content .reveal {
  transform: translateY(34px);
}

.homepage-content .reveal-left {
  transform: translateX(42px);
}

.homepage-content .reveal-right {
  transform: translateX(-42px);
}

.homepage-content .reveal-scale {
  transform: scale(0.92);
}

.homepage-content .reveal-rotate {
  transform: translateY(34px) rotate(1.5deg);
}

.homepage-content .reveal.active,
.homepage-content .reveal-left.active,
.homepage-content .reveal-right.active,
.homepage-content .reveal-scale.active,
.homepage-content .reveal-rotate.active {
  opacity: 1;
  transform: none;
}

.homepage-content .stagger-1 {
  transition-delay: 0.06s;
}

.homepage-content .stagger-2 {
  transition-delay: 0.12s;
}

.homepage-content .stagger-3 {
  transition-delay: 0.18s;
}

.homepage-content .stagger-4 {
  transition-delay: 0.24s;
}

.homepage-content .stagger-5 {
  transition-delay: 0.3s;
}

.homepage-content .stagger-6 {
  transition-delay: 0.36s;
}

/* ==========================================================
   Ripple
========================================================== */

.homepage-content .ripple-effect {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.homepage-content .home-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: home-ripple 0.62s ease-out;
}

@keyframes home-ripple {
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}

/* ==========================================================
   Dark mode
========================================================== */

body.dark-mode .homepage-content {
  --home-bg: #101711;
  --home-surface: #172019;
  --home-surface-soft: #1b261e;
  --home-text: #f1f5f2;
  --home-muted: #c6cec8;
  --home-border: rgba(255, 255, 255, 0.12);

  background: var(--home-bg);
  color: var(--home-text);
}

body.dark-mode .homepage-content .stat-s,
body.dark-mode .homepage-content #servicesSection,
body.dark-mode .homepage-content #eventsSection,
body.dark-mode .homepage-content,
body.dark-mode .homepage-content #contactSection {
  background: var(--home-surface) !important;
}

body.dark-mode .homepage-content .prog-s,
body.dark-mode .homepage-content #newsSection,
body.dark-mode .homepage-content #vtourSection {
  background: var(--home-bg) !important;
}

body.dark-mode .homepage-content .card-b,
body.dark-mode .homepage-content .svcc,
body.dark-mode .homepage-content .news-card,
body.dark-mode .homepage-content .event-item,
body.dark-mode .homepage-content #contactSection .reveal[style*="display:grid"] > div {
  background: var(--home-surface-soft) !important;
  border-color: var(--home-border) !important;
}

body.dark-mode .homepage-content h1,
body.dark-mode .homepage-content h2,
body.dark-mode .homepage-content h3,
body.dark-mode .homepage-content h4 {
  color: #f3f5f4 !important;
}

body.dark-mode .homepage-content p {
  color: var(--home-muted) !important;
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 1023px) {
  .hero-s {
    min-height: auto;
    padding: 76px 0 84px !important;
  }

  .hero-s .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .hero-s .hero-content {
    align-items: center;
  }

  .shadow-anim {
    max-width: 520px !important;
  }

  .stat-s .reveal-scale::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-s {
    padding: 62px 0 72px !important;
  }

  .hero-s .hero-grid {
    gap: 38px !important;
  }

  .hero-s .hero-content h1 {
    font-size: clamp(2rem, 10vw, 2.7rem) !important;
  }

  .hero-s .hero-content p {
    font-size: 16px !important;
  }

  .hero-s .hero-content > div:last-child {
    width: 100%;
  }

  #heroRegisterBtn,
  .hero-s .hero-content a {
    width: 100%;
  }

  .shadow-anim {
    padding: 32px 20px !important;
  }

  .prog-s,
  #servicesSection,
  #newsSection,
  #eventsSection,
  #vtourSection {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .event-item {
    gap: 14px;
    padding: 18px;
  }

  .event-date-box {
    min-width: 58px;
    width: 58px;
    height: 62px;
  }


  .vtour-box {
    min-height: 320px;
  }
}

@media (max-width: 479px) {
  .homepage-content .line-anim {
    font-size: 26px !important;
  }

  .card-b {
    padding: 27px 20px !important;
  }

  .news-card-body {
    padding: 20px;
  }

  .event-item {
    flex-direction: column;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .homepage-content *,
  .homepage-content *::before,
  .homepage-content *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================
   Professional homepage icons
========================================================== */

.home-hero-icon {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(198, 161, 91, .38);
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      rgba(198, 161, 91, .18),
      rgba(255, 255, 255, .06)
    );
  color: #f1d89f;
  font-size: 42px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
  animation: float 3s ease-in-out infinite;
}

.homepage-content .prog-card-icon i,
.homepage-content .news-card-img i {
  line-height: 1;
}

.homepage-content .prog-card-icon i {
  font-size: 30px;
}

.homepage-content .news-card-img i {
  font-size: 46px;
}

.homepage-content .sico {
  display: grid;
  place-items: center;
}

.homepage-content .sico::after {
  content: none !important;
}

.homepage-content .sico i {
  color: #ffffff;
  font-size: 24px;
}

.homepage-content #aboutSection .about-grid > div:last-child > div > div > div:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
}

.homepage-content #aboutSection .about-grid i {
  color: #ffffff;
  font-size: 31px;
}

/* Preserve icon visibility in dark mode. */
body.dark-mode .homepage-content .prog-card-icon i,
body.dark-mode .homepage-content .news-card-img i,
body.dark-mode .homepage-content .sico i,
body.dark-mode .homepage-content #aboutSection i {
  opacity: 1;
  visibility: visible;
}

/* More consistent interactive links. */
.homepage-content a[href^="tel:"],
.homepage-content a[href^="mailto:"],
.homepage-content a[href*="wa.me"] {
  text-decoration: none;
}

/* Mobile icon scaling. */
@media (max-width: 640px) {
  .home-hero-icon {
    width: 78px;
    height: 78px;
    border-radius: 23px;
    font-size: 35px;
  }

  .homepage-content .prog-card-icon {
    width: 68px;
    height: 68px;
  }
}
/* ==========================================================
   PREMIUM FINAL PATCH — Homepage
========================================================== */

/* Font Awesome icons must inherit their card colors.
   The previous white rule made icons disappear on light cards. */
.homepage-content .prog-card-icon i {
  color: inherit !important;
  font-size: 30px;
  line-height: 1;
}

.homepage-content .news-card-img i {
  color: var(--home-primary) !important;
  font-size: 45px;
  line-height: 1;
}

.homepage-content .sico {
  display: grid !important;
  place-items: center;
}

.homepage-content .sico::after {
  content: none !important;
}

.homepage-content .sico i {
  color: #ffffff !important;
  font-size: 24px;
  line-height: 1;
}

/* Hero professional icon */
.home-hero-icon {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(231, 202, 139, 0.4);
  border-radius: 27px;
  background:
    linear-gradient(
      145deg,
      rgba(198, 161, 91, 0.2),
      rgba(255, 255, 255, 0.07)
    );
  color: #f0d79c;
  font-size: 41px;
  box-shadow: 0 17px 35px rgba(0, 0, 0, 0.16);
  animation: float 3s ease-in-out infinite;
}

/* JS-generated Hero particles */
.home-hero-particle {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(221, 190, 119, 0.46);
  opacity: 0.55;
  animation-name: home-float;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}


/* ===========================
   Homepage Width
=========================== */

.hero-grid,
.stat-s > div,
.prog-s > div,
#servicesSection > div,
#newsSection > div,
#eventsSection > div,
#accredSection > div,
.about-grid,
#vtourSection > div,
.home-section-container{

    max-width:1600px !important;
    width:95% !important;
    margin:auto !important;
}
.homepage-programs-grid .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.homepage-programs-grid .views-row {
  display: flex;
}

.homepage-programs-grid .course-card-dynamic {
  width: 100%;
}


/* ==========================================================
   FINAL HOMEPAGE POLISH — 2026
   Programs, services, events,virtual tour.
========================================================== */

.home-wide-container {
  width: min(95%, 1600px);
  margin-inline: auto;
}

.home-section-intro {
  max-width: 720px;
  margin: 0 auto 58px;
  text-align: center;
}

.home-section-intro h2 {
  margin-top: 12px;
  font-size: clamp(29px, 4vw, 42px) !important;
}

.home-section-intro p {
  margin: 24px auto 0;
  color: var(--home-muted) !important;
  font-size: 15px;
  line-height: 1.9;
}

.home-section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 14px;
  border: 1px solid rgba(198, 161, 91, .36);
  border-radius: 999px;
  background: rgba(198, 161, 91, .1);
  color: #84632d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

/* Programs */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  perspective: 1200px;
}

.program-card {
  --card-accent: #173f2f;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  padding: 28px 25px 24px;
  text-align: center;
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform;
}

.program-card[data-card-theme="gold"] { --card-accent: #b58b45; }
.program-card[data-card-theme="sage"] { --card-accent: #6d806c; }
.program-card[data-card-theme="brown"] { --card-accent: #8a6a4a; }
.program-card[data-card-theme="forest"] { --card-accent: #245943; }
.program-card[data-card-theme="beige"] { --card-accent: #9a845f; }

.program-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--card-accent), var(--home-gold));
}

.program-card__glow {
  position: absolute;
  width: 160px;
  height: 160px;
  top: -70px;
  inset-inline-end: -70px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 14%, transparent);
  filter: blur(3px);
  pointer-events: none;
}

.program-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.program-card__number {
  color: rgba(23, 63, 47, .14);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.05em;
}

.program-card .prog-card-icon {
  width: 72px;
  height: 72px;
  margin: 0;
  border-color: color-mix(in srgb, var(--card-accent) 24%, transparent);
  background: color-mix(in srgb, var(--card-accent) 10%, #fff);
  color: var(--card-accent) !important;
  box-shadow: 0 12px 25px color-mix(in srgb, var(--card-accent) 14%, transparent);
}

.program-card:hover .prog-card-icon {
  transform: translateY(-5px) rotate(-5deg) scale(1.08);
}

.program-card .prog-badge {
  margin: 12px auto 15px;
}

.program-card__title {
  min-height: 60px;
  display: grid;
  place-items: center;
  margin: 0 0 10px;
  color: var(--home-primary) !important;
  font-size: 19px;
  line-height: 1.55;
}

.program-card__description {
  flex: 1;
  margin: 0 0 23px;
  color: var(--home-muted) !important;
  font-size: 13.5px;
  line-height: 1.85;
}

.program-card .reg-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 11px 16px;
  border: 0;
  border-radius: 13px;
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.program-card .reg-btn i {
  transition: transform .25s ease;
}

.program-card .reg-btn:hover i {
  transform: translateX(-4px);
}

/* Services */
#servicesSection {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(198, 161, 91, .12), transparent 26%),
    radial-gradient(circle at 92% 84%, rgba(23, 63, 47, .08), transparent 26%),
    var(--home-surface) !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.service-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 30px;
  background: rgba(255,255,255,.72) !important;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(198,161,91,.18), transparent 36%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.service-card:hover::before { opacity: 1; }

.service-card__number {
  position: absolute;
  top: 18px;
  inset-inline-end: 20px;
  color: rgba(23,63,47,.12);
  font-size: 28px;
  font-weight: 900;
}

.service-card .sico {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px !important;
  background: linear-gradient(145deg, var(--home-primary), #2d684f);
  border: 1px solid rgba(198,161,91,.42);
  box-shadow: 0 14px 30px rgba(23,63,47,.2);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}

.service-card:nth-child(2) .sico {
  background: linear-gradient(145deg, #8c6a31, var(--home-gold));
}

.service-card:nth-child(3) .sico {
  background: linear-gradient(145deg, #6c765c, #8d987a);
}

.service-card:hover .sico {
  transform: translateY(-7px) rotate(-5deg);
  box-shadow: 0 19px 38px rgba(23,63,47,.24);
}

.service-card h3 {
  margin: 0 0 11px;
  color: var(--home-primary) !important;
  font-size: 20px;
}

.service-card p {
  max-width: 320px;
  margin: 0;
  color: var(--home-muted) !important;
  font-size: 14px;
  line-height: 1.9;
}

.service-card__line {
  width: 0;
  height: 3px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-primary), var(--home-gold));
  transition: width .35s ease;
}

.service-card:hover .service-card__line { width: 62px; }

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.event-item {
  position: relative;
  min-height: 190px;
  align-items: center;
  overflow: hidden;
}

.event-item::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: linear-gradient(var(--home-primary), var(--home-gold));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s ease;
}

.event-item:hover::before { transform: scaleY(1); }

.event-badge {
  gap: 6px;
  align-items: center;
}

.event-item__arrow {
  position: absolute;
  bottom: 18px;
  inset-inline-end: 19px;
  color: var(--home-gold-dark);
  opacity: .35;
  transform: translateX(5px);
  transition: opacity .25s ease, transform .25s ease;
}

.event-item:hover .event-item__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Virtual tour */
.vtour-box {
  min-height: 410px;
  background:
    radial-gradient(circle at var(--tour-x,25%) var(--tour-y,25%), rgba(219,185,111,.3), transparent 25%),
    linear-gradient(135deg,#173f2f,#0d2b20 65%,#5b4729) !important;
}

.vtour-overlay {
  max-width: 720px;
  text-align: center;
}

.vtour-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(198,161,91,.42);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #ecd69f;
  font-size: 12px;
  font-weight: 800;
}

.vtour-box h3 {
  margin: 0 0 13px;
  color: #fff !important;
  font-size: clamp(24px,4vw,36px);
}

.vtour-box p {
  max-width: 570px;
  margin: 0 auto;
  color: rgba(255,255,255,.74) !important;
  font-size: 15px;
  line-height: 1.9;
}

.vtour-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg,#d8b86f,#b98c40);
  color: #173f2f;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(198,161,91,.25);
}

.vtour-orbit {
  position: absolute;
  border: 1px solid rgba(198,161,91,.2);
  border-radius: 50%;
  pointer-events: none;
  animation: tour-orbit 16s linear infinite;
}

.vtour-orbit--one { width: 280px; height: 280px; top: -110px; inset-inline-start: -70px; }
.vtour-orbit--two { width: 210px; height: 210px; bottom: -95px; inset-inline-end: -35px; animation-direction: reverse; }

@keyframes tour-orbit { to { transform: rotate(360deg); } }


/* Dark mode refinements */
body.dark-mode .home-section-kicker,
body.dark-mode .about-highlights > span {
  background: rgba(198,161,91,.1);
  color: #e6cc91;
}

body.dark-mode .service-card,
body.dark-mode{
  background: rgba(27,38,30,.88) !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .programs-grid,
  .events-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  #aboutSection .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .programs-grid,
  .events-grid,
  .about-features { grid-template-columns: 1fr; }
  .program-card { min-height: auto; }
  .about-copy { align-items: center; text-align: center; }
  .about-highlights { justify-content: center; }
  .vtour-box { min-height: 360px; }
}


/* ==========================================================
   Clean programs, golden section lines, interactive About.
========================================================== */

/* Remove the old circular corner decoration from program cards. */
.homepage-content .card-b::after,
.homepage-content .program-card__glow,
.homepage-content .program-card__number {
  display: none !important;
}

/* Programs: clean, calm and balanced without numbers or corner circles. */
.homepage-content .program-card {
  min-height: 390px;
  padding: 30px 26px 25px;
  border: 1px solid rgba(23, 63, 47, 0.12) !important;
  border-top: 4px solid var(--card-accent) !important;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(247, 245, 239, 0.94)
    ) !important;
  box-shadow: 0 10px 28px rgba(23, 63, 47, 0.07) !important;
}

.homepage-content .program-card:hover {
  transform: translateY(-7px);
  border-color: rgba(198, 161, 91, 0.55) !important;
  box-shadow: 0 19px 42px rgba(23, 63, 47, 0.12) !important;
}

.homepage-content .program-card::before {
  display: none !important;
}

.homepage-content .program-card__top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.homepage-content .program-card .prog-card-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--card-accent) 30%, transparent);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--card-accent) 13%, #ffffff),
      #ffffff
    );
  color: var(--card-accent) !important;
  box-shadow: 0 11px 24px color-mix(in srgb, var(--card-accent) 13%, transparent);
}

.homepage-content .program-card:hover .prog-card-icon {
  transform: translateY(-5px) scale(1.06);
}

/* All section title underlines: glowing gold only. */
.homepage-content .line-anim::after {
  width: 78px;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      #9d7330 0%,
      #d9b96f 48%,
      #f0d99c 100%
    ) !important;
  box-shadow:
    0 0 8px rgba(198, 161, 91, 0.62),
    0 0 18px rgba(198, 161, 91, 0.28);
}

/* ==========================================================
   HOMEPAGE CONTACT — CLEAN FINAL VERSION
========================================================== */

.homepage-content #contactSection {
  position: relative;
  z-index: 1;
  min-height: auto;
  overflow: hidden;
  padding: 82px 0 !important;
  border-top: 1px solid var(--home-border);
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(198, 161, 91, 0.13),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(23, 63, 47, 0.08),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      var(--home-surface),
      var(--home-bg)
    );
}

.homepage-content #contactSection::before {
  content: "";
  position: absolute;
  top: -115px;
  inset-inline-end: -80px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(198, 161, 91, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.homepage-content #contactSection .home-section-container {
  position: relative;
  z-index: 2;
  width: min(95%, 1600px);
  margin-inline: auto;
  padding-inline: 24px;
}

.homepage-content #contactSection .home-section-heading {
  max-width: 700px;
  margin: 0 auto 42px;
  text-align: center;
}

.homepage-content #contactSection .home-section-heading .line-anim {
  margin-top: 0;
  font-size: clamp(30px, 4vw, 42px);
}

.homepage-content #contactSection .home-section-heading p {
  max-width: 620px;
  margin: 24px auto 0 !important;
  color: var(--home-muted) !important;
  font-size: 15px;
  line-height: 1.9;
}

/* Grid */
.homepage-content #contactSection .home-contact-grid {
  position: relative;
  z-index: 3;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  margin: 0 auto;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto;
}

/* Shared card */
.homepage-content #contactSection a.home-contact-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 138px;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 24px 50px 24px 22px;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--home-text) !important;
  text-decoration: none !important;
  cursor: pointer;
  pointer-events: auto;
  box-shadow:
    0 12px 30px rgba(23, 63, 47, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.homepage-content #contactSection a.home-contact-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset-inline-end: -55px;
  bottom: -65px;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.1);
  pointer-events: none;
}

.homepage-content #contactSection a.home-contact-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.42),
      transparent 42%
    );
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.homepage-content #contactSection a.home-contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(198, 161, 91, 0.62);
  box-shadow:
    0 22px 48px rgba(23, 63, 47, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.homepage-content #contactSection a.home-contact-card:hover::after {
  opacity: 1;
}

.homepage-content #contactSection .home-contact-card > *,
.homepage-content #contactSection .home-contact-card i {
  pointer-events: none;
}

/* Icon */
.homepage-content #contactSection .home-contact-icon {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      var(--home-primary-soft),
      #f8fbf9
    );
  color: var(--home-primary);
  font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(23, 63, 47, 0.06);
  transition:
    transform 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.homepage-content #contactSection .home-contact-card:hover .home-contact-icon {
  transform: scale(1.07) rotate(-4deg);
}

.homepage-content #contactSection .home-contact-card--email .home-contact-icon {
  background:
    linear-gradient(
      145deg,
      #f7efdc,
      #fffaf0
    );
  color: var(--home-gold-dark);
}

/* Text */
.homepage-content #contactSection .home-contact-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  display: block;
  text-align: start;
}

.homepage-content #contactSection .home-contact-content strong {
  display: block;
  margin-bottom: 7px;
  color: var(--home-primary);
  font-size: 16px;
  line-height: 1.5;
}

.homepage-content #contactSection .home-contact-content > span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.7;
}

.homepage-content #contactSection
.home-contact-card--phone .home-contact-content > span,
.homepage-content #contactSection
.home-contact-card--email .home-contact-content > span {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}

/* Arrow */
.homepage-content #contactSection .home-contact-action {
  position: absolute;
  z-index: 2;
  top: 50%;
  inset-inline-end: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--home-gold-dark);
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.homepage-content #contactSection
.home-contact-card:hover .home-contact-action {
  transform: translateY(-50%) translateX(-4px);
}

/* Hide arrow from phone and email only */
.homepage-content #contactSection
.home-contact-card--phone .home-contact-action,
.homepage-content #contactSection
.home-contact-card--email .home-contact-action {
  display: none;
}

.homepage-content #contactSection
a.home-contact-card--phone,
.homepage-content #contactSection
a.home-contact-card--email {
  padding-inline-end: 24px;
}

/* WhatsApp — must come after the shared white card style */
.homepage-content #contactSection
a.home-contact-card--whatsapp {
  border-color: transparent !important;
  background:
    radial-gradient(
      circle at 86% 15%,
      rgba(255, 255, 255, 0.17),
      transparent 24%
    ),
    linear-gradient(
      135deg,
      #176d48,
      #2a9364
    ) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 36px rgba(23, 109, 72, 0.24);
}

.homepage-content #contactSection
a.home-contact-card--whatsapp::before {
  background: rgba(255, 255, 255, 0.11);
}

.homepage-content #contactSection
.home-contact-card--whatsapp .home-contact-icon {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.06),
    0 0 20px rgba(255, 255, 255, 0.12);
}

.homepage-content #contactSection
.home-contact-card--whatsapp .home-contact-content strong,
.homepage-content #contactSection
.home-contact-card--whatsapp .home-contact-content > span,
.homepage-content #contactSection
.home-contact-card--whatsapp .home-contact-action {
  color: #ffffff !important;
}

/* Bottom page link */
.homepage-content #contactSection .home-contact-page-link {
  position: relative;
  z-index: 3;
  margin-top: 28px;
  text-align: center;
}

.homepage-content #contactSection .home-contact-page-link a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid rgba(23, 63, 47, 0.1);
  border-radius: 13px;
  background: var(--home-primary-soft);
  color: var(--home-primary) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.homepage-content #contactSection .home-contact-page-link a:hover {
  transform: translateY(-3px);
  background: #dfece4;
  box-shadow: 0 10px 24px rgba(23, 63, 47, 0.1);
}

/* Dark mode */
body.dark-mode .homepage-content #contactSection a.home-contact-card {
  border-color: var(--home-border);
  background: rgba(27, 38, 30, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

body.dark-mode .homepage-content #contactSection
a.home-contact-card--whatsapp {
  background:
    radial-gradient(
      circle at 86% 15%,
      rgba(255, 255, 255, 0.13),
      transparent 24%
    ),
    linear-gradient(
      135deg,
      #105f3d,
      #217c55
    ) !important;
}

/* Tablet */
@media (max-width: 1050px) {
  .homepage-content #contactSection .home-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-content #contactSection
  .home-contact-card--whatsapp {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .homepage-content #contactSection {
    padding: 70px 0 !important;
  }

  .homepage-content #contactSection .home-section-container {
    padding-inline: 16px;
  }

  .homepage-content #contactSection .home-contact-grid {
    grid-template-columns: 1fr;
  }

  .homepage-content #contactSection
  .home-contact-card--whatsapp {
    grid-column: auto;
  }

  .homepage-content #contactSection a.home-contact-card {
    min-height: 112px;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
    padding: 18px 43px 18px 15px;
    border-radius: 18px;
  }

  .homepage-content #contactSection
  a.home-contact-card--phone,
  .homepage-content #contactSection
  a.home-contact-card--email {
    padding-inline-end: 16px;
  }

  .homepage-content #contactSection .home-contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 19px;
  }

  .homepage-content #contactSection .home-contact-content strong {
    font-size: 15px;
  }

  .homepage-content #contactSection .home-contact-content > span {
    font-size: 12px;
  }

  .homepage-content #contactSection .home-contact-action {
    inset-inline-end: 14px;
  }
}
/* ==========================================================
   HOMEPAGE ABOUT
========================================================== */

.homepage-content #aboutSection {
  position: relative;
  overflow: hidden;
  padding: 96px 0 !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(198, 161, 91, 0.10), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(23, 63, 47, 0.07), transparent 30%),
    linear-gradient(180deg, #fbfaf6 0%, #f5f2e9 100%) !important;
}

.homepage-content #aboutSection::before {
  content: "";
  position: absolute;
  top: -110px;
  inset-inline-start: -90px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(198, 161, 91, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.homepage-content #aboutSection .about-grid {
  position: relative;
  z-index: 2;
  width: min(95%, 1600px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
}

.homepage-content #aboutSection .about-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.homepage-content #aboutSection .about-copy h2 {
  margin: 0 0 30px !important;
  color: var(--home-primary) !important;
  font-size: clamp(34px, 4vw, 48px) !important;
  line-height: 1.2;
}

.homepage-content #aboutSection .about-copy > p {
  max-width: 720px;
  margin: 0;
  color: #59645d !important;
  font-size: 16px;
  line-height: 2;
}

.homepage-content #aboutSection .about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 27px 0 30px;
}

.homepage-content #aboutSection .about-highlights > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(23, 63, 47, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--home-primary);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(23, 63, 47, 0.05);
}

.homepage-content #aboutSection .about-highlights i {
  color: var(--home-gold-dark) !important;
  font-size: 15px !important;
}

.homepage-content #aboutSection .about-more-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  padding: 13px 23px;
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--home-primary), #285f48) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 13px 28px rgba(23, 63, 47, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.homepage-content #aboutSection .about-more-link i {
  color: #efd797 !important;
  font-size: 13px !important;
  transition: transform 0.25s ease;
}

.homepage-content #aboutSection .about-more-link:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #0f2d22, #204b39) !important;
  box-shadow: 0 18px 36px rgba(23, 63, 47, 0.24);
}

.homepage-content #aboutSection .about-more-link:hover i {
  transform: translateX(-4px);
}

.homepage-content #aboutSection .about-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  perspective: 1000px;
}

.homepage-content #aboutSection .about-feature {
  --about-x: 50%;
  --about-y: 50%;
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 31px 28px;
  overflow: hidden;
  border: 1px solid rgba(198, 161, 91, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at var(--about-x) var(--about-y), rgba(220, 188, 115, 0.18), transparent 35%),
    linear-gradient(145deg, #ffffff 0%, #f4f0e6 100%) !important;
  color: var(--home-text);
  box-shadow: 0 14px 36px rgba(23, 63, 47, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}

.homepage-content #aboutSection .about-feature--secondary {
  background:
    radial-gradient(circle at var(--about-x) var(--about-y), rgba(233, 205, 139, 0.18), transparent 35%),
    linear-gradient(145deg, #f7f4eb 0%, #e9e2d1 100%) !important;
}

.homepage-content #aboutSection .about-feature::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--home-primary), var(--home-gold));
  transform: scaleY(0.3);
  transform-origin: center;
  transition: transform 0.32s ease;
}

.homepage-content #aboutSection .about-feature::after {
  display: none !important;
}

.homepage-content #aboutSection .about-feature:hover {
  transform: translateY(-9px) scale(1.012);
  border-color: rgba(198, 161, 91, 0.62);
  box-shadow: 0 24px 52px rgba(23, 63, 47, 0.15), 0 0 24px rgba(198, 161, 91, 0.10);
}

.homepage-content #aboutSection .about-feature:hover::before {
  transform: scaleY(1);
}

.homepage-content #aboutSection .about-feature__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 21px;
  border: 1px solid rgba(234, 204, 132, 0.7);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--home-primary), #2c634b);
  color: #f0d793 !important;
  box-shadow: 0 0 0 5px rgba(198, 161, 91, 0.08), 0 0 22px rgba(198, 161, 91, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.homepage-content #aboutSection .about-feature:hover .about-feature__icon {
  transform: translateY(-5px) rotate(-5deg) scale(1.06);
  box-shadow: 0 0 0 7px rgba(198, 161, 91, 0.10), 0 0 30px rgba(198, 161, 91, 0.48);
}

.homepage-content #aboutSection .about-feature__icon i {
  color: #f1d794 !important;
  font-size: 27px !important;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(229, 193, 112, 0.46));
}

.homepage-content #aboutSection .about-feature h4 {
  margin: 0 0 10px;
  color: var(--home-primary) !important;
  font-size: 19px;
  line-height: 1.55;
}

.homepage-content #aboutSection .about-feature p {
  margin: 0;
  color: #5e6861 !important;
  font-size: 13.5px;
  line-height: 1.85;
}

@media (max-width: 980px) {
  .homepage-content #aboutSection .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .homepage-content #aboutSection .about-copy {
    align-items: center;
    text-align: center;
  }
  .homepage-content #aboutSection .about-highlights {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .homepage-content #aboutSection {
    padding: 72px 0 !important;
  }
  .homepage-content #aboutSection .about-grid {
    width: min(92%, 680px);
  }
  .homepage-content #aboutSection .about-features {
    grid-template-columns: 1fr;
  }
  .homepage-content #aboutSection .about-feature {
    min-height: 230px;
  }
  .homepage-content #aboutSection .about-copy h2 {
    font-size: 32px !important;
  }
  .homepage-content #aboutSection .about-copy > p {
    font-size: 15px;
    line-height: 1.9;
  }
  .homepage-content #aboutSection .about-more-link {
    width: 100%;
  }
}

/* ==========================================================
   HOMEPAGE ACCREDITATIONS
========================================================== */

.homepage-content #accredSection {
  position: relative;
  overflow: hidden;
  padding: 92px 0 !important;
  background:
    radial-gradient(
      circle at top right,
      rgba(198,161,91,.08),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #faf9f4 0%,
      #f5f1e8 100%
    ) !important;

}

.homepage-content #accredSection::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -125px;
  inset-inline-end: -90px;
  border: 1px solid rgba(198, 161, 91, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.homepage-content #accredSection > div {
  position: relative;
  z-index: 2;
  width: min(95%, 1600px) !important;
  margin-inline: auto !important;
}

/* Heading */
.homepage-content #accredSection .line-anim {
  color: var(--home-primary) !important;
  font-size: clamp(31px, 4vw, 43px) !important;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.homepage-content #accredSection .line-anim::after {
  width: 82px;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      #9d7330,
      #d7b76f,
      #f0d99c
    ) !important;
  box-shadow:
    0 0 8px rgba(198, 161, 91, 0.62),
    0 0 18px rgba(198, 161, 91, 0.28);
}

.homepage-content #accredSection .reveal > p {
  max-width: 700px;
  margin: 22px auto 0 !important;
  color: #626b64 !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
}

/* Logos row/grid */
.homepage-content #accredSection .accred-logos,
.homepage-content #accredSection .accred-grid,
.homepage-content #accredSection [style*="display:flex"],
.homepage-content #accredSection [style*="display:grid"] {
  gap: 22px !important;
}

/* Logo card */
.homepage-content #accredSection .accred-logo {
  position: relative;
  width: 156px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 47, 0.10);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(248, 246, 239, 0.94)
    );
  box-shadow:
    0 10px 26px rgba(23, 63, 47, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transform: translateY(0);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.homepage-content #accredSection .accred-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(198, 161, 91, 0.16),
      transparent 58%
    );
  transition: opacity 0.3s ease;
}

.homepage-content #accredSection .accred-logo::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--home-primary),
      var(--home-gold)
    );
  transition: width 0.32s ease;
}

.homepage-content #accredSection .accred-logo:hover {
  transform: translateY(-8px) scale(1.025);
  border-color: rgba(198, 161, 91, 0.62);
  box-shadow:
    0 20px 42px rgba(23, 63, 47, 0.14),
    0 0 20px rgba(198, 161, 91, 0.10);
}

.homepage-content #accredSection .accred-logo:hover::before {
  opacity: 1;
}

.homepage-content #accredSection .accred-logo:hover::after {
  width: 62%;
}

/* Logo image */
.homepage-content #accredSection .accred-logo img {
  position: relative;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter:
    saturate(0.96)
    contrast(1.02);
  transition:
    transform 0.32s ease,
    filter 0.32s ease;
}

.homepage-content #accredSection .accred-logo:hover img {
  transform: scale(1.06);
  filter:
    saturate(1.06)
    contrast(1.04);
}

/* Keyboard focus */
.homepage-content #accredSection .accred-logo:focus-visible {
  outline: 3px solid rgba(198, 161, 91, 0.35);
  outline-offset: 4px;
}

/* Dark mode */
body.dark-mode .homepage-content #accredSection {
  background:
    radial-gradient(
      circle at 14% 18%,
      rgba(198, 161, 91, 0.08),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #121a14,
      #182119
    ) !important;
}

body.dark-mode .homepage-content #accredSection .accred-logo {
  border-color: rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(
      145deg,
      rgba(31, 43, 34, 0.96),
      rgba(24, 34, 27, 0.96)
    );
}

/* Tablet */
@media (max-width: 900px) {
  .homepage-content #accredSection {
    padding: 78px 0 !important;
  }

  .homepage-content #accredSection .accred-logo {
    width: 146px;
    height: 106px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .homepage-content #accredSection {
    padding: 70px 0 !important;
  }

  .homepage-content #accredSection .accred-logo {
    width: 136px;
    height: 100px;
    padding: 13px;
    border-radius: 18px;
  }

  .homepage-content #accredSection .line-anim {
    font-size: 29px !important;
  }

  .homepage-content #accredSection .reveal > p {
    font-size: 14px !important;
  }
}

.reg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}