/* ==========================================
   SAAD VISUALS — CASE STUDIES PAGE STYLES
   ========================================== */

/* Hero Section */
.case-studies-hero {
  padding: 30px 0 20px;
  text-align: center;
  position: relative;
}

.case-studies-hero .section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-mint);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.case-studies-hero .hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.case-studies-hero .hero-subtitle {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Grid Container */
.case-studies-section {
  padding: 16px 0 40px;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

@media (max-width: 768px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Case Study Card */
.case-study-card {
  opacity: 1 !important;
  visibility: visible !important;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-mint-glow);
}

.cs-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.cs-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cs-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.case-study-card:hover .cs-media-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
}

.cs-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(162, 237, 162, 0.9);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.cs-play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.case-study-card:hover .cs-play-btn {
  transform: scale(1.15);
  background: #A2EDA2;
}

.cs-client-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-mint);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(162, 237, 162, 0.3);
}

.cs-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cs-card-meta {
  margin-bottom: 8px;
}

.cs-type-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.cs-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 8px;
}

.cs-card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-roles-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.role-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ddd;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.cs-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-mint);
  letter-spacing: 0.05em;

}

.cs-read-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.case-study-card:hover .cs-read-link svg {
  transform: translateX(5px);
}

/* Full Reader Modal */
.cs-reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  overflow-y: auto;
}

.cs-reader-modal {
  background: #181818;
  border: 1px solid rgba(162, 237, 162, 0.25);
  border-radius: var(--radius-lg);
  max-width: 1100px;
  width: 100%;
  margin: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .cs-reader-overlay {
    padding: 16px 10px;
  }

  .cs-reader-modal {
    padding: 24px 18px;
  }
}

.cs-reader-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.cs-reader-close:hover {
  background: var(--accent-mint);
  color: #111;
  transform: scale(1.1);
}

/* Reader Header */
.cs-reader-header {
  margin-bottom: 32px;
  padding-right: 50px;
}

.cs-meta-top {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.cs-badge-emerald {
  background: rgba(162, 237, 162, 0.15);
  color: var(--accent-mint);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(162, 237, 162, 0.3);
}

.cs-badge-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ddd;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cs-reader-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.cs-reader-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Video Embed Wrapper */
.video-embed-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  background: #000;
}

.video-embed-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Content Layout Grid */
.cs-reader-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin-bottom: 40px;
}

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

.cs-reader-main-content {
  font-size: 16px;
  line-height: 1.8;
  color: #E0E0E0;
}

.cs-heading-2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-white);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-heading-3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-mint);
  margin: 24px 0 12px;
}

.cs-paragraph {
  margin-bottom: 20px;
  color: #CCCCCC;
}

.cs-paragraph strong {
  color: var(--text-white);
}

/* Sidebar */
.cs-reader-sidebar {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  height: fit-content;
}

.sidebar-block {
  margin-bottom: 24px;
}

.sidebar-block:last-child {
  margin-bottom: 0;
}

.sidebar-block label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-mint);
  display: block;
  margin-bottom: 8px;
}

.sidebar-block p {
  font-size: 15px;
  color: var(--text-white);
  font-weight: 600;
  line-height: 1.4;
}

.cs-worked-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-worked-list li {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #CCCCCC;
  padding-left: 16px;
  position: relative;
}

.cs-worked-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-mint);
  font-weight: 800;
}

/* Bottom CTA */
.cs-reader-cta {
  padding: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(36, 36, 36, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
  border: 1px solid rgba(162, 237, 162, 0.3);
  margin-top: 40px;
}

.cs-reader-cta h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.cs-reader-cta p {
  color: var(--text-muted);
}