/*
===============================================
MODERN DOCTORS BLOCK STYLES
Medical Theme – Matching News Hub Design
===============================================
*/

/* ── Section ── */
#modern-doctors-block {
  background: linear-gradient(135deg, #1d4577 0%, #2a5a8a 50%, #e6f5fa 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#modern-doctors-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.4;
  pointer-events: none;
}

/* ── Header ── */
.dblock-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.dblock-title {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(45deg, #ffffff, #e6f5fa, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.02em;
  font-family: "poppins", sans-serif;
}

/* ── Grid ── */
.dblock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* ── Card Wrapper ── */
.dblock-card-wrap {
  display: flex;
  flex-direction: column;
}

/* ── Card ── */
.dblock-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(29, 69, 119, 0.15);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dblock-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(29, 69, 119, 0.25);
}

/* ── Image Area (blurred BG + sharp image) ── */
.dblock-card__img-area {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a3d6b;
}

/* Blurred background fill */
.dblock-card__img-blur {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(25px) saturate(1.2);
  transform: scale(1.1);
  z-index: 0;
  opacity: 0.8;
}

/* Main sharp image */
.dblock-card__img-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.dblock-card:hover .dblock-card__img-main {
  transform: scale(1.03);
}

/* ── Info Section ── */
.dblock-card__info {
  padding: 22px 24px;
}

.dblock-card__name {
  color: #1d4577;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0 0 4px 0;
  font-family: "poppins", sans-serif;
}

.dblock-card__role {
  color: #2a5a8a;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.3px;
  font-family: "poppins", sans-serif;
}

/* ── Footer / View All Button ── */
.dblock-footer {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.dblock-view-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.25)
  );
  backdrop-filter: blur(15px);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.4s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(29, 69, 119, 0.2);
  position: relative;
  overflow: hidden;
  font-family: "poppins", sans-serif;
}

.dblock-view-all::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.dblock-view-all:hover::before {
  left: 100%;
}

.dblock-view-all:hover {
  background: linear-gradient(135deg, #1d4577, #2a5a8a);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(29, 69, 119, 0.3);
  border-color: #e6f5fa;
  text-decoration: none;
  color: white;
}

.dblock-view-all i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.dblock-view-all:hover i {
  transform: translateX(5px);
}

.dblock-view-all:active {
  transform: translateY(-1px) scale(1.02);
}

/* ── Entrance Animations ── */
.dblock-card-wrap {
  animation: dblockSlideIn 0.6s ease forwards;
  opacity: 0;
}

.dblock-card-wrap:nth-child(1) {
  animation-delay: 0.1s;
}
.dblock-card-wrap:nth-child(2) {
  animation-delay: 0.2s;
}
.dblock-card-wrap:nth-child(3) {
  animation-delay: 0.3s;
}
.dblock-card-wrap:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes dblockSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 1400px) {
  .dblock-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

@media (max-width: 1024px) {
  .dblock-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  #modern-doctors-block {
    padding: 60px 0;
  }

  .dblock-title {
    font-size: 2.2rem;
  }

  .dblock-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dblock-card__img-area {
    height: 240px;
  }

  .dblock-view-all {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #modern-doctors-block {
    padding: 40px 0;
  }

  .dblock-title {
    font-size: 1.8rem;
  }

  .dblock-card__img-area {
    height: 220px;
  }

  .dblock-card__info {
    padding: 18px 20px;
  }

  .dblock-view-all {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  .dblock-card,
  .dblock-card__img-main,
  .dblock-view-all,
  .dblock-card-wrap {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-contrast: high) {
  .dblock-card {
    border: 2px solid #1d4577;
  }

  .dblock-view-all {
    border: 2px solid white;
  }
}

/* ── Print ── */
@media print {
  #modern-doctors-block {
    background: white !important;
    padding: 20px 0;
  }

  .dblock-card {
    background: white;
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  .dblock-footer {
    display: none;
  }
}
