/* ========================================================
   ProAcademy Suite – Public Styles
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Variables ────────────────────────────────────────── */
:root {
  --pas-pub-accent:   #6c63ff;
  --pas-pub-accent2:  #00d4aa;
  --pas-pub-text:     #1e293b;
  --pas-pub-muted:    #64748b;
  --pas-pub-bg:       #f8fafc;
  --pas-pub-white:    #ffffff;
  --pas-pub-border:   #e2e8f0;
  --pas-pub-radius:   12px;
  --pas-pub-shadow:   0 4px 20px rgba(0,0,0,.08);
  --pas-pub-shadow-lg:0 12px 40px rgba(0,0,0,.12);
}

/* ── Post Title Before Featured Image ─────────────────── */
.pas-post-title-wrap {
  margin: 0 0 24px;
}
.pas-post-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--pas-pub-text);
  margin: 0;
}

/* ── Post + Sidebar Layout ────────────────────────────── */
.pas-post-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  position: relative;
}
.pas-post-main-content { min-width: 0; }

/* Recent posts sidebar */
.pas-recent-posts-sidebar {
  position: sticky;
  top: 24px;
  background: var(--pas-pub-white);
  border: 1px solid var(--pas-pub-border);
  border-radius: var(--pas-pub-radius);
  overflow: hidden;
  box-shadow: var(--pas-pub-shadow);
  order: -1; /* Left side */
}
.pas-rp-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--pas-pub-text);
  margin: 0;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f1f5f9, #e8ecf1);
  border-bottom: 1px solid var(--pas-pub-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pas-rp-list { list-style: none; margin: 0; padding: 8px; }
.pas-rp-item { margin-bottom: 4px; }
.pas-rp-link {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
  align-items: flex-start;
}
.pas-rp-link:hover { background: var(--pas-pub-bg); }
.pas-rp-thumb {
  width: 64px; height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pas-pub-bg);
}
.pas-rp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pas-rp-no-img { width: 100%; height: 100%; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.pas-rp-info { flex: 1; min-width: 0; }
.pas-rp-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--pas-pub-accent);
  margin-bottom: 4px;
}
.pas-rp-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--pas-pub-text);
  margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pas-rp-date { font-size: 11px; color: var(--pas-pub-muted); }

/* ── Components – Shared ──────────────────────────────── */
.pas-component { font-family: 'Plus Jakarta Sans', sans-serif; }
.pas-section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--pas-pub-text);
  text-align: center;
  margin: 0 0 40px;
}

/* ── FAQ Accordion ────────────────────────────────────── */
.pas-faq-section { padding: 60px 0; }
.pas-faq-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--pas-pub-text);
  margin: 0 0 32px;
  text-align: center;
}
.pas-accordion { max-width: 720px; margin: 0 auto; }
.pas-accordion-item {
  border: 1px solid var(--pas-pub-border);
  border-radius: var(--pas-pub-radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--pas-pub-white);
  box-shadow: var(--pas-pub-shadow);
  transition: box-shadow .2s;
}
.pas-accordion-item.open { box-shadow: var(--pas-pub-shadow-lg); border-color: var(--pas-pub-accent); }
.pas-accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--pas-pub-text);
  text-align: left;
  transition: background .15s;
}
.pas-accordion-trigger:hover { background: var(--pas-pub-bg); }
.pas-accord-icon {
  width: 20px; height: 20px;
  stroke: var(--pas-pub-muted);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  flex-shrink: 0;
  transition: transform .25s;
}
.pas-accordion-trigger[aria-expanded="true"] .pas-accord-icon { transform: rotate(180deg); stroke: var(--pas-pub-accent); }
.pas-accordion-body { overflow: hidden; }
.pas-accordion-content {
  padding: 4px 20px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pas-pub-muted);
}

/* ── CTA Banner ───────────────────────────────────────── */
.pas-cta-banner {
  border-radius: var(--pas-pub-radius);
  padding: 60px 24px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.pas-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.05);
  background-image: radial-gradient(circle at 80% 50%, rgba(255,255,255,.12) 0%, transparent 60%);
}
.pas-cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.pas-cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 12px; }
.pas-cta-banner p  { color: rgba(255,255,255,.85); font-size: 16px; margin: 0 0 28px; }
.pas-cta-btn {
  display: inline-flex; align-items: center;
  background: #fff;
  color: #1e293b;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.pas-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.3); }

/* ── Feature Grid ─────────────────────────────────────── */
.pas-feature-grid { padding: 60px 0; }
.pas-features-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.pas-feature-card {
  background: var(--pas-pub-white);
  border: 1px solid var(--pas-pub-border);
  border-radius: var(--pas-pub-radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--pas-pub-shadow);
  transition: transform .2s, box-shadow .2s;
}
.pas-feature-card:hover { transform: translateY(-4px); box-shadow: var(--pas-pub-shadow-lg); }
.pas-feat-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.pas-feature-card h3 { font-size: 15px; font-weight: 700; color: var(--pas-pub-text); margin: 0 0 8px; }
.pas-feature-card p  { font-size: 13px; color: var(--pas-pub-muted); margin: 0; line-height: 1.6; }

/* ── Stats Counter ────────────────────────────────────── */
.pas-stats { padding: 60px 0; background: var(--pas-pub-white); }
.pas-stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}
.pas-stat-item { text-align: center; }
.pas-stat-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--pas-pub-accent);
  line-height: 1;
}
.pas-stat-suffix { font-size: 1.5rem; font-weight: 800; color: var(--pas-pub-accent); }
.pas-stats .pas-stat-label { font-size: 14px; color: var(--pas-pub-muted); margin-top: 6px; display: block; }

/* ── Countdown ────────────────────────────────────────── */
.pas-countdown {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border-radius: var(--pas-pub-radius);
  padding: 40px 24px;
  text-align: center;
  margin: 32px 0;
}
.pas-countdown-title { color: rgba(255,255,255,.8); font-size: 16px; font-weight: 600; margin: 0 0 20px; }
.pas-countdown-timer { display: flex; justify-content: center; gap: 16px; align-items: center; flex-wrap: wrap; }
.pas-cd-unit { text-align: center; }
.pas-cd-unit span {
  display: block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  min-width: 70px;
}
.pas-cd-unit small { display: block; font-size: 11px; color: rgba(255,255,255,.6); margin-top: 6px; text-transform: uppercase; letter-spacing: .5px; }
.pas-cd-sep { font-size: 2rem; font-weight: 800; color: rgba(255,255,255,.5); margin-top: -18px; }

/* ── Testimonials ─────────────────────────────────────── */
.pas-testimonials { padding: 60px 0; }
.pas-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.pas-testimonial-card {
  background: var(--pas-pub-white);
  border: 1px solid var(--pas-pub-border);
  border-radius: var(--pas-pub-radius);
  padding: 24px;
  box-shadow: var(--pas-pub-shadow);
}
.pas-test-text { font-size: 14px; line-height: 1.7; color: var(--pas-pub-text); margin: 0 0 14px; font-style: italic; }
.pas-test-stars { color: #f59e0b; font-size: 16px; display: block; margin-bottom: 10px; }
.pas-test-author { font-size: 13px; font-weight: 700; color: var(--pas-pub-text); }

/* ── Progress Bars ────────────────────────────────────── */
.pas-progress-bars { padding: 40px 0; }
.pas-progress-item { margin-bottom: 20px; }
.pas-progress-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--pas-pub-text); margin-bottom: 7px; }
.pas-progress-track { background: var(--pas-pub-bg); border-radius: 50px; height: 8px; overflow: hidden; }
.pas-progress-fill { height: 100%; border-radius: 50px; transition: width 1.2s ease; }

/* ── Scroll to top ────────────────────────────────────── */
.pas-scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--pas-pub-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(108,99,255,.4);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, visibility .25s, transform .25s;
  z-index: 9999;
}
.pas-scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.pas-scroll-top:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,99,255,.5); }
.pas-scroll-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; }

/* ── Notice bar ───────────────────────────────────────── */
.pas-notice-bar {
  padding: 12px 48px 12px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  position: relative;
}
.pas-notice-sticky { position: sticky; top: 0; z-index: 9998; }
.pas-notice-bar p  { margin: 0; }
.pas-notice-close {
  position: absolute; top: 50%; right: 14px;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(255,255,255,.7); font-size: 18px;
  cursor: pointer; line-height: 1; padding: 4px;
}
.pas-notice-close:hover { color: #fff; }

/* ── Floating box ─────────────────────────────────────── */
.pas-floating-box {
  position: fixed;
  z-index: 9998;
  background: var(--pas-pub-white);
  border: 1px solid var(--pas-pub-border);
  border-radius: var(--pas-pub-radius);
  padding: 14px 18px;
  box-shadow: var(--pas-pub-shadow-lg);
  max-width: 280px;
  font-size: 14px;
  color: var(--pas-pub-text);
}
.pas-float-bottom-right { bottom: 24px; right: 24px; }
.pas-float-bottom-left  { bottom: 24px; left: 24px; }
.pas-float-top-right    { top: 80px;    right: 24px; }
.pas-float-top-left     { top: 80px;    left: 24px; }

/* ── Animations ───────────────────────────────────────── */
@keyframes pas-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pas-animate-up { opacity: 0; animation: pas-fade-up .5s ease forwards; }
.pas-animate-up:nth-child(1) { animation-delay: .05s; }
.pas-animate-up:nth-child(2) { animation-delay: .12s; }
.pas-animate-up:nth-child(3) { animation-delay: .19s; }
.pas-animate-up:nth-child(4) { animation-delay: .26s; }
.pas-animate-up:nth-child(5) { animation-delay: .33s; }
.pas-animate-up:nth-child(6) { animation-delay: .40s; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .pas-post-with-sidebar {
    grid-template-columns: 1fr;
  }
  .pas-recent-posts-sidebar {
    order: 1;
    position: static;
  }
}
@media (max-width: 600px) {
  .pas-scroll-top  { bottom: 16px; right: 16px; }
  .pas-cd-unit span { font-size: 1.4rem; min-width: 50px; padding: 10px 12px; }
}
