/* ===================================================================
   PAPER 6.4 – PROFESSIONAL ETHICS | KRISHNAMURTHY IYER'S ADVOCACY
   LLB 6th Semester | Three-Year Course
   Style Sheet – styles.css
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Code+Pro:wght@600&display=swap');

/* ---- Root Variables ---- */
:root {
  --navy:        rgb(10, 22, 58);
  --navy-mid:    rgb(18, 42, 95);
  --navy-light:  rgb(28, 65, 140);
  --gold:        rgb(200, 155, 30);
  --gold-light:  rgb(240, 200, 70);
  --gold-pale:   rgb(255, 248, 210);
  --border-blue: rgb(52, 120, 220);
  --card-bg:     rgb(250, 253, 255);
  --page-bg:     rgb(232, 240, 252);
  --text-dark:   rgb(12, 22, 55);
  --text-white:  rgb(255, 255, 255);
  --tbl-even:    rgb(215, 232, 255);
  --tbl-odd:     rgb(238, 246, 255);
  --shadow:      0 4px 24px rgba(10,22,58,0.18);
  --shadow-lg:   0 8px 40px rgba(10,22,58,0.28);
  --radius:      12px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ---- Body ---- */
body {
  background: var(--page-bg);
  color: var(--text-dark);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
}

/* ================================================================
   HEADER
================================================================ */
header {
  background: linear-gradient(145deg, rgb(6,14,40) 0%, rgb(18,42,95) 55%, rgb(10,30,75) 100%);
  color: var(--text-white);
  padding: 36px 50px 28px;
  text-align: center;
  border-bottom: 5px solid var(--gold);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(200,155,30,0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(52,120,220,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.header-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.72em;
  letter-spacing: 2.5px;
  padding: 5px 18px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

header h1 {
  font-family: 'Cinzel', serif;
  font-size: 2em;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 10px;
  color: var(--text-white);
  line-height: 1.3;
}

header h2 {
  font-family: 'Cinzel', serif;
  font-size: 1em;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

header p.subtitle {
  font-size: 0.88em;
  opacity: 0.78;
  font-style: italic;
}

/* Print Button */
.print-btn {
  position: absolute;
  top: 22px; right: 30px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 11px 22px;
  font-family: 'Cinzel', serif;
  font-size: 0.82em;
  font-weight: 900;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  letter-spacing: 1px;
  z-index: 10;
}
.print-btn:hover  { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
.print-btn:active { transform: translateY(0); }

/* ================================================================
   DISCLAIMER
================================================================ */
.disclaimer {
  background: linear-gradient(135deg, rgb(255,248,210), rgb(255,235,140));
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 15px 24px;
  margin: 22px 40px;
  font-weight: 700;
  color: rgb(70,44,0);
  font-size: 0.88em;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
}
.disclaimer .disc-icon { font-size: 1.8em; flex-shrink: 0; margin-top: 2px; }
.disclaimer strong { font-family: 'Cinzel', serif; font-size: 1.05em; }

/* ================================================================
   NAVIGATION
================================================================ */
nav {
  background: var(--navy);
  padding: 14px 40px;
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}
.nav-label {
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 0.7em;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.nav-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.nav-btn {
  background: rgba(255,255,255,0.08);
  color: rgb(200,220,255);
  border: 2px solid var(--border-blue);
  padding: 8px 13px;
  font-family: 'Cinzel', serif;
  font-size: 0.72em;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.22s ease;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.nav-btn:hover, .nav-btn.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ================================================================
   MAIN WRAPPER
================================================================ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 40px 70px;
}

/* ================================================================
   CONTENT SECTION CARD
================================================================ */
.section-card {
  background: var(--card-bg);
  border: 3px solid var(--border-blue);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}
.section-card:hover { box-shadow: var(--shadow-lg); }

/* Section Title Bar */
.sec-title {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--text-white);
  font-family: 'Cinzel', serif;
  font-size: 1.15em;
  font-weight: 900;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 22px;
  border-left: 7px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(10,22,58,0.2);
}
.sec-num {
  background: var(--gold);
  color: var(--navy);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85em;
  font-weight: 900;
  flex-shrink: 0;
}

/* Sub-Section */
.subsec {
  background: rgb(240, 247, 255);
  border-left: 5px solid var(--navy-light);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.subsec-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95em;
  font-weight: 900;
  color: var(--navy-mid);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px dotted var(--border-blue);
  display: flex; align-items: center; gap: 8px;
}

/* Intro Paragraph */
.intro-para {
  background: linear-gradient(135deg, rgb(235,245,255), rgb(220,238,255));
  border: 2px solid var(--border-blue);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 18px;
  font-style: italic;
  font-size: 1em;
  color: var(--navy);
  line-height: 1.8;
}

/* ================================================================
   BULLET LISTS
================================================================ */
.blist { list-style: none; padding: 0; }
.blist li {
  padding: 9px 6px 9px 36px;
  position: relative;
  font-weight: 700;
  border-bottom: 1px solid rgba(52,120,220,0.18);
  color: var(--text-dark);
  line-height: 1.6;
}
.blist li:last-child { border-bottom: none; }
.blist li::before {
  position: absolute; left: 4px; top: 8px;
  font-size: 1em;
}
.blist.gavel  li::before { content: "⚖️"; }
.blist.arrow  li::before { content: "▶"; color: var(--navy-light); font-size: 0.85em; top: 12px; }
.blist.check  li::before { content: "✅"; }
.blist.star   li::before { content: "★"; color: var(--gold); font-size: 1.1em; top: 9px; }
.blist.warn   li::before { content: "⚠️"; }
.blist.book   li::before { content: "📚"; }
.blist.dot    li::before { content: "◆"; color: var(--navy-light); font-size: 0.7em; top: 13px; }

.blist li strong { color: var(--navy-mid); font-family: 'Cinzel', serif; font-size: 0.95em; }

/* ================================================================
   TABLES
================================================================ */
.tbl-wrap {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(10,22,58,0.12);
  margin: 14px 0 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-weight: 700;
  font-size: 0.91em;
}
thead th {
  background: var(--navy);
  color: var(--text-white);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.88em;
  padding: 14px 16px;
  text-align: left;
  border-right: 2px solid rgba(255,255,255,0.15);
  letter-spacing: 0.5px;
}
thead th:last-child { border-right: none; }
tbody tr:nth-child(even) { background: var(--tbl-even); }
tbody tr:nth-child(odd)  { background: var(--tbl-odd); }
tbody tr:hover { background: rgb(195,220,255); transition: background 0.2s; }
tbody td {
  padding: 11px 16px;
  border-right: 1px solid rgb(175,205,245);
  border-bottom: 1px solid rgb(175,205,245);
  color: var(--text-dark);
  font-weight: 700;
  vertical-align: top;
  line-height: 1.55;
}
tbody td:last-child { border-right: none; }
tbody td:first-child { font-family: 'Cinzel', serif; font-size: 0.86em; color: var(--navy-mid); }

/* ================================================================
   DIAGRAM SECTIONS
================================================================ */
.diag-card {
  background: var(--card-bg);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.diag-title {
  background: linear-gradient(135deg, rgb(130,95,10), var(--gold));
  color: var(--text-white);
  font-family: 'Cinzel', serif;
  font-size: 1.1em;
  font-weight: 900;
  padding: 12px 24px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 22px;
  letter-spacing: 1.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.svg-scroll { overflow-x: auto; overflow-y: hidden; }
svg { display: block; }

/* ================================================================
   ROADMAP (CSS TIMELINE)
================================================================ */
.roadmap-outer { position: relative; padding: 10px 0 10px; }
.roadmap-spine {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 6px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--navy), var(--border-blue), var(--navy));
  border-radius: 3px;
}
.rm-row {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 38px);
  margin-bottom: 32px;
  position: relative;
}
.rm-row.rm-right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 38px);
}
.rm-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px; height: 26px;
  background: var(--gold);
  border: 4px solid var(--navy);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 0 3px rgba(200,155,30,0.3);
}
.rm-card {
  background: var(--card-bg);
  border: 3px solid var(--border-blue);
  border-radius: 10px;
  padding: 16px 20px;
  max-width: 420px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s;
}
.rm-card:hover { box-shadow: var(--shadow-lg); }
.rm-step {
  font-family: 'Cinzel', serif;
  font-size: 0.68em;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
.rm-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.96em;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 7px;
  line-height: 1.3;
}
.rm-card p {
  font-size: 0.87em;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.6;
}
.rm-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 0.65em;
  padding: 3px 10px;
  border-radius: 10px;
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ================================================================
   HIGHLIGHT BOX
================================================================ */
.highlight {
  background: linear-gradient(135deg, rgb(10,22,58), rgb(18,42,95));
  color: var(--text-white);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 16px 0;
  border-left: 6px solid var(--gold);
  font-size: 0.95em;
  line-height: 1.7;
  font-style: italic;
}
.highlight strong { color: var(--gold-light); font-family: 'Cinzel', serif; }

/* Definition box */
.def-box {
  background: rgb(235, 245, 255);
  border: 2px solid var(--border-blue);
  border-radius: 8px;
  padding: 14px 20px;
  margin: 12px 0;
}
.def-box .def-term {
  font-family: 'Cinzel', serif;
  font-size: 0.92em;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 5px;
}

/* ================================================================
   FOOTER
================================================================ */
footer {
  background: var(--navy);
  color: rgb(180, 205, 255);
  text-align: center;
  padding: 22px 20px;
  font-weight: 700;
  font-size: 0.88em;
  border-top: 4px solid var(--gold);
}
footer span { color: var(--gold-light); font-family: 'Cinzel', serif; }

/* ================================================================
   PRINT STYLES
================================================================ */
@media print {
  nav, .print-btn { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section-card, .diag-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1.5pt solid #333;
    margin-bottom: 18pt;
    page-break-inside: avoid;
  }
  header {
    background: #1a2e5a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  thead th, .sec-title, .diag-title {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  tbody tr:nth-child(even) {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .disclaimer { break-inside: avoid; }
  svg { max-width: 100% !important; height: auto !important; }
  .roadmap-spine { background: #333; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rm-card { break-inside: avoid; }
  .svg-scroll { overflow: visible; }
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 820px) {
  header { padding: 22px 20px 20px; }
  header h1 { font-size: 1.35em; }
  .print-btn { position: static; display: block; margin: 14px auto 0; width: max-content; }
  main { padding: 14px 15px 50px; }
  nav { padding: 10px 15px; }
  .section-card, .diag-card { padding: 18px; }
  .rm-row, .rm-row.rm-right { padding: 0; justify-content: center; }
  .roadmap-spine, .rm-dot { display: none; }
  .rm-card { max-width: 100%; }
  .disclaimer { margin: 15px; }
}