/* Dev-ācārya — Navy & Cyan tech theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

:root {
  --bg:        #F8F9FB;
  --surface:   #E1E8EF;
  --border:    #CAD4E0;
  --text:      #0E172A;
  --text-muted:#2C5F72;
  --accent:    #0D7490;
  --accent-h:  #084F6A;
  --accent-lt: #E0F4F8;
  --radius:    8px;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, sans-serif;
  --font-brand: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --shadow:    0 2px 12px rgba(13,116,144,0.12);
}

.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.01em;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ---- NAV ---- */
nav {
  background: #0E172A;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); }
.nav-brand span { color: #fff; font-family: var(--font-brand); font-size: 1.25rem; letter-spacing: 0.02em; text-transform: none; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-back { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.85rem; }
.nav-back:hover { color: #fff; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #0E172A 0%, #084F6A 100%);
  color: #fff;
  padding: 4rem 5% 3.5rem;
  text-align: center;
}
.hero-eyebrow { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: none; opacity: 0.75; margin-bottom: 0.75rem; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; opacity: 0.85; max-width: 640px; margin: 0 auto 2rem; }
.btn { display: inline-block; padding: 0.75rem 2rem; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; text-decoration: none; }
.btn-white { background: #fff; color: #0E172A; }
.btn-white:hover { background: var(--surface); }
.btn-accent { background: var(--accent); color: #fff; border: 2px solid var(--accent); }
.btn-accent:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---- MAIN LAYOUT ---- */
main { max-width: 1100px; margin: 0 auto; padding: 3rem 5% 5rem; }

/* ---- SECTION TITLES ---- */
.section-title { font-family: var(--font-head); font-size: 1.6rem; color: var(--accent); margin-bottom: 0.5rem; }
.section-divider { height: 3px; width: 60px; background: var(--accent); border-radius: 2px; margin-bottom: 2rem; }

/* ---- PROGRAM CARDS (index) ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(13,116,144,0.22); }
.card-header { background: #0E172A; color: #fff; padding: 1.5rem; }
.card-header .emoji { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.card-header h2 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 0.25rem; }
.card-header .subtitle { opacity: 0.8; font-size: 0.9rem; }
.card-body { padding: 1.5rem; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.badge { background: var(--accent-lt); color: var(--accent); border: 1px solid var(--border); border-radius: 20px; padding: 0.25rem 0.75rem; font-size: 0.8rem; font-weight: 600; }
.card-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg); }
.price { font-family: var(--font-head); font-size: 1.8rem; color: var(--accent); font-weight: 700; }
.price span { font-size: 1rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }

/* ---- INSTRUCTOR CARD ---- */
.instructor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.instructor-card .avatar { width: 72px; height: 72px; background: #0E172A; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; font-family: var(--font-head); flex-shrink: 0; }
.instructor-info h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--accent); margin-bottom: 0.25rem; }
.instructor-info p { color: var(--text-muted); font-size: 0.9rem; }
.instructor-info a { color: var(--accent); text-decoration: none; }
.instructor-info a:hover { text-decoration: underline; }

/* ---- PROGRAM PAGE STYLES ---- */
.page-intro { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 2.5rem; box-shadow: var(--shadow); }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.meta-item { display: flex; flex-direction: column; }
.meta-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.15rem; }
.meta-value { font-weight: 600; color: var(--text); font-size: 0.95rem; }

.content-section { margin-bottom: 3rem; }
.content-section h2 { font-family: var(--font-head); font-size: 1.4rem; color: var(--accent); margin-bottom: 0.25rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }
.content-section h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--text); margin: 1.5rem 0 0.5rem; }

.content-section p { color: var(--text-muted); margin-bottom: 1rem; }
.content-section ul { list-style: none; padding: 0; }
.content-section ul li { padding: 0.4rem 0 0.4rem 1.5rem; position: relative; color: var(--text-muted); font-size: 0.95rem; }
.content-section ul li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

/* ---- TABLES ---- */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead tr { background: #0E172A; color: #fff; }
th { padding: 0.75rem 1rem; text-align: left; font-weight: 600; white-space: nowrap; }
td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--surface); }
tr:nth-child(odd) td { background: var(--bg); }

/* ---- WEEK SYLLABUS ---- */
.week-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.week-header { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--border); }
.week-num { background: #0E172A; color: #fff; font-weight: 700; font-size: 0.8rem; padding: 0.25rem 0.6rem; border-radius: 4px; white-space: nowrap; }
.week-module { font-size: 0.8rem; color: var(--text-muted); }
.week-title { font-weight: 600; font-size: 0.95rem; flex: 1; }
.week-body { padding: 1rem 1.25rem; }
.week-topics { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.week-labs { font-size: 0.85rem; color: var(--accent); }

/* ---- BOOTCAMP SCHEDULE ---- */
.bootcamp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.bootcamp-session { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.bootcamp-session h3 { font-family: var(--font-head); color: var(--accent); font-size: 1rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.day-row { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.day-row:last-child { border-bottom: none; }
.day-num { color: var(--accent); font-weight: 700; }
.day-topic { color: var(--text); }
.day-project { color: var(--text-muted); font-style: italic; }
.day-row-header { font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- CTA SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, #0E172A 0%, #084F6A 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 3rem;
}
.cta-section h2 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 0.75rem; }
.cta-section p { opacity: 0.85; margin-bottom: 1.5rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-contact { margin-top: 1rem; opacity: 0.8; font-size: 0.9rem; }
.cta-contact a { color: #fff; }

/* ---- FOOTER ---- */
footer { background: #0E172A; color: rgba(255,255,255,0.7); text-align: center; padding: 1.5rem 5%; font-size: 0.85rem; }
footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { color: #fff; }
footer .logo-row { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 0.5rem; }
footer .logo-row img { width: 32px; height: 32px; border-radius: 50%; opacity: 0.85; }
footer .logo-row span { font-family: var(--font-brand); color: rgba(255,255,255,0.9); font-size: 1rem; text-transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 5% 2rem; }
  .nav-links { display: none; }
  .day-row { grid-template-columns: 50px 1fr; }
  .day-project { display: none; }
}
