/* =========================================================
   IU Regulations Page - V2
   Closer to approved mockup
========================================================= */

.iu-reg-page {
  background: linear-gradient(180deg, #f5f8fd 0%, #ffffff 32%, #ffffff 100%);
  color: #102a5c;
}

.iu-reg-page svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: block;
}

/* ---------------- Hero ---------------- */
.iu-reg-hero {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  background: #082b6f;
}

.iu-reg-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
}

.iu-reg-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      112deg,
      rgba(2, 38, 104, 1) 0%,
      rgba(3, 53, 139, 0.98) 36%,
      rgba(4, 71, 164, 0.62) 54%,
      rgba(255, 255, 255, 0) 54.2%
    ),
    linear-gradient(
      90deg,
      rgba(3, 38, 104, 0.92) 0%,
      rgba(3, 38, 104, 0.46) 48%,
      rgba(3, 38, 104, 0.06) 100%
    );
}

.iu-reg-hero::before {
  display: none;
}

.iu-reg-hero::after {
  content: "";
  position: absolute;
  left: 55px;
  bottom: 32px;
  width: 120px;
  height: 84px;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.18) 1.5px,
    transparent 1.5px
  );
  background-size: 14px 14px;
  opacity: 0.7;
  pointer-events: none;
}

.iu-reg-hero .container {
  position: relative;
  z-index: 2;
}

.iu-reg-hero-inner {
  display: flex;
  align-items: center;
  min-height: 350px;
  padding: 42px 0;
}

.iu-reg-hero-copy {
  max-width: 720px;
  color: #fff;
}

.iu-reg-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.iu-reg-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}

.iu-reg-breadcrumb strong {
  color: #fff;
}

.iu-reg-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.1rem, 5.2vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 900;
  text-transform: uppercase;
}

.iu-reg-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.03rem;
  line-height: 1.75;
}

/* Small meta instead of big stat cards */

.iu-reg-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.iu-reg-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 0.86rem;
  font-weight: 800;
}

.iu-reg-hero-meta svg {
  width: 1em;
  height: 1em;
  color: #fff;
}

/* Hide old stat layout if still exists somewhere */

.iu-reg-hero-stats,
.iu-reg-stat,
.iu-reg-stat-icon {
  display: none;
}

/* Responsive */

@media (max-width: 900px) {
  .iu-reg-hero,
  .iu-reg-hero-inner {
    min-height: 320px;
  }

  .iu-reg-hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(2, 38, 104, 0.96),
      rgba(2, 38, 104, 0.72)
    );
  }

  .iu-reg-hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 640px) {
  .iu-reg-hero h1 {
    font-size: 2.35rem;
  }

  .iu-reg-hero p {
    font-size: 0.96rem;
  }

  .iu-reg-hero-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* ---------------- Quick category buttons ---------------- */

.iu-reg-shortcuts-wrap {
  margin-top: 18px;
}

.iu-reg-shortcuts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.iu-reg-shortcut {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 0 22px;
  background: #fff;
  border: 1px solid #e7edf7;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(22, 46, 96, 0.05);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.iu-reg-shortcut:hover,
.iu-reg-shortcut.is-active {
  transform: translateY(-2px);
  border-color: #cad9f0;
  box-shadow: 0 12px 28px rgba(22, 46, 96, 0.08);
}

.iu-reg-shortcut-icon {
  color: #0f4db8;
  font-size: 1.6rem;
  flex: 0 0 auto;
}

.iu-reg-shortcut-label {
  color: #173d84;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 800;
}

/* ---------------- Content layout ---------------- */

.iu-reg-content {
  padding: 26px 0 78px;
}

.iu-reg-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.iu-reg-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.iu-reg-sidebar-card,
.iu-reg-help-card,
.iu-reg-search-panel,
.iu-reg-group {
  background: #fff;
  border: 1px solid #e6edf7;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(17, 52, 116, 0.06);
}

/* ---------------- Sidebar ---------------- */

.iu-reg-sidebar-card {
  overflow: hidden;
}

.iu-reg-sidebar-card h2 {
  margin: 0;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, #0c48a4 0%, #133f91 100%);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.iu-reg-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: #1c3f83;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eef3fa;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.iu-reg-filter:last-child {
  border-bottom: 0;
}

.iu-reg-filter:hover,
.iu-reg-filter.is-active {
  background: #f1f7ff;
}

.iu-reg-filter-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.iu-reg-filter-name i {
  color: #1a55bf;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.iu-reg-filter-name strong {
  display: block;
  color: #173d84;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.4;
}

.iu-reg-filter em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  color: #2a5bb7;
  background: #edf3fb;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
}

.iu-reg-help-card {
  padding: 22px;
}

.iu-reg-help-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1b53bb;
  background: #eef4fc;
  border-radius: 50%;
  font-size: 1.55rem;
}

.iu-reg-help-card h3 {
  margin: 18px 0 8px;
  color: #173d84;
  font-size: 1.06rem;
  font-weight: 900;
}

.iu-reg-help-card p {
  margin: 0;
  color: #5d7198;
  font-size: 0.92rem;
  line-height: 1.7;
}

.iu-reg-help-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  color: #fff;
  background: linear-gradient(135deg, #e42e2e 0%, #be111c 100%);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 900;
}

/* ---------------- Search panel ---------------- */

.iu-reg-search-panel {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 18px;
  padding: 20px;
  margin-bottom: 18px;
}

.iu-reg-search-box {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid #dfe8f5;
  border-radius: 14px;
}

.iu-reg-search-box span {
  color: #6a7fa8;
  font-size: 1.15rem;
}

.iu-reg-search-box input {
  width: 100%;
  color: #173d84;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1rem;
  font-weight: 600;
}

.iu-reg-search-box input::placeholder {
  color: #6e82a8;
}

.iu-reg-sort-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  color: #173d84;
  background: #fff;
  border: 1px solid #dfe8f5;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
}

.iu-reg-sort-btn i {
  color: #6f82a6;
  font-size: 1rem;
}

/* ---------------- Group cards ---------------- */

.iu-reg-group {
  margin-bottom: 24px;
  overflow: hidden;
}

.iu-reg-group.is-hidden {
  display: none;
}

.iu-reg-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 14px;
}

.iu-reg-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iu-reg-group-icon {
  color: #114eaf;
  font-size: 1.45rem;
  flex: 0 0 auto;
}

.iu-reg-group-title h2 {
  margin: 0;
  color: #133f91;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
  text-transform: uppercase;
}

.iu-reg-group-accent {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 10px;
  background: #ef2f2f;
  border-radius: 999px;
}

.iu-reg-group-head a {
  color: #ef2f2f;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------------- Table ---------------- */

.iu-reg-table-wrap {
  padding: 0 22px 22px;
  overflow-x: auto;
}

.iu-reg-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #e7edf7;
  border-radius: 12px;
}

.iu-reg-table thead th {
  padding: 15px 16px;
  color: #173d84;
  background: #f6f8fb;
  border-bottom: 1px solid #e7edf7;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 900;
}

.iu-reg-table tbody td {
  padding: 18px 16px;
  color: #243e74;
  border-bottom: 1px solid #eef3fa;
  font-size: 0.96rem;
  vertical-align: middle;
}

.iu-reg-table tbody tr:last-child td {
  border-bottom: 0;
}

.iu-reg-table tr.is-hidden {
  display: none;
}

.iu-reg-table tbody td strong {
  display: block;
  color: #173d84;
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 700;
}

.iu-reg-table tbody td:nth-child(1) {
  width: 58px;
  font-weight: 700;
}

.iu-reg-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ef2f2f;
  background: #fff;
  border: 1px solid #e7edf7;
  border-radius: 10px;
  font-size: 1.25rem;
}

.iu-reg-empty {
  padding: 28px;
  background: #fff;
  border: 1px dashed #cfd9ea;
  border-radius: 16px;
  text-align: center;
}

.iu-reg-empty strong {
  display: block;
  color: #173d84;
  font-size: 1.04rem;
}

.iu-reg-empty p {
  margin: 8px 0 0;
  color: #667a9e;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1280px) {
  .iu-reg-shortcuts {
    grid-template-columns: repeat(3, 1fr);
  }

  .iu-reg-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .iu-reg-hero {
    min-height: auto;
  }

  .iu-reg-hero-inner {
    padding: 28px 0 18px;
  }

  .iu-reg-hero h1 {
    font-size: 2.5rem;
  }

  .iu-reg-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 520px;
  }

  .iu-reg-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 92px;
    padding: 18px 22px;
  }

  .iu-reg-stat:last-child {
    border-bottom: 0;
  }

  .iu-reg-shortcuts {
    grid-template-columns: 1fr 1fr;
  }

  .iu-reg-search-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .iu-reg-shortcuts {
    grid-template-columns: 1fr;
  }

  .iu-reg-group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .iu-reg-table-wrap {
    padding: 0 14px 14px;
  }

  .iu-reg-group-head {
    padding: 18px 14px 12px;
  }
}
