/* RIVAN elegant academy theme: serif headings, gold accents, refined surfaces.
   Loaded last. Remove the <link> in index.html to return to the previous look. */

:root {
  --gold: #d9b26a;
  --gold-soft: #f3dfae;
  --gold-deep: #a9803a;
  --cyan: #d9b26a;
  /* gold replaces cyan for icons, links, focus */
  --gtext: linear-gradient(100deg, #f7e6b8 0%, #d9b26a 50%, #f2d796 100%);
  --head: "Playfair Display", "Cormorant Garamond", Georgia, serif;
}

::selection {
  background: #d9b26a66;
  color: #fff;
}

/* ---- Typography ---- */
.hero h1 {
  font-size: clamp(36px, 3.9vw, 62px);
  font-weight: 600;
  letter-spacing: -.3px;
  line-height: 1.15;
}

.section-heading h2,
.journey h2,
.faq-intro h2,
.lab-copy h2,
.foundation-cta h2,
.advantage h2 {
  letter-spacing: -.2px;
  font-weight: 600;
}

.programme-content h3,
.enquiry-card h3 {
  font-weight: 600;
}

.eyebrow {
  color: var(--gold-soft);
  letter-spacing: 4px;
  font-weight: 600;
}

.eyebrow i {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  width: 90px;
}

/* Ornamental rule under section headings */
.section-heading h2::after,
.journey h2::after,
.faq-intro h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---- Header ---- */
.site-header {
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 6px 22px #0a1f4d1c;
}

.main-nav a {
  letter-spacing: .4px;
  background-image: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.main-nav a:hover,
.main-nav a.active {
  color: #8a6420;
}

.main-nav a.active:after {
  background: var(--gold);
}

/* ---- Buttons ---- */
.button-grad {
  background: linear-gradient(100deg, #17338f, #2447b8 55%, #3b3fb0);
  border: 1px solid var(--gold);
  box-shadow: 0 6px 22px #0a1f6a66, inset 0 0 0 1px #ffffff14;
  letter-spacing: .4px;
}

.button-grad:hover {
  box-shadow: 0 10px 30px #d9b26a55, 0 0 0 1px var(--gold-soft);
}

.button-outline {
  border-color: var(--gold);
  background: #06123a55;
}

.button-outline:hover {
  background: #d9b26a22;
}

/* ---- Hero & trust strip ---- */
.trust-strip {
  border: 1px solid #d9b26a88;
  background: linear-gradient(100deg, #0d255cf2, #0f2c75f2 60%, #1f2a80f2);
  box-shadow: 0 0 0 4px #d9b26a14, 0 14px 34px #02061a99;
}

.trust-strip>div {
  border-right-color: #d9b26a40;
}

.trust-strip .ic {
  color: var(--gold-soft);
}

.trust-strip strong {
  color: var(--gold-soft);
}

/* ---- Section separators: hairline with gold centre ---- */
.section-dark2::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: linear-gradient(90deg, transparent, #d9b26a99, transparent);
  pointer-events: none;
}

/* ---- Cards ---- */
.programme-card {
  border: 1px solid #d9b26a66;
  border-radius: 16px;
  box-shadow: 0 10px 30px #02061a66, inset 0 0 0 1px #ffffff0d;
}

.programme-card:hover {
  border-color: var(--gold);
  box-shadow: 0 18px 40px #02061a88, 0 0 22px #d9b26a33;
}

.programme-card::before {
  background: linear-gradient(120deg, #d9b26a22, #8b5cf61a 52%, transparent 82%);
}

.number {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep));
  color: #0a1a4a;
  border-radius: 20px;
  padding: 4px 13px;
  letter-spacing: 1px;
  font-family: var(--head);
}

.glass,
.enquiry-card {
  border: 1px solid #d9b26a66;
  border-radius: 16px;
}

.faq-list details {
  border: 1px solid #d9b26a44;
  border-radius: 12px;
}

.faq-list details[open] {
  border-color: #d9b26a99;
  background: linear-gradient(110deg, #0c2a66dd, #0a1c52ee);
}

.faq-list summary {
  font-family: var(--head);
  font-size: 15px;
}

.faq-list summary:after {
  color: var(--gold);
}

.enquiry-card input,
.enquiry-card select {
  border-color: #d9b26a55;
  border-radius: 8px;
}

.enquiry-card input:focus,
.enquiry-card select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #d9b26a33;
}

/* ---- Icons ---- */
.benefit>.ic,
.advantage-grid .ic {
  color: var(--gold);
  filter: drop-shadow(0 0 8px #d9b26a55);
}

.benefit:hover>.ic,
.advantage-grid article:hover>.ic {
  filter: drop-shadow(0 0 12px #d9b26aaa);
}

/* Journey: icons sit in gold rings, with a connector line */
.journey-steps article {
  position: relative;
  border-left: 0;
}

.journey-steps span {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid #d9b26a99;
  background: radial-gradient(circle, #1a3a9a55, #0a1c5200 70%);
  color: var(--gold);
  filter: none;
  box-shadow: 0 0 0 6px #d9b26a14;
  transition: box-shadow .4s ease, transform .4s ease;
}

.journey-steps article:hover span {
  box-shadow: 0 0 0 8px #d9b26a22, 0 0 24px #d9b26a44;
  transform: translateY(-3px);
}

.journey-steps article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 37px;
  left: calc(50% + 48px);
  right: calc(-50% + 48px);
  height: 1px;
  background: repeating-linear-gradient(90deg, #d9b26a99 0 6px, transparent 6px 12px);
}

.journey-steps h3 {
  font-size: 17px;
}

.lab-copy li:before {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #0a1a4a;
  box-shadow: 0 0 12px #d9b26a66;
}

.lab-image {
  border: 1px solid #d9b26a88;
  box-shadow: 0 0 0 5px #d9b26a14, 0 12px 34px #02061a88;
}

/* ---- CTA band ---- */
.foundation-cta {
  border: 1px solid #d9b26a99;
  background: linear-gradient(100deg, #132e86, #1a2a78 55%, #2e2a8c);
  border-radius: 14px;
  box-shadow: 0 0 0 5px #d9b26a14, 0 16px 40px #02061a88;
}

.foundation-cta p {
  border-left-color: #d9b26a77;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 2px solid var(--gold);
}

.site-footer h4 {
  color: var(--gold-soft);
  letter-spacing: .5px;
}

.site-footer:after {
  border-color: #d9b26a66;
}

.socials a {
  border-color: #d9b26a88;
}

/* Gold-tinted border pulse (replaces earlier blue/cyan pulse) */
@keyframes rivanBorderGlow {

  0%,
  100% {
    box-shadow: 0 8px 26px #02061a66, inset 0 0 22px #2a8bff14;
  }

  50% {
    box-shadow: 0 8px 30px #02061a77, 0 0 18px #d9b26a33, inset 0 0 26px #d9b26a14;
  }
}

/* Slow gold shine passing over cards on hover */
.programme-card::after,
.glass::after {
  pointer-events: none;
}

@media (max-width: 1100px) {
  .journey-steps article:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 650px) {
  .hero h1 {
    font-size: 32px;
  }

  .journey-steps span {
    width: 64px;
    height: 64px;
  }
}

/* No blinking / pulsing effects */
.button-grad::before,
.foundation-cta::after {
  display: none;
}

.programme-card,
.glass,
.enquiry-card {
  animation: none;
}

.hero-image::before {
  animation: none;
  opacity: .8;
}

/* ---- Navbar: graduation-cap icon replaces the underline on hover / active ---- */
.main-nav a,
.main-nav a:hover,
.main-nav a.active {
  background-size: 0 0;
}

.main-nav a.active:after {
  content: none;
}

.main-nav a:before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 22px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9992f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z' fill='%23d9b26a' fill-opacity='.35'/%3E%3Cpath d='M6 11.5V16c0 1.4 2.7 3 6 3s6-1.6 6-3v-4.5'/%3E%3Cpath d='M22 9v6'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: translate(-50%, 6px) scale(.7);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .75, .25, 1);
  pointer-events: none;
}

.main-nav a:hover:before,
.main-nav a.active:before {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 650px) {
  .main-nav a:before {
    top: 50%;
    left: auto;
    right: 4px;
    transform: translate(6px, -50%) scale(.7);
  }

  .main-nav a:hover:before,
  .main-nav a.active:before {
    transform: translate(0, -50%) scale(1);
  }
}
