/* =====================================================
   DHANUSH PROJECT CASE STUDIES
   Listing Page + Single Case Study
   ===================================================== */

.dhpcs-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 70px;
  box-sizing: border-box;
  color: #253247;
}

.dhpcs-container *,
.dhpcs-listing * {
  box-sizing: border-box;
}

/* =====================================================
   LISTING PAGE
   ===================================================== */

.dhpcs-listing {
  width: 100%;
  margin: 0 auto;
}

.dhpcs-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
}

.dhpcs-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(18, 38, 63, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.dhpcs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(18, 38, 63, 0.12);
}

.dhpcs-card-image-link {
  display: block;
  width: 100%;
  height: 225px;
  overflow: hidden;
  background: #eef3f9;
}

.dhpcs-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.dhpcs-card:hover .dhpcs-card-image {
  transform: scale(1.04);
}

.dhpcs-card-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 225px;
  width: 100%;
  background: linear-gradient(135deg, #12345b, #1769aa);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
}

.dhpcs-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 25px;
}

.dhpcs-featured-badge {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 12px;
  border-radius: 30px;
  background: #e9f2ff;
  color: #1458a6;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.dhpcs-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
}

.dhpcs-card-meta span + span {
  padding-left: 9px;
  border-left: 1px solid #cbd5e1;
}

.dhpcs-card-title {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  color: #17365d;
}

.dhpcs-card-title a {
  color: inherit;
  text-decoration: none;
}

.dhpcs-card-title a:hover {
  color: #1769aa;
}

.dhpcs-card-description {
  margin-bottom: 22px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.75;
}

.dhpcs-card-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 0 0;
  color: #1769aa;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.dhpcs-card-button:hover {
  color: #0e426f;
}

.dhpcs-card-button span {
  transition: transform 0.2s ease;
}

.dhpcs-card-button:hover span {
  transform: translateX(4px);
}

/* =====================================================
   LISTING PAGINATION
   ===================================================== */

.dhpcs-pagination {
  margin-top: 45px;
  text-align: center;
}

.dhpcs-pagination ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.dhpcs-pagination li {
  margin: 0;
  padding: 0;
}

.dhpcs-pagination a,
.dhpcs-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #dce3ed;
  border-radius: 6px;
  color: #17365d;
  text-decoration: none;
  font-weight: 600;
}

.dhpcs-pagination .current,
.dhpcs-pagination a:hover {
  background: #1769aa;
  color: #ffffff;
  border-color: #1769aa;
}

.dhpcs-no-projects {
  padding: 50px 25px;
  text-align: center;
  background: #f7f9fc;
  border-radius: 12px;
}

/* =====================================================
   SINGLE CASE STUDY HERO
   ===================================================== */

.dhpcs-hero {
  position: relative;
  padding: 60px 55px;
  margin: 0 0 35px;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(135deg, #102f53, #1769aa);
  color: #ffffff;
}

.dhpcs-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.dhpcs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.dhpcs-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.dhpcs-breadcrumb a:hover {
  text-decoration: underline;
}

.dhpcs-hero .dhpcs-featured-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.dhpcs-hero-client {
  margin-bottom: 12px;
  color: #c7e4ff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.dhpcs-hero h1 {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
}

.dhpcs-hero-summary {
  max-width: 800px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.dhpcs-hero-summary p {
  margin-bottom: 12px;
}

.dhpcs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.dhpcs-hero-meta span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 14px;
}

/* =====================================================
   SINGLE PROJECT FEATURED IMAGE
   ===================================================== */

.dhpcs-featured-image {
  width: 100%;
  margin: 0 auto 50px;
  overflow: hidden;
  border-radius: 12px;
  background: #f0f4f8;
}

.dhpcs-featured-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

/* =====================================================
   SINGLE PROJECT CONTENT LAYOUT
   ===================================================== */

.dhpcs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 45px;
  align-items: start;
}

.dhpcs-main-content {
  min-width: 0;
}

.dhpcs-section {
  margin-bottom: 45px;
}

.dhpcs-section h2 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 15px;
  color: #17365d;
  font-size: 28px;
  font-weight: 750;
  line-height: 1.3;
}

.dhpcs-section h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 65px;
  height: 4px;
  border-radius: 4px;
  background: #1769aa;
}

.dhpcs-section-content {
  color: #526176;
  font-size: 16px;
  line-height: 1.9;
}

.dhpcs-section-content p {
  margin: 0 0 18px;
}

.dhpcs-section-content ul,
.dhpcs-section-content ol {
  padding-left: 24px;
  margin: 0 0 20px;
}

.dhpcs-section-content li {
  margin-bottom: 10px;
}

.dhpcs-highlight-list {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
}

.dhpcs-highlight-list li {
  position: relative;
  padding: 12px 15px 12px 40px;
  margin-bottom: 10px;
  border-radius: 7px;
  background: #f4f8fc;
  color: #43536a;
}

.dhpcs-highlight-list li:before {
  content: "\2713";
  position: absolute;
  top: 12px;
  left: 15px;
  color: #1769aa;
  font-weight: 800;
}

/* =====================================================
   PROJECT SIDEBAR
   ===================================================== */

.dhpcs-sidebar {
  position: relative;
  min-width: 0;
}

.dhpcs-sidebar-card {
  padding: 28px;
  border: 1px solid #e3eaf2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 25px rgba(18, 38, 63, 0.06);
}

.dhpcs-sidebar-card h3 {
  margin: 0 0 25px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5eaf1;
  color: #17365d;
  font-size: 21px;
  font-weight: 750;
}

.dhpcs-info-item {
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #edf1f6;
}

.dhpcs-info-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.dhpcs-info-item > span {
  display: block;
  margin-bottom: 8px;
  color: #8491a4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.dhpcs-info-item strong {
  display: block;
  color: #253247;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}

.dhpcs-term-list,
.dhpcs-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dhpcs-term,
.dhpcs-tech-tag {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 5px;
  background: #edf5ff;
  color: #175b9b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.dhpcs-sidebar-cta {
  margin-top: 25px;
  padding: 28px;
  border-radius: 12px;
  background: #f1f6fc;
  border: 1px solid #dce9f7;
}

.dhpcs-sidebar-cta h3 {
  margin: 0 0 12px;
  color: #17365d;
  font-size: 21px;
  line-height: 1.4;
}

.dhpcs-sidebar-cta p {
  margin: 0 0 22px;
  color: #617187;
  font-size: 15px;
  line-height: 1.7;
}

.dhpcs-sidebar-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  background: #1769aa;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.dhpcs-sidebar-cta a:hover {
  background: #104b7e;
  color: #ffffff;
}

/* =====================================================
   MAIN CALL TO ACTION
   ===================================================== */

.dhpcs-cta {
  margin: 50px 0;
  padding: 45px;
  border-radius: 12px;
  background: linear-gradient(135deg, #102f53, #1769aa);
  color: #ffffff;
}

.dhpcs-cta h2 {
  margin: 0 0 15px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.35;
}

.dhpcs-cta p {
  margin: 0 0 25px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.8;
}

.dhpcs-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 6px;
  background: #ffffff;
  color: #14558e;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.dhpcs-cta-button:hover {
  background: #eaf3fc;
  color: #103b63;
}

/* =====================================================
   RELATED CASE STUDIES
   ===================================================== */

.dhpcs-related {
  padding-top: 65px;
  margin-top: 65px;
  border-top: 1px solid #e4eaf1;
}

.dhpcs-related-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 35px;
}

.dhpcs-section-label {
  display: block;
  margin-bottom: 12px;
  color: #1769aa;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.dhpcs-related-heading h2 {
  margin: 0 0 12px;
  color: #17365d;
  font-size: 34px;
  line-height: 1.3;
}

.dhpcs-related-heading p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
}

.dhpcs-view-all {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid #1769aa;
  border-radius: 6px;
  color: #1769aa;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.dhpcs-view-all:hover {
  background: #1769aa;
  color: #ffffff;
}

.dhpcs-related-grid {
  margin-bottom: 10px;
}

/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1024px) {
  .dhpcs-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .dhpcs-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
  }

  .dhpcs-hero {
    padding: 45px 35px;
  }

  .dhpcs-sidebar-card,
  .dhpcs-sidebar-cta {
    padding: 22px;
  }
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 767px) {
  .dhpcs-container {
    padding: 0 16px 45px;
  }

  .dhpcs-project-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .dhpcs-card-image-link,
  .dhpcs-card-no-image {
    height: 220px;
  }

  .dhpcs-card-content {
    padding: 22px;
  }

  .dhpcs-card-title {
    font-size: 20px;
  }

  .dhpcs-hero {
    padding: 35px 22px;
    margin-bottom: 25px;
    border-radius: 0 0 12px 12px;
  }

  .dhpcs-breadcrumb {
    gap: 6px;
    font-size: 12px;
    margin-bottom: 22px;
  }

  .dhpcs-hero h1 {
    font-size: 30px;
  }

  .dhpcs-hero-summary {
    font-size: 16px;
  }

  .dhpcs-hero-meta {
    gap: 8px;
  }

  .dhpcs-hero-meta span {
    font-size: 13px;
    padding: 8px 12px;
  }

  .dhpcs-featured-image {
    margin-bottom: 35px;
  }

  .dhpcs-featured-image img {
    max-height: 320px;
  }

  .dhpcs-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .dhpcs-section {
    margin-bottom: 35px;
  }

  .dhpcs-section h2 {
    font-size: 24px;
  }

  .dhpcs-section-content {
    font-size: 15px;
  }

  .dhpcs-sidebar {
    width: 100%;
  }

  .dhpcs-cta {
    padding: 30px 22px;
    margin: 35px 0;
  }

  .dhpcs-cta h2 {
    font-size: 24px;
  }

  .dhpcs-related {
    padding-top: 40px;
    margin-top: 40px;
  }

  .dhpcs-related-heading {
    display: block;
    margin-bottom: 25px;
  }

  .dhpcs-related-heading h2 {
    font-size: 28px;
  }

  .dhpcs-view-all {
    margin-top: 20px;
  }
}

/* =====================================================
   FIX: CASE STUDIES LISTING CARDS IN ELEMENTOR
   Append this block at the END of case-study.css
   ===================================================== */

/* Listing wrapper */
.dhpcs-listing {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* Three-column desktop grid */
.dhpcs-listing .dhpcs-project-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 30px !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Individual project card */
.dhpcs-listing .dhpcs-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;

  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 18px rgba(15, 35, 65, 0.08) !important;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease !important;
}

.dhpcs-listing .dhpcs-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 32px rgba(15, 35, 65, 0.15) !important;
}

/* Card image container */
.dhpcs-listing .dhpcs-card-image-link {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 230px !important;
  min-height: 230px !important;
  max-height: 230px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #eef3f9 !important;
  line-height: 0 !important;
}

/* Card image */
.dhpcs-listing .dhpcs-card-image-link img,
.dhpcs-listing img.dhpcs-card-image {
  display: block !important;
  width: 100% !important;
  height: 230px !important;
  min-height: 230px !important;
  max-height: 230px !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Fallback if a project has no featured image */
.dhpcs-listing .dhpcs-card-no-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 230px !important;
  min-height: 230px !important;
  max-height: 230px !important;
  margin: 0 !important;

  background: linear-gradient(135deg, #12345b, #1769aa) !important;
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

/* Card content */
.dhpcs-listing .dhpcs-card-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  flex: 1 1 auto !important;

  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 24px !important;

  background: #ffffff !important;
  text-align: left !important;
}

/* Featured project badge */
.dhpcs-listing .dhpcs-featured-badge {
  display: inline-block !important;
  width: auto !important;
  margin: 0 0 14px !important;
  padding: 6px 12px !important;

  border: 0 !important;
  border-radius: 30px !important;
  background: #e8f2ff !important;
  color: #1458a6 !important;

  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
}

/* Client and year */
.dhpcs-listing .dhpcs-card-meta {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;

  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 !important;

  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.dhpcs-listing .dhpcs-card-meta span {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* Project title */
.dhpcs-listing .dhpcs-card-title {
  display: block !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  padding: 0 !important;

  color: #17365d !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

.dhpcs-listing .dhpcs-card-title a {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;

  color: #17365d !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  text-decoration: none !important;
}

.dhpcs-listing .dhpcs-card-title a:hover {
  color: #1769aa !important;
}

/* Description */
.dhpcs-listing .dhpcs-card-description {
  display: block !important;
  width: 100% !important;
  margin: 0 0 22px !important;
  padding: 0 !important;

  color: #64748b !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  text-align: left !important;
}

/* View Case Study button */
.dhpcs-listing .dhpcs-card-button {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;

  width: auto !important;
  max-width: 100% !important;
  margin: auto 0 0 !important;
  padding: 12px 0 0 !important;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  color: #1769aa !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  text-decoration: none !important;
}

.dhpcs-listing .dhpcs-card-button:hover {
  color: #104b7e !important;
  background: transparent !important;
}

.dhpcs-listing .dhpcs-card-button span {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove unwanted Elementor widget spacing */
.elementor-widget-shortcode .dhpcs-listing {
  margin: 0 !important;
  padding: 0 !important;
}

.elementor-widget-shortcode .dhpcs-listing .dhpcs-project-grid {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Tablet: two columns */
@media (max-width: 1024px) {
  .dhpcs-listing .dhpcs-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  .dhpcs-listing .dhpcs-card-image-link,
  .dhpcs-listing .dhpcs-card-image-link img,
  .dhpcs-listing img.dhpcs-card-image,
  .dhpcs-listing .dhpcs-card-no-image {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }
}

/* Mobile: one column */
@media (max-width: 767px) {
  .dhpcs-listing .dhpcs-project-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .dhpcs-listing .dhpcs-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .dhpcs-listing .dhpcs-card-image-link,
  .dhpcs-listing .dhpcs-card-image-link img,
  .dhpcs-listing img.dhpcs-card-image,
  .dhpcs-listing .dhpcs-card-no-image {
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
  }

  .dhpcs-listing .dhpcs-card-content {
    padding: 22px !important;
  }

  .dhpcs-listing .dhpcs-card-title {
    font-size: 20px !important;
  }
}

/* Dhanush Projects Grid */

.dh-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
}

.dh-project-card {
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 40, 75, 0.06);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.dh-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(15, 40, 75, 0.12);
}

.dh-project-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #edf3fa;
}

.dh-project-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dh-project-card:hover .dh-project-image {
  transform: scale(1.04);
}

.dh-project-image-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf3fa;
  color: #64748b;
}

.dh-project-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}

.dh-project-category {
  color: #1264a3;
  background: #eaf4ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 6px 10px;
  border-radius: 5px;
  margin-bottom: 14px;
}

.dh-project-title {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 12px;
}

.dh-project-title a {
  color: #17324f;
  text-decoration: none;
}

.dh-project-title a:hover {
  color: #1264a3;
}

.dh-project-description {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.dh-project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  margin-bottom: 22px;
}

.dh-project-tech {
  font-size: 11px;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 5px 9px;
}

.dh-project-link {
  color: #1264a3;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.dh-project-link:hover {
  color: #0b4778;
}

.dh-projects-empty {
  padding: 25px;
  background: #f8fafc;
  border-radius: 10px;
  color: #64748b;
}

/* Tablet */
@media (max-width: 1024px) {
  .dh-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .dh-projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dh-project-card-content {
    padding: 20px;
  }

  .dh-project-title {
    font-size: 19px;
  }
}

/* Industry label */
.dh-project-industry {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.dh-project-industry-label {
  font-weight: 700;
  color: #334155;
}

/* Keep View Case Study aligned at bottom */
.dh-project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
}

/* Ensure original cards work inside Elementor */
.dh-projects-grid {
  width: 100%;
  box-sizing: border-box;
}

.dh-project-card {
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

.dh-project-card-content {
  box-sizing: border-box;
}

/* Image sizing */
.dh-project-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
