/* ===========================
   COMPANY LAW – LLB NOTES
   style.css
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: rgb(240, 248, 255);
  color: rgb(30, 30, 60);
  font-size: 15px;
  line-height: 1.7;
}

/* ---- DISCLAIMER BANNER ---- */
.disclaimer-banner {
  background: rgb(255, 243, 205);
  border-bottom: 3px solid rgb(255, 193, 7);
  color: rgb(100, 60, 0);
  text-align: center;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 13.5px;
  letter-spacing: 0.3px;
}

/* ---- HEADER ---- */
.site-header {
  background: linear-gradient(135deg, rgb(44, 111, 173) 0%, rgb(23, 70, 130) 100%);
  color: white;
  padding: 28px 32px 22px;
  text-align: center;
}

.site-header h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.site-header .subtitle {
  font-size: 15px;
  opacity: 0.92;
  margin-bottom: 14px;
}

.print-btn {
  background: rgb(255, 165, 0);
  color: white;
  border: none;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.1s;
}
.print-btn:hover { background: rgb(220, 130, 0); transform: scale(1.04); }

/* ---- LAYOUT ---- */
.layout-wrapper {
  display: flex;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

/* ---- SIDEBAR NAV ---- */
.jump-nav {
  width: 210px;
  min-width: 210px;
  background: rgb(255, 255, 255);
  border-right: 2px solid rgb(200, 220, 240);
  padding: 24px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.jump-nav h3 {
  font-size: 14px;
  font-weight: 900;
  color: rgb(44, 111, 173);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgb(173, 216, 230);
}

.jump-nav ul {
  list-style: none;
}

.jump-nav ul li {
  margin-bottom: 8px;
}

.nav-btn {
  display: block;
  background: rgb(240, 248, 255);
  color: rgb(30, 60, 120);
  border: 1.5px solid rgb(173, 216, 230);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.nav-btn:hover {
  background: rgb(44, 111, 173);
  color: white;
  border-color: rgb(44, 111, 173);
}

/* ---- MAIN CONTENT ---- */
.main-content {
  flex: 1;
  padding: 28px 28px 40px;
  min-width: 0;
}

/* ---- CARDS ---- */
.card {
  background: rgb(255, 255, 255);
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 2px 14px rgba(44, 111, 173, 0.10);
  overflow: hidden;
  border: 1.5px solid rgb(220, 230, 245);
}

.card-header {
  padding: 16px 24px;
  border-bottom: 2px solid rgba(0,0,0,0.07);
}

.card-header h2 {
  font-size: 19px;
  font-weight: 900;
  margin: 0;
}

.card-header.blue   { background: rgb(173, 216, 230); color: rgb(10, 40, 100); }
.card-header.saffron{ background: rgb(255, 220, 150); color: rgb(100, 50, 0); }
.card-header.pink   { background: rgb(255, 192, 203); color: rgb(120, 30, 60); }
.card-header.green  { background: rgb(180, 240, 190); color: rgb(20, 80, 30); }

.card-body {
  padding: 20px 24px;
}

.card-body h3 {
  font-size: 15px;
  font-weight: 800;
  color: rgb(44, 111, 173);
  margin: 16px 0 8px;
}

.card-body h4 {
  font-size: 14px;
  font-weight: 800;
  color: rgb(30, 60, 120);
  margin-bottom: 6px;
}

.card-body p {
  margin-bottom: 10px;
  font-weight: 600;
}

.card-body ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.card-body ul li {
  margin-bottom: 6px;
  font-weight: 600;
}

blockquote {
  border-left: 4px solid rgb(44, 111, 173);
  background: rgb(240, 248, 255);
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  margin: 10px 0;
  font-weight: 600;
  color: rgb(30, 60, 120);
}

/* ---- FEATURE GRID ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.feature-box {
  background: rgb(240, 248, 255);
  border: 1.5px solid rgb(173, 216, 230);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 5px rgba(44, 111, 173, 0.08);
  transition: box-shadow 0.2s;
}

.feature-box:hover {
  box-shadow: 0 4px 14px rgba(44, 111, 173, 0.18);
}

.feature-box h4 {
  font-size: 13px;
  color: rgb(44, 111, 173);
  margin-bottom: 6px;
}

.feature-box p {
  font-size: 12.5px;
  color: rgb(40, 40, 80);
  margin: 0;
  font-weight: 600;
}

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: rgb(255, 255, 200);
  border: 2px solid rgb(255, 193, 7);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 13.5px;
  color: rgb(80, 60, 0);
}

/* ---- TABLES ---- */
.table-wrapper {
  overflow-x: auto;
  margin-top: 10px;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-weight: 700;
}

.summary-table thead tr {
  background: rgb(44, 111, 173);
  color: white;
}

.summary-table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.summary-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgb(210, 225, 240);
  vertical-align: top;
}

.summary-table tbody tr:nth-child(even) {
  background: rgb(240, 248, 255);
}

.summary-table tbody tr:hover {
  background: rgb(220, 238, 255);
}

/* ---- FLOWCHART / MINDMAP ---- */
.flowchart-container,
.mindmap-container {
  padding: 8px 0;
  overflow-x: auto;
  text-align: center;
}

/* ---- ROADMAP ---- */
.roadmap-track {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roadmap-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 0;
  border-left: 4px solid rgb(44, 111, 173);
  padding-left: 20px;
  position: relative;
}

.roadmap-step::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 3px solid rgb(44, 111, 173);
}

.stage1 { border-left-color: rgb(44, 111, 173); }
.stage2 { border-left-color: rgb(50, 150, 50); }
.stage3 { border-left-color: rgb(200, 120, 50); }
.stage4 { border-left-color: rgb(200, 50, 100); }
.stage5 { border-left-color: rgb(100, 50, 180); }

.stage1::before { border-color: rgb(44, 111, 173); }
.stage2::before { border-color: rgb(50, 150, 50); }
.stage3::before { border-color: rgb(200, 120, 50); }
.stage4::before { border-color: rgb(200, 50, 100); }
.stage5::before { border-color: rgb(100, 50, 180); }

.stage-badge {
  min-width: 72px;
  background: rgb(44, 111, 173);
  color: white;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  margin-top: 2px;
}

.stage2 .stage-badge { background: rgb(50, 150, 50); }
.stage3 .stage-badge { background: rgb(200, 120, 50); }
.stage4 .stage-badge { background: rgb(200, 50, 100); }
.stage5 .stage-badge { background: rgb(100, 50, 180); }

.stage-content h4 {
  font-size: 14.5px;
  color: rgb(30, 30, 60);
  margin-bottom: 8px;
}

.stage-content ul {
  padding-left: 18px;
}

.stage-content ul li {
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: 600;
}

/* ---- FOOTER ---- */
.site-footer {
  background: rgb(23, 70, 130);
  color: rgb(200, 220, 255);
  text-align: center;
  padding: 16px;
  font-size: 13px;
  font-weight: bold;
}

/* ---- PRINT STYLES ---- */
@media print {
  .disclaimer-banner,
  .site-header .print-btn,
  .jump-nav,
  .site-footer {
    display: none !important;
  }
  .layout-wrapper {
    display: block;
  }
  .main-content {
    padding: 0;
  }
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  body {
    background: white;
    font-size: 12px;
  }
  svg {
    max-width: 100% !important;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .layout-wrapper { flex-direction: column; }
  .jump-nav {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 2px solid rgb(200, 220, 240);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
  }
  .jump-nav h3 { width: 100%; margin-bottom: 6px; }
  .jump-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .site-header h1 { font-size: 20px; }
}