/* SDCC learning tools & marketing pages (POSI Academy–inspired) */
.sdcc-tool-page {
  background: #f4f7f6;
  color: #1a2e2e;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  min-height: 100vh;
}

.sdcc-tool-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.sdcc-tool-hero {
  margin-bottom: 2rem;
}

.sdcc-tool-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45a2c;
  margin: 0 0 0.5rem;
}

.sdcc-tool-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #0a4247;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.sdcc-tool-intro {
  font-size: 1.05rem;
  color: #3d5555;
  line-height: 1.6;
  margin: 0;
}

.sdcc-tool-section h2 {
  font-size: 1.35rem;
  color: #0a4247;
  margin: 0 0 0.5rem;
}

.sdcc-tool-section p {
  color: #4a6363;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.sdcc-tool-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 2rem;
}

.sdcc-tool-card {
  background: #fff;
  border: 1px solid rgba(10, 66, 71, 0.1);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(8, 66, 72, 0.05);
}

.sdcc-tool-card__num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45a2c;
  margin-bottom: 0.5rem;
}

.sdcc-tool-card h3 {
  font-size: 1.05rem;
  color: #0a4247;
  margin: 0 0 0.5rem;
}

.sdcc-tool-card p {
  font-size: 0.92rem;
  color: #4a6363;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.sdcc-tool-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0a4247;
  text-decoration: none;
}

.sdcc-tool-link:hover {
  color: #b45a2c;
}

.sdcc-tool-steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.sdcc-tool-step {
  display: flex;
  gap: 1rem;
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(10, 66, 71, 0.08);
}

.sdcc-tool-step__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #0a4247;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sdcc-tool-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #0a4247;
}

.sdcc-tool-step p {
  margin: 0;
  font-size: 0.92rem;
  color: #4a6363;
  line-height: 1.5;
}

.sdcc-tool-faq-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.sdcc-tool-faq {
  background: #fff;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(10, 66, 71, 0.08);
}

.sdcc-tool-faq summary {
  font-weight: 600;
  color: #0a4247;
  cursor: pointer;
}

.sdcc-tool-faq p {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: #4a6363;
  line-height: 1.5;
}

.sdcc-tool-panel {
  background: linear-gradient(135deg, #0a4247, #0e5a62);
  color: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
}

.sdcc-tool-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.sdcc-tool-panel p {
  margin: 0;
  opacity: 0.92;
  line-height: 1.55;
}

/* Interactive tool apps */
.sdcc-tool-app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.sdcc-tool-app__head h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #0a4247;
  margin: 0 0 0.35rem;
}

.sdcc-tool-app__head p {
  color: #5a6b6b;
  margin: 0 0 1.25rem;
}

.sdcc-tool-loading {
  text-align: center;
  color: #5a6b6b;
  padding: 2rem;
}

/* Khatmah */
.sdcc-khatmah-progress {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(10, 66, 71, 0.1);
}

.sdcc-khatmah-progress__bar {
  height: 10px;
  background: #e8ecea;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0;
}

.sdcc-khatmah-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #0a4247, #b45a2c);
  border-radius: 999px;
  transition: width 0.3s;
}

.sdcc-khatmah-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.65rem;
}

.sdcc-khatmah-juz {
  background: #fff;
  border: 2px solid rgba(10, 66, 71, 0.12);
  border-radius: 12px;
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}

.sdcc-khatmah-juz:hover {
  border-color: #0a4247;
}

.sdcc-khatmah-juz.is-done {
  background: #e8f5f0;
  border-color: #0a4247;
}

.sdcc-khatmah-juz__num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a4247;
}

.sdcc-khatmah-juz__label {
  font-size: 0.72rem;
  color: #5a6b6b;
}

.sdcc-khatmah-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sdcc-tool-btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 2px solid #0a4247;
  background: #fff;
  color: #0a4247;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.sdcc-tool-btn--primary {
  background: #0a4247;
  color: #fff;
}

/* Tajweed */
.sdcc-tajweed-list {
  display: grid;
  gap: 0.75rem;
}

.sdcc-tajweed-rule {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(10, 66, 71, 0.1);
  overflow: hidden;
}

.sdcc-tajweed-rule summary {
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: #0a4247;
  cursor: pointer;
  list-style: none;
}

.sdcc-tajweed-rule summary::-webkit-details-marker {
  display: none;
}

.sdcc-tajweed-rule__body {
  padding: 0 1.15rem 1rem;
  border-top: 1px solid rgba(10, 66, 71, 0.06);
}

.sdcc-tajweed-rule__ar {
  font-family: Amiri, serif;
  font-size: 1.15rem;
  direction: rtl;
  color: #1a2e1a;
  margin: 0.5rem 0;
}

.sdcc-tajweed-example {
  background: #f7f2e4;
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.88rem;
}

/* Azkar */
.sdcc-azkar-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sdcc-azkar-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 2px solid #0a4247;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.sdcc-azkar-tab.is-active {
  background: #0a4247;
  color: #fff;
}

.sdcc-azkar-item {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(10, 66, 71, 0.08);
}

.sdcc-azkar-item__ar {
  font-family: Amiri, serif;
  font-size: 1.35rem;
  direction: rtl;
  line-height: 1.8;
  color: #1a2e1a;
  margin: 0 0 0.5rem;
}

.sdcc-azkar-item__trans {
  font-size: 0.88rem;
  color: #5a6b6b;
  font-style: italic;
  margin: 0 0 0.35rem;
}

.sdcc-azkar-item__en {
  font-size: 0.92rem;
  color: #3d5555;
  margin: 0;
}

.sdcc-azkar-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.sdcc-azkar-count {
  font-weight: 700;
  color: #0a4247;
  min-width: 2rem;
}

/* Prayer times */
.sdcc-prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.sdcc-prayer-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(10, 66, 71, 0.1);
}

.sdcc-prayer-card.is-next {
  border-color: #b45a2c;
  box-shadow: 0 0 0 2px rgba(180, 90, 44, 0.2);
}

.sdcc-prayer-card__name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6b6b;
  margin-bottom: 0.35rem;
}

.sdcc-prayer-card__time {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a4247;
}

.sdcc-prayer-meta {
  text-align: center;
  color: #5a6b6b;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* Learn Salah */
.sdcc-salah-steps {
  display: grid;
  gap: 1rem;
}

.sdcc-salah-step {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(10, 66, 71, 0.08);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.sdcc-salah-step__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #e8f5f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.sdcc-salah-step h3 {
  margin: 0 0 0.35rem;
  color: #0a4247;
  font-size: 1.05rem;
}

.sdcc-salah-step p {
  margin: 0;
  color: #4a6363;
  font-size: 0.92rem;
  line-height: 1.5;
}

.sdcc-salah-step__ar {
  font-family: Amiri, serif;
  direction: rtl;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: #1a2e1a;
}

@media (max-width: 768px) {
  .sdcc-khatmah-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}
