/* ===========================
   HOME DYNAMIC PAGE STYLES
=========================== */

/* ---- BLOCK: hero + sidebar (8+4 col) ---- */
.hd-block {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 15px;
  margin-bottom: 15px;
  align-items: flex-start;
}

/* ---- THREE COLUMN BLOCK ---- */
.hd-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

/* ===========================
   SECTION BOX (heading + list)
=========================== */
.hd-section-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

/* Section heading — teal, rounded top, orange left accent */
.hd-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--teal);
  padding: 10px 14px;
  border-radius: 6px 6px 0 0;
  border-left: 5px solid var(--accent);
}
.hd-section-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.hd-viewall {
  font-size: 11px;
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
  font-family: sans-serif;
  transition: background 0.2s;
  text-decoration: none;
}
.hd-viewall:hover { background: rgba(255,255,255,0.35); color: #fff; }

/* ===========================
   IMAGE LIST (thumbnail + title)
=========================== */
.hd-imglist { padding: 4px 0; }

.hd-imglist-item {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid #f2f2f2;
  text-decoration: none;
  color: #222;
  transition: background 0.15s;
  overflow: hidden;
}
.hd-imglist-item:last-child { border-bottom: none; }
.hd-imglist-item:hover { background: #f5fdfd; }

.hd-imglist-item img {
  width: 130px;
  height: 85px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.hd-imglist-item span {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-left: 1px solid #eee;
  transition: color 0.2s;
}
.hd-imglist-item:hover span { color: var(--teal); }

/* ===========================
   HERO SLIDER
=========================== */
.hd-hero-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  min-height: 315px;
}
.hd-slider { position: relative; width: 100%; height: 315px; }

.hd-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.hd-slide.active { opacity: 1; }

.hd-slide > a { display: block; width: 100%; height: 100%; }
.hd-slide img {
  width: 100%;
  height: 315px;
  object-fit: cover;
  display: block;
}

/* Caption overlay */
.hd-slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  padding: 30px 16px 16px;
}
.hd-slide-tag {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 7px;
  text-decoration: none;
}
.hd-slide-caption h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}
.hd-slide-caption a { text-decoration: none; }
.hd-slide-caption a:hover h3 { color: #ffe082; }

/* Slider buttons */
.hd-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  z-index: 10;
  transition: background 0.2s;
}
.hd-slider-btn:hover { background: var(--teal); }
.hd-prev { left: 10px; }
.hd-next { right: 10px; }

/* Dots */
.hd-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.hd-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.hd-dot.active { background: #fff; }

/* ===========================
   VIDEO SLIDER
=========================== */
.hd-video-slider { background: #111; }
.hd-video-slide { background: #111; }

.hd-video-embed {
  width: 100%;
  height: 260px;
}
.hd-video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}
.hd-video-caption {
  position: relative;
  background: #1a1a1a;
  padding: 10px 14px;
}
.hd-video-caption h3 {
  font-size: 14px;
  color: #ffe082;
}

/* ===========================
   AD BOX (sidebar)
=========================== */
.hd-ad-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.hd-ad-label {
  font-size: 10px;
  color: #aaa;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* ===========================
   HEALTH EXPERTS BLOCK
=========================== */
.hd-block-experts {
  grid-template-columns: 1fr 320px;
}
.hd-experts-wrap { min-width: 0; }

.hd-experts-head {
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}

/* 2-col grid */
.hd-experts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.hd-expert-card {
  display: block;
  text-decoration: none;
  color: #222;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}
.hd-expert-card:hover { box-shadow: 0 3px 14px rgba(0,0,0,0.10); }

.hd-expert-img {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #eee;
}
.hd-expert-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.hd-expert-card:hover .hd-expert-img img { transform: scale(1.04); }

.hd-expert-body {
  padding: 8px 10px 10px;
}
.hd-expert-body h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.hd-expert-card:hover .hd-expert-body h4 { color: var(--teal); }

/* ===========================
   SUBSCRIBE BOX
=========================== */
.hd-subscribe-box {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}
.hd-subscribe-form {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hd-subscribe-form p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}
.hd-subscribe-form input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font-tel);
  outline: none;
  transition: border-color 0.2s;
}
.hd-subscribe-form input:focus { border-color: var(--teal); }
.hd-subscribe-form button {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-tel);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.hd-subscribe-form button:hover { background: var(--teal-dark); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .hd-block,
  .hd-block-experts { grid-template-columns: 1fr; }
  .hd-sidebar-col { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
}
@media (max-width: 768px) {
  .hd-three-col { grid-template-columns: 1fr; }
  .hd-experts-grid { grid-template-columns: 1fr 1fr; }
  .hd-sidebar-col { grid-template-columns: 1fr; }
  .hd-slider, .hd-hero-wrap { min-height: 220px; }
  .hd-slide img { height: 220px; }
  .hd-slider { height: 220px; }
}
@media (max-width: 480px) {
  .hd-experts-grid { grid-template-columns: 1fr; }
  .hd-imglist-item img { width: 100px; height: 70px; }
}
