/* =============================================
   IXP Self-Learning Course - main.css
   UiPath Brand: Robotic Orange #FA4616,
   Deep Blue #182126, Agentic Teal #0BA2B3
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --uipath-orange:       #FA4616;
  --uipath-orange-dark:  #CE340B;
  --uipath-orange-light: #FDE8E1;
  --uipath-teal:         #0BA2B3;
  --uipath-teal-light:   #A5E2F0;
  --uipath-dark:         #182126;
  --uipath-dark-2:       #2D373C;
  --uipath-dark-3:       #3C464B;
  --gray-50:  #F6F6F6;
  --gray-100: #EBEBEB;
  --gray-200: #D9D9D9;
  --gray-400: #9D9D9D;
  --gray-600: #616161;
  --gray-700: #484848;
  --gray-800: #343434;
  --white:    #FFFFFF;
  --success:  #10B981;
  --warning:  #F59E0B;
  --info:     #3B82F6;
  --font-head: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --radius:   0px;
  --radius-lg: 0px;
  --shadow:   0 1px 4px rgba(0,0,0,.10);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); line-height: 1.7; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.25; color: var(--uipath-dark); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
a  { color: var(--uipath-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 600; }
code { font-family: 'Consolas', 'Menlo', monospace; font-size: 0.88em; background: var(--gray-100); padding: 0.1em 0.4em; border-radius: 3px; }

/* ---- Top Navigation ---- */
.site-header {
  background: var(--uipath-dark);
  color: var(--white);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.site-header .logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.site-header .logo-icon {
  width: 32px; height: 32px;
  background: var(--uipath-orange);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800; color: #fff; font-size: 1rem;
}
.site-header .logo-text { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--white); }
.site-header .logo-text span { color: var(--uipath-orange); }
.site-header nav a {
  color: rgba(255,255,255,.75);
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 1.75rem;
  text-decoration: none;
  transition: color .15s;
}
.site-header nav a:hover { color: var(--white); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--uipath-dark) 0%, #1E3A45 55%, #0f2935 100%);
  color: var(--white);
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(11,162,179,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(250,70,22,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; letter-spacing: -.02em; position: relative; }
.hero h1 span { color: var(--uipath-orange); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.78); max-width: 660px; margin: 0 auto 2rem; position: relative; }
.hero-badges { display: flex; gap: 0.65rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---- Main Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--gray-100); }
.section-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--uipath-dark); letter-spacing: -.02em; }
.section-title span { color: var(--uipath-orange); }
.section-subtitle { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 2rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: background .2s, box-shadow .2s, transform .1s;
  text-decoration: none;
  letter-spacing: -.01em;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--uipath-orange); color: var(--white); box-shadow: 0 2px 8px rgba(250,70,22,.35); }
.btn-primary:hover { background: var(--uipath-orange-dark); box-shadow: 0 4px 14px rgba(250,70,22,.45); text-decoration: none; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); text-decoration: none; color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--uipath-orange); border: 1.5px solid var(--uipath-orange); }
.btn-outline-dark:hover { background: var(--uipath-orange-light); text-decoration: none; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-teal { background: var(--uipath-teal); color: var(--white); }
.btn-teal:hover { background: #15839A; text-decoration: none; color: var(--white); }

/* ---- Progress Bar ---- */
.progress-bar-wrap { background: var(--gray-200); border-radius: 999px; height: 7px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--uipath-orange), #FA7678); border-radius: 999px; transition: width .5s ease; }

/* ---- Progress Summary ---- */
.progress-summary {
  background: linear-gradient(135deg, var(--uipath-dark) 0%, var(--uipath-dark-2) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.progress-summary-text { flex: 1; min-width: 200px; }
.progress-summary-text h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.25rem; }
.progress-summary-text p { color: rgba(255,255,255,.6); font-size: 0.82rem; margin: 0 0 0.9rem; }
.progress-summary-text .progress-bar-wrap { background: rgba(255,255,255,.18); }
.progress-summary-text .progress-bar-fill { background: linear-gradient(90deg, var(--uipath-orange), #FA7678); }
.progress-numbers { display: flex; gap: 2.5rem; }
.progress-numbers .stat { text-align: center; }
.progress-numbers .stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--uipath-orange); line-height: 1; }
.progress-numbers .stat .label { font-size: 0.72rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; margin-top: 0.2rem; }

/* ---- Feature Cards (What is IXP) ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.75rem; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.feature-card--orange::before { background: var(--uipath-orange); }
.feature-card--teal::before   { background: var(--uipath-teal); }
.feature-card--blue::before   { background: #1E6482; }
.feature-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}
.feature-card--orange .icon-wrap { background: var(--uipath-orange-light); }
.feature-card--teal .icon-wrap   { background: #D6F5F8; }
.feature-card--blue .icon-wrap   { background: #DCEEF5; }
.feature-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--uipath-dark); }
.feature-card p  { font-size: 0.83rem; color: var(--gray-600); margin: 0; line-height: 1.55; }

/* ---- Prerequisites ---- */
.prereq-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--uipath-teal);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.75rem 2rem;
}
.prereq-box h3 { margin-bottom: 0.75rem; color: var(--uipath-dark); }
.prereq-box ul li { font-size: 0.9rem; margin-bottom: 0.5rem; }
.prereq-box p { font-size: 0.875rem; color: var(--gray-600); margin: 0; }

/* ---- Module Cards Grid ---- */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

.module-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
  position: relative;
  box-shadow: var(--shadow);
}
.module-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.module-card__band {
  height: 6px;
  background: linear-gradient(90deg, var(--uipath-orange), #FA7678);
}
.module-card.completed .module-card__band {
  background: linear-gradient(90deg, var(--success), #34d399);
}

.module-card__body { padding: 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }

.module-card__tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--uipath-orange-light);
  color: var(--uipath-orange-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  align-self: flex-start;
}
.module-card__tag--teal { background: #D6F5F8; color: #15839A; }
.module-card__tag--gray { background: var(--gray-100); color: var(--gray-600); }

.module-card__number { font-size: 0.72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .07em; margin-top: 0.1rem; }
.module-card__title  { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--uipath-dark); line-height: 1.35; }
.module-card__desc   { font-size: 0.83rem; color: var(--gray-600); flex: 1; line-height: 1.55; }
.module-card__meta   { display: flex; gap: 0.75rem; font-size: 0.76rem; color: var(--gray-400); flex-wrap: wrap; }
.module-card__meta span { display: flex; align-items: center; gap: 0.25rem; }

.module-card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
}
.module-card__status { font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; gap: 0.3rem; }
.module-card__status--completed   { color: var(--success); }
.module-card__status--in-progress { color: var(--warning); }
.module-card__status--not-started { color: var(--gray-400); }

/* ---- Footer ---- */
.site-footer {
  background: var(--uipath-dark);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 1.75rem 2rem;
  font-size: 0.82rem;
  margin-top: 3rem;
}
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--uipath-orange); text-decoration: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .progress-summary { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .hero { padding: 3rem 1.25rem; }
  .modules-grid { grid-template-columns: 1fr; }
  .progress-numbers { gap: 1.5rem; }
  .container { padding: 0 1.25rem; }
}
