/* ============================================
   Media House Express (MHE) - Main Stylesheet
   Color scheme extracted from the MHE logo:
   Red shades (left of wordmark) -> Purple/Indigo shades (right of wordmark)
   ============================================ */

:root {
  --mhe-red-light: #e63946;
  --mhe-red: #c0293b;
  --mhe-maroon: #8f2a4a;
  --mhe-plum: #6a2c5e;
  --mhe-purple: #4a2a6e;
  --mhe-indigo: #3a2266;
  --mhe-indigo-dark: #2a1b52;

  --gradient-brand: linear-gradient(90deg, var(--mhe-red) 0%, var(--mhe-maroon) 35%, var(--mhe-plum) 65%, var(--mhe-indigo) 100%);
  --gradient-brand-soft: linear-gradient(120deg, rgba(192,41,59,0.15) 0%, rgba(74,42,110,0.15) 100%);

  --bg-dark: #0d0b16;
  --bg-dark-2: #14111f;
  --bg-panel: #1a1728;
  --bg-panel-2: #221d33;
  --border-soft: rgba(255,255,255,0.08);

  --text-main: #f3f1f8;
  --text-muted: #b6b0c7;
  --text-dim: #8a84a0;

  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(192,41,59,0.25);

  --container-w: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(192,41,59,0.4); }
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-soft);
}
.btn-outline:hover { border-color: var(--mhe-red-light); color: var(--mhe-red-light); }
.btn-block { width: 100%; }

/* ---------- Section heading helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 36px;
  font-size: 1.02rem;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 11, 22, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 50px; width: auto; }
.brand-text {
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid rgba(230, 57, 70, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mhe-red-light);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(230,57,70,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(230,57,70,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: #fff; border-radius: 2px;
}

/* ============================================
   HERO (Home)
   ============================================ */
.hero {
  position: relative;
  padding: 70px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(192,41,59,0.25), transparent 70%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(74,42,110,0.3), transparent 70%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 14px 0 18px;
}
.hero h1 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   SECTION 1: Featured video + description (2-col)
   ============================================ */
.featured-section { padding: 40px 0 70px; position: relative; z-index: 1; }
.featured-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.featured-text h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 10px 0 14px;
}
.featured-text p { color: var(--text-muted); margin-bottom: 22px; }
.featured-meta {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.featured-meta div {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.featured-meta i { color: var(--mhe-red-light); }

/* ============================================
   SECTION 2: Horizontal scroll video list
   ============================================ */
.scroll-section { padding: 20px 0 70px; }
.hscroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 26px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--mhe-maroon) transparent;
}
.hscroll::-webkit-scrollbar { height: 8px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--gradient-brand); border-radius: 999px; }
.hscroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 999px; }

.show-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.show-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.show-card .video-frame { border-radius: 0; box-shadow: none; }
.show-card-body { padding: 16px 18px 20px; }
.show-card-body h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.show-card-body p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }
.show-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: var(--gradient-brand-soft);
  color: var(--mhe-red-light);
}

.scroll-controls { display: flex; gap: 10px; justify-content: flex-end; margin-top: -14px; margin-bottom: 6px; }
.scroll-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-soft);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.scroll-btn:hover { background: var(--gradient-brand); border-color: transparent; }

/* ============================================
   SECTION 3: Latest blogs
   ============================================ */
.blogs-section { padding: 20px 0 70px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.blog-thumb { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mhe-red-light); margin-bottom: 10px;
}
.blog-body h3 { font-size: 1.12rem; font-weight: 700; margin: 0 0 10px; line-height: 1.35; }
.blog-body p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 16px; flex: 1; }
.blog-date { font-size: 0.8rem; color: var(--text-dim); }
.blog-readmore {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 700; color: #fff; margin-top: auto;
}

/* ============================================
   SECTION 4: Sponsors horizontal scroll
   ============================================ */
.sponsors-section { padding: 10px 0 80px; }
.sponsor-track-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sponsor-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollSponsors 30s linear infinite;
}
.sponsor-track-wrap:hover .sponsor-track { animation-play-state: paused; }
@keyframes scrollSponsors {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.sponsor-chip {
  flex: 0 0 auto;
  min-width: 280px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0 24px;
  text-align: center;
}
.sponsor-chip span.dot { color: var(--mhe-red-light); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 26px;
  background: var(--bg-dark-2);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-inner img { height: 30px; width: auto; opacity: 0.9; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.footer-social a:hover { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.footer-copy { color: var(--text-dim); font-size: 0.85rem; margin-top: 6px; }

/* ============================================
   PAGE HEADER (About / Blog / Contact)
   ============================================ */
.page-hero {
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  margin: 10px 0 14px;
}
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 30px 0 80px;
}
.about-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.about-text h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; margin-left: 16px; margin-right: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; margin-left: 16px; margin-right: 16px;}

.values-section { padding: 20px 0 80px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.value-card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; margin-bottom: 18px;
}
.value-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; }
.value-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.services-section { padding: 20px 0 80px; }
.service-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service-card {
  display: flex;
  gap: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px;
}
.service-card .num {
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
}
.service-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.service-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.advertise-section { padding: 20px 0 90px; }
.advertise-panel {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.advertise-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 60%);
}
.advertise-text { position: relative; z-index: 1; }
.advertise-text h2 { font-size: 1.8rem; font-weight: 800; margin: 0 0 14px; color: #fff; }
.advertise-text p { color: rgba(255,255,255,0.9); margin-bottom: 0; }
.advertise-perks {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 14px;
}
.advertise-perks li {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600; font-size: 0.95rem;
  background: rgba(255,255,255,0.12);
  padding: 12px 16px; border-radius: 10px;
}
.advertise-perks i { color: #fff; }
.advertise-cta { margin-top: 22px; position: relative; z-index: 1; }

/* ============================================
   BLOG LISTING PAGE
   ============================================ */
.blog-filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { color: #fff; }
.filter-btn.active { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 80px;
}
.blog-empty { text-align: center; color: var(--text-dim); padding: 40px 0; grid-column: 1/-1; }

/* ============================================
   BLOG POST (single article) PAGE
   ============================================ */
.post-banner {
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
}
.post-banner img { width: 100%; height: 100%; object-fit: cover; }
.post-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,11,22,0) 40%, rgba(13,11,22,0.95) 100%);
}
.post-header {
  position: relative;
  z-index: 1;
  margin-top: -140px;
  padding: 0 0 40px;
}
.post-header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.post-cat { color: var(--mhe-red-light); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.post-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin: 0 0 16px; }
.post-meta { display: flex; gap: 20px; color: var(--text-muted); font-size: 0.9rem; flex-wrap: wrap; }
.post-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px;
  color: var(--text-main);
  font-size: 1.08rem;
}
.post-body p { margin: 0 0 22px; color: #ddd8e8; }
.post-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-weight: 600; margin-bottom: 26px; }
.post-back:hover { color: #fff; }
.post-share { display: flex; gap: 12px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border-soft); align-items: center; }
.post-share span { color: var(--text-dim); font-size: 0.88rem; font-weight: 600; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  padding: 20px 0 90px;
  align-items: flex-start;
}
.contact-info-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-info-card h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 16px; }
.contact-info-card p { color: var(--text-muted); margin-bottom: 26px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-item .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--gradient-brand-soft);
  color: var(--mhe-red-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 { margin: 0 0 4px; font-size: 0.95rem; font-weight: 700; }
.contact-item p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

.contact-form-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-dark-2);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--mhe-red-light);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}
.form-status.success { display: block; background: rgba(46, 204, 113, 0.12); color: #6ee7a0; border: 1px solid rgba(46,204,113,0.3); }
.form-status.error { display: block; background: rgba(230,57,70,0.12); color: #ff8a94; border: 1px solid rgba(230,57,70,0.3); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .featured-grid { grid-template-columns: 1fr; }
  .blog-grid, .blog-listing-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .advertise-panel { grid-template-columns: 1fr; padding: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-wrap.open .nav-links {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-dark-2);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-wrap.open .nav-links a { width: 100%; }
  .blog-grid, .blog-listing-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .show-card { flex: 0 0 270px; }
  .post-banner { height: 260px; }
  .post-header { margin-top: -80px; }
  .live-badge span.label { display: none; }
}
