/* ============================================================
   iPAS Training Page — Purple Hero + Specific Styles
   Only loaded on academy-ipas.html
   ============================================================ */

/* ============================================================
   iPAS HERO — Full viewport purple gradient
   ============================================================ */
.ipas-hero {
  position: relative; min-height: 100vh;
  background: linear-gradient(135deg, #3C1432 0%, #5000E6 60%, #6B1AFF 100%);
  display: flex; align-items: center; overflow: hidden;
}
/* Animated radial glows */
.ipas-hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(252,206,51,0.2) 0%, transparent 70%);
  border-radius: 50%; animation: pulse-glow 6s ease-in-out infinite;
}
.ipas-hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(252,206,51,0.08) 0%, transparent 70%);
  border-radius: 50%; animation: pulse-glow 8s ease-in-out infinite reverse;
}
/* Grid pattern overlay */
.ipas-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.8; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO CONTENT
   ============================================================ */
/* Center-aligned layout — stacked vertically */
.ipas-hero-content {
  position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto;
  padding: 120px 40px 80px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* Hero badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(252,206,51,0.12); border: 1px solid rgba(252,206,51,0.3);
  border-radius: 50px; padding: 8px 20px; font-size: 13px;
  color: var(--ipas-gold); font-weight: 500; letter-spacing: 0.5px;
  margin-bottom: 24px; animation: fadeInUp 0.8s ease-out;
}

/* Hero h1 */
.ipas-hero h1 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 56px);
  font-weight: 900; color: var(--text-inv); line-height: 1.15;
  margin-bottom: 20px; animation: fadeInUp 0.8s ease-out 0.1s both;
}
.ipas-hero h1 .highlight {
  background: linear-gradient(135deg, #FCCE33, #DD1D54);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Hero description */
.hero-desc {
  font-size: 17px; color: rgba(250,250,247,0.65); line-height: 1.75;
  margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Hero buttons */
.ipas-hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.3s both; margin-bottom: 48px;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; font-size: 16px; font-weight: 700; border-radius: 10px;
  text-decoration: none; transition: all 0.3s; border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px rgba(196,132,75,0.3);
}
.btn-hero-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; font-size: 16px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
  text-decoration: none; transition: all 0.3s; cursor: pointer;
  background: transparent; color: var(--text-inv);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

/* ============================================================
   FROSTED GLASS CERT CARD
   ============================================================ */
.ipas-hero-visual { animation: fadeInUp 1s ease-out 0.4s both; display: flex; justify-content: center; width: 100%; }
.cert-card {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  padding: 36px; width: 360px; position: relative;
}
.cert-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.cert-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--ipas-gold), var(--ipas-coral));
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.cert-card-header h3 { color: var(--text-inv); font-family: var(--serif); font-size: 18px; font-weight: 700; }
.cert-card-header p { color: rgba(250,250,247,0.5); font-size: 13px; }
.cert-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-item { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 16px; text-align: center; }
.stat-number { font-size: 28px; font-weight: 700; color: var(--ipas-gold); }
.stat-label { font-size: 12px; color: rgba(250,250,247,0.5); margin-top: 4px; }
.floating-tag {
  position: absolute; border-radius: 10px; padding: 10px 18px;
  font-size: 13px; font-weight: 600; animation: float 4s ease-in-out infinite;
}
.floating-tag.tag-1 {
  top: -20px; right: -30px;
  background: rgba(252,206,51,0.15); border: 1px solid rgba(252,206,51,0.3); color: var(--ipas-gold);
}
.floating-tag.tag-2 {
  bottom: -20px; left: -20px; animation-delay: 2s;
  background: rgba(221,29,84,0.15); border: 1px solid rgba(221,29,84,0.3); color: var(--ipas-coral);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--bg-dark); padding: 24px 40px; }
.trust-bar .container {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center;
}
.trust-bar-item { font-size: 13px; font-weight: 500; color: rgba(250,250,247,0.55); letter-spacing: 0.04em; }
.trust-bar-item strong { color: var(--accent-light); font-weight: 600; }

/* ============================================================
   COURSE CARDS
   ============================================================ */
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;
}
.course-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: all 0.3s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.course-card.featured { border: 2px solid var(--accent); }

.course-level { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: center; }
.level-badge {
  font-size: 11px; font-weight: 700; padding: 5px 12px;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.08em;
}
.level-beginner { background: rgba(80,0,230,0.08); color: var(--ipas-violet); }
.level-intermediate { background: rgba(196,132,75,0.1); color: var(--accent-dark); }
.level-combo { background: var(--ipas-purple); color: var(--ipas-gold); }
.course-hours { font-size: 12px; color: var(--text-light); }

.course-body { padding: 16px 24px 24px; }
.course-body h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.course-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.course-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-tag { font-size: 11px; padding: 4px 10px; background: var(--bg-alt); color: var(--text); border-radius: 5px; font-weight: 500; }

.course-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-top: 1px solid var(--border);
}
.price-amount { font-size: 26px; font-weight: 700; color: var(--text); }
.price-unit { font-size: 13px; color: var(--text-light); }
.price-note { font-size: 12px; color: var(--ipas-coral); font-weight: 500; margin-top: 2px; }
.course-enroll {
  padding: 10px 24px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; border: none; border-radius: 8px;
  cursor: pointer; text-decoration: none; transition: all 0.25s;
}
.course-enroll:hover { background: var(--accent-dark); }
.course-enroll.featured {
  background: linear-gradient(135deg, var(--ipas-gold), var(--ipas-coral));
  color: var(--ipas-purple);
}
.course-enroll.featured:hover { opacity: 0.9; }

/* ============================================================
   CURRICULUM SECTION
   ============================================================ */
.curriculum-section { background: var(--bg-alt); padding: 80px 40px; }
.curriculum-inner { max-width: var(--max-w); margin: 0 auto; }
.curriculum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.curriculum-panel {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px;
}
.curriculum-panel h3 {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.panel-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  font-size: 12px; font-weight: 700;
}
.panel-tag-l1 { background: rgba(80,0,230,0.1); color: var(--ipas-violet); }
.panel-tag-l2 { background: rgba(196,132,75,0.12); color: var(--accent-dark); }
.curr-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.curr-item:last-child { border-bottom: none; }
.curr-num {
  width: 26px; height: 26px; border-radius: 7px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--ipas-violet); flex-shrink: 0; margin-top: 2px;
}
.curr-text { font-size: 14px; color: var(--text); line-height: 1.6; }
.curr-text strong { display: block; font-weight: 600; margin-bottom: 2px; }

/* ============================================================
   EXAM INFO SECTION
   ============================================================ */
.exam-section { background: var(--bg-alt); padding: 80px 40px; }
.exam-inner { max-width: var(--max-w); margin: 0 auto; }
.exam-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px; margin-top: 32px;
}
.exam-card h3 {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 16px;
}
.exam-note { font-size: 14px; color: var(--text-light); line-height: 1.8; margin-bottom: 8px; }
.exam-note strong { color: var(--text); }
.exam-note a { color: var(--ipas-violet); font-weight: 600; text-decoration: underline; }
.exam-note a:hover { color: var(--ipas-coral); }

.exam-subjects { display: flex; gap: 16px; margin: 20px 0; flex-wrap: wrap; }
.exam-subject {
  flex: 1; min-width: 200px;
  background: rgba(80,0,230,0.05); border: 1px solid rgba(80,0,230,0.12);
  border-radius: 12px; padding: 16px 20px;
}
.exam-subject .subj-label {
  font-size: 12px; font-weight: 700; color: var(--ipas-violet);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.exam-subject .subj-name { font-size: 15px; font-weight: 600; color: var(--text); }

.schedule-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px; margin: 16px 0;
}
.schedule-item {
  background: var(--bg-alt); border-radius: 12px; padding: 16px;
  display: flex; align-items: center; gap: 14px;
}
.schedule-batch {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ipas-violet), var(--ipas-purple));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.schedule-info { font-size: 14px; color: var(--text); line-height: 1.5; }
.schedule-info .date { font-weight: 700; }
.schedule-info .reg { font-size: 12px; color: var(--text-light); }

.exam-policy {
  margin-top: 24px; background: rgba(252,206,51,0.1);
  border: 1px solid rgba(252,206,51,0.25); border-radius: 12px;
  padding: 20px 24px; font-size: 14px; color: var(--text); line-height: 1.8;
}
.exam-policy strong { color: var(--ipas-coral); }

/* ============================================================
   WHY US SECTION
   ============================================================ */
.why-section { background: var(--bg-dark); padding: 80px 40px; }
.why-inner { max-width: var(--max-w); margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 28px; transition: all 0.3s;
}
.why-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-3px); }
.why-icon { font-size: 28px; margin-bottom: 16px; }
.why-card h3 { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--text-inv); margin-bottom: 8px; }
.why-card p { font-size: 13px; color: rgba(250,250,247,0.55); line-height: 1.7; }

/* ============================================================
   INSTRUCTORS
   ============================================================ */
.instructor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.instructor-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; transition: all 0.3s;
}
.instructor-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.instructor-header { margin-bottom: 16px; }
.instructor-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.instructor-title { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0; }
.instructor-section { margin-bottom: 16px; }
.instructor-section h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; }
.instructor-list { list-style: none; }
.instructor-list li {
  font-size: 0.85rem; color: var(--text-light); line-height: 1.7;
  padding-left: 16px; position: relative;
}
.instructor-list li::before { content: '\25B8'; position: absolute; left: 0; color: var(--accent); }
.instructor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.inst-tag { font-size: 11px; padding: 4px 10px; background: var(--bg-alt); color: var(--text); border-radius: 5px; font-weight: 600; }

/* ============================================================
   iPAS CTA SECTION
   ============================================================ */
.ipas-cta-section { padding: 100px 0; text-align: center; }
.ipas-cta-card {
  max-width: 800px; margin: 0 auto; border-radius: 20px;
  padding: 56px 44px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ipas-purple), var(--ipas-violet));
}
.ipas-cta-card::before {
  content: ''; position: absolute; top: -40%; right: -25%;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(252,206,51,0.1) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.ipas-cta-card h2 {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 900;
  color: var(--text-inv); margin-bottom: 12px; position: relative; z-index: 1;
}
.ipas-cta-card p {
  font-size: 0.95rem; color: rgba(250,250,247,0.6); margin-bottom: 28px;
  position: relative; z-index: 1; line-height: 1.7;
}
.ipas-cta-card .cta-btn {
  background: var(--ipas-gold); color: var(--ipas-purple);
  box-shadow: 0 4px 20px rgba(252,206,51,0.25);
}
.ipas-cta-card .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(252,206,51,0.4); }

/* ============================================================
   COURSE SCHEDULE (inside course card)
   ============================================================ */
.course-schedule {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 10px;
  border-left: 3px solid var(--ipas-accent, #6366f1);
}
.course-schedule h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text, #1a1a2e);
}
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.schedule-list li {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted, #555);
}
.schedule-list li strong {
  color: var(--text, #1a1a2e);
}

/* ============================================================
   RESPONSIVE — 900px
   ============================================================ */
@media (max-width: 900px) {
  .ipas-hero-content { padding: 100px 24px 60px; }
  .cert-card { width: 100%; max-width: 360px; }
  .curriculum-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — 600px
   ============================================================ */
@media (max-width: 600px) {
  .courses-grid { grid-template-columns: 1fr; }
  .curriculum-section, .exam-section, .why-section { padding: 60px 20px; }
  .ipas-cta-card { padding: 40px 24px; }
  .ipas-cta-card h2 { font-size: 1.3rem; }
  .ipas-hero-actions { flex-direction: column; align-items: center; }
}
