:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --text: #14171f;
  --muted: #697180;
  --line: #e7e9ee;
  --accent: #e63946;
  --accent-dark: color-mix(in srgb, var(--accent) 78%, #000);
  --heading-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 22px 55px rgba(17, 24, 39, 0.14);
  --radius: 18px;
  --bs-body-font-family: var(--body-font);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-link-color: var(--accent);
  --bs-link-hover-color: var(--accent-dark);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 0%, rgba(230, 57, 70, 0.06), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

.site-main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(231, 233, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.04);
  backdrop-filter: blur(16px);
}

.header-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ff8a4c 55%, #f7c948);
}

.site-header .navbar {
  min-height: 76px;
  padding-block: 0.65rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.logo:hover,
.logo:focus {
  color: var(--text);
}

.logo-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 28%, transparent);
  color: #fff;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 900;
}

.main-nav > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  color: #3f4652;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
}

.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  display: none;
  min-width: 230px;
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  list-style: none;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  display: block;
}

.navbar-toggler {
  border-color: var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent) 18%, transparent);
}

.block-section,
.post-list {
  padding: clamp(2.5rem, 5vw, 4.75rem) 0;
}

.slider-section {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  background:
    radial-gradient(circle at 95% 0%, rgba(230, 57, 70, 0.22), transparent 30rem),
    #11151d;
}

.section-heading {
  display: flex;
  align-items: end;
  gap: 1.25rem;
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.section-heading > div {
  flex: 0 0 auto;
}

.section-kicker {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-rule {
  width: 100%;
  height: 1px;
  margin-bottom: 0.55rem;
  background: linear-gradient(90deg, var(--line), transparent);
}

.section-heading-light .section-title {
  color: #fff;
}

.section-heading-light .section-rule {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent);
}

.featured-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.featured-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.featured-card:hover {
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.featured-card-main {
  grid-row: 1 / 3;
}

.featured-card-side {
  display: grid;
  grid-template-columns: minmax(135px, 44%) minmax(0, 1fr);
}

.featured-media {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #252b36;
}

.featured-card-main .featured-media {
  aspect-ratio: 16 / 9;
}

.featured-card-side .featured-media {
  height: 100%;
}

.featured-media img,
.featured-media .image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.featured-card:hover .featured-media img,
.featured-card:hover .featured-media .image-placeholder {
  transform: scale(1.035);
}

.featured-content {
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
}

.featured-card-side .featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.featured-title {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.featured-card-side .featured-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.featured-title a {
  color: inherit;
  text-decoration: none;
}

.featured-title a:hover,
.featured-title a:focus {
  color: var(--accent);
}

.featured-content > p {
  max-width: 64ch;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.image-placeholder {
  display: block;
  background:
    linear-gradient(135deg, rgba(230, 57, 70, 0.85), rgba(17, 21, 29, 0.88)),
    #343a46;
}

.post-category-badge {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.post-category-badge:hover,
.post-category-badge:focus {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.news-card-media > .post-category-badge.position-absolute {
  top: 0.9rem;
  left: 0.9rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.post-meta-light {
  color: rgba(255, 255, 255, 0.62);
}

.news-card,
.popular-card,
.single-content,
.page-content,
.widget {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.news-card {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.news-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dfe3e9;
}

.news-card-media img,
.news-card-media .image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card:hover .news-card-media img,
.news-card:hover .news-card-media .image-placeholder {
  transform: scale(1.045);
}

.news-card .card-body {
  padding: 1.2rem 1.25rem 1.35rem;
}

.card-title {
  margin: 0;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: clamp(1.1rem, 1.7vw, 1.38rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.24;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover,
.card-title a:focus {
  color: var(--accent);
}

.card-text {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.popular-section {
  padding-top: 1rem;
}

.popular-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.4rem;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.popular-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.popular-card .post-category-badge {
  margin-bottom: 0.8rem;
}

.popular-rank {
  color: color-mix(in srgb, var(--accent) 25%, #fff);
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.post-list {
  background: linear-gradient(180deg, #f9fafb, var(--bg));
}

.single-content,
.page-content {
  padding: clamp(1.25rem, 4vw, 3rem);
}

.page-content {
  max-width: 980px;
  margin-inline: auto;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-title {
  margin: 0.9rem 0 1rem;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4.5vw, 3.65rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.single-cover {
  margin: 0 calc(clamp(1.25rem, 4vw, 3rem) * -1) 2rem;
  overflow: hidden;
}

.single-cover img {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: cover;
}

/*
 * Article HTML is intentionally left untouched. Custom HTML blocks render in
 * an isolated iframe so neither Bootstrap nor theme CSS can alter them.
 */
.hiza-raw-html-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.single-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
}

.widget {
  margin-bottom: 1.25rem;
  padding: 1.4rem;
}

.widget-title {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-weight: 800;
}

.widget p:last-child {
  margin-bottom: 0;
}

.hiza-sidebar-widget {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(231, 233, 238, 0.9);
}

.hiza-sidebar-widget::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ff8a4c, #f7c948);
}

.hiza-widget-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hiza-widget-heading .widget-title {
  margin-bottom: 0;
  font-size: 1.15rem;
  line-height: 1.15;
}

.hiza-sidebar-post-list {
  display: grid;
  gap: 0.8rem;
}

.hiza-sidebar-post {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hiza-sidebar-post:hover,
.hiza-sidebar-post:focus {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, #fff);
  color: inherit;
  transform: translateX(3px);
}

.hiza-sidebar-post-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  background: #dfe3e9;
}

.hiza-sidebar-post-media img,
.hiza-sidebar-post-media .image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hiza-sidebar-post:hover .hiza-sidebar-post-media img,
.hiza-sidebar-post:hover .hiza-sidebar-post-media .image-placeholder {
  transform: scale(1.06);
}

.hiza-sidebar-rank {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  display: grid;
  min-width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 900;
  line-height: 1;
}

.hiza-sidebar-post-body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.hiza-sidebar-post-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hiza-sidebar-post:hover .hiza-sidebar-post-title,
.hiza-sidebar-post:focus .hiza-sidebar-post-title {
  color: var(--accent);
}

.hiza-sidebar-post-meta {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hiza-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hiza-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.48rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hiza-topic-pill:hover,
.hiza-topic-pill:focus {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.hiza-topic-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hiza-topic-pill strong {
  display: grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
}

.ad-widget {
  min-height: 230px;
  border-top: 4px solid var(--accent) !important;
}

.hiza-post-sidebar-left .single-main-column {
  order: 2;
}

.hiza-post-sidebar-left .single-sidebar {
  order: 1;
}

.hiza-post-width-narrow .single-main-column {
  max-width: 760px;
}

.hiza-post-width-normal .single-main-column {
  max-width: 940px;
}

.hiza-post-width-wide .single-main-column {
  max-width: none;
}

.hiza-post-layout-compact .single-content {
  padding: 1.25rem;
}

.hiza-post-layout-airy .single-content {
  padding: clamp(2rem, 5vw, 4rem);
}

.hiza-post-layout-classic .single-content {
  border-radius: 4px;
}

.hiza-post-layout-magazine .article-title {
  max-width: 16ch;
}

.archive-pagination {
  margin-top: 2.5rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.page-numbers {
  display: grid;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.7rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #11151d;
  color: rgba(255, 255, 255, 0.62);
}

.footer-wrap {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.footer-wrap p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-brand {
  color: #fff;
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--accent);
}

@media (max-width: 991.98px) {
  .site-header .navbar {
    min-height: 68px;
  }

  .main-nav {
    padding: 0.75rem 0 0.35rem;
  }

  .main-nav > ul {
    align-items: stretch !important;
  }

  .main-nav a {
    padding: 0.75rem 0.85rem;
  }

  .main-nav .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    margin-left: 0.8rem;
    padding: 0 0 0 0.5rem;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .single-sidebar {
    position: static;
  }

  .hiza-post-sidebar-left .single-main-column,
  .hiza-post-sidebar-left .single-sidebar {
    order: initial;
  }

  .hiza-post-width-narrow .single-main-column,
  .hiza-post-width-normal .single-main-column {
    max-width: none;
  }

  .featured-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  }

  .featured-card-side {
    grid-template-columns: 1fr;
  }

  .featured-card-side .featured-media {
    aspect-ratio: 16 / 8;
    height: auto;
  }
}

@media (max-width: 767.98px) {
  .section-heading {
    align-items: center;
  }

  .section-rule {
    display: none;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .featured-card-main {
    grid-row: auto;
  }

  .featured-card-side {
    display: grid;
    grid-template-columns: minmax(120px, 40%) minmax(0, 1fr);
  }

  .featured-card-side .featured-media {
    aspect-ratio: auto;
    height: 100%;
  }

  .featured-card-side .post-meta {
    display: none;
  }

  .featured-card-side .featured-title {
    -webkit-line-clamp: 3;
  }

  .featured-card .post-meta {
    display: none;
  }

  .single-content,
  .page-content {
    border-radius: 14px;
  }

  .article-title {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .single-cover {
    margin-bottom: 1.5rem;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
