/* Case Study Content Styling */
.case-study-content {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  margin-bottom: 2rem;
}

/* Headings */
.case-study-content h1,
.case-study-content h2,
.case-study-content h3,
.case-study-content h4,
.case-study-content h5,
.case-study-content h6,
.case-study-heading {
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #091E3E;
  line-height: 1.3;
}

.case-study-content h1,
.case-study-heading[class*="h1"] {
  font-size: 2.5rem;
}

.case-study-content h2,
.case-study-heading[class*="h2"] {
  font-size: 2rem;
  border-bottom: 1px solid #eaecef;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

.case-study-content h3,
.case-study-heading[class*="h3"] {
  font-size: 1.5rem;
}

.case-study-content h4,
.case-study-heading[class*="h4"] {
  font-size: 1.25rem;
}

.case-study-content h5,
.case-study-heading[class*="h5"] {
  font-size: 1.1rem;
}

.case-study-content h6,
.case-study-heading[class*="h6"] {
  font-size: 1rem;
  color: #6c757d;
}

/* Paragraphs */
.case-study-content p,
.case-study-paragraph {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* Lists */
.case-study-content ul,
.case-study-content ol,
.case-study-list {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.case-study-content ul,
.case-study-list:not([class*="ordered"]) {
  list-style-type: disc;
}

.case-study-content ol,
.case-study-list[class*="ordered"] {
  list-style-type: decimal;
}

.case-study-content li,
.case-study-list-item {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.case-study-content ul ul,
.case-study-content ol ul,
.case-study-list .case-study-list {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Links */
.case-study-content a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.2s;
}

.case-study-content a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* Images */
.case-study-content img,
.case-study-image img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.case-study-image {
  margin: 1.5rem 0;
}

.case-study-image figcaption {
  font-size: 0.9rem;
  color: #6c757d;
  text-align: center;
  margin-top: 0.5rem;
}

/* Blockquotes */
.case-study-content blockquote,
.case-study-blockquote {
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid #0d6efd;
  background-color: #f8f9fa;
  font-style: italic;
}

.case-study-content blockquote p:last-child,
.case-study-blockquote p:last-child {
  margin-bottom: 0;
}

/* Code blocks */
.case-study-content pre,
.case-study-code {
  background-color: #f6f8fa;
  border-radius: 4px;
  padding: 1rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.case-study-content code {
  background-color: #f6f8fa;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

/* Tables */
.case-study-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.case-study-content th,
.case-study-content td {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
}

.case-study-content th {
  background-color: #f8f9fa;
  font-weight: 700;
  text-align: left;
}

.case-study-content tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Text formatting */
.case-study-content strong,
.case-study-content b {
  font-weight: 700;
}

.case-study-content em,
.case-study-content i {
  font-style: italic;
}

.case-study-content u {
  text-decoration: underline;
}

.case-study-content del,
.case-study-content s {
  text-decoration: line-through;
}

/* Horizontal rule */
.case-study-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .case-study-content h1,
  .case-study-heading[class*="h1"] {
    font-size: 2rem;
  }
  
  .case-study-content h2,
  .case-study-heading[class*="h2"] {
    font-size: 1.75rem;
  }
  
  .case-study-content h3,
  .case-study-heading[class*="h3"] {
    font-size: 1.4rem;
  }
  
  .case-study-content ul,
  .case-study-content ol,
  .case-study-list {
    padding-left: 1.5rem;
  }
}

/* Special formatting for links that are YouTube videos */
.case-study-content a[href*="youtube.com"],
.case-study-content a[href*="youtu.be"] {
  display: inline-block;
  color: #ff0000;
  font-weight: 600;
}

.case-study-content a[href*="youtube.com"]:before,
.case-study-content a[href*="youtu.be"]:before {
  content: "▶ ";
}
