/* ==========================================================================
   CASE STUDIES PAGE STYLESHEET (case-study.css) — Benson Hunt Technologies
   Hero styled after Blog Page (Dark Cyber Theme + Concentric SOC Radar)
   ========================================================================== */

/* 1. Hero & Header Banner (Blog Theme: Dark Cyber + Radar) */
.cs-hero-section {
  position: relative;
  margin-top: 72px; /* Offset for fixed navbar */
  padding: 70px 0 80px 0;
            background-color: #070d0a;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(37, 190, 90, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(12, 53, 42, 0.35) 0%, transparent 60%),
    linear-gradient(rgba(37, 190, 90, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 190, 90, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 18px 18px, 18px 18px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.cs-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.cs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 190, 90, 0.15);
  border: 1px solid rgba(37, 190, 90, 0.35);
  border-radius: 99px;
  color: #4ade80;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.cs-hero-badge i {
  font-size: 0.85rem;
}

.cs-hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 18px;
}

.cs-hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}



/* ==========================================================================
   2. Filter Section Below Hero
   ========================================================================== */
.cs-filter-section {
  padding: 30px 0 10px;
  background: #ffffff;
  position: sticky;
  top: 70px;
  z-index: 40;
  border: none;
  box-shadow: none;
}

.cs-filter-wrapper {
  background: #f8fafc;
  border: none;
  border-radius: 8px;
  padding: 16px 20px;
}

.cs-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 16px;
  align-items: flex-end;
}

.cs-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cs-filter-select {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--gray-800);
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--transition-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

.cs-filter-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(37, 190, 90, 0.2);
}

.cs-reset-btn {
  background: #ffffff;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cs-reset-btn:hover {
  background: #f1f5f9;
  color: var(--gray-900);
  border-color: var(--gray-400);
}

/* ==========================================================================
   3. Case Studies Grid & Cards
   ========================================================================== */
.cs-main-section {
  padding: 20px 0 90px;
  background: #ffffff;
  border: none;
}

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

/* Case Study Card Component */
.cs-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.cs-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 190, 90, 0.45);
  box-shadow: 0 16px 40px rgba(12, 53, 42, 0.12);
}

/* Card Thumbnail */
.cs-card-thumbnail {
  position: relative;
  width: 100%;
  height: 210px;
  background: var(--gray-100);
  overflow: hidden;
}

.cs-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cs-card:hover .cs-card-thumbnail img {
  transform: scale(1.06);
}

/* Badges on Thumbnail */
.cs-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(12, 53, 42, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cs-metric-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--primary-green);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(37, 190, 90, 0.4);
  z-index: 2;
}

/* Card Body */
.cs-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cs-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--primary-green);
  font-weight: 700;
  text-transform: uppercase;
}

.cs-card-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.cs-card-title a {
  color: inherit;
  text-decoration: none;
}

.cs-card:hover .cs-card-title {
  color: var(--primary-green);
}

.cs-card-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.cs-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.cs-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dark-green-bg);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.cs-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-green);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.cs-read-link:hover {
  gap: 10px;
  color: #17a94e;
}

/* Empty search state */
.cs-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.cs-empty-icon {
  font-size: 3rem;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.cs-empty-title {
  font-size: 1.3rem;
  font-weight: 750;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.cs-empty-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

/* ==========================================================================
   4. Pagination Controls (Matching Blog Style)
   ========================================================================== */
.pagination-wrapper,
.cs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 54px;
}

.page-btn,
.cs-page-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  box-sizing: border-box;
}

.page-btn:hover,
.cs-page-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.page-btn.active,
.cs-page-btn.active {
  background: #0c352a;
  border-color: #0c352a;
  color: #ffffff;
}

.page-btn.page-arrow,
.cs-page-btn.page-arrow {
  width: auto;
  padding: 0 16px;
  gap: 6px;
}

/* ==========================================================================
   5. Bottom CTA Banner
   ========================================================================== */
.cs-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0c352a 0%, #061c16 100%);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.cs-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(37, 190, 90, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 190, 90, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
}

.cs-cta-box {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.cs-cta-title {
  font-size: 2.2rem;
  font-weight: 850;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.cs-cta-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 30px;
}

.cs-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

  .cs-filter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .cs-hero-section {
    padding: 60px 0 60px;
  }

  .cs-hero-title {
    font-size: 2.1rem;
  }

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

  .cs-filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
