/* ============================================================
   Workshop Portal — Enhanced Styles (enhanced.css)
   Emancipation Edutech Pvt Ltd
   ============================================================ */

/* ── Logo in Navbar ─────────────────────────────────────── */
.nav-logo-img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

/* ── Admin Button ───────────────────────────────────────── */
.btn-admin {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  font-size: 13px;
}
.btn-admin:hover {
  background: linear-gradient(135deg, #0d1b5e, #1a237e);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Scroll Animation ───────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───────────────────────────────────────────────────────── */
/* ── HERO — Two-column layout on desktop ─────────────────  */
/* ───────────────────────────────────────────────────────── */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

/* LEFT column — text */
.hero-content {
  flex: 1;
  text-align: left;
  max-width: 600px;
}
.hero-content .hero-actions { justify-content: flex-start; }
.hero-content .hero-stats   { justify-content: flex-start; margin-top: 40px; }

/* RIGHT column — logo visual */
.hero-visual {
  flex: 0 0 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-glow {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255,255,255,.12);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 80px rgba(255,111,0,.2);
  animation: float 4s ease-in-out infinite;
}

.hero-float-card {
  position: absolute;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 2;
}
.hero-float-card.card-1 { top: 20px;    left: -30px;  animation: float 3s   ease-in-out infinite; }
.hero-float-card.card-2 { top: 20px;    right: -20px; animation: float 3.5s ease-in-out infinite .5s; }
.hero-float-card.card-3 { bottom: 60px; left: -20px;  animation: float 4s   ease-in-out infinite 1s; }
.hero-float-card.card-4 { bottom: 40px; right: -10px; animation: float 3.2s ease-in-out infinite 1.5s; }

/* background shapes */
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%; opacity: .06;
  background: radial-gradient(circle, #fff, transparent);
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -200px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -150px; }
.shape-3 { width: 200px; height: 200px; top: 30%; right: 30%; }

/* ── Marquee Banner ─────────────────────────────────────── */
.marquee-wrap {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: inline-flex;
  gap: 28px;
  animation: marquee 30s linear infinite;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .3px;
}
.marquee-track span { flex-shrink: 0; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ───────────────────────────────────────────────────────── */
/* ── About Section ───────────────────────────────────────  */
/* ───────────────────────────────────────────────────────── */
.about-logo-wrap {
  width: 120px; height: 120px;
  background: rgba(255,255,255,.15);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(255,255,255,.25);
  padding: 12px;
}
.about-logo {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.about-metrics {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-top: 24px;
}
.about-metric {
  text-align: center;
  background: rgba(255,255,255,.12);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
}
.about-metric strong { display: block; font-size: 22px; font-weight: 800; }
.about-metric span   { font-size: 11px; opacity: .75; }
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  transition: all .3s ease;
  text-decoration: none;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}

/* ───────────────────────────────────────────────────────── */
/* ── Topics Section ──────────────────────────────────────  */
/* ───────────────────────────────────────────────────────── */
.topics-section { background: #fff; }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.topic-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.topic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.topic-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; line-height: 1;
  margin: 0 auto 18px;
}
.topic-card h4   { font-size: 16px; color: var(--text-dark); margin-bottom: 4px; }
.topic-desc      { font-size: 12px; color: var(--text-light); margin-top: 8px; line-height: 1.6; }
.topic-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 12px;
}

/* ───────────────────────────────────────────────────────── */
/* ── Timeline Section ────────────────────────────────────  */
/* ───────────────────────────────────────────────────────── */
.timeline-section { background: var(--bg); }
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
  position: relative;
  width: 50%;
  padding-right: 48px;
}
.timeline-item.right {
  justify-content: flex-start;
  margin-left: 50%;
  padding-right: 0;
  padding-left: 48px;
}
.timeline-dot {
  position: absolute;
  right: -18px;
  top: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 800;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(26,35,126,.3);
}
.timeline-item.right .timeline-dot {
  right: auto; left: -18px;
}
.timeline-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  max-width: 340px;
}
.timeline-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.timeline-step {
  font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 8px;
}
.timeline-icon { font-size: 32px; margin-bottom: 8px; line-height: 1; }
.timeline-card h4 { font-size: 16px; color: var(--text-dark); margin-bottom: 4px; }
.timeline-card p  { font-size: 13px; color: var(--text-body); margin-top: 6px; }

/* ───────────────────────────────────────────────────────── */
/* ── Testimonials Section ────────────────────────────────  */
/* ───────────────────────────────────────────────────────── */
.testimonials-section { background: #fff; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex; flex-direction: column; gap: 16px;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.testimonial-rating { font-size: 18px; line-height: 1; }
.testimonial-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; color: var(--text-dark); }
.testimonial-author span   { font-size: 12px; color: var(--text-light); }

/* ───────────────────────────────────────────────────────── */
/* ── Certificate Section ─────────────────────────────────  */
/* ───────────────────────────────────────────────────────── */
.cert-features {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin: 24px 0;
}
.cert-feature {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.2);
}
.cert-cta {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-top: 32px;
}

/* ───────────────────────────────────────────────────────── */
/* ── FAQ Section ─────────────────────────────────────────  */
/* ───────────────────────────────────────────────────────── */
.faq-section { background: var(--bg); }
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary-light); }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: none; border: none;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  font-size: 22px; font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: var(--transition);
  line-height: 1;
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease;
}
.faq-answer.open { max-height: 300px; }
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ───────────────────────────────────────────────────────── */
/* ── Feedback CTA Section ────────────────────────────────  */
/* ───────────────────────────────────────────────────────── */
.feedback-cta-section {
  background: #fff;
  padding: 80px 0;
}
.feedback-cta-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.feedback-cta-text { flex: 1; }
.feedback-cta-visual {
  flex: 0 0 280px;
  display: flex; justify-content: center;
}
.cta-card-stack { position: relative; width: 240px; height: 260px; }
.cta-card {
  position: absolute;
  border-radius: var(--radius-md);
  width: 220px;
}
.cta-card-back {
  background: #e8eaf6;
  height: 200px; top: 20px; left: 10px;
  transform: rotate(-6deg);
}
.cta-card-mid {
  background: #c5cae9;
  height: 200px; top: 10px; left: 5px;
  transform: rotate(-3deg);
}
.cta-card-front {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 28px 24px;
  height: auto; top: 0; left: 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}
.cta-card-front h4 { font-size: 16px; margin-bottom: 6px; }
.cta-card-front p  { font-size: 12px; opacity: .8; }
.cert-pill {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ───────────────────────────────────────────────────────── */
/* ── Footer Enhanced ─────────────────────────────────────  */
/* ───────────────────────────────────────────────────────── */
.footer-logo-wrap {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.footer-logo {
  height: 40px; width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
  display: block;
}
.footer-social {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 16px;
}
.social-btn {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  font-size: 12px; font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all .3s ease;
  text-decoration: none;
}
.social-btn:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* ───────────────────────────────────────────────────────── */
/* ── Responsive ──────────────────────────────────────────  */
/* ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  .hero-content .hero-actions { justify-content: center; }
  .hero-content .hero-stats   { justify-content: center; }
  .hero-visual  { display: none; }        /* hide logo visual on tablets/mobile */
  .feedback-cta-inner { flex-direction: column; text-align: center; }
  .feedback-cta-visual { display: none; }
}

@media (max-width: 900px) {
  .timeline::before { left: 20px; }
  .timeline-item {
    width: 100%;
    padding-right: 0;
    padding-left: 60px;
    justify-content: flex-start;
  }
  .timeline-item.right {
    margin-left: 0;
    padding-left: 60px;
  }
  .timeline-dot { right: auto; left: 2px; }
  .timeline-item.right .timeline-dot { left: 2px; }
  .timeline-card { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-actions { display: none; }
  .nav-actions.open {
    display: flex; flex-direction: column;
    width: 100%; padding: 0 24px 20px;
    background: #fff;
  }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topics-grid { grid-template-columns: 1fr; }
  .cert-features { flex-direction: column; align-items: center; }
}

/* ============================================================
   Layout density overrides
   ============================================================ */

.hero-inner {
  gap: 44px;
}

.hero-content {
  max-width: 560px;
}

.hero-content .hero-stats {
  justify-content: stretch;
  margin-top: 32px;
}

.hero-visual {
  flex: 0 0 320px;
}

.hero-img-wrap {
  width: 300px;
  height: 300px;
}

.hero-logo-glow {
  width: 190px;
  height: 190px;
}

.marquee-wrap {
  padding: 12px 0;
}

.timeline-item {
  margin-bottom: 28px;
}

.timeline-card {
  max-width: 360px;
}

.feedback-cta-section {
  padding: 68px 0;
}

.feedback-cta-inner {
  gap: 40px;
}

.footer-social {
  gap: 10px;
}

@media (max-width: 1024px) {
  .hero-content .hero-stats {
    max-width: 620px;
  }
}

@media (max-width: 768px) {
  .nav-actions.open {
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }

  .hero-content .hero-stats {
    max-width: 100%;
  }

  .timeline-item {
    margin-bottom: 24px;
  }
}
