
.hero-header {
  position: relative;
  min-height: 50vh;
  background: linear-gradient(135deg, #0a0f16 0%, #141b2b 100%);
  transition: min-height 0.5s ease;
}

.hero-header .hero-content {
  transition: all 0.5s ease;
}

.hero-header .hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  margin-top: 25px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-header .hero-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-header.detail-mode {
  min-height: 40vh;
}

.hero-header.detail-mode .hero-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: center;
  margin-top: 10px;
}

.hero-header.detail-mode .hero-content p {
  text-align: center;
  max-width: 700px;
}

.cs-blog-section {
  padding: 50px 0;
  background: #fafcff;
  transition: all 0.5s ease;
}

.cs-blog-section.hidden {
  display: none;
}

.cs-cards-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.cs-card {
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 30px -10px rgba(10, 15, 22, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
  cursor: pointer;
}

.cs-card-img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #0a0f16;
}

.cs-card-img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 22, 0) 40%,
    rgba(10, 15, 22, 0.6) 100%
  );
  z-index: 2;
  transition: opacity 0.4s ease;
}

.cs-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition:
    transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    filter 0.4s ease;
  filter: grayscale(10%) contrast(1.05);
}

.cs-num {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #171717;
  font-size: 0.9rem;
  font-weight: 800;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cs-category-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(247, 89, 16, 0.9);
  color: white;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(247, 89, 16, 0.2);
  transition: background 0.3s ease;
}

.cs-card-body {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.cs-card-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #171717;
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.cs-card-body p {
  font-size: 0.92rem;
  color:#1d2128;
  line-height: 1.65;
  margin-bottom: 26px;
  flex-grow: 1;
}

.card-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #171717;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: auto;
  transition:
    color 0.3s ease,
    gap 0.3s ease;
}

.card-footer-link i {
  color: var(--primary);
  font-size: 0.85rem;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cs-card:hover {
  transform: translateY(-8px);
  border-color: rgba(247, 89, 16, 0.25);
  box-shadow: 0 25px 50px -12px rgba(247, 89, 16, 0.15);
}

.cs-card:hover .cs-card-img-wrap img {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(1.02);
}

.cs-card:hover .cs-num {
  background: #171717;
  color: #ffffff;
  border-color: #171717;
  transform: scale(1.05);
}

.cs-card:hover .cs-card-body h3 {
  color: var(--primary);
}

.cs-card:hover .card-footer-link {
  color: var(--primary-dark);
  gap: 14px;
}

.cs-card:hover .card-footer-link i {
  transform: translateX(4px);
}

.cs-card:active {
  transform: scale(0.97);
}

.cs-detail-section {
  padding: 60px 0;
  background: #fafcff;
  min-height: 60vh;
}

.cs-detail-section.visible {
  display: block !important;
}

.back-to-cases {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: #1d2128;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 30px;
  transition: color 0.3s ease;
}

.back-to-cases:hover {
  color: var(--primary);
}

.back-to-cases i {
  transition: transform 0.3s ease;
}

.back-to-cases:hover i {
  transform: translateX(-4px);
}

.cs-detail-wrapper {
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cs-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.cs-detail-main {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 30px -10px rgba(10, 15, 22, 0.04);
}

.cs-detail-image-wrap {
  height: 400px;
  overflow: hidden;
  position: relative;
}

.cs-detail-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-detail-body {
  padding: 20px;
}

.cs-detail-body .detail-category {
  display: inline-block;
  background: rgba(247, 89, 16, 0.1);
  color: var(--primary);
  padding: 4px 16px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cs-detail-body h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #171717;
}

.cs-detail-body .detail-subtitle {
  font-size: 1.05rem;
  color: #1d2128;
  margin-bottom: 30px;
}

.cs-detail-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #171717;
}

.cs-detail-body h3:first-of-type {
  margin-top: 0;
}

.cs-detail-body .detail-text {
  font-size: 1rem;
  color: #1d2128;
  margin-bottom: 20px;
}

.cs-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cs-detail-sidebar .sidebar-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 30px -10px rgba(10, 15, 22, 0.04);
}

.cs-detail-sidebar .sidebar-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #171717;
  margin-bottom: 16px;
}

.cs-detail-sidebar .sidebar-card ul {
  list-style: none;
  padding: 0;
}

.cs-detail-sidebar .sidebar-card ul li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: #1d2128;
  line-height: 1.5;
  border-bottom: 1px solid #f0f2f5;
}

.cs-detail-sidebar .sidebar-card ul li:last-child {
  border-bottom: none;
}

.cs-detail-sidebar .sidebar-card ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 10px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-3px);
}

.share-btn.linkedin {
  background: #0a66c2;
}
.share-btn.twitter {
  background: #000000;
}
.share-btn.facebook {
  background: #1877f2;
}
.share-btn.email {
  background: #ea4335;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(247, 89, 16, 0.4);
}

@media (max-width: 1100px) {
  .cs-cards-blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
  .cs-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .cs-blog-section {
    padding: 30px 0;
  }
  .cs-cards-blog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cs-card-body {
    padding: 24px;
  }
  .cs-detail-body {
    padding: 24px;
  }
  .cs-detail-image-wrap {
    height: 250px;
  }
  .cs-detail-body h2 {
    font-size: 1.6rem;
  }
  .hero-header.detail-mode {
    min-height: 30vh;
  }
  .hero-header.detail-mode .hero-content h1 {
    font-size: 1.8rem;
  }
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
  .footer-bottom p {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cs-detail-sidebar .sidebar-card {
    padding: 20px;
  }
  .cs-detail-body {
    padding: 20px;
  }
}
