/* =====================================================
   PREMIUM ADD-ONS — extends style.css
   3D motion, FAQ, trust badges, scene transitions
   ===================================================== */

/* ---------- Refined SVG logo ---------- */
.brand-mark-svg {
  width: 46px; height: 46px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(212, 160, 76, 0.25));
  transition: transform .5s var(--ease-out);
}
.brand:hover .brand-mark-svg { transform: rotate(-8deg) scale(1.05); }

/* ---------- 3D Rotating Cube (homepage hero supplement) ---------- */
.cube-scene {
  width: 220px; height: 220px;
  perspective: 1200px;
  position: absolute;
  bottom: 0;
  right: 5%;
  z-index: 1;
  pointer-events: none;
  opacity: .85;
}
.cube {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cube-spin 18s linear infinite;
}
.cube-face {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10,14,39,.92), rgba(30,42,94,.85));
  border: 1.5px solid rgba(212,160,76,.4);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: var(--gold-light);
  text-align: center;
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(10,14,39,.3);
}
.cube-face .face-icon {
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.cube-face .face-label {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .02em;
  font-style: italic;
}
.cube-face.f-front  { transform: rotateY(  0deg) translateZ(110px); }
.cube-face.f-back   { transform: rotateY(180deg) translateZ(110px); }
.cube-face.f-right  { transform: rotateY( 90deg) translateZ(110px); }
.cube-face.f-left   { transform: rotateY(-90deg) translateZ(110px); }
.cube-face.f-top    { transform: rotateX( 90deg) translateZ(110px); }
.cube-face.f-bottom { transform: rotateX(-90deg) translateZ(110px); }
@keyframes cube-spin {
  0%   { transform: rotateX(-15deg) rotateY(0deg); }
  100% { transform: rotateX(-15deg) rotateY(360deg); }
}

/* Small floating cube variant for interior pages */
.cube-scene.small {
  width: 140px; height: 140px;
  top: 50%;
  right: 60px;
  bottom: auto;
  transform: translateY(-50%);
}
.cube-scene.small .cube-face {
  width: 140px; height: 140px;
  padding: 16px;
}
.cube-scene.small .cube-face.f-front  { transform: rotateY(  0deg) translateZ(70px); }
.cube-scene.small .cube-face.f-back   { transform: rotateY(180deg) translateZ(70px); }
.cube-scene.small .cube-face.f-right  { transform: rotateY( 90deg) translateZ(70px); }
.cube-scene.small .cube-face.f-left   { transform: rotateY(-90deg) translateZ(70px); }
.cube-scene.small .cube-face.f-top    { transform: rotateX( 90deg) translateZ(70px); }
.cube-scene.small .cube-face.f-bottom { transform: rotateX(-90deg) translateZ(70px); }
.cube-scene.small .face-icon { font-size: 1.6rem; }
.cube-scene.small .face-label { font-size: .82rem; }

@media (max-width: 1024px) {
  .cube-scene { display: none; }
}

/* ---------- 3D Rotating Badge (alternative — single object) ---------- */
.rotate-3d-badge {
  width: 180px; height: 180px;
  perspective: 1000px;
  position: relative;
}
.rotate-3d-badge-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: badge-spin 12s linear infinite;
}
.rotate-3d-badge-inner > div {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  backface-visibility: hidden;
}
.rotate-3d-badge-inner .badge-front {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 15px 40px rgba(212,160,76,.4);
}
.rotate-3d-badge-inner .badge-back {
  background: var(--ink);
  color: var(--gold-light);
  transform: rotateY(180deg);
  box-shadow: 0 15px 40px rgba(10,14,39,.4);
}
@keyframes badge-spin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* ---------- Trust badges strip ---------- */
.trust-strip {
  background: var(--cream);
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-label {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.trust-badges {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
}
.trust-badge {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: -0.01em;
  opacity: .6;
  transition: all .3s var(--ease-out);
  position: relative;
  padding: 4px 0;
}
.trust-badge:hover {
  opacity: 1;
  color: var(--ink);
  transform: translateY(-2px);
}
.trust-badge .italic-sub {
  font-style: italic;
  color: var(--gold-deep);
}

/* ---------- FAQ ---------- */
.faq-section {
  background: var(--paper);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-item {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  cursor: pointer;
  transition: all .35s var(--ease-out);
  border: 1px solid transparent;
}
.faq-item:hover {
  background: var(--cream-2);
  border-color: var(--gold);
}
.faq-item.open {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--gold);
}
.faq-item.open .faq-q { color: var(--cream); }
.faq-item.open .faq-toggle {
  background: var(--gold);
  color: var(--ink);
  transform: rotate(45deg);
}
.faq-q-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.faq-q {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
}
.faq-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all .35s var(--ease-out);
  font-size: 1.3rem;
  font-weight: 300;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease-out), padding .35s;
  padding: 0;
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 14px 0 0;
}

/* ---------- Trust ribbon (rotating ticker) ---------- */
.trust-ribbon {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  color: var(--ink);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
}
.trust-ribbon-track {
  display: flex;
  gap: 50px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.trust-ribbon-item {
  display: flex; align-items: center; gap: 12px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.trust-ribbon-item i { font-size: 1.1rem; }
.trust-ribbon-item .sep {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: .4;
}

/* ---------- Newsletter ---------- */
.newsletter-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.newsletter-form {
  display: flex;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: 5px;
  overflow: hidden;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 10px 18px;
  color: #fff;
  font-family: inherit;
  font-size: .9rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button {
  background: var(--gold);
  color: var(--ink);
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .25s;
}
.newsletter-form button:hover { background: var(--gold-light); transform: translateX(2px); }

/* ---------- "Why us" stats with animated underline accent ---------- */
.stat-num.underlined {
  position: relative;
  display: inline-block;
}
.stat-num.underlined::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--gold);
  border-radius: 2px;
  transition: width 1.2s var(--ease-out) .4s;
}
.stat-card.in-view .stat-num.underlined::after,
.in-view .stat-num.underlined::after,
.reveal.in-view .stat-num.underlined::after { width: 100%; }

/* ---------- Animated section title underline ---------- */
.section-head h2 {
  position: relative;
  display: inline-block;
}

/* ---------- Curtain reveal (between sections) ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 0;
  position: relative;
}
.section-divider::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--cream);
}

/* ---------- Confetti container ---------- */
.confetti-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px; height: 10px;
  opacity: 0;
  border-radius: 2px;
}

/* ---------- Success state for form ---------- */
.form-success-state {
  text-align: center;
  padding: 30px 20px;
  animation: pop-in .5s var(--bounce);
}
.form-success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ea874, #1a8757);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  box-shadow: 0 12px 30px rgba(46,168,116,.35);
  animation: scale-in .4s var(--bounce);
}
@keyframes scale-in { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Stream cube (compact 3D for category icons) ---------- */
.stream-card .stream-icon {
  position: relative;
  perspective: 600px;
}
.stream-card:hover .stream-icon i {
  animation: icon-flip .8s var(--ease-out);
}
@keyframes icon-flip {
  0%   { transform: rotateY(0); }
  50%  { transform: rotateY(180deg) scale(1.15); }
  100% { transform: rotateY(360deg); }
}

/* ---------- "Award" ribbon for featured items ---------- */
.award-ribbon {
  position: absolute;
  top: 14px;
  left: -6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px 5px 14px;
  border-radius: 0 999px 999px 0;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(212,160,76,.3);
}
.award-ribbon::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  border: 3px solid transparent;
  border-top-color: var(--gold-deep);
  border-right-color: var(--gold-deep);
}

/* ---------- Page hero — interior 3D accent ---------- */
.page-title { position: relative; }
.page-title .cube-scene {
  bottom: 50%;
  right: 6%;
  transform: translateY(50%);
}

/* ---------- Stream cube CTA — interactive card flipper ---------- */
.flip-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .flip-card-grid { grid-template-columns: 1fr; } }
.flip-card {
  perspective: 1200px;
  height: 280px;
}
.flip-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  backface-visibility: hidden;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flip-front {
  background: var(--cream);
  border: 1px solid var(--line);
}
.flip-back {
  background: var(--ink);
  color: var(--cream);
  transform: rotateY(180deg);
}
.flip-back h4 { color: var(--cream); }
.flip-back p { color: rgba(255,255,255,.75); margin: 0; }

/* ---------- Sticky right-side enquiry tab (desktop) ---------- */
.sticky-enquiry-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%) rotate(-90deg);
  transform-origin: center center;
  background: var(--ink);
  color: var(--gold-light);
  padding: 14px 28px;
  margin-right: 21px;
  border-radius: 14px 14px 0 0;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: padding .3s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), margin-right .3s var(--ease-out);
  box-shadow: 0 -8px 30px rgba(10,14,39,.35), 0 0 0 1px rgba(212,160,76,.25);
  border: 0;
  font-family: var(--font-body);
  white-space: nowrap;
  line-height: 1;
}
.sticky-enquiry-tab::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(212,160,76,.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,160,76,.6); }
  50% { box-shadow: 0 0 0 6px rgba(212,160,76,0); }
}
.sticky-enquiry-tab:hover {
  background: var(--gold);
  color: var(--ink);
  padding: 14px 36px 14px 28px;
  margin-right: 25px;
}
.sticky-enquiry-tab:hover::before { background: var(--ink); }
.sticky-enquiry-tab .arrow {
  transition: transform .3s;
}
.sticky-enquiry-tab:hover .arrow {
  transform: translateX(4px);
}
@media (max-width: 1024px) {
  .sticky-enquiry-tab { display: none; }
}

/* ---------- "Voice of student" carousel dots ---------- */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 0;
  cursor: pointer;
  transition: all .3s var(--ease-out);
}
.carousel-dot.active {
  background: var(--gold);
  width: 32px;
  border-radius: 8px;
}

/* =====================================================
   MOBILE POLISH for premium components
   ===================================================== */
@media (max-width: 768px) {
  /* Trust strip */
  .trust-strip { padding: 32px 0 !important; }
  .trust-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .trust-badges { gap: 18px 22px; }
  .trust-badge { font-size: 1.05rem; }

  /* FAQ */
  .faq-item { padding: 20px 18px; }
  .faq-q { font-size: 1rem; }
  .faq-toggle { width: 32px; height: 32px; font-size: 1.1rem; }
  .faq-a { font-size: .88rem; }

  /* Trust ribbon */
  .trust-ribbon { padding: 10px 0; }
  .trust-ribbon-item { font-size: .8rem; gap: 9px; }

  /* Newsletter */
  .newsletter-form input { font-size: 16px; }  /* prevents iOS zoom */
  .newsletter-form button { padding: 10px 16px; font-size: .8rem; }

  /* Cookie banner: above bottom action bar */
  #cookie-consent {
    bottom: 86px !important;
    left: 12px !important;
    right: 12px !important;
    padding: 16px 18px !important;
  }
}
