/* ============================================================
   EthosMedi — Departments Page CSS
   ============================================================ */

/* ============================================================
   PAGE HERO
   ============================================================ */
.dp-hero {
  background: #ffffff;
  padding: 44px 0 52px;
}

/* Breadcrumb */
.dp-breadcrumb { margin-bottom: 24px; }
.dp-breadcrumb .breadcrumb {
  font-size: 13px;
  margin: 0; padding: 0; background: none;
}
.dp-breadcrumb .breadcrumb-item a {
  color: var(--cp-muted, #6b7280);
  text-decoration: none;
  transition: color 0.2s;
}
.dp-breadcrumb .breadcrumb-item a:hover { color: var(--cp-red, #1B4DB8); }
.dp-breadcrumb .breadcrumb-item.active { color: var(--cp-dark, #4e4445); font-weight: 600; }
.dp-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: '›'; color: var(--cp-muted); }

/* Hero content */
.dp-hero-content { max-width: 680px; margin: 0 auto; }

.dp-hero-tag {
  display: inline-block;
  background: var(--cp-teal-lt, #E0F5F3);
  color: var(--cp-teal, #1B4DB8);
  border: 1px solid rgba(0,150,136,0.18);
  border-radius: 100px;
  padding: 5px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.dp-hero-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--cp-text, #1a1a2e);
  line-height: 1.16;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.dp-hero-sub {
  font-size: 15px;
  color: var(--cp-muted, #6b7280);
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Search bar */
.dp-search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.dp-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cp-muted);
  font-size: 16px;
  pointer-events: none;
}
.dp-search-input {
  width: 100%;
  border: 1.5px solid var(--cp-border, #e5e7eb);
  border-radius: 100px;
  padding: 13px 20px 13px 46px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--cp-text);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.dp-search-input:focus {
  border-color: var(--cp-teal, #1B4DB8);
  box-shadow: 0 0 0 3px rgba(0,150,136,0.10);
}
.dp-search-input::placeholder { color: #b0b7c0; }

/* ============================================================
   DEPARTMENT GRID
   ============================================================ */
.dp-grid-section {
  background: #ffffff;
  padding: 12px 0 72px;
}

/* Department card — image with overlay */
.dp-card {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 300px;
  text-decoration: none;
  background: #1a1a2e;
  transition: transform 0.3s, box-shadow 0.3s;
}
.dp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}

/* Card image */
.dp-card-img {
  position: absolute;
  inset: 0;
}
.dp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
  filter: brightness(0.75);
}
.dp-card:hover .dp-card-img img {
  transform: scale(1.06);
  filter: brightness(0.65);
}

/* Dark gradient overlay at bottom */
.dp-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(15, 45, 107, 0.50) 60%,
    rgba(15, 45, 107, 0.85) 100%
  );
}

/* Text content at bottom of card */
.dp-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 22px;
  z-index: 2;
}
.dp-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
  font-family: 'Poppins', sans-serif;
}
.dp-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.80);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dp-read-more {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.dp-card:hover .dp-read-more { color: #ffffff; }

/* ============================================================
   "NOT SURE WHICH DEPARTMENT?" COORDINATOR CARD
   ============================================================ */
.dp-guide-section {
  background: var(--cp-bg, #F0FBF9);
  padding: 60px 0;
}

.dp-guide-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--cp-border, #e5e7eb);
  padding: 52px 52px;
  overflow: hidden;
}

.dp-guide-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--cp-text, #1a1a2e);
  line-height: 1.25;
  margin-bottom: 14px;
}
.dp-guide-sub {
  font-size: 14px;
  color: var(--cp-muted, #6b7280);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 400px;
}

.dp-guide-btn {
  background: var(--cp-teal, #1B4DB8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 13px 30px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: all 0.25s !important;
  box-shadow: 0 4px 14px rgba(0,150,136,0.25) !important;
}
.dp-guide-btn:hover {
  background: var(--cp-teal-dk, #153A8E) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,150,136,0.35) !important;
}

.dp-guide-img-wrap {
  border-radius: 18px;
  overflow: hidden;
  height: 300px;
  background: #d4e8d4;
}
.dp-guide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .dp-guide-card { padding: 40px 32px; }
  .dp-guide-img-wrap { height: 240px; }
  .dp-card { height: 260px; }
}

@media (max-width: 767.98px) {
  .dp-hero { padding: 32px 0 40px; }
  .dp-hero-title { font-size: 26px; }
  .dp-card { height: 240px; }
  .dp-card-title { font-size: 18px; }
  .dp-guide-card { padding: 28px 20px; }
  .dp-guide-img-wrap { height: 200px; }
}
