/* =============================================
   ENT DEPARTMENT PAGE — Premium Styles
   ============================================= */

/* ---------- Hero Banner ---------- */
.dept_hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.dept_hero_bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dept_hero_bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dept_hero_bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(75, 40, 120, 0.85) 0%,
      rgba(60, 30, 100, 0.75) 40%,
      rgba(40, 20, 80, 0.6) 100%);
  z-index: 1;
}

.dept_hero .container {
  position: relative;
  z-index: 2;
}

.dept_hero_content {
  max-width: 680px;
  padding: 80px 0;
}

.dept_hero_badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 20px;
  border-radius: 50px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.dept_hero_badge i {
  font-size: 14px;
  color: #c084fc;
}

.dept_hero_content h1 {
  color: #ffffff;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.dept_hero_content h1 span {
  display: block;
  font-weight: 400;
  font-size: 28px;
  opacity: 0.9;
  margin-top: 6px;
}

.dept_hero_content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 560px;
}

.dept_hero_actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.dept_hero_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.35s ease;
  cursor: pointer;
  text-decoration: none !important;
}

.dept_hero_btn.primary {
  background: #ffffff;
  color: #178066;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dept_hero_btn.primary:hover {
  background-color: #178066 !important;
  color: #ffffff !important;
  border-color: #178066 !important;
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(23, 128, 102, 0.4);
}

.dept_hero_btn.secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.dept_hero_btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* ---------- Stats Bar ---------- */
.dept_stats_bar {
  background: #ffffff;
  margin-top: -60px;
  position: relative;
  z-index: 3;
  border-radius: 18px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
  padding: 45px 50px;
}

.dept_stats_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.dept_stat_item {
  text-align: center;
  position: relative;
}

.dept_stat_item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
}

.dept_stat_icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(75, 40, 120, 0.1), rgba(75, 40, 120, 0.05));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.dept_stat_icon i {
  font-size: 22px;
  color: #4b2878;
}

.dept_stat_number {
  font-size: 36px;
  font-weight: 800;
  color: #1a2a3a;
  line-height: 1;
  margin-bottom: 6px;
}

.dept_stat_number span {
  color: #1a2a3a;
}

.dept_stat_label {
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ---------- About Department ---------- */
.dept_about {
  padding: 100px 0;
  background: #ffffff;
}

.dept_about_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.dept_about_img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.dept_about_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dept_about_img_badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: linear-gradient(135deg, #4b2878, #6030a0);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(75, 40, 120, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dept_about_img_badge i {
  font-size: 16px;
}

.dept_about_text .tag_text {
  color: #4b2878;
}

.dept_about_text h2 {
  font-size: 38px;
  font-weight: 800;
  color: #1a2a3a;
  margin-bottom: 20px;
  line-height: 1.2;
}

.dept_about_text h2 span {
  color: #4b2878;
}

.dept_about_text p {
  font-size: 16px;
  line-height: 1.85;
  color: #555;
  margin-bottom: 16px;
}

.dept_about_features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.dept_about_feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(75, 40, 120, 0.06), rgba(75, 40, 120, 0.02));
  border-radius: 12px;
  transition: all 0.3s ease;
}

.dept_about_feature:hover {
  background: linear-gradient(135deg, rgba(75, 40, 120, 0.12), rgba(75, 40, 120, 0.05));
  transform: translateX(4px);
}

.dept_about_feature i {
  color: #4b2878;
  font-size: 16px;
  flex-shrink: 0;
}

.dept_about_feature span {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* ---------- Services Section ---------- */
.dept_services {
  padding: 100px 0;
  background: linear-gradient(135deg, #f5f0fa 0%, #fdf8ff 50%, #f5effb 100%);
}

.dept_section_header {
  text-align: center;
  margin-bottom: 60px;
}

.dept_section_header .tag_text {
  color: #4b2878;
}

.dept_section_header h2 {
  font-size: 38px;
  font-weight: 800;
  color: #1a2a3a;
  margin-top: 8px;
  margin-bottom: 14px;
}

.dept_section_header p {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

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

.dept_service_card {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.dept_service_card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4b2878, #6030a0, #c084fc);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.dept_service_card:hover::before {
  transform: scaleX(1);
}

.dept_service_card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(75, 40, 120, 0.12);
}

.dept_service_icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(75, 40, 120, 0.1), rgba(75, 40, 120, 0.05));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.dept_service_card:hover .dept_service_icon {
  background: linear-gradient(135deg, #4b2878, #6030a0);
}

.dept_service_icon i {
  font-size: 28px;
  color: #4b2878;
}

.dept_service_card:hover .dept_service_icon i {
  color: #ffffff;
}

.dept_service_card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a2a3a;
  margin-bottom: 12px;
}

.dept_service_card p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* ---------- Doctor Profile ---------- */
.dept_doctor {
  padding: 100px 0;
  background: #ffffff;
}

.dept_doctor_card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  max-width: 520px;
  margin: 0 auto 0 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
}

.dept_doctor_photo {
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, rgba(75, 40, 120, 0.15), rgba(75, 40, 120, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept_doctor_photo i {
  font-size: 50px;
  color: #4b2878;
  opacity: 0.6;
}

.dept_doctor_info {
  padding: 20px 20px;
}

.dept_doctor_specialty {
  display: inline-block;
  background: linear-gradient(135deg, rgba(75, 40, 120, 0.1), rgba(75, 40, 120, 0.05));
  color: #4b2878;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.dept_doctor_info h3 {
  font-size: 20px;
  font-weight: 800;
  color: #1a2a3a;
  margin-bottom: 2px;
}

.dept_doctor_qual {
  color: #888;
  font-size: 15px;
  margin-bottom: 18px;
  font-weight: 600;
}

.dept_doctor_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.dept_doctor_meta_item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dept_doctor_meta_item i {
  color: #4b2878;
  font-size: 14px;
}

.dept_doctor_meta_item span {
  font-size: 13px;
  color: #555;
  font-weight: 600;
}

.dept_doctor_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  background: linear-gradient(135deg, #4b2878, #6030a0);
  color: #ffffff !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.35s ease;
  box-shadow: 0 4px 10px rgba(75, 40, 120, 0.2);
  text-decoration: none !important;
}

.dept_doctor_btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(75, 40, 120, 0.4);
}

/* ---------- CTA Section ---------- */
.dept_cta_section {
  padding: 100px 0;
  background: linear-gradient(135deg, #4b2878 0%, #6030a0 40%, #4b2878 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dept_cta_section h2 {
  color: #ffffff;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.dept_cta_section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 36px;
}

.dept_cta_buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.dept_cta_btn_main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 42px;
  background: #ffffff;
  color: #4b2878 !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.35s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  text-decoration: none !important;
}

.dept_cta_btn_main:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* =============================================
   RESPONSIVE — Department Page
   ============================================= */

@media (max-width: 992px) {
  .dept_hero_content h1 {
    font-size: 38px;
  }
  .dept_stats_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dept_about_grid {
    grid-template-columns: 1fr;
  }
  .dept_services_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .dept_hero_content h1 {
    font-size: 30px;
  }
  .dept_stats_bar {
    padding: 30px 25px;
  }
  .dept_services_grid {
    grid-template-columns: 1fr;
  }
}
