/* Taleem Notes — clean light professional theme
   White background, navy #0F2A5C + teal #009688, dark text. Mobile-first. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: #0F2A5C; text-decoration: none; }
a:hover { color: #009688; text-decoration: underline; }
h1, h2, h3 { color: #0F2A5C; line-height: 1.3; margin: 0 0 12px; }
h1 { font-size: 30px; }
h2 { font-size: 23px; margin-top: 34px; }
h3 { font-size: 19px; margin-top: 24px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: #ffffff; border-bottom: 3px solid #009688; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 16px; }
.logo { font-size: 24px; font-weight: 800; color: #0F2A5C; letter-spacing: -0.3px; }
.logo span { color: #009688; }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
.main-nav a { font-weight: 600; font-size: 15px; padding: 4px 2px; }
.main-nav a.active { color: #009688; border-bottom: 2px solid #009688; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: #6b7280; padding: 14px 0 0; }
.breadcrumb a { color: #0F2A5C; }

/* Hero */
.hero { background: #eef4fb; border-bottom: 1px solid #dbe7f5; padding: 38px 0 34px; }
.hero h1 { font-size: 34px; margin-bottom: 10px; }
.hero p.lead { font-size: 18px; color: #374151; max-width: 720px; }
.search-box { margin-top: 20px; max-width: 640px; }
.search-box input {
  width: 100%; padding: 13px 16px; font-size: 17px;
  border: 2px solid #0F2A5C; border-radius: 10px; outline: none;
}
.search-box input:focus { border-color: #009688; }
.search-hint { font-size: 14px; color: #6b7280; margin-top: 8px; }

/* Sections */
.section { padding: 30px 0 8px; }
.section-title { font-size: 24px; margin-bottom: 6px; }
.section-sub { color: #4b5563; margin-bottom: 18px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card {
  display: block; background: #ffffff; border: 1px solid #dbe7f5;
  border-radius: 12px; padding: 18px 20px;
}
a.card:hover { text-decoration: none; border-color: #009688; box-shadow: 0 4px 16px rgba(15,42,92,.10); }
.card h3 { margin-bottom: 4px; }
.card p { margin: 0; color: #4b5563; font-size: 15px; }
.card .meta { font-size: 13px; color: #009688; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.class-card { background: #0F2A5C; border-color: #0F2A5C; color: #ffffff; }
.class-card h3 { color: #ffffff; }
.class-card p { color: #cbd5e1; }
.class-card .meta { color: #5eead4; }
a.class-card:hover { border-color: #009688; }

/* Chapter list */
.chapter-list { list-style: none; padding: 0; margin: 0 0 20px; }
.chapter-list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  border: 1px solid #dbe7f5; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px;
  background: #ffffff;
}
.chapter-list .ch-no {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: #0F2A5C; color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.chapter-list .ch-title { font-weight: 600; color: #0F2A5C; flex: 1 1 200px; }
.chapter-list .ch-type { font-size: 13px; color: #6b7280; }
.badge {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: #e6f7f4; color: #00796b; white-space: nowrap;
}
.badge.soon { background: #fef3c7; color: #92400e; }
.badge.pending { background: #fee2e2; color: #991b1b; }
a.chapter-link { font-weight: 700; color: #009688; white-space: nowrap; }

/* Notes content */
.note-meta { color: #6b7280; font-size: 15px; margin-bottom: 18px; }
.notice {
  border-left: 4px solid #009688; background: #e6f7f4;
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0 0 20px;
}
.notice.warn { border-left-color: #d97706; background: #fef3c7; }
.notice p { margin: 0; }
.def-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.def-table th, .def-table td { border: 1px solid #dbe7f5; padding: 10px 12px; text-align: left; vertical-align: top; }
.def-table th { background: #0F2A5C; color: #ffffff; }
.def-table td:first-child { font-weight: 700; color: #0F2A5C; width: 30%; }
.points-box { background: #eef4fb; border: 1px solid #dbe7f5; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; }
.summary-box { background: #0F2A5C; color: #ffffff; border-radius: 10px; padding: 18px 22px; margin: 26px 0; }
.summary-box h2 { color: #ffffff; margin-top: 0; }
.summary-box p { margin: 0; color: #e2e8f0; }

/* MCQs */
.mcq { border: 1px solid #dbe7f5; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.mcq p.q { font-weight: 700; color: #0F2A5C; margin-bottom: 8px; }
.mcq ol { margin: 0; padding-left: 20px; }
.mcq ol li { margin-bottom: 2px; }
.mcq details { margin-top: 8px; }
.mcq summary { cursor: pointer; color: #009688; font-weight: 700; }
.mcq .answer { margin-top: 6px; }
.sq { border-bottom: 1px solid #e5e7eb; padding: 10px 0; }
.sq p.q { font-weight: 700; color: #0F2A5C; margin-bottom: 4px; }

/* Prev / next */
.chapter-nav { display: flex; justify-content: space-between; gap: 12px; margin: 30px 0; flex-wrap: wrap; }
.chapter-nav a {
  border: 1px solid #0F2A5C; border-radius: 8px; padding: 10px 16px; font-weight: 700;
}
.chapter-nav a:hover { background: #0F2A5C; color: #fff; text-decoration: none; }
.chapter-nav .disabled { color: #9ca3af; border-color: #d1d5db; }

/* Footer */
.site-footer { background: #0F2A5C; color: #cbd5e1; margin-top: 44px; padding: 30px 0 22px; }
.site-footer a { color: #5eead4; }
.site-footer h3 { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.footer-bottom { border-top: 1px solid #1e3a5f; margin-top: 22px; padding-top: 14px; font-size: 14px; color: #94a3b8; }

/* Urdu text */
.ur, [lang="ur"] { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; line-height: 2.1; }
.ur h1, .ur h2, .ur h3 { line-height: 1.9; }

/* Filter list (homepage index) */
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { padding: 9px 4px; border-bottom: 1px solid #e5e7eb; font-size: 16px; }
.filter-list li.hidden { display: none; }
.filter-list .flt-meta { color: #6b7280; font-size: 14px; }

/* Tables (generic) */
table.data { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
table.data th, table.data td { border: 1px solid #dbe7f5; padding: 9px 12px; text-align: left; }
table.data th { background: #eef4fb; color: #0F2A5C; }

@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  h1 { font-size: 34px; }
  .hero h1 { font-size: 40px; }
}
@media (min-width: 960px) {
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
