/* ========================================
   CASE STUDIES PAGE STYLES
   ======================================== */

/* Hero Section */
.do-case-studies-hero {
  padding: 60px 0;
  background: #ffffff;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(245, 217, 255, 1) 0%, rgba(245, 217, 255, 0) 40%),
    radial-gradient(circle at 0% 100%, rgba(234, 196, 254, 1) 0%, rgba(234, 196, 254, 0) 40%);
}

.do-case-studies-hero .hero-container {
  max-width: 768px;
  padding: 0 32px;
}

.do-case-studies-hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.43;
  letter-spacing: -0.0357em;
  color: #1B1B1F;
  margin: 0 0 4px 0;
}

.do-case-studies-hero p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.625;
  color: #4D4450;
  margin: 0;
}

/* Case Study Grid Section */
.do-case-studies-grid-section {
  background-color: #fdf6ff;
  padding: 80px 0;
}

.do-case-studies-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 15px;
}

/* Case Study Card */
a.do-case-study-card,
a.do-case-study-card:hover,
a.do-case-study-card:focus {
  text-decoration: none;
  color: inherit;
}

.do-case-study-card {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid rgba(174, 178, 184, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.do-case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.do-case-study-card-img {
  position: relative;
  height: 212px;
  overflow: hidden;
}

.do-case-study-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Category Tag */
.do-case-study-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(128, 66, 165, 0.1);
  border-radius: 12px;
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8042A5;
}

/* Card Content */
.do-case-study-card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.do-case-study-card-content h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  color: #2E3337;
  margin: 0 0 12px 0;
}

.do-case-study-card-content .card-description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.625;
  color: #5B6065;
  margin: 0 0 20px 0;
  min-height: 68px;
}

/* Card Bottom Row */
.do-case-study-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.do-case-study-stat-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.2;
  color: #8042A5;
  margin: 0;
}

.do-case-study-stat-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #777B80;
  margin: 0;
}

.do-case-study-view-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.43;
  color: #8042A5;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.do-case-study-view-link:hover {
  opacity: 0.8;
  color: #8042A5;
  text-decoration: none;
}

.do-case-study-view-link svg {
  width: 12px;
  height: 12px;
}

/* ========================================
   CASE STUDY DETAIL PAGE
   ======================================== */

/* Detail Hero */
.do-cs-detail-hero {
  padding: 40px 0;
  background: #ffffff;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(245, 217, 255, 1) 0%, rgba(245, 217, 255, 0) 40%),
    radial-gradient(circle at 0% 100%, rgba(234, 196, 254, 1) 0%, rgba(234, 196, 254, 0) 40%);
}

.do-cs-detail-hero .cs-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.do-cs-detail-hero .cs-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.33;
  color: #9240C3;
  margin: 0 0 20px 0;
}

.do-cs-detail-hero .cs-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.3;
  letter-spacing: -0.0357em;
  color: #1B1B1F;
  margin: 0 0 20px 0;
}

.do-cs-detail-hero .cs-hero-decorative {
  width: 100%;
  height: auto;
  margin-top: 20px;
}

/* Detail Content Section */
.do-cs-detail-content {
  background: #FAF9FB;
  padding: 40px 48px 96px;
}

.do-cs-detail-content .cs-content-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.do-cs-detail-layout {
  display: flex;
  gap: 40px;
}

/* Breadcrumb */
.do-cs-breadcrumb {
  max-width: 1200px;
  margin: 0 auto 10px;
  padding: 0 15px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.43;
}

.do-cs-breadcrumb a {
  color: #8042A5;
  text-decoration: none;
  font-weight: 500;
}

.do-cs-breadcrumb a:hover {
  text-decoration: underline;
  color: #67298C;
}

.do-cs-breadcrumb span {
  color: #777B80;
  margin: 0 4px;
}

.do-cs-breadcrumb .current {
  color: #2E3337;
  font-weight: 500;
}

/* Left Column */
.do-cs-detail-left {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.do-cs-detail-left h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.33;
  color: #2E3337;
  margin: 0 0 23px 0;
}

.do-cs-detail-left p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.8;
  color: #2E3337;
  margin: 0 0 20px 0;
}

.do-cs-detail-left p:last-child {
  margin-bottom: 0;
}

/* Stat Grid */
.do-cs-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.do-cs-stat-card {
  background: #FAEAFF;
  border-radius: 8px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.do-cs-stat-card .stat-value {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: -0.025em;
  color: #8042A5;
  margin: 0;
}

.do-cs-stat-card .stat-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #777B80;
  margin: 0;
}

.do-cs-stat-card .stat-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.43;
  color: #2E3337;
  margin: 0;
}

/* Sub-headings in content */
.do-cs-detail-left h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: #2E3337;
  margin: 0 0 8px 0;
}

/* Numbered Steps List */
.do-cs-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.do-cs-steps li {
  display: flex;
  gap: 16px;
}

.do-cs-steps .step-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: #8042A5;
  flex-shrink: 0;
  min-width: 32px;
}

.do-cs-steps .step-content h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: #2E3337;
  margin: 0 0 4px 0;
}

.do-cs-steps .step-content p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #5B6065;
  margin: 0;
}

/* Testimonial Quote */
.do-cs-testimonial {
  background: rgba(245, 217, 255, 0.3);
  border-left: 4px solid #8042A5;
  border-radius: 0 8px 8px 0;
  padding: 32px 40px;
  margin-top: 20px;
}

.do-cs-testimonial blockquote {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  font-style: italic;
  color: #723597;
  margin: 0 0 16px 0;
  padding: 0;
  border: none;
}

.do-cs-testimonial .testimonial-author {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.43;
  color: #2E3337;
  margin: 0;
}

.do-cs-testimonial .testimonial-role {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.43;
  color: #777B80;
  margin: 4px 0 0 0;
}

/* Insight Pull-out / Blockquote */
.do-cs-insight {
  background: rgba(245, 217, 255, 0.3);
  border-left: 4px solid #8042A5;
  border-radius: 0 8px 8px 0;
  padding: 48px 40px;
}

.do-cs-insight blockquote {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  color: #723597;
  margin: 0 0 16px 0;
  padding: 0;
  border: none;
}

.do-cs-insight .cs-insight-footer {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8042A5;
  margin: 0;
}

/* Right Column - Video */
.do-cs-detail-right {
  flex: 0 0 40%;
  padding-top: 20px;
}

.do-cs-video-container {
  position: sticky;
  top: 90px;
}

.do-cs-video-wrapper {
  background: #F3F3F6;
  border: 1px solid rgba(223, 227, 233, 0.5);
  border-radius: 8px;
  box-shadow: 0px 25px 50px -12px rgba(128, 66, 165, 0.1);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.do-cs-video-wrapper img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

.do-cs-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 51, 55, 0.1);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.do-cs-play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 8px 10px -6px rgba(0, 0, 0, 0.1), 0px 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.do-cs-play-btn:hover {
  transform: scale(1.1);
}

.do-cs-play-btn svg {
  width: 16px;
  height: 21px;
  margin-left: 4px;
}

/* Embedded YouTube */
.do-cs-video-wrapper iframe {
  width: 100%;
  height: 225px;
  border: none;
  display: block;
}

/* CTA Section */
.do-cs-cta {
  padding: 60px 0;
  text-align: center;
}

.do-cs-cta-card {
  background: rgba(215, 176, 240, 0.35);
  border-radius: 16px;
  padding: 60px 80px;
}

.do-cs-cta h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #8042A5;
  margin: 0 0 30px 0;
}

.do-cs-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.do-cs-btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 28px 16px;
  background: #8042A5;
  color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0px 4px 14px 0px rgba(128, 66, 165, 0.2);
  font-family: 'Liberation Sans', 'Arial', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.15;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.do-cs-btn-primary:hover {
  opacity: 0.9;
  color: #FFFFFF;
  text-decoration: none;
}

.do-cs-btn-outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 28px 15px;
  background: #FFFFFF;
  color: #2E3337;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-family: 'Liberation Sans', 'Arial', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.15;
  text-decoration: none;
  transition: background 0.2s ease;
}

.do-cs-btn-outline:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #2E3337;
  text-decoration: none;
}

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

@media (max-width: 991px) {
  .do-case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .do-case-studies-hero h1 {
    font-size: 34px;
  }

  .do-case-studies-hero p {
    font-size: 18px;
  }

  /* Detail page */
  .do-cs-detail-layout {
    flex-direction: column;
  }

  .do-cs-detail-right {
    flex: 0 0 100%;
    padding-top: 0;
    order: -1;
  }

  .do-cs-detail-left {
    flex: 0 0 100%;
    order: 1;
  }

  .do-cs-video-container {
    position: static;
  }

  .do-cs-detail-content {
    padding: 40px 30px 60px;
  }

  .do-cs-cta {
    padding: 40px 15px;
  }

  .do-cs-cta-card {
    padding: 40px 30px;
  }

  .do-cs-cta h2 {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .do-case-studies-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .do-case-studies-hero {
    padding: 40px 0;
  }

  .do-case-studies-hero h1 {
    font-size: 28px;
  }

  .do-case-studies-hero p {
    font-size: 16px;
  }

  .do-case-studies-grid-section {
    padding: 40px 0;
  }

  /* Detail page */
  .do-cs-detail-hero .cs-title {
    font-size: 28px;
  }

  .do-cs-detail-content {
    padding: 30px 20px 50px;
  }

  .do-cs-stat-grid {
    grid-template-columns: 1fr;
  }

  .do-cs-stat-card .stat-value {
    font-size: 28px;
  }

  .do-cs-insight blockquote {
    font-size: 24px;
  }

  .do-cs-insight {
    padding: 30px 24px;
  }

  .do-cs-cta {
    padding: 30px 15px;
  }

  .do-cs-cta-card {
    padding: 30px 20px;
    border-radius: 12px;
  }

  .do-cs-cta h2 {
    font-size: 24px;
  }

  .do-cs-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
