/* Case Studies Page Specific Styles */
:root {
  --cs-bg: #0d0d0d;
  --cs-card-bg: rgba(25, 25, 25, 0.8);
  --cs-accent: #FFB800;
  --cs-text: #F0F0F0;
  --cs-text-muted: #A0A0A0;
}

body.case-studies-page {
  background-color: var(--cs-bg);
  color: var(--cs-text);
  overflow-x: hidden;
}

/* Nav Menu Modifications for Case Studies Page */
#navbar.nav-solid {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.cs-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  text-transform: uppercase;
  color: #fff;
}

/* Hero Section */
.cs-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  overflow: hidden;
}

.cs-hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 184, 0, 0.1), transparent 70%);
  z-index: 1;
}

.cs-hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cs-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 1;
  color: #fff;
  margin: 1rem 0;
  text-transform: uppercase;
}

.cs-hero-subtitle {
  font-size: 1.25rem;
  color: var(--cs-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Numbers Timeline */
.cs-numbers-timeline {
  padding: 6rem 0;
  background: linear-gradient(to bottom, transparent, rgba(20, 20, 20, 0.8), transparent);
}

.timeline-container {
  position: relative;
  margin: 4rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: rgba(255, 184, 0, 0.2);
}

.timeline-point {
  position: relative;
  padding-left: 60px;
  margin-bottom: 4rem;
}

.tl-dot {
  position: absolute;
  left: 15px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cs-accent);
  box-shadow: 0 0 10px var(--cs-accent);
}

.tl-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--cs-accent);
  margin-bottom: 1rem;
  line-height: 1;
}

.tl-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  background: var(--cs-card-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tl-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.25rem 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 184, 0, 0.12);
  border-radius: 10px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.tl-stat:hover {
  border-color: rgba(255, 184, 0, 0.35);
  background: rgba(255, 184, 0, 0.04);
  transform: translateY(-2px);
}

.tl-event {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 0.75rem;
  min-height: 2.6em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tl-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.75rem;
  color: var(--cs-accent);
  line-height: 1;
  margin-top: auto;
}

@media (max-width: 600px) {
  .tl-content {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }
  .tl-stat {
    padding: 1rem;
  }
  .tl-number {
    font-size: 2.25rem;
  }
}

.total-impact {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem;
  background: rgba(255, 184, 0, 0.05);
  border: 1px solid rgba(255, 184, 0, 0.2);
  border-radius: 12px;
}

.impact-label {
  font-size: 1.2rem;
  color: var(--cs-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.impact-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 8vw, 6rem);
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 184, 0, 0.5);
}

/* Case Studies Grid */
.cs-studies-list {
  padding: 6rem 0;
}

.cs-grid {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.cs-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cs-card:nth-child(even) {
  direction: rtl;
}

.cs-card:nth-child(even) .cs-card-content {
  direction: ltr;
}

.cs-card-img-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  aspect-ratio: 4/3;
}

.cs-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cs-card:hover .cs-card-img-wrapper img {
  transform: scale(1.05);
}

.cs-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cs-card-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--cs-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cs-card-year {
  background: rgba(255, 184, 0, 0.1);
  color: var(--cs-accent);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.cs-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  line-height: 1.1;
  color: #fff;
}

.cs-card-campaign {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cs-accent);
}

.cs-card-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--cs-text-muted);
}

/* Case Study Image Slider */
.cs-slider-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.cs-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.cs-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.cs-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 5;
}

.cs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  pointer-events: auto;
}

.cs-slider-btn:hover {
  background: var(--cs-accent);
  color: #000;
}

.cs-slider-btn.prev-btn { left: 10px; }
.cs-slider-btn.next-btn { right: 10px; }

.cs-slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.cs-dot.active {
  background: var(--cs-accent);
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 992px) {
  .cs-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cs-card:nth-child(even) {
    direction: ltr;
  }
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 1;
  }
  .timeline-content {
    grid-template-columns: 1fr;
  }
  .cs-hero-title {
    font-size: 4rem;
  }
}
