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

body {
  font-family: "Segoe UI", sans-serif;
  background: #7190af;
  color: #fcf7f7;
  line-height: 1.8;
}

/* =========================
   HERO SECTION
========================= */

.hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #2563eb);
  color: #fff;
  text-align: center;
  padding: 90px 20px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
}

.hero p {
  max-width: 950px;
  margin: auto;
  font-size: 1.15rem;
}

/* =========================
   MAIN CONTAINER
========================= */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
}

/* =========================
   CARD SECTION
========================= */

.card {
  background: #dfdcdc;
  color: #8a4f1e;
  padding: 35px;
  border-radius: 18px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  color: #1e3a8a;
  margin-bottom: 20px;
  border-left: 6px solid #2563eb;
  padding-left: 14px;
  font-size: 2rem;
}

.card h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #2563eb;
}

.highlight {
  background: #eff6ff;
  border-left: 5px solid #2563eb;
  padding: 18px;
  border-radius: 10px;
  margin: 20px 0;
}

.highlight a {
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
  background-color: #c0f4b0;
  padding: 4px 8px;
  border-radius: 4px;
}

.highlight a:hover {
  background: #2563eb;
  color: #c0f4b0;
}

/* =========================
   FACT BOXES
========================= */

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.fact-box {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  text-align: center;
  padding: 25px;
  border-radius: 16px;
}

.fact-box h3 {
  color: #fff;
  font-size: 2rem;
}

/* =========================
   Table { Fundamental Rights, Parliament, Important Amendments }
========================= */

.fundamental-rights table,
.parliament table,
.important-amendments table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.fundamental-rights table th,
.parliament table th,
.important-amendments table th {
  background: #1e3a8a;
  color: #fff;
  padding: 14px;
  text-align: left;
}

.fundamental-rights table td,
.parliament table td,
.important-amendments table td {
  padding: 14px;
  border: 1px solid #dbeafe;
}

.fundamental-rights table tr:nth-child(even),
.parliament tr:nth-child(even),
.important-amendments tr:nth-child(even) {
  background: #e8f1fd;
}

.fundamental-rights table tr:nth-child(odd),
.parliament tr:nth-child(odd),
.important-amendments tr:nth-child(odd) {
  background: #c0dcf8;
}

/* =========================
   LIST
========================= */

ul {
  padding-left: 25px;
}

li {
  margin-bottom: 12px;
}

/* =========================
   TAGS
========================= */

.tags {
  margin-top: 20px;
}

.tag {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 10px 16px;
  border-radius: 30px;
  margin: 6px;
  font-weight: 600;
}

/* =========================
   individual-chapters-button 
========================= */

main .individual-chapters div {
  margin: 1% 1%;
  padding: 1%;
  border-radius: 10px;
}

main .individual-chapters div a {
  display: inline-block;
  text-decoration: none;
  padding: 10px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  background-color: rgb(253, 244, 196);
  border: #0f3175b5 2px solid;
  border-radius: 10px;
  color: rgb(59, 91, 89);
}

main .individual-chapters div a:hover {
  color: rgb(248, 198, 100);
  background-color: rgba(15, 14, 14, 0.514);
}

/* =========================
   Table { constitution of india - index }
========================= */

/* table-section h2 */
.constitution-of-india-index h2 {
  font-size: 130%;
  text-align: center;
  margin: 1% auto;
  padding: 1%;
  border-radius: 10px;
  color: rgb(186, 254, 224);
  background-color: rgba(15, 14, 14, 0.514);
}

/* table */
.constitution-of-india-index table {
  border-collapse: collapse;
  margin: 2%;
  width: 95%;
  min-width: 100px;
  overflow-x: auto;
}

/* caption */
.constitution-of-india-index table caption {
  caption-side: top;
  padding: 8px;
  font-weight: bold;
}

.constitution-of-india-index thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #b0b50c;
  color: #5c0133;
  border: 2px solid white;
  padding: 1%;
}

.constitution-of-india-index tbody td,
.constitution-of-india-index tfoot td {
  border: 1px solid white;
  padding: 1%;
  margin: 1%;
}

.constitution-of-india-index tbody tr:nth-child(odd) {
  background-color: #1c1e1e;
  color: #c3e4f2;
}

.constitution-of-india-index tbody tr:nth-child(even) {
  background-color: #242e2d;
  color: #99f510f7;
}

.constitution-of-india-index tbody tr:nth-child(even) td:first-child,
.constitution-of-india-index tbody tr:nth-child(odd) td:first-child {
  background: #764f9075;
}

.constitution-of-india-index tbody tr th {
  border: 1px solid white;
}

/* hover */
.constitution-of-india-index tbody tr {
  transition: background-color 0.2s ease;
}

.constitution-of-india-index tbody tr:hover {
  background-color: #092660b5;
  color: #ef8a16;
}

.constitution-of-india-index tfoot tr td {
  background-color: #6548635b;
  color: #16efd9;
  text-align: center;
  border-radius: 10px;
}

.constitution-of-india-index tfoot tr td div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  white-space: nowrap;
  gap: 12px;
}

.constitution-of-india-index tfoot tr td span {
  color: rgb(255, 255, 255);
  margin: 0% 3%;
}

/* =========================
   TABLE close
========================= */

/* ========================= 
FAQs 
========================= */

/* faq-section */
.faq-section {
  font-size: 90%;
  margin: 1% 2%;
  padding: 1%;
  border-radius: 10px;
  background-color: rgb(197, 214, 249);
}

.faq-section h2 {
  margin: 0% 1% 0.5% 0%;
  padding: 1%;
  border-radius: 10px;
  color: rgb(33, 7, 76);
  background-color: rgba(113, 97, 97, 0.514);
}
.faq-section .description {
  margin: 0% 1% 0.5% 0%;
  padding: 0.4%;
  border-radius: 10px;
  color: rgb(65, 3, 139);
}

.faq-section h3 {
  margin: 0% 1% 0.5% 1%;
  padding: 0.4%;
  color: rgb(2, 49, 143);
}

.faq-section p {
  margin: 0% 1% 0.5% 2%;
  padding: 0.4%;
  color: #345503;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .card {
    padding: 22px;
  }

  .card h2 {
    font-size: 1.5rem;
  }
}
