/* ================================================
   PIERCING OF CORPORATE VEIL — Educational Webpage
   Companies Act, 2013 | LL.B. Study Material
   Color Theme: Light Green, Red, Blue, Saffron, Pink, Green
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Serif+4:wght@400;600;700&display=swap');

:root {
  --green:       rgb(46, 125, 50);
  --green-light: rgb(200, 230, 201);
  --green-bg:    rgb(232, 245, 233);
  --blue:        rgb(21, 101, 192);
  --blue-light:  rgb(187, 222, 251);
  --blue-bg:     rgb(227, 242, 253);
  --red:         rgb(183, 28, 28);
  --red-light:   rgb(255, 205, 210);
  --red-bg:      rgb(255, 235, 238);
  --saffron:     rgb(245, 124, 0);
  --saffron-light: rgb(255, 224, 178);
  --saffron-bg:  rgb(255, 243, 224);
  --pink:        rgb(173, 20, 87);
  --pink-light:  rgb(252, 228, 236);
  --pink-bg:     rgb(252, 228, 236);
  --purple:      rgb(106, 27, 154);
  --teal:        rgb(0, 131, 143);

  --text-dark:   rgb(25, 25, 40);
  --text-mid:    rgb(55, 55, 75);
  --border-main: rgb(189, 189, 189);
  --shadow:      rgba(0,0,0,0.12);

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Source Serif 4', 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--text-dark);
  background: rgb(245, 247, 250);
  line-height: 1.75;
}

/* ============ DISCLAIMER BANNER ============ */
.disclaimer-banner {
  background: rgb(183, 28, 28);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: bold;
  letter-spacing: 0.3px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid rgb(211, 47, 47);
}

/* ============ HEADER ============ */
.site-header {
  background: linear-gradient(135deg, rgb(21,101,192) 0%, rgb(13,71,161) 40%, rgb(46,125,50) 100%);
  color: white;
  text-align: center;
  padding: 44px 24px 36px;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 40px,
    rgba(255,255,255,0.03) 40px, rgba(255,255,255,0.03) 80px
  );
}

.header-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.header-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: white;
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.site-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.header-meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: 0.85;
}

.header-meta span {
  background: rgba(255,255,255,0.15);
  padding: 4px 14px;
  border-radius: 12px;
}

/* ============ TAB NAVIGATION ============ */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: rgb(30, 42, 68);
  padding: 8px 16px;
  position: sticky;
  top: 42px;
  z-index: 900;
  border-bottom: 3px solid rgb(21, 101, 192);
  align-items: center;
}

.tab-btn {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: none;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.tab-btn.active {
  background: rgb(21, 101, 192);
  color: white;
  box-shadow: 0 3px 10px rgba(21,101,192,0.5);
}

.print-btn {
  margin-left: auto;
  background: rgb(46, 125, 50);
  color: white;
  border: none;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.print-btn:hover { background: rgb(27, 94, 32); }

/* ============ TAB CONTENT ============ */
.tab-content {
  display: none;
  padding: 32px 20px;
  max-width: 1000px;
  margin: 0 auto;
  animation: fadeIn 0.35s ease;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ TOC BOX ============ */
.toc-box {
  background: rgb(250, 250, 255);
  border: 2px solid rgb(21, 101, 192);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(21,101,192,0.12);
}

.toc-box h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--blue);
  margin-bottom: 12px;
}

.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toc-btn {
  background: var(--blue);
  color: white;
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  transition: all 0.2s;
  display: inline-block;
}

.toc-btn:hover {
  background: rgb(13, 71, 161);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(21,101,192,0.3);
}

/* ============ CONTENT CARDS ============ */
.content-card {
  background: white;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: 0 3px 16px var(--shadow);
  border-top: 5px solid;
}

.green-card  { border-top-color: var(--green); background: rgb(248, 253, 248); }
.blue-card   { border-top-color: var(--blue);  background: rgb(248, 251, 255); }
.pink-card   { border-top-color: var(--pink);  background: rgb(255, 248, 252); }
.red-card    { border-top-color: var(--red);   background: rgb(255, 249, 249); }
.saffron-card { border-top-color: var(--saffron); background: rgb(255, 252, 245); }

/* ============ SECTION HEADINGS ============ */
.section-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2.5px solid;
}

.green-heading   { color: var(--green);   border-color: var(--green-light); }
.blue-heading    { color: var(--blue);    border-color: var(--blue-light); }
.pink-heading    { color: var(--pink);    border-color: var(--pink-light); }
.red-heading     { color: var(--red);     border-color: var(--red-light); }
.saffron-heading { color: rgb(230, 81, 0); border-color: var(--saffron-light); }

.lead-text {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ============ STYLED LIST ============ */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.styled-list li {
  padding: 7px 0 7px 24px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-weight: bold;
  color: var(--text-dark);
}

.styled-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 14px;
}

.styled-list li:last-child { border-bottom: none; }

/* ============ INFO BOXES ============ */
.info-box {
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: bold;
  font-size: 14.5px;
  border-left: 5px solid;
}

.saffron-box { background: var(--saffron-bg); border-color: var(--saffron); color: rgb(100, 50, 0); }
.green-box   { background: var(--green-bg);   border-color: var(--green);   color: rgb(27, 94, 32); }
.blue-box    { background: var(--blue-bg);    border-color: var(--blue);    color: rgb(13, 71, 161); }
.pink-box    { background: var(--pink-bg);    border-color: var(--pink);    color: rgb(100, 10, 50); }

/* ============ TWO COLUMN ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.mini-card {
  background: white;
  padding: 16px 18px;
  border-radius: 8px;
  border-left: 5px solid;
  box-shadow: 0 2px 8px var(--shadow);
}

.mini-card h4 {
  font-family: var(--font-display);
  margin-bottom: 8px;
  font-size: 15px;
}

.pink-border  { border-color: var(--pink);  }
.pink-border h4 { color: var(--pink); }
.green-border { border-color: var(--green); }
.green-border h4 { color: var(--green); }

/* ============ PROVISION CARDS ============ */
.provision-card {
  border: 1.5px solid var(--border-main);
  border-radius: 10px;
  margin: 18px 0;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.prov-header {
  padding: 12px 20px;
  font-weight: bold;
  font-size: 15px;
  font-family: var(--font-display);
  color: white;
}

.prov-body {
  padding: 16px 20px;
  background: white;
}

.green-bg   { background: var(--green); }
.blue-bg    { background: var(--blue); }
.red-bg     { background: var(--red); }
.saffron-bg { background: rgb(230, 81, 0); }
.pink-bg    { background: var(--pink); }

.example-box {
  background: rgb(250, 250, 210);
  border: 1.5px solid rgb(180, 170, 0);
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 14px;
  color: rgb(60, 55, 0);
  font-weight: bold;
}

/* ============ GROUNDS GRID ============ */
.grounds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.ground-card {
  background: white;
  border: 2px solid rgb(21, 101, 192);
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ground-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(21,101,192,0.2);
}

.ground-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: rgb(200, 220, 255);
  margin-bottom: 6px;
}

.ground-card h4 {
  color: var(--blue);
  font-size: 14.5px;
  margin-bottom: 6px;
}

.ground-card p {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 4px;
}

.case-cite {
  font-style: italic;
  color: var(--green);
  font-size: 12.5px;
  font-weight: bold;
}

/* ============ CASE CARDS ============ */
.case-card {
  border: 1.5px solid var(--border-main);
  border-radius: 10px;
  margin: 16px 0;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.case-header {
  background: linear-gradient(90deg, rgb(183,28,28), rgb(230, 60, 60));
  color: white;
  padding: 12px 20px;
  font-weight: bold;
  font-family: var(--font-display);
  font-size: 15px;
}

.case-body {
  padding: 16px 20px;
  background: white;
}

.case-body p {
  margin-bottom: 8px;
  font-size: 14.5px;
}

.principle-tag {
  background: rgb(253, 240, 200);
  border: 1.5px solid rgb(200, 160, 0);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  color: rgb(100, 70, 0);
  font-weight: bold;
  display: inline-block;
  margin-top: 8px;
}

/* ============ TABLE ============ */
.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border-main);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.styled-table thead tr {
  background: rgb(21, 101, 192);
  color: white;
}

.styled-table thead th {
  padding: 13px 14px;
  font-weight: bold;
  text-align: left;
  font-family: var(--font-display);
  font-size: 13.5px;
}

.styled-table tbody tr:nth-child(odd)  { background: rgb(248, 251, 255); }
.styled-table tbody tr:nth-child(even) { background: rgb(237, 244, 255); }

.styled-table tbody tr:hover { background: rgb(224, 237, 255); }

.styled-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgb(200, 210, 230);
  vertical-align: top;
  font-weight: bold;
  color: var(--text-dark);
}

/* ============ CHART CONTAINER ============ */
.chart-container {
  text-align: center;
  padding: 10px 0 20px;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.chart-subtitle {
  color: var(--text-mid);
  font-size: 14px;
  margin-bottom: 20px;
}

.svg-scroll-wrap {
  overflow-x: auto;
  border: 2px solid var(--border-main);
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 20px var(--shadow);
  padding: 12px;
}

.flowchart-svg, .mindmap-svg {
  width: 100%;
  min-width: 700px;
  height: auto;
  display: block;
}

/* ============ ROADMAP ============ */
.roadmap-header {
  background: linear-gradient(135deg, rgb(46,125,50), rgb(27,94,32));
  color: white;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
  text-align: center;
}

.roadmap-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}

.roadmap-header p { opacity: 0.9; font-size: 14.5px; }

.roadmap-timeline { position: relative; }

.stage-card {
  background: white;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 6px;
  box-shadow: 0 3px 16px var(--shadow);
  border-left: 6px solid;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.stage-card:nth-child(1) { border-color: var(--green); }
.stage-card:nth-child(3) { border-color: var(--blue); }
.stage-card:nth-child(5) { border-color: var(--saffron); }
.stage-card:nth-child(7) { border-color: var(--pink); }
.stage-card:nth-child(9) { border-color: var(--red); }

.stage-badge {
  min-width: 90px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  color: white;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.green-badge   { background: var(--green); }
.blue-badge    { background: var(--blue); }
.saffron-badge { background: rgb(230, 81, 0); }
.pink-badge    { background: var(--pink); }
.red-badge     { background: var(--red); }

.stage-content { flex: 1; }

.stage-content h3 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.stage-content > p { color: var(--text-mid); margin-bottom: 12px; font-size: 14px; }

.stage-connector {
  text-align: center;
  font-size: 28px;
  color: var(--green);
  margin: 4px 0;
  line-height: 1;
}

/* ============ CHECKLIST ============ */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: bold;
  color: var(--text-dark);
  padding: 8px 14px;
  background: rgb(248, 255, 248);
  border-radius: 6px;
  border: 1.5px solid rgb(200, 230, 200);
  cursor: pointer;
  transition: background 0.2s;
}

.checklist label:hover { background: var(--green-bg); }

.checklist input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--green);
  flex-shrink: 0;
}

/* ============ FOOTER ============ */
.site-footer {
  background: rgb(25, 35, 55);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  line-height: 1.8;
}

/* ============ PRINT STYLES ============ */
@media print {
  .disclaimer-banner,
  .tab-nav,
  .toc-box,
  .site-footer { display: none !important; }

  body { background: white; font-size: 12pt; }

  .tab-content { display: block !important; padding: 0; }

  .content-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1pt solid #ccc;
    margin-bottom: 14pt;
  }

  .styled-table { font-size: 10pt; }

  .flowchart-svg, .mindmap-svg { max-width: 100%; }

  .provision-card, .case-card, .ground-card {
    break-inside: avoid;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .tab-nav { gap: 2px; padding: 6px 8px; }
  .tab-btn { padding: 8px 11px; font-size: 12px; }
  .content-card { padding: 18px 16px; }
  .two-col { grid-template-columns: 1fr; }
  .grounds-grid { grid-template-columns: 1fr; }
  .stage-card { flex-direction: column; gap: 12px; }
  .stage-badge { min-width: auto; width: fit-content; }
}