/* ============================================================
   Cubing Zone E-Learning — Stylesheet
   Tokens
   ============================================================ */
:root{
  --bg:        #0B0B0C;
  --surface:   #161618;
  --surface-2: #1D1D20;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);
  --text:      #F4F2ED;
  --muted:     #A6A39B;
  --orange:    #FF6A1A;
  --gold:      #FFB23F;
  --orange-dim: rgba(255,106,26,0.14);

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer;}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  line-height:1.12;
  letter-spacing:-0.01em;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-display);
  font-size:12.5px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--gold);
}
.eyebrow::before{
  content:""; width:18px; height:2px; background:var(--orange); display:inline-block;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
}

section{ padding:96px 0; }
@media (max-width:768px){ section{ padding:64px 0; } }

/* Background texture: subtle facet grid like cube edges */
body::before{
  content:"";
  position:fixed; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size:64px 64px;
  pointer-events:none;
  z-index:0;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 30px;
  border-radius:999px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:15px;
  letter-spacing:0.01em;
  border:1px solid transparent;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg, var(--orange), var(--gold));
  color:#16100A;
  box-shadow:0 10px 30px -10px rgba(255,106,26,0.55);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 34px -8px rgba(255,106,26,0.7); }
.btn-ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--line-2);
}
.btn-ghost:hover{ border-color:var(--orange); color:var(--gold); }
.btn-block{ width:100%; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(11,11,12,0.78);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px;
  max-width:var(--container);
  margin:0 auto;
}
.brand{
display:flex;
align-items:center;
gap:12px;
min-width:0;
}
.brand img{ height:38px; width:auto; }
.brand-name{ font-family:var(--font-display); font-weight:700; font-size:16px; line-height:1.2; }
.brand-name span{ display:block; font-size:11px; font-weight:500; color:var(--muted); letter-spacing:0.04em; }

.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a{
  font-size:14.5px; font-weight:500; color:var(--muted);
  position:relative; padding:6px 0;
  transition:color .2s ease;
}
.nav-links a:hover, .nav-links a.active{ color:var(--text); }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:linear-gradient(90deg, var(--orange), var(--gold));
  border-radius:2px;
}
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; padding:6px;
}
.nav-toggle span{ width:24px; height:2px; background:var(--text); border-radius:2px; }

@media (max-width:920px){

.nav{
    padding:12px 18px;
    position:relative;
}

.brand{
    gap:10px;
    flex:1;
    min-width:0;
}

.brand img{
    height:34px;
    flex-shrink:0;
}

.brand-name{
    font-size:15px;
    line-height:1.15;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.brand-name span{
    font-size:10px;
}

.nav-cta{
    gap:10px;
}

.nav-cta .btn{
    display:none;
}

.nav-toggle{
    display:flex;
}

.nav-links{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#0B0B0C;
    display:flex;
    flex-direction:column;
    padding:20px;
    gap:18px;
    transform:translateY(-150%);
    transition:.3s ease;
    border-top:1px solid rgba(255,255,255,.08);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.nav-links.open{
    transform:translateY(0);
}

.nav-links a{
    width:100%;
    padding:10px 0;
}

}

/* ============================================================
   Hero + CSS 3D Cube (signature element)
   ============================================================ */
.hero{
  position:relative;
  padding:100px 0 80px;
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center;
}
@media (max-width:920px){ .hero{ grid-template-columns:1fr; padding-top:64px; text-align:left; } }

.hero-copy h1{
  font-size:clamp(38px, 5.4vw, 64px);
  margin:18px 0 22px;
}
.hero-copy h1 .accent{
  background:linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-copy p{
  color:var(--muted); font-size:17.5px; max-width:480px; margin-bottom:34px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:40px; }
.hero-stats{ display:flex; gap:36px; flex-wrap:wrap; }
.hero-stats div strong{
  display:block; font-family:var(--font-display); font-size:26px; color:var(--text);
  font-variant-numeric:tabular-nums;
}
.hero-stats div span{ font-size:13px; color:var(--muted); }

/* Numbers that count up into view — used on hero stats and the About numbers panel */
.count-up{ font-variant-numeric:tabular-nums; }

.cube-stage{
  position:relative;
  width:100%; height:420px;
  display:flex; align-items:center; justify-content:center;
  perspective:1200px;
}
.cube-glow{
  position:absolute; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,106,26,0.35), transparent 70%);
  filter:blur(10px);
  animation:pulse 4s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ opacity:0.6; transform:scale(1);} 50%{ opacity:1; transform:scale(1.08);} }

.cube3d{
  width:180px; height:180px;
  position:relative;
  transform-style:preserve-3d;
  animation:spin 14s linear infinite;
}
@keyframes spin{
  from{ transform:rotateX(-28deg) rotateY(0deg); }
  to{ transform:rotateX(-28deg) rotateY(360deg); }
}
.cube3d .face{
  position:absolute; width:180px; height:180px;
  display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); gap:4px;
  padding:6px;
  background:#0E0E0F;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:10px;
}
.cube3d .face span{ border-radius:3px; }
.cube3d .face.front{ transform:translateZ(90px); }
.cube3d .face.back{ transform:rotateY(180deg) translateZ(90px); }
.cube3d .face.right{ transform:rotateY(90deg) translateZ(90px); }
.cube3d .face.left{ transform:rotateY(-90deg) translateZ(90px); }
.cube3d .face.top{ transform:rotateX(90deg) translateZ(90px); }
.cube3d .face.bottom{ transform:rotateX(-90deg) translateZ(90px); }

.cube3d .face.front span{ background:var(--orange); }
.cube3d .face.back span{ background:#fff; }
.cube3d .face.right span{ background:var(--gold); }
.cube3d .face.left span{ background:#1f3b8c; }
.cube3d .face.top span{ background:#1f8c4d; }
.cube3d .face.bottom span{ background:#c4131f; }

/* ============================================================
   Section headings
   ============================================================ */
.section-head{ max-width:620px; margin-bottom:52px; }
.section-head h2{ font-size:clamp(28px,3.6vw,40px); margin-top:14px; }
.section-head p{ color:var(--muted); margin-top:14px; font-size:16px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ============================================================
   Feature / value cards
   ============================================================ */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:920px){ .grid-3, .grid-4{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .grid-3, .grid-4{ grid-template-columns:1fr; } }

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px 26px;
  transition:border-color .25s ease, transform .25s ease;
}
.card:hover{ border-color:rgba(255,106,26,0.4); transform:translateY(-4px); }
.card .icon{
  width:46px; height:46px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:var(--orange-dim);
  color:var(--orange);
  margin-bottom:18px;
  font-size:20px;
}
.card h3{ font-size:18px; margin-bottom:10px; }
.card p{ color:var(--muted); font-size:14.5px; }

/* ============================================================
   Split / about preview
   ============================================================ */
.split{
  display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;
}
@media (max-width:860px){ .split{ grid-template-columns:1fr; gap:36px; } }
.split-media{
  position:relative; border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--line);
}
.split-media img{ width:100%; height:100%; object-fit:cover; }
.stat-pill{
  position:absolute; bottom:18px; left:18px;
  background:rgba(11,11,12,0.85); backdrop-filter:blur(8px);
  border:1px solid var(--line-2);
  border-radius:var(--radius-sm);
  padding:14px 18px;
}
.stat-pill strong{ font-family:var(--font-display); font-size:22px; color:var(--gold); display:block; }
.stat-pill span{ font-size:12px; color:var(--muted); }

.check-list li{
  display:flex; gap:12px; align-items:flex-start;
  margin-bottom:14px; color:var(--muted); font-size:15px;
}
.check-list li::before{
  content:"✓"; color:var(--orange); font-weight:700; flex:none;
  width:22px; height:22px; border-radius:50%; background:var(--orange-dim);
  display:flex; align-items:center; justify-content:center; font-size:12px;
  margin-top:2px;
}

/* ============================================================
   Mode tabs (Online / Offline)
   ============================================================ */
.mode-cards{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:768px){ .mode-cards{ grid-template-columns:1fr; } }
.mode-card{
  border:1px solid var(--line); border-radius:var(--radius);
  padding:36px; background:linear-gradient(180deg, var(--surface), var(--bg));
  position:relative; overflow:hidden;
}
.mode-card.featured{ border-color:rgba(255,106,26,0.45); }
.mode-card .tag{
  position:absolute; top:0; right:0;
  background:linear-gradient(135deg, var(--orange), var(--gold));
  color:#16100A; font-family:var(--font-display); font-size:11.5px; font-weight:700;
  padding:6px 16px; border-bottom-left-radius:10px;
}
.mode-card h3{ font-size:22px; margin-bottom:10px; }
.mode-card p.desc{ color:var(--muted); font-size:14.5px; margin-bottom:22px; }

/* ============================================================
   Testimonials
   ============================================================ */
.testi-card{
  position:relative;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px; height:100%; overflow:hidden;
}
.testi-card::after{
  content:"\201C"; position:absolute; top:-6px; right:16px;
  font-family:var(--font-display); font-size:78px; font-weight:700; line-height:1;
  color:rgba(255,178,63,0.08); pointer-events:none;
}
.testi-card .stars{ color:var(--gold); font-size:14px; margin-bottom:14px; letter-spacing:2px; }
.testi-card p{ position:relative; color:var(--text); font-size:15px; margin-bottom:20px; }
.testi-who{ display:flex; align-items:center; gap:12px; }
.testi-avatar{
  width:38px; height:38px; border-radius:50%;
  background:linear-gradient(135deg, var(--orange), var(--gold));
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; color:#16100A; font-size:14px;
}
.testi-who strong{ font-size:14px; display:block; }
.testi-who span{ font-size:12.5px; color:var(--muted); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band{
  background:linear-gradient(135deg, rgba(255,106,26,0.16), rgba(255,178,63,0.06));
  border:1px solid rgba(255,106,26,0.3);
  border-radius:24px;
  padding:60px;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-band h2{ font-size:clamp(24px,3vw,32px); max-width:480px; }
.cta-band p{ color:var(--muted); margin-top:10px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  border-top:1px solid var(--line);
  padding:64px 0 28px;
  background:var(--surface);
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px;
  margin-bottom:48px;
}
@media (max-width:768px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand img{ height:32px; }
.footer-brand span{ font-family:var(--font-display); font-weight:700; }
.footer-col h4{ font-size:13.5px; text-transform:uppercase; letter-spacing:0.08em; color:var(--muted); margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul li a{ color:var(--text); font-size:14.5px; opacity:0.85; }
.footer-col ul li a:hover{ color:var(--orange); opacity:1; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  padding-top:24px; border-top:1px solid var(--line);
  color:var(--muted); font-size:13px;
}
.socials{ display:flex; gap:14px; }
.socials a{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--line-2);
  display:flex; align-items:center; justify-content:center; font-size:14px;
  transition:border-color .2s ease, color .2s ease;
}
.socials a:hover{ border-color:var(--orange); color:var(--orange); }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero{
  padding:80px 0 50px;
  text-align:center;
  position:relative;
}
.page-hero h1{ font-size:clamp(32px,5vw,52px); margin-top:16px; }
.page-hero p{ color:var(--muted); max-width:560px; margin:18px auto 0; font-size:16px; }
.breadcrumb{ color:var(--muted); font-size:13.5px; margin-top:10px; }
.breadcrumb span{ color:var(--gold); }

/* ============================================================
   Timeline (About page)
   ============================================================ */
.timeline{ position:relative; padding-left:30px; border-left:2px solid var(--line); }
.timeline-item{ position:relative; padding-bottom:36px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:""; position:absolute; left:-37px; top:2px;
  width:12px; height:12px; border-radius:50%;
  background:var(--orange); box-shadow:0 0 0 4px var(--orange-dim);
}
.timeline-item h4{ font-size:16px; margin-bottom:6px; }
.timeline-item p{ color:var(--muted); font-size:14.5px; }
.timeline-item .when{ color:var(--gold); font-size:12.5px; font-family:var(--font-display); letter-spacing:0.04em; }

/* ============================================================
   Team / Values
   ============================================================ */
.value-row{ display:flex; gap:18px; align-items:flex-start; margin-bottom:30px; }
.value-row .num{
  font-family:var(--font-display); font-size:14px; color:var(--orange);
  border:1px solid var(--line-2); border-radius:50%; width:34px; height:34px;
  display:flex; align-items:center; justify-content:center; flex:none;
}
.value-row h4{ font-size:16.5px; margin-bottom:6px; }
.value-row p{ color:var(--muted); font-size:14.5px; }

/* ============================================================
   Course cards
   ============================================================ */
.course-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
}
.course-top{
  padding:24px 24px 0; display:flex; justify-content:space-between; align-items:flex-start;
}
.level-badge{
  font-size:11.5px; font-family:var(--font-display); font-weight:700; letter-spacing:0.05em;
  padding:5px 12px; border-radius:999px; text-transform:uppercase;
}
.level-badge.beginner{ background:rgba(31,140,77,0.18); color:#4ADE80; }
.level-badge.intermediate{ background:var(--orange-dim); color:var(--gold); }
.level-badge.advanced{ background:rgba(196,19,31,0.18); color:#FF6B6B; }
.course-card .price{ font-family:var(--font-display); font-weight:700; color:var(--text); }
.course-body{ padding:18px 24px 26px; flex:1; display:flex; flex-direction:column; }
.course-body h3{ font-size:19px; margin-bottom:10px; }
.course-body p{ color:var(--muted); font-size:14.5px; margin-bottom:18px; }
.course-meta{ display:flex; gap:18px; margin-bottom:20px; color:var(--muted); font-size:13px; }
.course-meta span{ display:flex; align-items:center; gap:6px; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; color:var(--text);
  padding:22px 0; display:flex; justify-content:space-between; align-items:center;
  font-family:var(--font-display); font-size:16px; font-weight:600;
}
.faq-q .plus{ font-size:22px; color:var(--orange); transition:transform .25s ease; flex:none; margin-left:16px; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{
  max-height:0; overflow:hidden; transition:max-height .3s ease;
  color:var(--muted); font-size:14.5px;
}
.faq-a-inner{ padding-bottom:22px; max-width:680px; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid{ display:grid; grid-template-columns:1fr 1.2fr; gap:50px; }
@media (max-width:920px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-info-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px;
}
.info-row{ display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--line); }
.info-row:last-child{ border-bottom:none; }
.info-row .icon{
  width:42px; height:42px; border-radius:10px; background:var(--orange-dim); color:var(--orange);
  display:flex; align-items:center; justify-content:center; flex:none; font-size:17px;
}
.info-row strong{ display:block; font-size:14.5px; margin-bottom:4px; }
.info-row span{ color:var(--muted); font-size:14px; }

form.contact-form{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:36px;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:13.5px; color:var(--muted); margin-bottom:8px; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 16px;
  background:var(--bg); border:1px solid var(--line-2); border-radius:var(--radius-sm);
  color:var(--text); font-family:var(--font-body); font-size:14.5px;
  transition:border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--orange);
}
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:12.5px; color:var(--muted); margin-top:14px; }
.form-status{ margin-top:16px; font-size:14px; }
.form-status.success{ color:#4ADE80; }
.form-status.error{ color:#FF6B6B; }

/* map placeholder */
.map-wrap{
  margin-top:60px; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line);
  height:340px;
}
.map-wrap iframe{ width:100%; height:100%; border:0; filter:grayscale(0.4) invert(0.92) contrast(0.9); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* misc */
.text-center{ text-align:center; }
.mt-large{ margin-top:80px; }

/* ============================================================
   RESPONSIVE FIXES
============================================================ */

/* Tablets */
@media (max-width:991px){

.hero{
grid-template-columns:1fr;
text-align:center;
gap:50px;
padding-top:60px;
}

.hero-copy p{
max-width:100%;
}

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

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

.cube-stage{
height:320px;
}

.cube3d{
width:150px;
height:150px;
}

.cube3d .face{
width:150px;
height:150px;
}

.cube3d .face.front{transform:translateZ(75px);}
.cube3d .face.back{transform:rotateY(180deg) translateZ(75px);}
.cube3d .face.left{transform:rotateY(-90deg) translateZ(75px);}
.cube3d .face.right{transform:rotateY(90deg) translateZ(75px);}
.cube3d .face.top{transform:rotateX(90deg) translateZ(75px);}
.cube3d .face.bottom{transform:rotateX(-90deg) translateZ(75px);}

.nav{
padding:16px;
}

.nav-cta .btn-primary{
display:none;
}

.cta-band{
padding:40px 25px;
text-align:center;
justify-content:center;
}

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

}

/* Mobile */
@media (max-width:768px){

.container{
padding:0 18px;
}

.hero-copy h1{
font-size:38px;
}

.hero-copy p{
font-size:16px;
}

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

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

.hero-stats{
flex-direction:column;
gap:18px;
text-align:center;
}

.grid-3,
.grid-4,
.mode-cards,
.split,
.contact-grid{
grid-template-columns:1fr;
}

.card,
.mode-card,
.course-card,
.contact-info-card{
padding:24px;
}

.cta-band{
padding:30px 20px;
}

.course-meta{
flex-direction:column;
gap:10px;
}

.form-row{
grid-template-columns:1fr;
}

.map-wrap{
height:250px;
}

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

.footer-brand{
justify-content:center;
}

.footer-bottom{
flex-direction:column;
text-align:center;
}

}

/* Small Phones */
@media (max-width:480px){

.brand img{
height:32px;
}

.brand-name{
font-size:14px;
}

.hero{
padding-top:40px;
}

.hero-copy h1{
font-size:32px;
}

.hero-copy p{
font-size:15px;
}

.section-head h2{
font-size:28px;
}

.page-hero h1{
font-size:30px;
}

.btn{
width:100%;
padding:14px;
}

.hero-actions{
gap:14px;
}

.cube-stage{
height:240px;
}

.cube3d{
width:120px;
height:120px;
}

.cube3d .face{
width:120px;
height:120px;
}

.cube3d .face.front{transform:translateZ(60px);}
.cube3d .face.back{transform:rotateY(180deg) translateZ(60px);}
.cube3d .face.left{transform:rotateY(-90deg) translateZ(60px);}
.cube3d .face.right{transform:rotateY(90deg) translateZ(60px);}
.cube3d .face.top{transform:rotateX(90deg) translateZ(60px);}
.cube3d .face.bottom{transform:rotateX(-90deg) translateZ(60px);}

}

/* ============================================================
   ENHANCEMENTS — Cube-Themed Motion System
   (Signature element: rotating-facet reveals + conic "turn" borders,
    echoing the physical act of turning a cube layer into place)
   ============================================================ */

/* ---- Scroll progress bar: reads like a cube edge being traced ---- */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background:linear-gradient(90deg, var(--orange), var(--gold));
  z-index:1000;
  box-shadow:0 0 12px rgba(255,106,26,0.6);
  transition:width .08s linear;
}

/* ---- Page intro loader: a cube settling into place ---- */
.page-loader{
  position:fixed; inset:0; z-index:2000;
  background:var(--bg);
  display:flex; align-items:center; justify-content:center;
  transition:opacity .5s ease, visibility .5s ease;
}
.page-loader.done{ opacity:0; visibility:hidden; pointer-events:none; }
.loader-cube{
  width:46px; height:46px; position:relative; transform-style:preserve-3d;
  animation:loaderSpin 1.1s ease-in-out infinite;
}
.loader-cube span{
  position:absolute; inset:0; border:2px solid var(--orange);
  background:var(--orange-dim);
  border-radius:4px;
}
.loader-cube span:nth-child(1){ transform:translateZ(23px); }
.loader-cube span:nth-child(2){ transform:rotateY(90deg) translateZ(23px); border-color:var(--gold); background:rgba(255,178,63,0.14); }
.loader-cube span:nth-child(3){ transform:rotateX(90deg) translateZ(23px); border-color:#4ADE80; background:rgba(74,222,128,0.1); }
@keyframes loaderSpin{
  0%{ transform:rotateX(-20deg) rotateY(0deg) scale(0.6); opacity:0; }
  20%{ opacity:1; }
  50%{ transform:rotateX(-20deg) rotateY(180deg) scale(1); }
  100%{ transform:rotateX(-20deg) rotateY(360deg) scale(0.6); opacity:0; }
}
@media (prefers-reduced-motion:reduce){
  .loader-cube{ animation:none; }
  .page-loader{ display:none; }
}

/* ---- Ambient floating facets (decorative, non-interactive) ---- */
.facet-field{
  position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0;
}
.facet{
  position:absolute; border-radius:6px; opacity:0.5;
  background:linear-gradient(135deg, rgba(255,106,26,0.16), rgba(255,178,63,0.05));
  border:1px solid rgba(255,255,255,0.06);
  animation:facetFloat 9s ease-in-out infinite;
}
.facet.f2{ background:linear-gradient(135deg, rgba(31,140,77,0.14), transparent); animation-duration:11s; }
.facet.f3{ background:linear-gradient(135deg, rgba(31,59,140,0.16), transparent); animation-duration:13s; }
@keyframes facetFloat{
  0%,100%{ transform:translateY(0) rotate(0deg); }
  50%{ transform:translateY(-22px) rotate(8deg); }
}
@media (prefers-reduced-motion:reduce){ .facet{ animation:none; } }
@media (max-width:768px){ .facet-field{ display:none; } }

.hero, .page-hero{ position:relative; z-index:1; }
.hero > *, .page-hero > *{ position:relative; z-index:1; }

/* ---- Cursor glow (desktop pointer devices only) ---- */
.cursor-glow{
  position:fixed; width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,106,26,0.10), transparent 70%);
  pointer-events:none; z-index:1; transform:translate(-50%,-50%);
  left:0; top:0; opacity:0; transition:opacity .4s ease;
  will-change:transform;
}
.cursor-glow.active{ opacity:1; }
@media (hover:none), (max-width:920px){ .cursor-glow{ display:none; } }

/* ---- Turn-in reveal: pieces rotate into place like a cube layer ---- */
.reveal{ opacity:0; transform:translateY(24px) rotateX(-6deg); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transform-origin:top center; }
.reveal.in{ opacity:1; transform:translateY(0) rotateX(0deg); }

/* Staggering helper set via JS (nth-of-type fallback for non-JS) */
.reveal:nth-child(1){ transition-delay:0s; }
.reveal:nth-child(2){ transition-delay:.06s; }
.reveal:nth-child(3){ transition-delay:.12s; }
.reveal:nth-child(4){ transition-delay:.18s; }

/* ---- Card hover: subtle 3D tilt + rotating conic border sweep ---- */
.card, .course-card, .mode-card, .testi-card, .contact-info-card{
  position:relative;
  transition:transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .35s ease;
  will-change:transform;
}
.card::before, .course-card::before{
  content:""; position:absolute; inset:-1px; border-radius:inherit; padding:1px;
  background:conic-gradient(from var(--turn-angle,0deg), transparent 0%, var(--orange) 8%, var(--gold) 16%, transparent 28%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0; transition:opacity .35s ease;
  pointer-events:none;
}
.card:hover, .course-card:hover{
  transform:translateY(-6px) rotateX(2deg);
  box-shadow:0 24px 48px -20px rgba(0,0,0,0.55);
}
.card:hover::before, .course-card:hover::before{ opacity:1; animation:turnBorder 2.6s linear infinite; }
@keyframes turnBorder{ to{ --turn-angle:360deg; } }
@property --turn-angle{ syntax:'<angle>'; inherits:false; initial-value:0deg; }

/* ---- Button shine sweep on hover ---- */
.btn{ position:relative; overflow:hidden; }
.btn::after{
  content:""; position:absolute; top:0; left:-60%; width:40%; height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform:skewX(-20deg);
  transition:left .55s ease;
}
.btn:hover::after{ left:120%; }

/* ---- Section divider: tiny facet row between sections ---- */
.cube-divider{
  display:flex; justify-content:center; gap:6px; padding:6px 0 0;
}
.cube-divider span{
  width:9px; height:9px; border-radius:2px; background:var(--line-2);
}
.cube-divider span:nth-child(1){ background:var(--orange); }
.cube-divider span:nth-child(2){ background:var(--gold); }
.cube-divider span:nth-child(4){ background:#1f8c4d; }
.cube-divider span:nth-child(5){ background:#1f3b8c; }

/* ---- Nav link underline: sweeps in like turning a face ---- */
.nav-links a::before{
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0%;
  background:linear-gradient(90deg, var(--orange), var(--gold));
  transition:width .3s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover::before{ width:100%; }
.nav-links a.active::before{ display:none; }

/* ---- Logo micro-interaction: gentle turn on hover ---- */
.brand img{ transition:transform .5s cubic-bezier(.2,.7,.2,1); }
.brand:hover img{ transform:rotate(90deg); }

/* ============================================================
   TEAM SECTION — Premium member cards
   ============================================================ */
.team-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:26px;
}
@media (max-width:1024px){ .team-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .team-grid{ grid-template-columns:1fr; } }

/* Each member is styled after one visible face of the cube — a quiet, on-theme
   way of tying "four people" to the four stickers you actually see on a solve. */
.team-card{ --face: var(--orange); }
.team-card[data-face="front"]{ --face: var(--orange); }
.team-card[data-face="right"]{ --face: var(--gold); }
.team-card[data-face="top"]{ --face: #33b46b; }
.team-card[data-face="left"]{ --face: #4d6fd6; }

.team-card{
  position:relative;
  background:linear-gradient(180deg, var(--surface), var(--surface-2));
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:2px;
  overflow:hidden;
  transition:transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
/* Ambient ring: a slow, always-on sweep of the member's face color, like a
   turning sticker catching the light — quickens and brightens on hover. */
.team-card::before{
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1.5px;
  background:conic-gradient(from var(--turn-angle,0deg), transparent 0%, var(--face) 10%, transparent 26%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0.45;
  animation:turnBorder 8s linear infinite;
  pointer-events:none;
}
.team-card:hover::before{ opacity:1; animation-duration:2.2s; }
.team-card:hover{ transform:translateY(-8px); box-shadow:0 30px 60px -24px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03); }
@media (prefers-reduced-motion:reduce){ .team-card::before{ animation:none; } }

.team-card-inner{
  position:relative; background:var(--surface);
  border-radius:calc(var(--radius) - 2px);
  padding:0 0 24px;
  height:100%;
}
.team-photo{
  position:relative; width:100%; aspect-ratio:1/1; overflow:hidden;
  border-radius:calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,0.05), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--bg));
}
.team-photo img{
  width:100%; height:100%; object-fit:cover; object-position:top center;
  display:block; transition:transform .6s cubic-bezier(.2,.7,.2,1), filter .5s ease;
  filter:grayscale(0.15);
}
.team-card:hover .team-photo img{ transform:scale(1.08); filter:grayscale(0); }

/* Diagonal shine that sweeps across the frame on hover, like light off a cube face */
.team-photo::after{
  content:""; position:absolute; inset:0; z-index:2;
  background:linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.16) 48%, transparent 62%);
  transform:translateX(-130%);
  transition:transform .85s cubic-bezier(.2,.7,.2,1);
  pointer-events:none;
}
.team-card:hover .team-photo::after{ transform:translateX(130%); }

/* Elegant "add a photo" placeholder — a viewfinder frame in the member's face color */
.team-photo-placeholder{
  position:relative; width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:10px; color:var(--muted);
}
.upload-frame{ position:absolute; inset:16px; pointer-events:none; }
.upload-frame .corner{
  position:absolute; width:16px; height:16px;
  border:2px solid var(--line-2);
  transition:border-color .35s ease, width .35s ease, height .35s ease;
}
.upload-frame .corner.c1{ top:0; left:0; border-right:none; border-bottom:none; border-radius:5px 0 0 0; }
.upload-frame .corner.c2{ top:0; right:0; border-left:none; border-bottom:none; border-radius:0 5px 0 0; }
.upload-frame .corner.c3{ bottom:0; left:0; border-right:none; border-top:none; border-radius:0 0 0 5px; }
.upload-frame .corner.c4{ bottom:0; right:0; border-left:none; border-top:none; border-radius:0 0 5px 0; }
.team-card:hover .upload-frame .corner{ border-color:var(--face); width:24px; height:24px; }

.team-photo-placeholder .avatar-mark{
  position:relative; width:60px; height:60px; border-radius:50%;
  background:var(--surface-2);
  border:1.5px dashed var(--line-2);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:800; font-size:17px; color:var(--muted);
  transition:border-color .35s ease, color .35s ease, transform .35s ease;
  animation:placeholderBreathe 3.6s ease-in-out infinite;
}
.team-card:hover .team-photo-placeholder .avatar-mark{
  border-color:var(--face); color:var(--face); border-style:solid; transform:scale(1.05);
}
@keyframes placeholderBreathe{ 0%,100%{ box-shadow:0 0 0 0 rgba(255,255,255,0.05);} 50%{ box-shadow:0 0 0 8px rgba(255,255,255,0.02);} }
.team-photo-placeholder small{ position:relative; font-size:11px; text-align:center; max-width:150px; line-height:1.5; opacity:0.8; }
@media (prefers-reduced-motion:reduce){ .team-photo-placeholder .avatar-mark{ animation:none; } }

.team-role-tag{
  position:absolute; top:12px; left:12px; z-index:3;
  background:rgba(11,11,12,0.75); backdrop-filter:blur(6px);
  border:1px solid var(--line-2);
  color:var(--gold); font-family:var(--font-display); font-size:10.5px; font-weight:700;
  letter-spacing:0.06em; text-transform:uppercase;
  padding:5px 10px; border-radius:999px;
  transition:border-color .3s ease, color .3s ease;
}
.team-card:hover .team-role-tag{ border-color:var(--face); color:var(--face); }

.team-body{ padding:20px 22px 0; text-align:center; }
.team-body h3{ font-size:17.5px; margin-bottom:4px; }
.team-body h3::after{
  content:""; display:block; width:0; height:2px; margin:8px auto 0;
  background:var(--face); border-radius:2px;
  transition:width .4s cubic-bezier(.2,.7,.2,1);
}
.team-card:hover .team-body h3::after{ width:32px; }
.team-body .team-title{
  display:block; color:var(--orange); font-size:12.5px; font-weight:600;
  font-family:var(--font-display); letter-spacing:0.03em; margin-bottom:12px;
  transition:color .3s ease;
}
.team-card:hover .team-body .team-title{ color:var(--face); }
.team-body p{ color:var(--muted); font-size:13.5px; margin-bottom:16px; }
.team-socials{ display:flex; justify-content:center; gap:10px; padding-top:4px; }
.team-socials a{
  width:32px; height:32px; border-radius:50%; border:1px solid var(--line-2);
  display:flex; align-items:center; justify-content:center; font-size:12px;
  color:var(--muted); transition:border-color .2s ease, color .2s ease, transform .2s ease;
}
.team-socials a:hover{ border-color:var(--face); color:var(--face); transform:translateY(-2px); }

@media (max-width:768px){
  .team-body{ padding:18px 18px 0; }
}

/* ============================================================
   Reactive hero cube — tilts gently toward the cursor
   ============================================================ */
.cube-stage{
  transition:transform .35s cubic-bezier(.2,.7,.2,1);
  transform-style:preserve-3d;
}
@media (hover:none){ .cube-stage{ transition:none !important; transform:none !important; } }

/* ============================================================
   Back-to-top — a small cube that "solves" itself back into place
   ============================================================ */
.to-top{
  position:fixed; right:22px; bottom:22px; z-index:900;
  width:48px; height:48px; border-radius:14px;
  background:var(--surface); border:1px solid var(--line-2);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 30px -12px rgba(0,0,0,0.6);
  opacity:0; transform:translateY(14px) scale(0.9); pointer-events:none;
  transition:opacity .3s ease, transform .3s ease, border-color .3s ease;
}
.to-top.visible{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.to-top:hover{ border-color:var(--orange); }
.to-top .mini-cube{
  width:16px; height:16px; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:2px;
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
}
.to-top .mini-cube span{ border-radius:2px; }
.to-top .mini-cube span:nth-child(1){ background:var(--orange); }
.to-top .mini-cube span:nth-child(2){ background:var(--gold); }
.to-top .mini-cube span:nth-child(3){ background:#33b46b; }
.to-top .mini-cube span:nth-child(4){ background:#4d6fd6; }
.to-top:hover .mini-cube{ transform:rotate(90deg); }
@media (max-width:600px){ .to-top{ right:16px; bottom:16px; width:44px; height:44px; } }

/* ============================================================
   PREMIUM ADD-ONS — badge, sparkles, magnetic buttons,
   confetti bursts, page transitions
   ============================================================ */

/* ---- Leadership badge above the team grid ---- */
.leadership-badge{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:20px;
  padding:9px 20px;
  border-radius:999px;
  font-family:var(--font-display); font-size:12.5px; font-weight:700; letter-spacing:0.05em;
  color:#16100A;
  background:linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow:0 10px 26px -10px rgba(255,106,26,0.55);
  animation:badgeFloat 3.4s ease-in-out infinite;
}
@keyframes badgeFloat{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-4px);} }
@media (prefers-reduced-motion:reduce){ .leadership-badge{ animation:none; } }

/* ---- Sparkle particles inside team card photo on hover (premium shimmer) ---- */
.team-sparkle{
  position:absolute; z-index:3; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle, #fff, transparent 70%);
  opacity:0; width:5px; height:5px;
}
.team-card:hover .team-sparkle{
  animation:sparklePop 1.1s ease-in-out infinite;
}
@keyframes sparklePop{
  0%{ opacity:0; transform:scale(0.4); }
  35%{ opacity:1; transform:scale(1.15); }
  100%{ opacity:0; transform:scale(0.3); }
}
@media (prefers-reduced-motion:reduce){ .team-sparkle{ display:none; } }

/* Elevate the team cards a touch further: deeper shadow + slight scale, so the
   leadership section reads as the most premium moment on the page. */
.team-card:hover{ transform:translateY(-10px) scale(1.015); }

/* ---- Magnetic buttons: JS sets --mx / --my within bounds on mousemove ---- */
.btn-magnetic{
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform .12s ease-out;
}
.btn-magnetic:not(:hover){ transition: transform .35s cubic-bezier(.2,.8,.2,1); }

/* ---- Confetti burst (small colored squares fired from a click point) ---- */
.confetti-piece{
  position:fixed; z-index:3000; top:0; left:0;
  width:7px; height:7px; border-radius:2px;
  pointer-events:none;
  will-change:transform, opacity;
}

/* ---- Page transition veil: fades the page out briefly on internal navigation ---- */
.page-veil{
  position:fixed; inset:0; z-index:2500;
  background:var(--bg);
  opacity:0; pointer-events:none;
  transition:opacity .28s ease;
}
.page-veil.active{ opacity:1; }

/* ---- Animated gradient blobs behind hero / page-hero / CTA band for extra
   color and depth without competing with the cube motif ---- */
.blob-field{
  position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0;
  border-radius:inherit;
}
.blob{
  position:absolute; border-radius:50%; filter:blur(60px); opacity:0.35;
  animation:blobDrift 16s ease-in-out infinite;
}
.blob.b1{ width:280px; height:280px; background:var(--orange); top:-60px; left:-40px; }
.blob.b2{ width:220px; height:220px; background:var(--gold); bottom:-40px; right:-20px; animation-duration:20s; animation-delay:-4s; }
.blob.b3{ width:180px; height:180px; background:#4d6fd6; top:40%; left:60%; animation-duration:24s; animation-delay:-9s; }
@keyframes blobDrift{
  0%,100%{ transform:translate(0,0) scale(1); }
  33%{ transform:translate(30px,-20px) scale(1.1); }
  66%{ transform:translate(-20px,20px) scale(0.95); }
}
@media (prefers-reduced-motion:reduce){ .blob{ animation:none; } }
.cta-band{ position:relative; overflow:hidden; }
.cta-band > *{ position:relative; z-index:1; }

/* ---- Kid-friendly wiggle: brief playful nudge on course/CTA buttons when
   they first scroll into view, drawing the eye without being distracting ---- */
@keyframes wiggleIn{
  0%{ transform:rotate(0deg); }
  20%{ transform:rotate(-3deg); }
  40%{ transform:rotate(3deg); }
  60%{ transform:rotate(-2deg); }
  80%{ transform:rotate(2deg); }
  100%{ transform:rotate(0deg); }
}
.wiggle-once{ animation:wiggleIn .6s ease-in-out; }

/* ============================================================
   SLIDESHOW — used by both the student achievements slider
   and the workshops / events slider on index.html
   ============================================================ */
.cz-slider{
  position:relative;
  max-width:1120px;
  margin:0 auto;
}
.cz-slider:focus{ outline:none; }
.cz-slider:focus-visible{ outline:2px solid var(--orange); outline-offset:14px; border-radius:24px; }

/* The 3D stage. Height is fixed so the absolutely positioned
   slides always have room; overflow keeps far slides clipped. */
.cz-viewport{
  position:relative;
  height:520px;
  perspective:1600px;
  overflow:hidden;
}
.cz-track{
  position:absolute;
  left:0; right:0; top:16px; bottom:40px;
  transform-style:preserve-3d;
}

.cz-slide{
  position:absolute;
  top:0; left:50%;
  width:330px; height:100%;
  margin-left:-165px;
  cursor:pointer;
  will-change:transform, opacity;
  transition:transform .7s cubic-bezier(.2,.7,.2,1),
             opacity .55s ease,
             filter .55s ease;
}
.cz-slide.is-active{ cursor:default; }

.cz-card{
  height:100%;
  display:flex; flex-direction:column;
  overflow:hidden;
  background:linear-gradient(180deg, var(--surface), var(--surface-2));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 30px 60px -26px rgba(0,0,0,0.75);
  transition:border-color .4s ease, box-shadow .4s ease;
}
.cz-slide.is-active .cz-card{
  border-color:rgba(255,106,26,0.45);
  box-shadow:0 34px 70px -24px rgba(0,0,0,0.85);
}

/* ---- photo area ---- */
.cz-media{
  position:relative;
  flex:0 0 auto;
  aspect-ratio:4 / 3;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.05), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--bg));
}
.cz-media img{
  width:100%; height:100%;
  object-fit:cover; display:block;
  filter:grayscale(0.12);
  transition:transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.cz-slide.is-active .cz-media img{ filter:grayscale(0); }
.cz-slide.is-active:hover .cz-media img{ transform:scale(1.05); }

/* small pill on the photo, same language as the team role tag */
.cz-badge{
  position:absolute; left:12px; top:12px; z-index:3;
  padding:5px 12px; border-radius:999px;
  background:rgba(11,11,12,0.72); backdrop-filter:blur(6px);
  border:1px solid var(--line-2);
  color:var(--gold);
  font-family:var(--font-display); font-size:10.5px; font-weight:700;
  letter-spacing:0.06em; text-transform:uppercase;
}
.cz-stars{
  position:absolute; right:12px; bottom:10px; z-index:3;
  color:var(--gold); font-size:13px; letter-spacing:2px;
  text-shadow:0 2px 6px rgba(0,0,0,0.7);
}

/* shown by script.js when a photo file is missing or misnamed */
.cz-missing{
  position:absolute; inset:0; z-index:2;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:6px;
  padding:16px; text-align:center;
  color:var(--gold);
  font-family:var(--font-body); font-size:12.5px; font-weight:600;
  background:repeating-linear-gradient(45deg,
    rgba(255,106,26,0.12) 0 12px, rgba(255,106,26,0.03) 12px 24px);
}
.cz-missing span{ font-weight:500; font-size:11.5px; color:var(--muted); word-break:break-all; }

/* ---- caption ---- */
.cz-caption{
  flex:1 1 auto;
  display:flex; flex-direction:column; gap:8px;
  padding:20px 22px 22px;
  overflow:hidden;
}
.cz-quote{
  color:var(--text); font-size:14.5px; line-height:1.55;
  display:-webkit-box; -webkit-box-orient:vertical;
  -webkit-line-clamp:4; line-clamp:4; overflow:hidden;
}
.cz-name{ font-family:var(--font-display); font-size:17px; font-weight:700; }
.cz-meta{ color:var(--muted); font-size:12.5px; }
.cz-tag{
  align-self:flex-start;
  font-family:var(--font-display); font-size:10.5px; font-weight:700;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--gold);
  background:var(--orange-dim); padding:5px 12px; border-radius:999px;
}
.cz-desc{
  color:var(--muted); font-size:13.5px; line-height:1.5;
  display:-webkit-box; -webkit-box-orient:vertical;
  -webkit-line-clamp:3; line-clamp:3; overflow:hidden;
}

/* ---- arrows ---- */
.cz-arrow{
  position:absolute; top:50%; z-index:20;
  transform:translateY(-50%);
  width:48px; height:48px; border-radius:50%;
  background:rgba(22,22,24,0.85); backdrop-filter:blur(8px);
  border:1px solid var(--line-2);
  color:var(--text);
  display:flex; align-items:center; justify-content:center;
  font-size:22px; line-height:1;
  transition:border-color .25s ease, color .25s ease, transform .25s ease;
}
.cz-arrow.prev{ left:8px; }
.cz-arrow.next{ right:8px; }
.cz-arrow:hover{ border-color:var(--orange); color:var(--gold); transform:translateY(-50%) scale(1.08); }

/* ---- progress bar and controls ---- */
.cz-progress{
  max-width:240px; margin:18px auto 0;
  height:3px; border-radius:3px;
  background:var(--line); overflow:hidden;
}
.cz-progress span{
  display:block; height:100%; width:0%;
  background:linear-gradient(90deg, var(--orange), var(--gold));
  border-radius:3px;
}
.cz-progress span.running{ animation:czFill var(--cz-duration, 4500ms) linear forwards; }
@keyframes czFill{ from{ width:0%; } to{ width:100%; } }

.cz-controls{
  display:flex; align-items:center; justify-content:center;
  gap:16px; flex-wrap:wrap; margin-top:16px;
}
.cz-counter{
  font-family:var(--font-display); font-size:12.5px; font-weight:600;
  letter-spacing:0.08em; color:var(--muted); font-variant-numeric:tabular-nums;
}
.cz-counter b{ color:var(--gold); }
.cz-dots{ display:flex; gap:9px; }
.cz-dots button{
  width:9px; height:9px; border-radius:50%; border:none;
  background:var(--line-2); padding:0;
  transition:width .3s ease, background .3s ease;
}
.cz-dots button.active{
  width:26px; border-radius:6px;
  background:linear-gradient(90deg, var(--orange), var(--gold));
}

/* ---- responsive ---- */
@media (max-width:1000px){
  .cz-viewport{ height:480px; }
  .cz-slide{ width:300px; margin-left:-150px; }
}
@media (max-width:768px){
  .cz-viewport{ height:450px; }
  .cz-slide{ width:260px; margin-left:-130px; }
  .cz-arrow{ width:40px; height:40px; font-size:18px; }
  .cz-caption{ padding:16px 18px 18px; }
  .cz-quote{ -webkit-line-clamp:3; line-clamp:3; }
}
@media (max-width:480px){
  .cz-viewport{ height:420px; }
  .cz-slide{ width:220px; margin-left:-110px; }
  .cz-arrow.prev{ left:2px; }
  .cz-arrow.next{ right:2px; }
}

@media (prefers-reduced-motion:reduce){
  .cz-slide{ transition:opacity .4s ease; }
  .cz-slide.is-active:hover .cz-media img{ transform:none; }
  .cz-progress span.running{ animation:none; width:100%; }
}