/* ============================================================
   DIMENSION REALTY SOLUTION - Info Hub Styles
   ============================================================ */

/* --- Hero --- */
.ih-hero {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f1f3d 0%, #1B3A6B 60%, #2a5298 100%);
  overflow: hidden;
}
.ih-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1600&q=80') center/cover no-repeat;
  opacity: 0.12;
}
.ih-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,31,61,0.95) 0%, rgba(27,58,107,0.88) 100%);
}
.ih-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 72px 0 56px;
}
.ih-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 14px 0 12px;
  line-height: 1.15;
}
.ih-hero-content p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 580px;
}

/* --- Filters & Controls --- */
.ih-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ih-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ih-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-gray);
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.ih-filter i { font-size: 0.75rem; }
.ih-filter:hover { border-color: var(--primary); color: var(--primary); }
.ih-filter.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.ih-search-wrap {
  position: relative;
  flex-shrink: 0;
}
.ih-search-wrap i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.85rem;
}
.ih-search-wrap input {
  padding: 10px 16px 10px 36px;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  font-size: 0.88rem;
  width: 240px;
  outline: none;
  transition: border-color 0.2s;
  color: var(--text-dark);
}
.ih-search-wrap input:focus { border-color: var(--primary); }

.ih-results-bar {
  font-size: 0.82rem;
  color: var(--text-gray);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* --- Grid --- */
.ih-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* --- Card --- */
.ih-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}
.ih-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Thumbnail */
.ih-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #0f1f3d;
  flex-shrink: 0;
}
.ih-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ih-card:hover .ih-thumb img { transform: scale(1.05); }

/* YouTube play overlay */
.ih-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.ih-card:hover .ih-play-overlay { background: rgba(0,0,0,0.45); }
.ih-play-btn {
  width: 60px;
  height: 60px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.ih-card:hover .ih-play-btn { transform: scale(1.12); }

/* Type/category badge on thumb */
.ih-thumb-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}
.ih-badge {
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.ih-badge-video { background: #ff0000; color: #fff; }
.ih-badge-blog { background: var(--primary); color: #fff; }
.ih-badge-category { background: rgba(0,0,0,0.6); color: #fff; backdrop-filter: blur(4px); }

/* Card body */
.ih-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ih-date {
  font-size: 0.76rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ih-date i { font-size: 0.7rem; }
.ih-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ih-excerpt {
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.ih-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-light);
}
.ih-read-more {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ih-card:hover .ih-read-more { color: var(--cta); }
.ih-type-icon { color: var(--text-light); font-size: 0.85rem; }

/* --- Empty state --- */
.ih-empty {
  text-align: center;
  padding: 72px 20px;
  color: var(--text-gray);
}
.ih-empty i { font-size: 3rem; color: var(--border); display: block; margin-bottom: 16px; }
.ih-empty h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 8px; color: var(--text-dark); }

/* --- CTA Strip --- */
.ih-cta-strip {
  background: var(--primary);
  padding: 52px 0;
}
.ih-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ih-cta-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.ih-cta-inner p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.ih-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* --- Modal --- */
.ih-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.ih-modal-box {
  background: var(--white);
  border-radius: 14px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.ih-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.08);
  border: none;
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.ih-modal-close:hover { background: rgba(0,0,0,0.15); }

/* Video modal content */
.ih-video-modal .video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}
.ih-video-modal .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.ih-video-modal .modal-body {
  padding: 24px 28px;
}
.ih-video-modal .modal-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ih-video-modal h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}
.ih-video-modal p { font-size: 0.9rem; color: var(--text-gray); line-height: 1.65; }
.ih-video-modal .modal-cta {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Blog modal content */
.ih-blog-modal .modal-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  display: block;
}
.ih-blog-modal .modal-body {
  padding: 28px 36px 32px;
}
.ih-blog-modal .modal-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ih-blog-modal h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 20px;
}
.blog-content { font-size: 0.93rem; color: var(--text-dark); line-height: 1.8; }
.blog-content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 8px;
}
.blog-content p { margin-bottom: 14px; }
.blog-content a { color: var(--primary); text-decoration: underline; }
.blog-content ul, .blog-content ol { margin: 10px 0 14px 20px; }
.blog-content li { margin-bottom: 5px; }
.modal-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Load More --- */
.ih-load-more-wrap {
  text-align: center;
  margin: 40px 0 8px;
}
.ih-load-more-btn {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 40px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ih-load-more-btn:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(27,58,107,0.25);
  transform: translateY(-1px);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .ih-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ih-controls { flex-direction: column; align-items: flex-start; }
  .ih-search-wrap input { width: 100%; }
  .ih-search-wrap { width: 100%; }
  .ih-grid { grid-template-columns: 1fr; }
  .ih-cta-inner { flex-direction: column; text-align: center; }
  .ih-cta-btns { justify-content: center; }
  .ih-blog-modal .modal-body { padding: 20px; }
  .ih-blog-modal h2 { font-size: 1.15rem; }
}
@media (max-width: 480px) {
  .ih-filters { gap: 6px; }
  .ih-filter { padding: 6px 12px; font-size: 0.75rem; }
}
