/* ============================================================
   CASE STUDY CUSTOM STYLES (Shared across all case study pages)
   Color Scheme: #2F1F19 (main bg), #3a2a22 (card bg), 
                 #FFF669 (accent), white text
   Font: Teko for titles, inherit for body
   ============================================================ */

/* -----------------------------------------------------------
   1. HERO
   ----------------------------------------------------------- */
.cs-hero-area {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.cs-hero-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(47,31,25,0.25) 0%, rgba(47,31,25,0.88) 100%);
  z-index: 1;
}

.cs-hero-content {
  position: relative;
  z-index: 2;
}

.cs-hero-title {
  font-family: var(--tp-ff-teko), 'Teko', sans-serif;
  font-size: clamp(60px, 10vw, 160px);
  font-weight: 700;
  line-height: 1;
  color: #FFF669;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.cs-hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.cs-hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.cs-hero-tag {
  background: rgba(255,246,105,0.12);
  border: 1px solid rgba(255,246,105,0.25);
  color: #FFF669;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.cs-breadcrumb li {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

.cs-breadcrumb li a {
  color: #FFF669;
  text-decoration: none;
}

.cs-breadcrumb .separator {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
}

/* -----------------------------------------------------------
   2. OVERVIEW SECTION
   ----------------------------------------------------------- */
.cs-overview-section {
  padding: 120px 0 100px;
}

.cs-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.cs-overview-text h3 {
  font-family: 'Teko', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #FFF669;
  margin-bottom: 20px;
  line-height: 1.1;
}

.cs-overview-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 15px;
}

.cs-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cs-metric-card {
  background: rgba(58,42,34,0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,246,105,0.08);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  transition: all 0.4s;
}

.cs-metric-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,246,105,0.25);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.cs-metric-value {
  font-family: 'Teko', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #FFF669;
  line-height: 1;
  margin-bottom: 6px;
}

.cs-metric-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* -----------------------------------------------------------
   3. CHALLENGE SECTION (yellow background)
   ----------------------------------------------------------- */
.cs-challenge-section {
  padding: 120px 0;
}

.cs-challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cs-challenge-card {
  background: rgba(47,31,25,0.08);
  border: 1px solid rgba(47,31,25,0.12);
  border-radius: 18px;
  padding: 35px 28px;
  transition: all 0.3s;
}

.cs-challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(47,31,25,0.12);
}

.cs-challenge-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #2F1F19;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.cs-challenge-icon svg {
  width: 24px;
  height: 24px;
  stroke: #FFF669;
  stroke-width: 1.5;
  fill: none;
}

.cs-challenge-card h4 {
  font-size: 19px;
  font-weight: 700;
  color: #2F1F19;
  margin-bottom: 10px;
}

.cs-challenge-card p {
  font-size: 15px;
  color: rgba(47,31,25,0.6);
  line-height: 1.7;
}

/* -----------------------------------------------------------
   4. SOLUTION SECTION
   ----------------------------------------------------------- */
.cs-solution-section {
  padding: 120px 0;
}

.cs-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.cs-solution-img {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,246,105,0.08);
}

.cs-solution-img img {
  width: 100%;
  display: block;
}

.cs-solution-steps h3 {
  font-family: 'Teko', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #FFF669;
  margin-bottom: 30px;
  line-height: 1.1;
}

.cs-step {
  display: flex;
  gap: 18px;
  margin-bottom: 25px;
}

.cs-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,246,105,0.12);
  border: 1px solid rgba(255,246,105,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Teko', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFF669;
}

.cs-step-content h5 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.cs-step-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* -----------------------------------------------------------
   5. FEATURES GRID
   ----------------------------------------------------------- */
.cs-features-section {
  padding: 0 0 120px;
}

.cs-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cs-feature-card {
  background: rgba(58,42,34,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,246,105,0.06);
  border-radius: 18px;
  padding: 35px 25px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.cs-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FFF669, transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.cs-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,246,105,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.cs-feature-card:hover::before {
  opacity: 1;
}

.cs-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,246,105,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.cs-feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #FFF669;
  stroke-width: 1.5;
  fill: none;
}

.cs-feature-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.cs-feature-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* -----------------------------------------------------------
   6. TECH STACK (yellow background)
   ----------------------------------------------------------- */
.cs-tech-section {
  padding: 100px 0;
}

.cs-tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cs-tech-item {
  background: rgba(47,31,25,0.1);
  border: 1px solid rgba(47,31,25,0.1);
  border-radius: 14px;
  padding: 18px 28px;
  text-align: center;
  min-width: 130px;
  transition: all 0.3s;
}

.cs-tech-item:hover {
  transform: translateY(-4px);
  background: rgba(47,31,25,0.15);
  box-shadow: 0 8px 25px rgba(47,31,25,0.08);
}

.cs-tech-item span {
  font-size: 14px;
  font-weight: 600;
  color: #2F1F19;
}

.cs-tech-category {
  width: 100%;
  text-align: center;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(47,31,25,0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* -----------------------------------------------------------
   7. RESULTS SECTION
   ----------------------------------------------------------- */
.cs-results-section {
  padding: 120px 0;
}

.cs-results-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 60px;
}

.cs-result-stat {
  text-align: center;
  padding: 30px 15px;
  background: rgba(58,42,34,0.5);
  border-radius: 18px;
  border: 1px solid rgba(255,246,105,0.06);
}

.cs-result-stat .cs-stat-value {
  font-family: 'Teko', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: #FFF669;
  line-height: 1;
}

.cs-result-stat .cs-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

.cs-testimonial-quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: rgba(58,42,34,0.4);
  border-radius: 20px;
  border: 1px solid rgba(255,246,105,0.08);
}

.cs-testimonial-quote blockquote {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-style: italic;
  margin: 0 0 15px;
}

.cs-testimonial-quote cite {
  font-size: 15px;
  color: #FFF669;
  font-style: normal;
  font-weight: 600;
}

/* -----------------------------------------------------------
   8. CTA
   ----------------------------------------------------------- */
.cs-cta-section {
  position: relative;
  padding: 140px 0;
  text-align: center;
}

.cs-cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.cs-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.cs-cta-title {
  font-family: 'Teko', sans-serif;
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 700;
  color: #FFF669;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cs-cta-text {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto 35px;
}

.cs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFF669;
  color: #2F1F19;
  padding: 18px 42px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.cs-cta-btn:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255,246,105,0.25);
}

/* -----------------------------------------------------------
   9. RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 1200px) {
  .cs-overview-grid,
  .cs-solution-grid {
    grid-template-columns: 1fr;
  }

  .cs-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-results-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cs-features-grid {
    grid-template-columns: 1fr;
  }

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

  .cs-hero-title {
    font-size: clamp(48px, 14vw, 100px);
  }

  .cs-results-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .cs-hero-area {
    min-height: 50vh;
    padding-bottom: 50px;
  }

  .cs-results-stats {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .cs-hero-title {
    font-size: clamp(36px, 16vw, 72px);
  }

  .cs-overview-text h3,
  .cs-solution-steps h3 {
    font-size: 32px;
  }
}

@media (max-width: 375px) {
  .cs-hero-area {
    min-height: 45vh;
  }

  .cs-feature-card,
  .cs-metric-card {
    padding: 22px 18px;
  }
}
