/**
 * Crack The Stack - Frontend Enhancements Styling (v1.4.0)
 */

/* Hide Blog Comment Boxes on Portfolio / Course Pages */
.single-portfolio #comments,
.single-portfolio .jupiterx-comments,
.single-portfolio .comments-area,
.single-portfolio .jupiterx-post-meta-comments {
  display: none !important;
}

/* Editorial Blog Article Typography */
.cts-article-body {
  font-size: 1.06rem;
  line-height: 1.78;
  color: #334155;
  max-width: 860px;
}

.cts-article-body .cts-lead-paragraph {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 500;
  border-left: 4px solid #4f46e5;
  padding-left: 20px;
  margin-bottom: 28px;
}

.cts-article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-top: 38px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.cts-article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 26px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.cts-article-body p {
  margin-bottom: 20px;
}

.cts-article-body ul,
.cts-article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.cts-article-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Course Container & Layout */
.cts-course-container,
.cts-upgrade-section,
.cts-blog-takeaway-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 35px;
  margin: 35px auto;
  max-width: 960px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  font-family: inherit;
}

.cts-blog-takeaway-box {
  background: #f8fafc;
  border-left: 5px solid #4f46e5;
}

.cts-course-badge {
  display: inline-block;
  background-color: #e0e7ff;
  color: #3730a3;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.cts-course-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1.3;
  margin-bottom: 16px;
}

.cts-course-summary {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* Metadata Grid */
.cts-course-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 18px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.cts-meta-item {
  display: flex;
  flex-direction: column;
}

.cts-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.cts-meta-val {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 600;
}

/* Deliverables 3-Column Grid */
.cts-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 25px 0 35px;
}

.cts-deliverable-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 22px;
}

.cts-deliverable-card h4 {
  color: #1e1b4b;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
}

.cts-deliverable-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Learning Outcomes Checklist */
.cts-course-section {
  margin-bottom: 30px;
}

.cts-included-box {
  background: #f8fafc;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.cts-course-section h3,
.cts-course-section h4,
.cts-blog-takeaway-box h3,
.cts-upgrade-section h3 {
  font-size: 1.3rem;
  color: #1e293b;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}

.cts-checklist {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
}

.cts-checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: #334155;
  line-height: 1.6;
}

.cts-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Curriculum Modules List */
.cts-module-list {
  padding-left: 20px;
  margin: 0;
  color: #334155;
}

.cts-module-list li {
  margin-bottom: 10px;
  line-height: 1.6;
  font-weight: 500;
}

/* Call to Action Box */
.cts-course-cta-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  padding: 32px;
  border-radius: 10px;
  text-align: center;
  margin-top: 35px;
}

.cts-course-cta-box h3 {
  color: #ffffff !important;
  font-size: 1.45rem;
  margin-top: 0;
  margin-bottom: 10px;
  border: none;
}

.cts-course-cta-box p {
  color: #cbd5e1 !important;
  font-size: 0.98rem;
  margin-bottom: 22px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cts-cta-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Buttons */
.cts-btn {
  display: inline-block;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
}

.cts-btn-primary {
  background-color: #4f46e5;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.cts-btn-primary:hover {
  background-color: #4338ca;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

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

.cts-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Fix mobile responsive padding */
@media (max-width: 768px) {
  .cts-course-container,
  .cts-upgrade-section,
  .cts-blog-takeaway-box {
    padding: 20px;
    margin: 20px auto;
  }
  .cts-course-title {
    font-size: 1.4rem;
  }
}
