/* ==========================================================================
   TÜRKİYE AR-GE VAKFI - DERS DETAY SAYFASI STİLLERİ
   ========================================================================== */

.course-detail-page {
  background: #f4f6f8;
  color: #17231f;
  padding-bottom: 80px;
}

.course-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--page-pad, 56px);
}

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

.course-hero {
  padding: 56px 0 48px;
  background: linear-gradient(135deg, #102d26 0%, #173d34 60%, #1f4d43 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.course-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.18;
  color: #ffffff;
  max-width: 880px;
}

.course-lead {
  max-width: 800px;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.course-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   BUTONLAR
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.button-primary {
  background: #ffffff;
  color: #14342c;
  border: 1px solid #ffffff;
}

.button-primary:hover {
  background: #edf2f0;
  color: #14342c;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.button-outline {
  background: transparent;
  color: #1f4d43;
  border: 1px solid #1f4d43;
}

.button-outline:hover {
  background: #1f4d43;
  color: #ffffff;
}

.button-full {
  width: 100%;
}

/* ==========================================================================
   İÇERİK LAYOUT (GRID)
   ========================================================================== */

.course-body-section {
  padding: 48px 0;
}

.course-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.course-main-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.course-content-block {
  background: #ffffff;
  border: 1px solid #d8dfdc;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 4px 14px rgba(20, 52, 44, 0.04);
}

.section-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1f4d43;
  margin-bottom: 6px;
}

.course-content-block h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: #17231f;
}

.course-content-block p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #4a5c56;
}

.target-audience-box {
  margin-top: 20px;
  padding: 16px 20px;
  background: #edf4f1;
  border-left: 4px solid #1f4d43;
  border-radius: 6px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #24342f;
}

.target-audience-box strong {
  color: #14342c;
  font-weight: 800;
}

/* KAZANIMLAR LİSTESİ */
.outcomes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.outcomes-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #33443e;
}

.check-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #edf4f1;
  color: #1f4d43;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* MODÜLLER LİSTESİ */
.modules-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.module-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  background: #f8faf9;
  border: 1px solid #d8dfdc;
  border-radius: 8px;
  align-items: start;
}

.module-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #14342c;
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
}

.module-content h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 800;
  color: #17231f;
  overflow-wrap: anywhere;
}

.module-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #566761;
  overflow-wrap: anywhere;
}

/* ÖĞRENME YÖNTEMİ KARTLARI */
.method-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.method-card {
  padding: 18px;
  background: #f8faf9;
  border: 1px solid #d8dfdc;
  border-radius: 8px;
}

.method-card strong {
  display: block;
  font-size: 15px;
  color: #14342c;
  margin-bottom: 6px;
}

.method-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #61736d;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.course-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid #d8dfdc;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(20, 52, 44, 0.04);
}

.sidebar-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  color: #17231f;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5ebe8;
}

.sidebar-facts {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.sidebar-facts div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #edf2f0;
}

.sidebar-facts dt {
  color: #66736f;
}

.sidebar-facts dd {
  margin: 0;
  font-weight: 700;
  color: #17231f;
  text-align: right;
}

.sidebar-cta .button-primary {
  background: #14342c;
  color: #ffffff;
  border-color: #14342c;
}

.sidebar-cta .button-primary:hover {
  background: #1f4d43;
  border-color: #1f4d43;
}

.sidebar-note {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #70807a;
  text-align: center;
}

.contact-sidebar-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #566761;
}

.related-courses-list {
  display: grid;
  gap: 8px;
}

.related-course-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: #f8faf9;
  border: 1px solid #d8dfdc;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-course-link:hover {
  background: #edf4f1;
  border-color: #1f4d43;
}

.related-course-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #8a6f4d;
  text-transform: uppercase;
}

.related-course-link strong {
  font-size: 13.5px;
  color: #17231f;
  line-height: 1.35;
}

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

@media (max-width: 1024px) {
  .course-grid-layout {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    order: 2;
  }
}

@media (max-width: 760px) {
  .course-detail-page {
    padding-bottom: 40px;
  }

  .course-container {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
  }

  .course-hero {
    padding: 32px 0;
  }

  .course-title {
    font-size: clamp(25px, 7.5vw, 32px);
    overflow-wrap: anywhere;
  }

  .course-lead {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .course-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .course-hero-actions .button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .course-body-section {
    padding: 28px 0;
  }

  .course-grid-layout,
  .course-main-content {
    min-width: 0;
    gap: 20px;
  }

  .course-content-block {
    min-width: 0;
    padding: 22px 18px;
  }

  .course-content-block h2 {
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .target-audience-box {
    padding: 14px 16px;
    overflow-wrap: anywhere;
  }

  .method-cards-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .module-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .course-sidebar,
  .sidebar-card,
  .related-course-link {
    min-width: 0;
  }

  .sidebar-card {
    padding: 20px 18px;
  }

  .sidebar-facts div {
    align-items: flex-start;
    gap: 12px;
  }

  .sidebar-facts dd {
    max-width: 62%;
    overflow-wrap: anywhere;
  }

  .related-course-link strong {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .sidebar-facts div {
    display: grid;
    gap: 3px;
  }

  .sidebar-facts dd {
    max-width: none;
    text-align: left;
  }
}
