/* ==========================================================================
   Infoxcel Academy — Design System
   Bootstrap 5 provides layout/grid/components. This file holds only the
   brand tokens and the custom pieces Bootstrap doesn't offer.
   ========================================================================== */

:root {
  /* Brand palette */
  --ink: #16241d;
  --ink-soft: #4d5c53;
  --paper: #f7f9f4;
  --paper-raised: #ffffff;
  --primary: #0b6e4f;
  --primary-dark: #084430;
  --primary-tint: #e6f2ec;
  --accent: #e8a33d;
  --accent-dark: #c3811f;
  --support: #2454a6;
  --violet: #6d4aad;
  --indigo: #4f46e5;
  --line: #dfe6de;
  --danger: #c1432f;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Radii / shadow */
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(22, 36, 29, 0.08);
  --shadow-lift: 0 18px 40px rgba(22, 36, 29, 0.14);
}

/* ==========================================================================
   Base
   ========================================================================== */

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.font-display {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.text-primary-brand { color: var(--primary) !important; }
.text-accent { color: var(--accent-dark) !important; }
.bg-paper { background: var(--paper); }
.bg-primary-brand { background: var(--primary) !important; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.section-lede {
  color: var(--ink-soft);
  max-width: 640px;
}

.ledger-rule {
  border: none;
  border-top: 2px dashed var(--line);
  margin: 2.5rem 0;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar-brand-academy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand-academy img {
  height: 46px;
  width: 46px;
  object-fit: cover;
  border-radius: 10px;
}

.navbar-brand-academy .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-brand-academy .brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.navbar-brand-academy .brand-text span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.site-navbar {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.site-navbar .nav-link {
  color: var(--ink);
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.site-navbar .nav-link.active {
  color: var(--primary);
}

.site-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--accent);
}

.btn-enroll-nav {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
}

.btn-enroll-nav:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* ==========================================================================
   Buttons (brand variants layered on top of Bootstrap's btn)
   ========================================================================== */

.btn-brand-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
}

.btn-brand-primary:hover,
.btn-brand-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-brand-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
  border-radius: 10px;
}

.btn-brand-accent:hover,
.btn-brand-accent:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--ink);
}

.btn-brand-outline {
  background: transparent;
  border: 2px solid var(--paper-raised);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
}

.btn-brand-outline:hover {
  background: var(--paper-raised);
  color: var(--primary-dark);
}

.btn-brand-support {
  background: var(--support);
  border-color: var(--support);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
}

.btn-brand-support:hover {
  background: #1c3f80;
  border-color: #1c3f80;
  color: #fff;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 65%, #0f8a63 100%);
  color: #fff;
  overflow: hidden;
  padding: 5.5rem 0 6rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(232, 163, 61, 0.28), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 26px);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 560px;
}

/* Admit-card / ticket-stub panel signature element */
.admit-card {
  background: var(--paper-raised);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1.75rem;
  position: relative;
}

.admit-card::before,
.admit-card::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--paper);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.admit-card::before { left: -13px; }
.admit-card::after { right: -13px; }

.admit-card .stub-row {
  display: flex;
  justify-content: space-between;
  border-top: 2px dashed var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.admit-card .stub-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  display: block;
}

.admit-card .stub-value {
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   Stat / trust strip
   ========================================================================== */

.stat-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  height: 100%;
}

.stat-card .stat-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-card:hover {
  transform: translateY(-6px);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.stat-card:hover .stat-number {
  color: var(--accent);
}

/* ==========================================================================
   Course cards (pricing = ledger receipt styling)
   ========================================================================== */

.course-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.course-card .course-card-top {
  padding: 1.5rem 1.5rem 0;
}

.course-card .course-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--primary-tint);
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Color variants so the course grid reads as distinct programs at a glance */
.course-card[data-accent="support"] .course-icon { background: #e8eff9; color: var(--support); }
.course-card[data-accent="support"] .price-now { color: var(--support); }
.course-card[data-accent="accent"] .course-icon { background: #fbeed9; color: var(--accent-dark); }
.course-card[data-accent="accent"] .price-now { color: var(--accent-dark); }
.course-card[data-accent="violet"] .course-icon { background: #ece5f7; color: var(--violet); }
.course-card[data-accent="violet"] .price-now { color: var(--violet); }
.course-card[data-accent="indigo"] .course-icon { background: #e8e7fb; color: var(--indigo); }
.course-card[data-accent="indigo"] .price-now { color: var(--indigo); }

.course-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.course-card .course-duration {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-card ul.course-points {
  list-style: none;
  padding: 1.25rem 1.5rem 0;
  margin: 0;
  flex-grow: 1;
}

.course-card ul.course-points li {
  padding: 0.35rem 0;
  color: var(--ink-soft);
  display: flex;
  gap: 0.55rem;
}

.course-card ul.course-points li i {
  color: var(--primary);
  margin-top: 0.2rem;
}

.course-price-strip {
  border-top: 2px dashed var(--line);
  margin: 1.25rem 1.5rem 0;
  padding-top: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.course-price-strip .price-now {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
}

.course-price-strip .price-old {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #9aa79e;
  text-decoration: line-through;
}

.course-card-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.course-card-actions .btn {
  flex: 1;
}

/* Detail page hero pill for icon/emoji */
.detail-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 0.6rem;
  color: var(--ink-soft);
}

.detail-list li:last-child { border-bottom: none; }

.detail-list li i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.detail-list.benefits li i { color: var(--accent-dark); }

.sticky-enroll {
  position: sticky;
  top: 90px;
}

/* ==========================================================================
   Cards / features generic
   ========================================================================== */

.feature-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
}

.feature-card .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(232, 163, 61, 0.25), transparent 55%);
}

.cta-band > * { position: relative; z-index: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
}

.site-footer h5 {
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* ==========================================================================
   WhatsApp float
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-lift);
  z-index: 999;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: #fff;
}

/* ==========================================================================
   Blog
   ========================================================================== */

.blog-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .blog-card-body {
  padding: 1.4rem;
}

.blog-category-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--primary-tint);
  color: var(--primary);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  display: inline-block;
}

.blog-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0.6rem 0;
}

.blog-meta i { color: var(--primary); }

.blog-hero-banner {
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 420px;
}

.blog-hero-banner img {
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--primary-tint);
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 2rem 0;
}

.article-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.article-body h2 {
  margin-top: 2.2rem;
  font-size: 1.6rem;
}

.article-body p {
  line-height: 1.85;
  color: var(--ink-soft);
}

.share-buttons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  color: var(--ink);
}

.share-buttons a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.comment-item {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}

.related-post-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.related-post-card img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.pager-nav .btn {
  text-align: left;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
}

.contact-info-row {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--line);
}

.contact-info-row:last-child { border-bottom: none; }

.contact-info-row .icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(11, 110, 79, 0.15);
}

/* Loader overlay for form submission */
#formLoader {
  position: fixed;
  inset: 0;
  background: rgba(247, 249, 244, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2000;
}

#formLoader .spinner-border {
  color: var(--primary);
  width: 3rem;
  height: 3rem;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.brand-breadcrumb {
  background: var(--primary-tint);
  padding: 0.9rem 0;
}

.brand-breadcrumb .breadcrumb {
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ==========================================================================
   Utility animations
   ========================================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease both;
}

/* ==========================================================================
   Small utilities (replace one-off inline styles)
   ========================================================================== */

.max-w-band { max-width: 560px; }
.map-frame { height: 380px; border: 0; }
.price-now-lg { font-size: 2.2rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
