/* ============================================
   Case Studies - HCC Global
   Matches website design language
   ============================================ */

/* ---- Page Hero Banner ---- */
.cs-hero {
  background: linear-gradient(135deg, #0b091b 0%, #1a1635 60%, #2a1f3d 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cs-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 60% 40%, rgba(199, 35, 51, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cs-hero-badge {
  display: inline-block;
  background-color: #fde4e4;
  color: #d72323;
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 5px;
  padding: 6px 18px;
  margin-bottom: 18px;
  font-family: var(--heading-font, 'Raleway', sans-serif);
  letter-spacing: 0.5px;
}

.cs-hero h1 {
  color: #ffffff;
  font-family: var(--heading-font, 'Raleway', sans-serif);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.25;
}

.cs-hero h1 span {
  color: #d72323;
}

.cs-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- List Page Grid ---- */
.cs-section {
  padding: 60px 0 80px;
  background: #f9f9f9;
}

.cs-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.cs-section-header h2 {
  font-family: var(--heading-font, 'Raleway', sans-serif);
  font-size: 2rem;
  color: #0b091b;
  font-weight: 700;
  margin-bottom: 12px;
}

.cs-section-header p {
  color: #595b62;
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
}

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

/* ---- Full-image overlay card ---- */
.cs-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  height: 360px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

/* Image fills entire card */
.cs-card-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cs-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cs-card:hover .cs-card-img-wrap img {
  transform: scale(1.08);
}

/* Placeholder when no image */
.cs-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1635 0%, #2a1f3d 60%, #3b2050 100%);
}

.cs-card-img-placeholder::after {
  content: 'HCC';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(215, 35, 35, 0.3);
  font-family: var(--heading-font, 'Raleway', sans-serif);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 6px;
}

/* Industry tag — top left */
.cs-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-block;
  background: rgba(215, 35, 35, 0.9);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  backdrop-filter: blur(4px);
}

/* Bottom overlay with title */
.cs-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 48px 22px 22px;
  background: linear-gradient(to top, rgba(11, 9, 27, 0.90) 0%, rgba(11, 9, 27, 0.55) 60%, transparent 100%);
  transition: background 0.3s ease, padding 0.3s ease;
}

.cs-card:hover .cs-card-overlay {
  padding-bottom: 28px;
  background: linear-gradient(to top, rgba(215, 35, 35, 0.80) 0%, rgba(11, 9, 27, 0.60) 70%, transparent 100%);
}

.cs-card-overlay h3 {
  font-family: var(--heading-font, 'Raleway', sans-serif);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.35;
}

.cs-card-cta {
  display: inline-block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.83rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  transform: translateX(0);
}

.cs-card:hover .cs-card-cta {
  color: #ffffff;
  transform: translateX(4px);
}


/* ---- Detail Page ---- */

/* Hero section of detail page */
.cs-detail-hero {
  background: linear-gradient(135deg, #0b091b 0%, #1a1635 60%, #2a1f3d 100%);
  background-size: cover;
  background-position: center;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

/* Dark overlay when thumbnail image is present */
.cs-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 9, 27, 0.82) 0%, rgba(26, 22, 53, 0.75) 60%, rgba(42, 31, 61, 0.70) 100%);
  z-index: 1;
}

.cs-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(199, 35, 51, 0.10) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: #fde4e4;
  color: #d72323;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 5px;
  padding: 6px 16px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cs-detail-hero h1 {
  font-family: var(--heading-font, 'Raleway', sans-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 0.88rem;
}

.hero-meta span strong {
  color: #ffffff;
}

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

.btn-primary-cs {
  display: inline-block;
  background-color: #d72323;
  color: #ffffff;
  padding: 11px 28px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-primary-cs:hover {
  background-color: #b91c1c;
  color: #ffffff;
}

.btn-ghost-cs {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  padding: 11px 28px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost-cs:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Detail sections */
.cs-body-section {
  padding: 30px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cs-body-section:last-of-type {
  border-bottom: none;
}

.cs-body-section h2 {
  font-family: var(--heading-font, 'Raleway', sans-serif);
  font-size: 1.75rem;
  color: #0b091b;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 18px;
  border-left: 4px solid #d72323;
}

.cs-body-section p {
  color: #595b62;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 820px;
}

/* Video */
.video-wrapper {
  margin: 48px 0;
}

.video-inner {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.video-inner iframe,
.video-inner video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.video-caption {
  text-align: center;
  color: #595b62;
  font-size: 0.9rem;
  margin-top: 14px;
  font-style: italic;
}

/* Quote */
.cs-quote-section {
  background: #f9f9f9;
  padding: 56px 0;
}

.quote {
  font-size: 1.25rem;
  color: #0b091b;
  font-style: italic;
  line-height: 1.75;
  padding: 28px 36px;
  border-left: 5px solid #d72323;
  background: #ffffff;
  border-radius: 0 10px 10px 0;
  max-width: 820px;
  margin-bottom: 14px;
}

.quote-author {
  color: #d72323;
  font-weight: 600;
  font-size: 0.95rem;
  padding-left: 36px;
}

/* CTA Section */
.cta {
  background-image: url('../img/SEVICE.jpeg');
  background-size: cover;
  background-position: center;
  padding: 70px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: linear-gradient(135deg, rgba(11, 9, 27, 0.88) 0%, rgba(26, 22, 53, 0.82) 60%, rgba(42, 31, 61, 0.78) 100%); */
  /*background: linear-gradient(135deg, rgb(230 2 58 / 88%) 0%, rgb(230 114 114 / 82%) 60%, rgb(125 6 28 / 78%) 100%);*/
    background:linear-gradient(135deg, rgb(100 54 63 / 88%) 0%, rgb(196 33 29 / 89%) 60%, rgb(100 54 63 / 78%) 100%);
  pointer-events: none;
}

.cta h2 {
  font-family: var(--heading-font, 'Raleway', sans-serif);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta .btn-primary-cs {
  font-size: 1rem;
  padding: 13px 34px;
}

/* Back link */
.cs-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d72323;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 32px;
  transition: gap 0.2s ease;
}

.cs-back-link:hover {
  gap: 10px;
  color: #b91c1c;
}

/* Empty state */
.cs-empty {
  text-align: center;
  padding: 60px 20px;
  color: #595b62;
}

.cs-empty i {
  font-size: 3rem;
  color: #d72323;
  margin-bottom: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cs-hero h1,
  .cs-detail-hero h1 {
    font-size: 1.9rem;
  }

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

  .cs-card {
    height: 300px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cs-body-section h2 {
    font-size: 1.4rem;
  }

  .quote {
    padding: 20px 22px;
    font-size: 1.05rem;
  }

  .cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .cs-hero {
    padding: 50px 0 40px;
  }

  .cs-hero h1 {
    font-size: 1.6rem;
  }
}
