@font-face{font-family:Inter;src:url('assets/fonts/test-series-inter/Inter-Variable.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
:root {
  --blue: #0757ff;
  --navy: #08195a;
  --text: #0d1d57;
  --muted: #60709d;
  --line: #dbe5fa;
  --pale: #f5f8ff;
  --green: #e9f7ec;
  --purple: #efe9ff;
  --red: #ffe7e7;
  --orange: #fff0e5
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: white;
  font-size: 15px
}

button,
input,
select {
  font: inherit
}

main {
  padding: 0 22px;
  max-width: 1540px;
  margin: 0 auto
}

.hero-section {
  height: 350px;
  margin-top: 46px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f4f8ff, #edf5ff);
  display: grid;
  grid-template-columns: 32% 48% 20%;
  overflow: hidden
}

.hero-copy {
  padding: 38px 0 30px 34px
}

.eyebrow {
  display: inline-block;
  color: #0d2e76;
  background: #e1ecff;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700
}

.hero-copy h1 {
  font-size: 42px;
  line-height: 1.06;
  margin: 12px 0 10px;
  letter-spacing: -1.2px
}

.hero-copy h1 span {
  color: var(--blue)
}

.hero-copy p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 18px
}

.hero-features {
  display: flex;
  gap: 18px
}

.hero-features div {
  width: 68px;
  text-align: center;
  position: relative
}

.hero-features div:not(:last-child):after {
  content: "";
  position: absolute;
  right: -10px;
  top: 4px;
  width: 1px;
  height: 46px;
  background: #cfdcf7
}

.hero-features b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  font-size: 21px;
  margin: 0 auto 6px
}

.hero-features span {
  font-size: 9px;
  line-height: 1.35;
  font-weight: 600
}

.hero-art {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 18px 6px
}

.hero-stats {
  margin: 17px 17px 17px 0;
  background: #fff;
  border-radius: 9px;
  padding: 8px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  box-shadow: 0 8px 22px #4770c511
}

.hero-stats div {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #dce6f8
}

.hero-stats div:last-child {
  border: 0
}

.hero-stats>div>span {
  color: var(--blue);
  font-size: 28px
}

.hero-stats p {
  margin: 0
}

.hero-stats strong {
  display: block;
  color: var(--blue);
  font-size: 20px
}

.hero-stats small {
  font-size: 11px;
  font-weight: 600
}

.section-shell {
  margin: 54px 8px 58px
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.section-heading h2 {
  font-size: 18px;
  margin: 0 0 24px
}

.section-heading button {
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer
}

.popular-wrap {
  position: relative
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d7e2f7;
  background: #fff;
  color: #2340a7;
  font-size: 27px;
  line-height: 1;
  box-shadow: 0 4px 14px #0d2b6e18
}

.carousel-btn.left {
  left: -16px
}

.carousel-btn.right {
  right: -16px
}

.test-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 20px;
  min-height: 220px;
  box-shadow: 0 2px 8px #0b2d7810;
  display: flex;
  flex-direction: column
}

.popular-card {
  min-height: 205px
}

.card-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 58px
}

.card-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%
}

.card-title {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  margin: 4px 0 0
}

.logo-label {
  font-size: 11px;
  font-weight: 700;
  margin-top: 3px
}

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 13px 0
}

.tag {
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600
}

.tag.green {
  background: var(--green);
  color: #145c2a
}

.tag.blue {
  background: #e4eeff;
  color: #0553e5
}

.tag.purple {
  background: var(--purple);
  color: #5d2ee9
}

.tag.red {
  background: var(--red);
  color: #e22525
}

.tag.orange {
  background: var(--orange);
  color: #e85011
}

.stats-inline {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  margin: 7px 0 16px
}

.stats-inline i {
  height: 13px;
  width: 1px;
  background: #acb8d7
}

.card-meta {
  display: grid;
  gap: 8px;
  font-size: 12px;
  margin: 1px 0 11px
}

.card-meta span:before {
  display: inline-block;
  width: 17px;
  font-weight: 700;
  color: #11236c
}

.card-meta span:nth-child(1):before {
  content: "♙"
}

.card-meta span:nth-child(2):before {
  content: "◉"
}

.card-meta span:nth-child(3):before {
  content: "◷"
}

.card-meta span:nth-child(4):before {
  content: "▥"
}

.view-btn {
  margin-top: auto;
  height: 36px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer
}

a.view-btn {
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-sizing:border-box;
}

.view-btn:hover {
  background: var(--blue);
  color: white
}

.new-badge {
  position: absolute;
  top: 0;
  right: 5px;
  background: #11ad42;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 7px;
  transform: skew(-8deg);
  border-radius: 0 0 0 6px
}

.catalog-section {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  margin-top: 8px
}

.filters-card,
.catalog-main {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff
}

.filters-card {
  padding: 20px 18px
}

.filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.filter-title h3 {
  font-size: 15px;
  color: var(--blue);
  margin: 0
}

.filter-title button {
  font-size: 12px;
  color: var(--blue);
  border: 0;
  background: none
}

.filter-group {
  padding: 18px 0;
  border-bottom: 1px solid #dce4f4
}

.filter-group h4 {
  font-size: 13px;
  margin: 0 0 13px
}

.filter-option {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  font-size: 12px;
  margin: 10px 0;
  cursor: pointer
}

.filter-option input {
  accent-color: var(--blue);
  width: 14px;
  height: 14px
}

.view-more {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  margin-top: 6px
}

.clear-filter-btn {
  width: 100%;
  height: 38px;
  margin-top: 16px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600
}

.catalog-toolbar {
  height: 62px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line)
}

.catalog-toolbar>div:first-child {
  display: flex;
  align-items: center;
  gap: 28px
}

.catalog-toolbar h2 {
  font-size: 17px;
  margin: 0
}

.catalog-toolbar span {
  font-size: 12px
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px
}

.toolbar-right label {
  font-size: 12px;
  font-weight: 600
}

.toolbar-right select {
  height: 30px;
  margin-left: 8px;
  border: 1px solid #cbd7ef;
  border-radius: 5px;
  padding: 0 23px 0 10px;
  color: #14245c;
  background: #fff
}

.search-box.small {
  height: 30px;
  width: 190px;
  border-radius: 5px
}

.search-box.small input {
  font-size: 12px
}

.search-box.small span {
  font-size: 19px
}

.test-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px
}

.test-grid .test-card {
  min-height: 230px
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 18px
}

.page-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e0e7f6;
  background: #fff;
  border-radius: 5px;
  color: #102164;
  font-size: 11px
}

.page-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

.benefits {
  margin-top: 64px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  background: #f5f8ff;
  border-radius: 8px;
  padding: 8px 12px
}

.benefits>div {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 2px 10px;
  border-right: 1px solid #dce4f4
}

.benefits>div:last-child {
  border: 0
}

.benefits b {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e4eeff;
  color: var(--blue);
  font-size: 24px
}

.benefits p {
  margin: 0
}

.benefits strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px
}

.benefits span {
  font-size: 11px;
  line-height: 1.45;
  color: #253569
}

@media(max-width:1000px) {
  .site-header {
    grid-template-columns: 190px 1fr auto
  }

  .brand img {
    width: 180px
  }

  .main-nav {
    gap: 25px
  }

  .hero-section {
    grid-template-columns: 40% 60%;
    height: auto
  }

  .hero-stats {
    display: none
  }

  .popular-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .popular-card:nth-child(n+4) {
    display: none
  }

  .catalog-section {
    grid-template-columns: 170px 1fr
  }

  .test-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .benefits {
    grid-template-columns: repeat(3, 1fr)
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:760px) {
  body {
    font-size: 13px
  }

  .hero-section {
    margin-top: 18px
  }

  .section-shell {
    margin: 24px 4px 30px
  }

  .section-heading h2 {
    margin-bottom: 14px
  }

  .site-header {
    height: auto;
    padding: 10px 14px;
    grid-template-columns: 1fr auto
  }

  .main-nav {
    grid-column: 1/-1;
    order: 3;
    justify-content: space-around;
    border-top: 1px solid #eef2fb;
    padding-top: 10px
  }

  .header-actions .search-box {
    display: none
  }

  .hero-section {
    grid-template-columns: 1fr
  }

  .hero-copy {
    padding: 24px
  }

  .hero-art {
    display: none
  }

  .hero-copy h1 {
    font-size: 34px
  }

  .popular-grid {
    display: flex;
    overflow: auto;
    scroll-snap-type: x mandatory
  }

  .popular-card {
    min-width: 250px;
    scroll-snap-align: start
  }

  .catalog-section {
    grid-template-columns: 1fr
  }

  .filters-card {
    display: none
  }

  .test-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .catalog-toolbar {
    height: auto;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    flex-direction: column
  }

  .toolbar-right {
    width: 100%;
    justify-content: space-between
  }

  .benefits {
    grid-template-columns: 1fr 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .footer-brand,
  .newsletter {
    grid-column: 1/-1
  }
}

@media(max-width:480px) {
  main {
    padding: 0 8px
  }

  .site-header {
    grid-template-columns: 1fr
  }

  .brand {
    justify-self: center
  }

  .header-actions {
    justify-self: center
  }

  .main-nav {
    font-size: 12px;
    gap: 15px
  }

  .hero-copy h1 {
    font-size: 30px
  }

  .hero-features {
    gap: 8px
  }

  .test-grid {
    grid-template-columns: 1fr
  }

  .popular-card {
    min-width: 230px
  }

  .benefits {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .footer-grid>div {
    grid-column: 1/-1
  }
}


/* Final readability and spacing refinements */
.popular-section {
  margin-top: 58px
}

.catalog-section {
  margin-top: 68px;
  margin-bottom: 66px
}

.benefits.section-shell {
  margin-top: 68px
}

.card-head {
  gap: 14px;
  min-height: 64px
}

.tags {
  margin: 16px 0
}

@media (min-width:1200px) {
  .site-header {
    padding-left: 34px;
    padding-right: 34px
  }

  .hero-section {
    grid-template-columns: 31% 49% 20%
  }

  .hero-stats {
    margin: 24px 24px 24px 0;
    padding: 14px 18px
  }
}

@media(max-width:1000px) {
  main {
    padding: 0 16px
  }

  .hero-section {
    margin-top: 32px;
    height: auto;
    min-height: 340px
  }

  .hero-art img {
    min-height: 300px
  }

  .catalog-section {
    grid-template-columns: 195px 1fr
  }
}

@media(max-width:760px) {
  .section-shell {
    margin-top: 38px;
    margin-bottom: 42px
  }

  .popular-section,
  .catalog-section,
  .benefits.section-shell {
    margin-top: 42px
  }

  footer {
    margin-top: 34px
  }
}

/* Final approved cartoon hero banner */
.hero-section.hero-image-only {
  display: block;
  height: auto;
  min-height: 0;
  margin-top: 46px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #eef5ff;
  box-shadow: 0 2px 10px rgba(10, 42, 102, .05);
}

.hero-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

@media(max-width:1000px) {
  .hero-section.hero-image-only {
    min-height: 0;
    height: auto;
    margin-top: 32px
  }

  .hero-banner-image {
    min-height: 0;
    width: 100%;
    height: auto
  }
}

@media(max-width:760px) {
  .hero-section.hero-image-only {
    margin-top: 22px;
    border-radius: 9px
  }
}

/* ===== FINAL REALISTIC BUILT-IN HERO ===== */
.hero-section.hero-built {
  height: 455px;
  margin-top: 46px;
  padding: 0;
  display: grid;
  grid-template-columns: 38% 62%;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(100deg, #f5f9ff 0%, #edf5ff 55%, #f8fbff 100%);
  box-shadow: 0 2px 12px rgba(18, 55, 125, .05);
}

.hero-built .hero-copy {
  padding: 56px 28px 46px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-built .eyebrow {
  align-self: flex-start;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.hero-built .hero-copy h1 {
  font-size: 46px;
  line-height: 1.07;
  margin: 0 0 18px;
  letter-spacing: -1.5px;
  color: #0a1d5d;
}

.hero-built .hero-copy h1 span {
  color: #1261ee
}

.hero-built .hero-copy p {
  max-width: 520px;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.7;
  color: #16275f;
}

.hero-built .hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 14px;
  max-width: 520px;
}

.hero-built .hero-features div {
  width: auto;
  min-width: 0;
  text-align: center;
}

.hero-built .hero-features div:not(:last-child):after {
  right: -7px;
  top: 9px;
  height: 54px;
}

.hero-built .hero-features b {
  width: 46px;
  height: 46px;
  font-size: 23px;
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(29, 91, 210, .08);
}

.hero-built .hero-features span {
  font-size: 10.5px;
  line-height: 1.4;
  font-weight: 650;
}

.hero-built .realistic-art {
  height: 100%;
  min-width: 0;
  padding: 20px 22px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-built .realistic-art img {
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

/* Disable the old image-only hero rules in this build */
.hero-section.hero-image-only,
.hero-banner-image {
  display: none !important
}

@media (min-width:1400px) {
  .hero-section.hero-built {
    height: 470px;
    grid-template-columns: 37% 63%
  }

  .hero-built .hero-copy {
    padding-left: 48px
  }

  .hero-built .hero-copy h1 {
    font-size: 48px
  }
}

@media (max-width:1100px) {
  .hero-section.hero-built {
    height: 420px;
    grid-template-columns: 42% 58%
  }

  .hero-built .hero-copy {
    padding: 42px 22px 38px 30px
  }

  .hero-built .hero-copy h1 {
    font-size: 38px
  }

  .hero-built .hero-copy p {
    font-size: 14px
  }

  .hero-built .hero-features {
    gap: 8px
  }

  .hero-built .hero-features span {
    font-size: 9.5px
  }
}

@media (max-width:820px) {
  .hero-section.hero-built {
    height: auto;
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .hero-built .hero-copy {
    padding: 38px 28px 24px;
    text-align: left
  }

  .hero-built .hero-copy h1 {
    font-size: 38px
  }

  .hero-built .realistic-art {
    height: 320px;
    padding: 0 20px 24px
  }
}

@media (max-width:560px) {
  .hero-built .hero-copy {
    padding: 30px 20px 22px
  }

  .hero-built .hero-copy h1 {
    font-size: 31px
  }

  .hero-built .hero-copy p {
    font-size: 13.5px
  }

  .hero-built .hero-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 10px
  }

  .hero-built .hero-features div:nth-child(2):after {
    display: none
  }

  .hero-built .realistic-art {
    height: 260px;
    padding: 0 12px 18px
  }
}

/* ===== FINAL HEADER + FULL-VIEW HERO OVERRIDES ===== */
.site-header {
  height: 88px;
  padding: 0 34px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid #e7ebf4;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0
}

.brand img {
  width: 155px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;
  white-space: nowrap;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0a184d;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a.active,
.main-nav a:hover {
  color: #0a184d
}

.nav-chevron {
  font-size: 17px;
  line-height: 1;
  transform: translateY(-1px)
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px
}

.search-box.header-search {
  width: 390px;
  height: 46px;
  padding: 0 15px 0 17px;
  border: 1px solid #c8d3e8;
  border-radius: 7px;
  background: #fff;
}

.search-box.header-search input {
  font-size: 14px;
  color: #1f2a4d;
}

.search-box.header-search input::placeholder {
  color: #6f778c
}

.search-icon {
  font-size: 25px !important;
  color: #002d77 !important
}

.login-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  background: #0c337e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.user-icon {
  font-size: 17px;
  margin-right: 8px
}

main {
  padding: 0 28px;
  max-width: 1540px;
  margin: 0 auto
}

.hero-section {
  height: auto;
  min-height: 0;
  margin-top: 42px !important;
  padding: 0;
  display: grid !important;
  grid-template-columns: 44% 56% !important;
  align-items: stretch;
  overflow: visible !important;
  border-radius: 14px;
  background: linear-gradient(90deg, #f7faff 0%, #f3f8ff 48%, #eef5ff 100%);
  box-shadow: inset 0 0 0 1px #eef3fb;
}

.hero-copy {
  padding: 55px 34px 46px 54px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow {
  align-self: flex-start;
  display: inline-flex !important;
  align-items: center;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  background: #e8f1ff !important;
  color: #1647a0 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
}

.hero-copy h1 {
  margin: 18px 0 14px !important;
  font-size: 48px !important;
  line-height: 1.08 !important;
  letter-spacing: -1.7px !important;
  color: #081d5c !important;
  font-weight: 800 !important;
}

.hero-copy h1 span {
  color: #15934a !important
}

.hero-copy>p {
  max-width: 560px;
  margin: 0 0 28px !important;
  color: #233151 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.hero-features {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px !important;
  width: min(570px, 100%);
}

.hero-feature {
  width: auto !important;
  text-align: center;
  position: relative;
}

.hero-feature:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 8px;
  width: 1px;
  height: 58px;
  background: #d9e3f5;
}

.hero-feature b {
  display: flex !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 auto 9px !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  background: #e6efff !important;
  color: #0a3d91 !important;
  font-size: 24px !important;
}

.hero-feature:nth-child(2) b {
  background: #e7f6ec !important;
  color: #138746 !important
}

.hero-feature:nth-child(3) b {
  background: #fff4d9 !important;
  color: #d79a00 !important
}

.hero-feature:nth-child(4) b {
  background: #f0e8ff !important;
  color: #7e46d8 !important
}

.hero-feature span {
  display: block;
  color: #18234a !important;
  font-size: 11.5px !important;
  line-height: 1.42 !important;
  font-weight: 700 !important;
}

.hero-visual {
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px 20px 0;
  overflow: visible;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}

@media (max-width:1180px) {
  .site-header {
    grid-template-columns: 180px 1fr auto;
    padding: 0 22px;
    gap: 20px
  }

  .brand img {
    width: 145px
  }

  .main-nav {
    gap: 28px
  }

  .search-box.header-search {
    width: 300px
  }

  .hero-section {
    height: 410px !important;
    min-height: 410px;
    grid-template-columns: 46% 54% !important
  }

  .hero-copy {
    padding: 42px 26px 38px 38px !important
  }

  .hero-copy h1 {
    font-size: 41px !important
  }

  .hero-copy>p {
    font-size: 14.5px !important
  }
}

@media (max-width:920px) {
  .site-header {
    height: auto;
    min-height: 82px;
    grid-template-columns: 1fr auto;
    padding: 12px 20px
  }

  .main-nav {
    order: 3;
    grid-column: 1/-1;
    justify-content: flex-start;
    gap: 26px;
    padding-top: 4px
  }

  .header-actions {
    justify-self: end
  }

  .search-box.header-search {
    display: none
  }

  .hero-section {
    height: auto !important;
    min-height: 0;
    grid-template-columns: 1fr !important;
    margin-top: 30px !important;
    overflow: hidden !important
  }

  .hero-copy {
    padding: 38px 28px 28px !important
  }

  .hero-visual {
    height: 350px;
    padding: 0 20px 24px
  }

  .hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain
  }
}

@media (max-width:620px) {
  main {
    padding: 0 14px
  }

  .site-header {
    padding: 10px 14px
  }

  .brand img {
    width: 135px
  }

  .login-btn {
    height: 42px;
    padding: 0 13px;
    font-size: 12px
  }

  .main-nav {
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px
  }

  .main-nav a {
    font-size: 13px
  }

  .hero-copy {
    padding: 30px 20px 24px !important
  }

  .hero-copy h1 {
    font-size: 34px !important
  }

  .hero-copy>p {
    font-size: 13.5px !important
  }

  .hero-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 10px !important
  }

  .hero-feature:nth-child(2)::after {
    display: none
  }

  .hero-visual {
    height: 285px;
    padding: 0 10px 18px
  }
}

/* ===== FINAL CORRECTIONS — 2026-07-29 ===== */
/* Header remains exactly compact and clean as approved. */
.site-header {
  height: 88px !important;
  min-height: 88px !important;
  padding: 0 32px !important;
  grid-template-columns: 220px 1fr auto !important;
  gap: 34px !important;
  background: #fff !important;
  border-bottom: 1px solid #e7eaf0 !important;
  box-shadow: none !important;
}

.brand img {
  width: 170px !important;
  height: auto !important;
  object-fit: contain !important
}

.main-nav {
  gap: 38px !important
}

.main-nav a {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #07163d !important
}

.header-actions {
  gap: 20px !important
}

.search-box.header-search {
  width: 390px !important;
  height: 46px !important;
  border: 1px solid #cad4e4 !important;
  border-radius: 7px !important;
  background: #fff !important
}

.login-btn {
  height: 46px !important;
  background: #0b327e !important;
  border-radius: 6px !important;
  padding: 0 20px !important
}

/* Hero: the illustration is always fully visible. Nothing is cropped. */
.hero-section {
  height: 450px !important;
  min-height: 450px !important;
  margin-top: 42px !important;
  grid-template-columns: 43% 57% !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: linear-gradient(90deg, #f8fbff 0%, #f4f8ff 46%, #eef5ff 100%) !important;
}

.hero-copy {
  padding: 50px 34px 42px 54px !important
}

.hero-copy h1 {
  font-size: 47px !important;
  line-height: 1.08 !important;
  margin: 17px 0 14px !important
}

.hero-copy>p {
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  margin-bottom: 27px !important
}

.hero-features {
  gap: 16px !important;
  width: 100% !important;
  max-width: 590px !important
}

.hero-feature b {
  width: 50px !important;
  height: 50px !important;
  border-radius: 13px !important
}

.hero-feature b svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round
}

.hero-feature span {
  font-size: 11.5px !important;
  line-height: 1.42 !important
}

.hero-visual {
  height: 100% !important;
  width: 100% !important;
  padding: 18px 24px 18px 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.hero-visual img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: right center !important;
  border-radius: 12px !important;
}

/* Exam cards: clean logo slot + title alignment, transparent wrapper, no double boxes */
.card-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 52px !important;
}

.card-logo-wrap {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.card-logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.card-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.28 !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  overflow-wrap: break-word;
}

.logo-label {
  display: none !important
}

.popular-card .card-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 52px !important;
}

.popular-card .card-logo-wrap {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
}

.popular-card .card-logo {
  width: auto !important;
  height: auto !important;
  max-width: 42px !important;
  max-height: 42px !important;
}

@media(max-width:1180px) {
  .site-header {
    grid-template-columns: 180px 1fr auto !important;
    padding: 0 22px !important;
    gap: 20px !important
  }

  .brand img {
    width: 150px !important
  }

  .main-nav {
    gap: 27px !important
  }

  .search-box.header-search {
    width: 300px !important
  }

  .hero-section {
    height: 420px !important;
    min-height: 420px !important;
    grid-template-columns: 45% 55% !important
  }

  .hero-copy {
    padding: 40px 24px 36px 38px !important
  }

  .hero-copy h1 {
    font-size: 40px !important
  }

  .hero-visual {
    padding: 16px 18px 16px 0 !important
  }
}

@media(max-width:920px) {
  .site-header {
    height: auto !important;
    min-height: 82px !important;
    grid-template-columns: 1fr auto !important;
    padding: 12px 20px !important
  }

  .main-nav {
    grid-column: 1/-1 !important;
    order: 3 !important;
    gap: 25px !important
  }

  .search-box.header-search {
    display: none !important
  }

  .hero-section {
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    margin-top: 30px !important
  }

  .hero-copy {
    padding: 38px 28px 28px !important
  }

  .hero-visual {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 18px 22px !important
  }

  .hero-visual img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important
  }
}

@media(max-width:620px) {
  .site-header {
    padding: 10px 14px !important
  }

  .brand img {
    width: 136px !important
  }

  .main-nav {
    gap: 18px !important
  }

  .hero-copy {
    padding: 30px 20px 24px !important
  }

  .hero-copy h1 {
    font-size: 34px !important
  }

  .hero-copy>p {
    font-size: 13.5px !important
  }

  .hero-features {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px 10px !important
  }

  .hero-feature:nth-child(2)::after {
    display: none !important
  }

  .hero-visual {
    padding: 0 10px 16px !important
  }
}

/* =========================================
   PROFESSIONAL CATALOG CONTROLS
========================================= */

.mobile-menu-button {
  display: none;
}

.filter-title button,
.clear-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.filter-title button {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 6px;
  color: #315b9f;
  font-size: 11.5px;
  font-weight: 600;
}

.filter-title button:hover {
  color: #0757ff;
  background: #eef5ff;
}

.filter-title button i,
.clear-filter-btn i {
  font-size: 11px;
}

.clear-filter-btn {
  height: 42px;
  border-radius: 7px;
  border-color: #9dbbfa;
  background: #f8fbff;
  color: #0757ff;
  font-size: 12px;
  font-weight: 700;
}

.clear-filter-btn:hover {
  border-color: #0757ff;
  background: #edf4ff;
  box-shadow: 0 4px 12px rgba(7, 87, 255, .08);
}

.extra-exam-filter {
  display: none;
}

#filters.show-extra-exams .extra-exam-filter {
  display: grid;
}

.view-more {
  width: 100%;
  margin-top: 8px;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  color: #0757ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.view-more i {
  font-size: 10px;
  transition: transform .18s ease;
}

.view-more[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.catalog-toolbar {
  min-height: 76px;
  height: auto;
  padding: 12px 18px;
  gap: 18px;
}

.catalog-toolbar > div:first-child {
  min-width: 0;
  gap: 12px;
}

.catalog-toolbar h2 {
  white-space: nowrap;
}

.catalog-toolbar #resultCount {
  color: #667694;
  white-space: nowrap;
}

.toolbar-right {
  margin-left: auto;
  gap: 12px;
}

.toolbar-right .sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #26375c;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.select-shell {
  position: relative;
  width: 164px;
  height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid #cbd7e8;
  border-radius: 7px;
  background: #fff;
  color: #58709a;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.select-shell:focus-within,
.catalog-search-box:focus-within {
  border-color: #1769ff;
  box-shadow: 0 0 0 3px rgba(23, 105, 255, .11);
}

.select-shell > i:first-child {
  width: 36px;
  text-align: center;
  color: #1769ff;
  font-size: 13px;
}

.toolbar-right .select-shell select {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 30px 0 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: #172853;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 11px;
  color: #58709a;
  font-size: 9px;
  pointer-events: none;
}

.catalog-search-box {
  width: 248px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd7e8;
  border-radius: 7px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #58709a;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.catalog-search-box > i {
  color: #315b9f;
  font-size: 13px;
}

.catalog-search-box input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172853;
  font-family: "Inter", sans-serif;
  font-size: 12px;
}

.catalog-search-box input::placeholder {
  color: #8794aa;
}

.card-meta {
  gap: 9px;
  color: #33486f;
}

.card-meta span {
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.card-meta span::before {
  display: none !important;
  content: none !important;
}

.card-meta span > i {
  width: 16px;
  color: #315b9f;
  font-size: 12px;
  text-align: center;
  flex: 0 0 16px;
}

.hero-feature {
  min-width: 0;
  padding: 0 10px;
}

.hero-feature:not(:last-child)::after {
  right: -8px;
  top: 6px;
  height: 62px;
  background: #d8e3f3;
}

.hero-feature b {
  box-shadow: inset 0 0 0 1px rgba(20, 50, 100, .035);
}

.carousel-btn[hidden] {
  display: none !important;
}

.carousel-btn:disabled {
  opacity: .38;
  cursor: default;
}

/* =========================================
   RESPONSIVE PUBLIC HEADER AND CATALOG
========================================= */

@media (max-width: 1100px) {
  .main-header .header-inner {
    grid-template-columns: 180px 1fr auto !important;
  }

  .main-header .brand-logo {
    width: 164px !important;
    height: 52px !important;
  }
}

@media (max-width: 920px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .main-header .header-inner {
    min-height: 70px !important;
    height: auto !important;
    padding: 10px 16px !important;
    grid-template-columns: minmax(0, 1fr) 42px 42px !important;
    grid-template-rows: 50px auto auto !important;
    gap: 8px !important;
  }

  .main-header .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .main-header .brand-logo {
    width: 150px !important;
    height: 48px !important;
  }

  @media (max-width: 480px) {
    .main-header .brand-logo {
      width: 132px !important;
      height: 44px !important;
    }
  }

  .mobile-menu-button {
    grid-column: 2;
    grid-row: 1;
    width: 42px;
    height: 42px;
    border: 1px solid #d5dfed;
    border-radius: 7px;
    background: #fff;
    color: #0b2b78;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
  }

  .main-header .login-button {
    grid-column: 3;
    grid-row: 1;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
  }

  .main-header .login-button span {
    display: none;
  }

  .main-header .tb-logged-in-header {
    grid-column: 3;
    grid-row: 1;
  }

  .main-header .tb-header-dashboard {
    display: none !important;
  }

  .main-header .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: auto !important;
    padding: 8px;
    border: 1px solid #e1e8f2;
    border-radius: 9px;
    background: #fff;
    display: none !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 2px !important;
  }

  body.mobile-header-open .main-header .main-nav {
    display: flex !important;
  }

  .main-header .main-nav > a,
  .current-affairs-nav-link {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    justify-content: space-between;
    border-radius: 6px;
  }

  .main-header .main-nav > a:hover,
  .main-header .main-nav > a.active,
  .current-affairs-nav-link:hover,
  .current-affairs-nav-link.active {
    background: #eef7f1;
  }

  .main-header .header-search {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    display: none !important;
  }

  body.mobile-header-open .main-header .header-search {
    display: flex !important;
  }

  .current-affairs-nav {
    width: 100%;
    height: auto;
    display: block;
  }

  .current-affairs-menu {
    position: static;
    width: 100%;
    margin-top: 4px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
  }

  .current-affairs-menu.open {
    display: block;
    transform: none;
  }

  .main-header .exams-mega-menu,
  .main-header .exams-mega-menu.open {
    position: static !important;
    width: 100% !important;
    max-height: 62vh;
    margin: 4px 0 8px !important;
    transform: none !important;
    overflow-y: auto;
    box-shadow: none !important;
  }

  .main-header .mega-menu-inner {
    grid-template-columns: 1fr !important;
  }

  .main-header .mega-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0 !important;
    border-bottom: 1px solid #e8edf3;
  }

  .main-header .mega-exam-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
  }

  .catalog-section {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .catalog-main {
    min-width: 0;
    width: 100%;
  }

  .filters-card {
    display: none !important;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-right {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }

  .toolbar-right .sort-control {
    min-width: 0;
  }

  .select-shell,
  .catalog-search-box {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .catalog-toolbar > div:first-child {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .toolbar-right {
    grid-template-columns: 1fr;
  }

  .toolbar-right .sort-control {
    align-items: flex-start;
    flex-direction: column;
  }

  .test-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-feature {
    padding: 0 5px;
  }

  .hero-feature:not(:last-child)::after {
    display: none !important;
  }
}

/* =========================================================
   EXAMTIER TEST SERIES — PROFESSIONAL UI V2
   Visual-only refinement. Existing HTML/JS connections stay unchanged.
========================================================= */

body{
  background:#f8fafc;
  color:#12204a;
}

/* Keep page width controlled and balanced on large screens */
main{
  width:min(1360px,calc(100% - 48px));
  margin:0 auto;
}

/* HERO */
.hero-section{
  height:390px !important;
  margin-top:34px !important;
  grid-template-columns:minmax(0,48%) minmax(0,52%) !important;
  border:1px solid #dce7f5;
  border-radius:16px !important;
  background:
    radial-gradient(circle at 78% 20%,rgba(37,99,235,.09),transparent 28%),
    linear-gradient(120deg,#ffffff 0%,#f4f8ff 48%,#eef5ff 100%) !important;
  box-shadow:0 12px 36px rgba(22,49,99,.07);
}

.hero-copy{
  padding:48px 38px 40px 46px !important;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.eyebrow{
  width:max-content;
  padding:7px 11px !important;
  border:1px solid #cfe0ff;
  border-radius:999px !important;
  background:#edf4ff !important;
  color:#1559d6 !important;
  font-size:10px !important;
  font-weight:800 !important;
  letter-spacing:.7px;
}

.hero-copy h1{
  margin:15px 0 13px !important;
  color:#071b52;
  font-size:44px !important;
  line-height:1.08 !important;
  letter-spacing:-1.35px !important;
}

.hero-copy h1 span{
  color:#1769ff !important;
}

.hero-copy>p{
  max-width:610px;
  margin:0 0 23px !important;
  color:#55637f;
  font-size:15px !important;
  line-height:1.7 !important;
}

.hero-features{
  gap:12px !important;
  flex-wrap:wrap;
}

.hero-feature{
  width:auto !important;
  min-width:125px;
  padding:10px 12px;
  display:flex !important;
  align-items:center;
  gap:9px;
  text-align:left !important;
  border:1px solid #e0e8f5;
  border-radius:10px;
  background:rgba(255,255,255,.88);
}

.hero-features div:not(:last-child):after{
  display:none !important;
}

.hero-features b{
  width:34px !important;
  height:34px !important;
  margin:0 !important;
  flex:0 0 34px;
  border:1px solid #dbe8ff;
  background:#edf4ff !important;
  color:#1769ff !important;
}

.hero-features b svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
}

.hero-features span{
  color:#263653;
  font-size:10px !important;
  line-height:1.35 !important;
  font-weight:650 !important;
}

.hero-visual{
  padding:22px 34px 22px 12px !important;
}

.hero-visual img{
  border-radius:14px !important;
}

/* SECTIONS */
.section-shell{
  margin:46px 0 54px !important;
}

.section-heading{
  margin-bottom:18px;
}

.section-heading h2{
  margin:0 !important;
  color:#0b1f5e;
  font-size:22px !important;
  letter-spacing:-.35px;
}

.section-heading button{
  padding:8px 11px;
  border-radius:7px;
  color:#1769ff !important;
  font-size:12px;
}

.section-heading button:hover{
  background:#eef5ff;
}

/* POPULAR CARDS */
.popular-grid{
  gap:16px !important;
}

.test-card{
  min-height:238px !important;
  padding:18px !important;
  border:1px solid #dfe7f2 !important;
  border-radius:12px !important;
  box-shadow:0 4px 14px rgba(15,36,95,.045) !important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.test-card:hover{
  transform:translateY(-2px);
  border-color:#bfd3f6 !important;
  box-shadow:0 10px 26px rgba(15,36,95,.09) !important;
}

.popular-card{
  min-height:228px !important;
}

.card-head{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  min-height:52px !important;
}

.card-logo{
  max-width:42px !important;
  max-height:42px !important;
  width:auto !important;
  height:auto !important;
  padding:0 !important;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.card-title{
  margin:2px 0 0 !important;
  color:#10204c;
  font-size:13px !important;
  line-height:1.45 !important;
}

.logo-label{
  color:#6a7690;
  font-size:10px !important;
}

.tags{
  gap:6px !important;
  margin:13px 0 12px !important;
}

.tag{
  padding:4px 8px !important;
  border-radius:999px !important;
  font-size:9px !important;
  font-weight:700 !important;
}

.stats-inline{
  gap:11px !important;
  margin:5px 0 14px !important;
  color:#33415f;
  font-size:11px !important;
}

.card-meta{
  gap:7px !important;
  color:#53617b;
  font-size:11px !important;
  line-height:1.35;
}

.card-meta span:before{
  width:19px !important;
  color:#1769ff !important;
  font-family:"Font Awesome 6 Free";
  font-weight:900 !important;
  text-align:center;
}

.card-meta span:nth-child(1):before{content:"\f02d" !important}
.card-meta span:nth-child(2):before{content:"\f059" !important}
.card-meta span:nth-child(3):before{content:"\f017" !important}
.card-meta span:nth-child(4):before{content:"\f1ab" !important}

.view-btn{
  height:39px !important;
  border-radius:7px !important;
  border-color:#bcd2fb !important;
  background:#f8fbff !important;
  color:#1769ff !important;
  font-size:11px !important;
  transition:.18s ease;
}

.view-btn:hover{
  border-color:#1769ff !important;
  background:#1769ff !important;
  color:#fff !important;
}

.new-badge{
  top:10px !important;
  right:10px !important;
  padding:4px 7px !important;
  transform:none !important;
  border-radius:999px !important;
  background:#16a34a !important;
}

/* CAROUSEL CONTROLS */
.carousel-btn{
  width:36px !important;
  height:36px !important;
  border-color:#dbe5f3 !important;
  color:#1769ff !important;
  font-size:23px !important;
  box-shadow:0 6px 18px rgba(15,36,95,.10) !important;
}

.carousel-btn:hover{
  border-color:#1769ff !important;
  background:#1769ff !important;
  color:#fff !important;
}

/* CATALOG */
.catalog-section{
  grid-template-columns:245px minmax(0,1fr) !important;
  gap:20px !important;
  align-items:start;
}

.filters-card,
.catalog-main{
  border:1px solid #dfe7f2 !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 4px 16px rgba(15,36,95,.04);
}

.filters-card{
  padding:20px 18px !important;
  position:sticky;
  top:100px;
}

.filter-title{
  padding-bottom:14px;
  border-bottom:1px solid #e8edf5;
}

.filter-title h3{
  color:#0b1f5e !important;
  font-size:13px !important;
  letter-spacing:.35px;
}

.filter-title button{
  padding:4px 5px;
  color:#66738d !important;
}

.filter-title button:hover{
  color:#1769ff !important;
}

.filter-group{
  padding:16px 0 !important;
  border-bottom:1px solid #edf1f6 !important;
}

.filter-group h4{
  margin:0 0 12px !important;
  color:#243454;
  font-size:11px !important;
  font-weight:800;
  letter-spacing:.45px;
}

.filter-option{
  min-height:27px;
  margin:5px 0 !important;
  color:#485672;
  font-size:11px !important;
}

.filter-option input{
  width:15px !important;
  height:15px !important;
}

.filter-option b{
  color:#8b97aa;
  font-size:10px;
  font-weight:600;
}

.view-more{
  width:100%;
  padding:6px 0;
  border:0;
  background:transparent;
  text-align:left;
  color:#1769ff !important;
  font-size:11px !important;
}

.clear-filter-btn{
  height:38px !important;
  border-color:#c9daf8 !important;
  border-radius:7px !important;
  background:#f8fbff !important;
  font-size:11px !important;
}

.clear-filter-btn:hover{
  border-color:#1769ff !important;
  background:#eef5ff !important;
}

.catalog-toolbar{
  min-height:74px !important;
  height:auto !important;
  padding:14px 18px !important;
  gap:16px;
  border-bottom:1px solid #e7edf5 !important;
}

.catalog-toolbar>div:first-child{
  gap:12px !important;
  flex-direction:column;
  align-items:flex-start !important;
}

.catalog-toolbar h2{
  color:#0b1f5e;
  font-size:19px !important;
}

.catalog-toolbar span{
  color:#71809b;
  font-size:10px !important;
}

.toolbar-right{
  gap:10px !important;
}

.sort-control{
  display:flex;
  align-items:center;
  gap:8px;
  color:#50607c;
}

.select-shell{
  position:relative;
  height:38px;
  min-width:126px;
  display:flex;
  align-items:center;
}

.toolbar-right select{
  width:100%;
  height:38px !important;
  margin:0 !important;
  padding:0 30px 0 32px !important;
  appearance:none;
  border:1px solid #d8e1ee !important;
  border-radius:7px !important;
  background:#fff !important;
  color:#233252 !important;
  font-size:11px;
}

.select-shell>i:first-child{
  position:absolute;
  left:11px;
  z-index:1;
  color:#72809a;
  font-size:11px;
  pointer-events:none;
}

.select-chevron{
  position:absolute;
  right:10px;
  color:#72809a;
  font-size:9px;
  pointer-events:none;
}

.catalog-search-box{
  width:205px;
  height:38px;
  padding:0 11px;
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid #d8e1ee;
  border-radius:7px;
  background:#fff;
}

.catalog-search-box:focus-within{
  border-color:#8cb4fb;
  box-shadow:0 0 0 3px rgba(23,105,255,.07);
}

.catalog-search-box i{
  color:#75839b;
  font-size:12px;
}

.catalog-search-box input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#233252;
  font-size:11px;
}

.test-grid{
  padding:18px !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:16px !important;
}

.test-grid .test-card{
  min-height:245px !important;
}

/* PAGINATION */
.pagination{
  padding:8px 0 22px !important;
}

.page-btn{
  width:32px !important;
  height:32px !important;
  border-color:#dce5f2 !important;
  border-radius:7px !important;
  font-size:11px !important;
}

.page-btn:hover{
  border-color:#a9c5f6 !important;
  background:#f5f9ff !important;
}

/* BENEFITS */
.benefits{
  margin-top:48px !important;
  margin-bottom:48px !important;
  gap:0 !important;
  padding:18px 10px !important;
  border:1px solid #dfe7f2;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 4px 16px rgba(15,36,95,.04);
}

.benefits>div{
  min-height:72px;
  padding:6px 16px !important;
  gap:12px !important;
  border-right:1px solid #e7edf5 !important;
}

.benefits b{
  width:40px !important;
  height:40px !important;
  flex:0 0 40px;
  border-radius:10px !important;
  background:#edf4ff !important;
  color:#1769ff !important;
  font-size:0 !important;
}

.benefits b::before{
  font-family:"Font Awesome 6 Free";
  font-size:16px;
  font-weight:900;
}

.benefits>div:nth-child(1) b::before{content:"\f274"}
.benefits>div:nth-child(2) b::before{content:"\f02d"}
.benefits>div:nth-child(3) b::before{content:"\f0eb"}
.benefits>div:nth-child(4) b::before{content:"\f201"}
.benefits>div:nth-child(5) b::before{content:"\f3ed"}

.benefits strong{
  color:#1d2c4c;
  font-size:12px !important;
}

.benefits span{
  color:#6c7890 !important;
  font-size:10px !important;
}

/* RESPONSIVE PROFESSIONAL LAYOUT */
@media(max-width:1180px){
  main{
    width:min(100% - 36px,1180px);
  }
  .hero-section{
    height:auto !important;
    min-height:380px !important;
  }
  .hero-copy{
    padding:40px 28px 36px 36px !important;
  }
  .hero-copy h1{
    font-size:39px !important;
  }
  .test-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .popular-grid{
    grid-template-columns:repeat(4,minmax(220px,1fr)) !important;
    overflow-x:auto;
    scroll-snap-type:x proximity;
    padding:4px 2px 10px;
  }
  .popular-card{
    scroll-snap-align:start;
  }
}

@media(max-width:920px){
  main{
    width:min(100% - 28px,900px);
  }
  .hero-section{
    grid-template-columns:1fr !important;
  }
  .hero-copy{
    padding:38px 28px 24px !important;
  }
  .hero-visual{
    height:300px !important;
    padding:0 24px 24px !important;
  }
  .catalog-section{
    grid-template-columns:1fr !important;
  }
  .filters-card{
    position:static !important;
  }
  .catalog-toolbar{
    align-items:flex-start !important;
    flex-direction:column;
  }
  .toolbar-right{
    width:100%;
  }
  .catalog-search-box{
    flex:1;
    width:auto;
  }
  .benefits{
    grid-template-columns:repeat(2,1fr) !important;
  }
  .benefits>div{
    border-bottom:1px solid #e7edf5;
  }
}

/* Popular series: consistent two-line titles and functional carousel */
.popular-grid {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  grid-template-columns: none !important;
  gap: 16px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 10px
}

.popular-grid::-webkit-scrollbar {
  display: none
}

.popular-card {
  width: auto !important;
  min-width: 0;
  min-height: 292px !important;
  padding: 18px !important;
  border: 1px solid #d8e3f0 !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(24, 49, 88, .055) !important;
  scroll-snap-align: start
}

.popular-card:hover {
  border-color: #b9cdf0 !important;
  box-shadow: 0 12px 28px rgba(24, 49, 88, .10) !important
}

.popular-card .card-head {
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.popular-card > .new-badge + .card-head {
  padding-top: 14px;
  padding-right: 0;
}

.popular-card .card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  width: 100%;
  max-width: none;
  max-height: 2.7em;
  color: #0f172a !important;
  line-height: 1.28 !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  letter-spacing: -.08px;
  text-overflow: clip;
}

.popular-card .card-logo {
  max-width: 42px !important;
  max-height: 42px !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.popular-card .tags .tag:nth-child(1) {
  background: #edf4ff !important;
  color: #2456a6 !important
}

.popular-card .tags .tag:nth-child(2) {
  background: #f1f4f8 !important;
  color: #44546a !important
}

.popular-card .tags .tag:nth-child(3) {
  background: #eaf7f0 !important;
  color: #087443 !important
}

.popular-card .tags {
  flex-wrap: nowrap !important;
  gap: 5px !important;
  margin: 13px 0 12px !important
}

.popular-card .tags .tag {
  flex: 0 0 auto;
  padding: 4px 7px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -.03px;
  white-space: nowrap
}

.popular-card .stats-inline {
  margin: 5px 0 14px !important;
  color: #40536f !important;
  font-size: 11.5px !important;
  font-weight: 550 !important
}

.popular-card .popular-meta {
  gap: 5px !important;
  margin: 3px 0 13px !important;
  color: #344865 !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important
}

.popular-card .popular-meta span {
  min-height: 17px !important;
  color: #344865 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  gap: 7px !important
}

.popular-card .popular-meta span i {
  width: 15px !important;
  color: #1769ff !important;
  font-size: 11px !important;
  flex: 0 0 15px !important
}

.popular-card .coming-soon-meta {
  align-content: start;
  padding: 8px 10px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #f8fafc
}

.popular-card .coming-soon-meta span:first-child {
  color: #475569 !important;
  font-weight: 700 !important
}

.popular-card .coming-soon-btn,
.popular-card .coming-soon-btn:hover {
  border-color: #d8e1ec !important;
  background: #f1f5f9 !important;
  color: #718096 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: not-allowed !important
}

.popular-card .view-btn {
  height: 39px !important;
  border-color: #b9d0f7 !important;
  border-radius: 8px !important;
  background: #f8fbff !important;
  font-size: 11.5px !important;
  font-weight: 750 !important
}

.popular-card .view-btn:hover,
.popular-card .view-btn:focus-visible {
  border-color: #1769ff !important;
  background: #1769ff !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(23, 105, 255, .20) !important;
  transform: translateY(-1px)
}

.popular-card .view-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 9px rgba(23, 105, 255, .16) !important
}

.popular-card .new-badge {
  top: 11px !important;
  right: 11px !important;
  padding: 4px 8px !important;
  background: #079455 !important;
  box-shadow: 0 3px 9px rgba(7, 148, 85, .16) !important;
  font-size: 8.5px !important;
  letter-spacing: .15px !important
}

@media(max-width:560px) {
  .popular-card .card-title {
    max-width: 230px
  }
}

/* Catalogue cards intentionally share the polished Popular card design. */
.test-grid .popular-card {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
}

.popular-wrap .carousel-btn.right {
  right: -18px
}

.popular-wrap .carousel-btn.left {
  left: -18px
}

@media(max-width:1180px) {
  .popular-grid {
    grid-auto-columns: calc((100% - 32px) / 3) !important
  }
}

@media(max-width:820px) {
  .popular-grid {
    grid-auto-columns: calc((100% - 16px) / 2) !important
  }
}

@media(max-width:560px) {
  .popular-grid {
    grid-auto-columns: 88% !important
  }
}

@media(max-width:620px){
  main{
    width:calc(100% - 24px) !important;
    padding:0 !important;
  }
  .hero-section{
    margin-top:20px !important;
    border-radius:12px !important;
  }
  .hero-copy{
    padding:30px 20px 20px !important;
  }
  .hero-copy h1{
    font-size:33px !important;
  }
  .hero-copy>p{
    font-size:13px !important;
  }
  .hero-feature{
    min-width:calc(50% - 6px);
    flex:1 1 calc(50% - 6px);
  }
  .section-heading h2{
    font-size:19px !important;
  }
  .test-grid{
    grid-template-columns:1fr !important;
    padding:14px !important;
  }
  .toolbar-right{
    flex-direction:column;
    align-items:stretch;
  }
  .sort-control{
    justify-content:space-between;
  }
  .catalog-search-box{
    width:100%;
  }
  .benefits{
    grid-template-columns:1fr !important;
  }
  .benefits>div{
    border-right:0 !important;
  }
}

/* =========================================================
   EXAMTIER TEST SERIES HERO — CONNECTED ILLUSTRATION V4
========================================================= */
.hero-section {
  background: #f1f7ff !important;
  overflow: hidden !important;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-visual {
  align-self: stretch !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f1f7ff !important;
}

.hero-visual img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hero-features span {
  white-space: nowrap !important;
  line-height: 1.35 !important;
}

@media (max-width: 920px) {
  .hero-visual {
    height: 330px !important;
    padding: 0 !important;
  }

  .hero-visual img {
    object-position: center center !important;
  }
}

@media (max-width: 620px) {
  .hero-features span {
    white-space: normal !important;
  }

  .hero-visual {
    height: 285px !important;
  }
}

/* =========================================================
   EXAMTIER — PROFESSIONAL REFINEMENT V3
   Only: hero feature strip, sort control, footer
========================================================= */

/* ---------- HERO FEATURE STRIP ---------- */
.hero-features{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:0 !important;
  width:100%;
  max-width:620px;
  padding:13px 0 !important;
  border-top:1px solid #e2e9f3;
  border-bottom:1px solid #e2e9f3;
}

.hero-feature{
  min-width:0 !important;
  padding:3px 16px !important;
  gap:10px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  position:relative;
}

.hero-feature:not(:last-child)::after{
  content:"" !important;
  display:block !important;
  position:absolute;
  right:0;
  top:7px;
  bottom:7px;
  width:1px;
  background:#e3eaf4;
}

.hero-features b{
  width:34px !important;
  height:34px !important;
  flex:0 0 34px !important;
  margin:0 !important;
  border:0 !important;
  border-radius:9px !important;
  box-shadow:none !important;
}

.hero-feature:nth-child(1) b{background:#edf4ff !important;color:#1769ff !important}
.hero-feature:nth-child(2) b{background:#edf9f2 !important;color:#169b50 !important}
.hero-feature:nth-child(3) b{background:#fff7e8 !important;color:#d58b00 !important}
.hero-feature:nth-child(4) b{background:#f3efff !important;color:#7655dc !important}

.hero-features span{
  color:#243350 !important;
  font-size:10px !important;
  font-weight:650 !important;
  line-height:1.38 !important;
}

/* ---------- PROFESSIONAL SORT CONTROL ---------- */
.sort-control{
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
}

.sort-label{
  color:#6c7890 !important;
  font-size:10px !important;
  font-weight:600 !important;
  white-space:nowrap;
}

.tb-sort{
  position:relative;
  width:148px;
}

.tb-sort-native{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.tb-sort-trigger{
  width:100%;
  height:38px;
  padding:0 11px;
  border:1px solid #d8e1ee;
  border-radius:8px;
  background:#fff;
  color:#243250;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  box-shadow:0 1px 2px rgba(15,36,95,.03);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.tb-sort-trigger:hover{
  border-color:#b9c9df;
  background:#fbfdff;
}

.tb-sort-trigger:focus-visible,
.tb-sort.open .tb-sort-trigger{
  outline:none;
  border-color:#7aa9f8;
  box-shadow:0 0 0 3px rgba(23,105,255,.10);
}

.tb-sort-trigger-main{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  font-weight:600;
}

.tb-sort-trigger-main>i{
  color:#6d7c98;
  font-size:11px;
}

.tb-sort-chevron{
  color:#7b88a0;
  font-size:9px;
  transition:transform .18s ease;
}

.tb-sort.open .tb-sort-chevron{
  transform:rotate(180deg);
}

.tb-sort-menu{
  display:none;
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  z-index:80;
  width:100%;
  padding:5px;
  border:1px solid #dce4ef;
  border-radius:9px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,36,95,.14);
}

.tb-sort.open .tb-sort-menu{
  display:block;
}

.tb-sort-option{
  width:100%;
  min-height:34px;
  padding:0 9px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#33415f;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  font-weight:500;
  text-align:left;
}

.tb-sort-option:hover{
  background:#f3f7fd;
  color:#105fe2;
}

.tb-sort-option i{
  display:none;
  color:#1769ff;
  font-size:10px;
}

.tb-sort-option.active{
  background:#eef5ff;
  color:#105fe2;
  font-weight:650;
}

.tb-sort-option.active i{
  display:block;
}

/* ---------- CLEAN PROFESSIONAL FOOTER ---------- */
footer{
  margin-top:54px !important;
  padding:0 !important;
  background:#071b52 !important;
  color:#fff;
  border-top:0 !important;
}

.footer-grid{
  max-width:1280px !important;
  margin:0 auto;
  padding:44px 32px 34px !important;
  display:grid;
  grid-template-columns:1.35fr .78fr .88fr .78fr 1.25fr !important;
  gap:44px !important;
  align-items:start;
}

.footer-brand img{
  width:172px !important;
  height:auto !important;
  margin:0 0 16px !important;
  object-fit:contain;
  object-position:left center;
}

.footer-brand p{
  max-width:300px;
  margin:0 0 18px !important;
  color:#c7d2e8 !important;
  font-size:11px !important;
  line-height:1.7 !important;
}

.footer-grid h4{
  margin:2px 0 16px !important;
  color:#fff !important;
  font-size:11px !important;
  font-weight:750 !important;
  letter-spacing:.25px !important;
}

.footer-grid a{
  display:block;
  width:max-content;
  max-width:100%;
  margin:0 0 9px !important;
  color:#c4d0e5 !important;
  font-size:10.5px !important;
  line-height:1.45;
  text-decoration:none !important;
  transition:color .16s ease;
}

.footer-grid a:hover{
  color:#fff !important;
  text-decoration:none !important;
}

.socials{
  display:flex !important;
  gap:8px !important;
  margin:0 0 19px !important;
}

.socials span{
  width:30px !important;
  height:30px !important;
  border:1px solid rgba(255,255,255,.15) !important;
  border-radius:7px !important;
  display:grid !important;
  place-items:center !important;
  background:rgba(255,255,255,.05) !important;
  color:#dbe5f6 !important;
  font-size:12px !important;
  transition:background .16s ease,color .16s ease,border-color .16s ease;
}

.socials span:hover{
  background:rgba(255,255,255,.11) !important;
  border-color:rgba(255,255,255,.28) !important;
  color:#fff !important;
}

.footer-brand>small{
  color:#95a8c9 !important;
  font-size:9.5px !important;
}

.newsletter p{
  margin:0 0 14px !important;
  color:#c4d0e5 !important;
  font-size:10.5px !important;
  line-height:1.65 !important;
}

.newsletter>div{
  display:flex !important;
  height:40px !important;
  margin:0 !important;
  border:1px solid rgba(255,255,255,.15) !important;
  border-radius:7px !important;
  overflow:hidden;
  background:#102b67 !important;
}

.newsletter input{
  min-width:0;
  flex:1;
  height:100% !important;
  padding:0 12px !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:#fff !important;
  font-size:10.5px !important;
}

.newsletter input::placeholder{
  color:#899dbc !important;
}

.newsletter button{
  width:44px !important;
  min-width:44px !important;
  height:100% !important;
  border:0 !important;
  border-left:1px solid rgba(255,255,255,.12) !important;
  border-radius:0 !important;
  background:#1769ff !important;
  color:#fff !important;
  font-size:12px !important;
}

.newsletter button:hover{
  background:#0d5ce8 !important;
}

.newsletter small{
  display:block !important;
  margin-top:17px !important;
  color:#95a8c9 !important;
  text-align:left !important;
  font-size:9.5px !important;
}

/* Bottom legal line for visual balance */
footer::after{
  content:"";
  display:block;
  height:1px;
  max-width:1280px;
  margin:0 auto;
  background:rgba(255,255,255,.08);
}

@media(max-width:1000px){
  .hero-features{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    row-gap:10px !important;
  }
  .hero-feature:nth-child(2)::after{display:none !important}
  .footer-grid{
    grid-template-columns:1.3fr 1fr 1fr !important;
  }
  .newsletter{
    grid-column:2 / 4;
  }
}

@media(max-width:700px){
  .hero-features{
    grid-template-columns:1fr 1fr !important;
  }
  .hero-feature{
    padding:6px 10px !important;
  }
  .toolbar-right .sort-control{
    align-items:flex-start !important;
  }
  .tb-sort{
    width:100%;
  }
  .footer-grid{
    grid-template-columns:1fr 1fr !important;
    padding:36px 22px 28px !important;
    gap:30px 24px !important;
  }
  .footer-brand,
  .newsletter{
    grid-column:1 / -1 !important;
  }
}

@media(max-width:480px){
  .hero-features{
    grid-template-columns:1fr !important;
    border-bottom:0;
  }
  .hero-feature:not(:last-child)::after{
    left:0;
    right:0;
    top:auto;
    bottom:0;
    width:auto;
    height:1px;
  }
  .footer-grid{
    grid-template-columns:1fr !important;
  }
  .footer-brand,
  .newsletter{
    grid-column:auto !important;
  }
}

/* =========================================================
   EXAMTIER — VISUAL CLARITY PASS
   Typography/contrast only. No layout or functionality changes.
========================================================= */

/* Main readable text */
body{
  color:#17264a !important;
}

/* Filter panel */
.filter-title h3{
  color:#0b1f5e !important;
  font-size:14px !important;
  font-weight:750 !important;
}

.filter-title button{
  color:#1769ff !important;
  font-size:12px !important;
  font-weight:650 !important;
}

.filter-group h4{
  color:#1d2d50 !important;
  font-size:12.5px !important;
  font-weight:750 !important;
}

.filter-option{
  color:#34425f !important;
  font-size:13px !important;
  font-weight:500 !important;
  line-height:1.35 !important;
}

.filter-option input{
  width:15px !important;
  height:15px !important;
}

.filter-option b{
  color:#72809a !important;
  font-size:11px !important;
  font-weight:650 !important;
}

.view-more{
  font-size:12px !important;
  font-weight:700 !important;
}

/* Catalog toolbar */
.catalog-toolbar h2{
  color:#0b1f5e !important;
  font-size:19px !important;
  font-weight:750 !important;
}

.catalog-toolbar>div:first-child>span{
  color:#687691 !important;
  font-size:11.5px !important;
  font-weight:500 !important;
}

.sort-label{
  color:#42516e !important;
  font-size:11.5px !important;
  font-weight:700 !important;
}

.tb-sort-trigger-main{
  color:#243351 !important;
  font-size:12px !important;
  font-weight:650 !important;
}

.tb-sort-option{
  color:#2f3f5e !important;
  font-size:12px !important;
  font-weight:550 !important;
}

.tb-sort-option.active{
  color:#0f5fdc !important;
  font-weight:700 !important;
}

.catalog-search-box input{
  color:#263653 !important;
  font-size:12px !important;
  font-weight:500 !important;
}

.catalog-search-box input::placeholder{
  color:#65738e !important;
  opacity:1 !important;
}

.catalog-search-box i,
.tb-sort-trigger-main>i,
.tb-sort-chevron{
  color:#566681 !important;
}

/* Test cards: make secondary text readable */
.card-title{
  color:#10204c !important;
  font-size:13.5px !important;
  font-weight:700 !important;
}

.logo-label{
  color:#596780 !important;
  font-size:11px !important;
  font-weight:550 !important;
}

.tag{
  font-size:10px !important;
  font-weight:700 !important;
}

.stats-inline,
.card-meta{
  color:#485875 !important;
  font-size:11.5px !important;
  font-weight:500 !important;
}

.view-btn{
  font-size:11.5px !important;
  font-weight:700 !important;
}

/* Hero feature strip: stronger text and maximum two-line feel */
.hero-features{
  max-width:820px !important;
}

.hero-feature{
  padding-left:14px !important;
  padding-right:14px !important;
}

.hero-features span{
  color:#1f2f50 !important;
  font-size:11.5px !important;
  font-weight:700 !important;
  line-height:1.3 !important;
}

@media(min-width:921px){
  .hero-features{
    grid-template-columns:1.18fr 1.32fr 1.05fr 1.18fr !important;
  }

  .hero-feature span{
    max-width:155px !important;
  }
}

/* Benefits / footer supporting copy */
.benefits strong{
  color:#1f2e4d !important;
  font-size:12.5px !important;
  font-weight:700 !important;
}

.benefits span{
  color:#586680 !important;
  font-size:11px !important;
  font-weight:500 !important;
}

/* =========================================================
   EXAMTIER — FINAL VISUAL CLARITY FIX
   Only: Sort/Search clarity + 2-line hero feature labels
========================================================= */

/* ---------- Sort + Search: stronger, clearer visual ---------- */
.sort-control{
  gap:10px !important;
}

.sort-label{
  color:#263653 !important;
  font-size:12px !important;
  font-weight:700 !important;
}

.tb-sort{
  width:150px !important;
}

.tb-sort-trigger{
  height:40px !important;
  border:1px solid #cbd7e7 !important;
  background:#ffffff !important;
  color:#17264a !important;
  box-shadow:0 1px 2px rgba(15,36,95,.04) !important;
}

.tb-sort-trigger-main{
  color:#17264a !important;
  font-size:12.5px !important;
  font-weight:700 !important;
}

.tb-sort-trigger-main>i,
.tb-sort-chevron{
  color:#4f607e !important;
}

.tb-sort-menu{
  border-color:#cbd7e7 !important;
  background:#fff !important;
}

.tb-sort-option{
  color:#263653 !important;
  font-size:12.5px !important;
  font-weight:600 !important;
}

.tb-sort-option:hover{
  background:#f3f7fd !important;
  color:#0f5fdc !important;
}

.tb-sort-option.active{
  background:#edf4ff !important;
  color:#0f5fdc !important;
  font-weight:700 !important;
}

.catalog-search-box{
  height:40px !important;
  border-color:#cbd7e7 !important;
  background:#fff !important;
}

.catalog-search-box i{
  color:#4f607e !important;
  font-size:13px !important;
}

.catalog-search-box input{
  color:#17264a !important;
  font-size:12.5px !important;
  font-weight:600 !important;
}

.catalog-search-box input::placeholder{
  color:#596985 !important;
  opacity:1 !important;
}

/* ---------- Hero feature strip: clean 2-line labels ---------- */
.hero-features{
  width:100% !important;
  max-width:none !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  column-gap:0 !important;
}

.hero-feature{
  display:grid !important;
  grid-template-columns:34px minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:10px !important;
  min-width:0 !important;
  padding:6px 14px !important;
}

.hero-features b{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  flex:0 0 34px !important;
}

.hero-features span{
  display:block !important;
  min-width:0 !important;
  max-width:none !important;
  color:#17264a !important;
  font-size:11.5px !important;
  font-weight:700 !important;
  line-height:1.3 !important;
  letter-spacing:0 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}

/* Give the two longer labels slightly more room on desktop */
@media(min-width:921px){
  .hero-features{
    grid-template-columns:1.08fr 1.24fr 1fr 1.14fr !important;
  }

  .hero-feature:nth-child(1) span,
  .hero-feature:nth-child(2) span,
  .hero-feature:nth-child(3) span,
  .hero-feature:nth-child(4) span{
    max-width:125px !important;
  }
}

@media(max-width:920px) and (min-width:621px){
  .hero-features{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    row-gap:8px !important;
  }

  .hero-feature span{
    max-width:none !important;
  }
}

@media(max-width:620px){
  .hero-features{
    grid-template-columns:1fr !important;
  }

  .hero-feature{
    grid-template-columns:34px 1fr !important;
  }

  .hero-feature span{
    max-width:none !important;
  }
}

/* =========================================================
   EXAMTIER — STRONG TEXT CLARITY FIX
   Only: Sort option names, test metadata, package title text
========================================================= */

.tb-sort-option{
  color:#10204c !important;
  font-size:13.5px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
  letter-spacing:0 !important;
  opacity:1 !important;
}

.tb-sort-option span{
  color:inherit !important;
  font-size:inherit !important;
  font-weight:inherit !important;
  opacity:1 !important;
}

.tb-sort-option:hover{
  color:#0d57de !important;
  background:#f4f7fc !important;
}

.tb-sort-option.active{
  color:#0d57de !important;
  background:#eaf3ff !important;
  font-weight:750 !important;
}

.card-meta{
  color:#263653 !important;
  font-size:13px !important;
  font-weight:600 !important;
  line-height:1.5 !important;
}

.card-meta span{
  color:#263653 !important;
  font-size:13px !important;
  font-weight:600 !important;
  opacity:1 !important;
}

.card-meta span i{
  color:#1769ff !important;
  font-size:12px !important;
  width:18px !important;
}

.card-title{
  color:#0b1f5e !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.42 !important;
}

/* Keep catalogue cards identical in height and structure to Popular cards. */
.test-grid .test-card.popular-card {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 292px !important;
}

/* Premium catalogue toolbar: one composed search and sort surface. */
.catalog-toolbar .toolbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px !important;
  border: 1px solid #dce5f1 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(20, 45, 90, .055) !important;
}

.catalog-toolbar .sort-control { gap: 7px !important; }

.catalog-toolbar .sort-label {
  padding-left: 8px;
  color: #60708a !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .55px;
  text-transform: uppercase;
}

.catalog-toolbar .tb-sort { width: 172px !important; }

.catalog-toolbar .tb-sort-trigger,
.catalog-toolbar .catalog-search-box {
  height: 42px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15, 35, 70, .07) !important;
}

.catalog-toolbar .tb-sort-trigger { padding: 0 12px !important; }

.catalog-toolbar .tb-sort-trigger:hover,
.catalog-toolbar .catalog-search-box:hover { border-color: #c8d7ea !important; }

.catalog-toolbar .tb-sort-trigger:focus-visible,
.catalog-toolbar .tb-sort.open .tb-sort-trigger,
.catalog-toolbar .catalog-search-box:focus-within {
  border-color: #1769ff !important;
  box-shadow: 0 0 0 3px rgba(23, 105, 255, .12) !important;
}

.catalog-toolbar .tb-sort-trigger-main {
  gap: 8px !important;
  color: #183153 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

.catalog-toolbar #tbSortValue {
  color: #4f607e !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

.catalog-toolbar .tb-sort-trigger-main > i,
.catalog-toolbar .catalog-search-box > i { color: #1769ff !important; }

.catalog-toolbar .catalog-search-box {
  width: 244px !important;
  padding: 0 13px !important;
}

.catalog-toolbar .catalog-search-box input {
  font-size: 12px !important;
  font-weight: 600 !important;
}

@media(max-width:760px) {
  .catalog-toolbar .toolbar-right { width: 100%; flex-wrap: wrap; }
  .catalog-toolbar .sort-control,
  .catalog-toolbar .catalog-search-box { flex: 1 1 220px; }
  .catalog-toolbar .tb-sort { width: 100% !important; }
}

/* =========================================================
   EXAMTIER TEST SERIES — PROFESSIONAL EXAM-AUTHENTIC HERO
   Modern Aspirant Portal with Live Mock Simulator
========================================================= */

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes floatGentle {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* =========================================================
   EXAMTIER TEST SERIES — EXECUTIVE EXAM-AUTHENTIC HERO
   Modern Aspirant Portal with Live Mock Simulator
========================================================= */

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes floatGentle {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

.hero-section.hero-exam-portal {
  display: block !important;
  position: relative !important;
  background-color: #f4f8ff !important;
  background-image: radial-gradient(#d0e1fd 1.2px, transparent 1.2px),
                    radial-gradient(1100px 500px at 85% 18%, rgba(224, 238, 255, 0.8) 0%, rgba(240, 246, 255, 0.5) 50%, transparent 85%),
                    linear-gradient(135deg, #f0f6ff 0%, #e9f2fe 45%, #f8faff 100%) !important;
  background-size: 20px 20px, 100% 100%, 100% 100% !important;
  border: 1px solid #d0e1fd !important;
  border-radius: 22px !important;
  padding: 44px 44px !important;
  margin-top: 24px !important;
  margin-bottom: 54px !important;
  box-shadow: 0 16px 44px -10px rgba(29, 78, 216, 0.08), 0 4px 18px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.hero-section.hero-exam-portal .hero-container {
  display: grid !important;
  grid-template-columns: 1.15fr 1fr !important;
  gap: 36px !important;
  align-items: center !important;
  position: relative !important;
}

/* LEFT COLUMN: HERO CONTENT */
.hero-copy-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  z-index: 2 !important;
}

.hero-live-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 6px 14px !important;
  background: #ffffff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 999px !important;
  width: fit-content !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08) !important;
}

.live-pulse-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  display: inline-block !important;
  animation: pulseGlow 2s infinite ease-in-out !important;
}

.live-badge-text {
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: 0.6px !important;
  color: #1d4ed8 !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}

.hero-main-title {
  font-size: 38px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
  color: #091e4a !important;
  letter-spacing: -0.7px !important;
  margin: 0 !important;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block !important;
}

.hero-description {
  font-size: 14.5px !important;
  line-height: 1.62 !important;
  color: #475569 !important;
  margin: 0 !important;
  font-weight: 500 !important;
  max-width: 530px !important;
}

/* HERO ACTION CTAS */
.hero-cta-group {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 4px !important;
  flex-wrap: wrap !important;
}

.hero-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: linear-gradient(135deg, #1d6bf3 0%, #0d54d1 100%) !important;
  color: #ffffff !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(29, 107, 243, 0.32) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.hero-btn-primary:hover {
  background: linear-gradient(135deg, #2575fc 0%, #105ce0 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 9px 26px rgba(29, 107, 243, 0.42) !important;
  color: #ffffff !important;
}

.hero-btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #1e293b !important;
  padding: 12px 20px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.18s ease !important;
}

.hero-btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.12) !important;
}

/* KEY PLATFORM METRICS */
.hero-stats-grid {
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  padding: 14px 20px !important;
  background: #ffffff !important;
  border: 1px solid #dbeafe !important;
  border-radius: 12px !important;
  margin-top: 6px !important;
  width: fit-content !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

.stat-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.stat-number {
  font-size: 17px !important;
  font-weight: 850 !important;
  color: #091e4a !important;
  line-height: 1.2 !important;
  letter-spacing: -0.3px !important;
}

.stat-label {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  letter-spacing: 0.2px !important;
}

.stat-box-divider {
  width: 1px !important;
  height: 28px !important;
  background: #e2e8f0 !important;
}

/* RIGHT COLUMN: LIVE MOCK SIMULATOR CARD */
.hero-visual-col {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 2 !important;
  padding: 12px 0 !important;
}

.mock-simulator-card {
  position: relative !important;
  width: 100% !important;
  max-width: 460px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  overflow: visible !important;
  transition: transform 0.25s ease !important;
}

/* FLOATING STAT BADGES */
.floating-stat-pill {
  position: absolute !important;
  z-index: 10 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid #dbeafe !important;
  border-radius: 11px !important;
  padding: 7px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  animation: floatGentle 4s ease-in-out infinite alternate !important;
}

.rank-pill {
  top: -13px !important;
  right: 12px !important;
}

.speed-pill {
  bottom: -13px !important;
  left: 12px !important;
  animation-delay: 2s !important;
}

.pill-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 7px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 12.5px !important;
  flex-shrink: 0 !important;
}

.trophy-icon {
  background: #fef3c7 !important;
  color: #d97706 !important;
}

.speed-icon {
  background: #dcfce7 !important;
  color: #16a34a !important;
}

.pill-content {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.25 !important;
}

.pill-label {
  font-size: 8.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
}

.pill-value {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #091e4a !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.pill-badge-mini {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 2px 5px !important;
  border-radius: 4px !important;
}

.pill-speed-text {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #16a34a !important;
}

/* SIMULATOR WINDOW HEADER */
.sim-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 14px !important;
  background: #0d1b3e !important;
  border-top-left-radius: 15px !important;
  border-top-right-radius: 15px !important;
  color: #ffffff !important;
}

.sim-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.sim-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  display: inline-block !important;
}

.sim-dot.red { background: #ef4444 !important; }
.sim-dot.yellow { background: #f59e0b !important; }
.sim-dot.green { background: #10b981 !important; }

.sim-exam-tag {
  margin-left: 8px !important;
  font-size: 9.5px !important;
  font-weight: 750 !important;
  letter-spacing: 0.5px !important;
  color: #93c5fd !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.sim-timer-box {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(239, 68, 68, 0.16) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  padding: 3px 8px !important;
  border-radius: 5px !important;
  color: #fca5a5 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
}

.timer-digits {
  font-family: 'Roboto Mono', monospace, sans-serif !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px !important;
}

.timer-lbl {
  font-size: 9px !important;
  opacity: 0.85 !important;
  text-transform: uppercase !important;
}

/* TEST META BANNER */
.sim-meta-banner {
  padding: 10px 14px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.sim-title-wrap h4 {
  margin: 0 0 7px 0 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  color: #1e293b !important;
}

.sim-section-chips {
  display: flex !important;
  gap: 6px !important;
  overflow-x: auto !important;
}

.sim-chip {
  font-size: 9.5px !important;
  font-weight: 650 !important;
  padding: 2.5px 7px !important;
  border-radius: 4px !important;
  background: #e2e8f0 !important;
  color: #475569 !important;
  white-space: nowrap !important;
}

.sim-chip.active {
  background: #1e40af !important;
  color: #ffffff !important;
}

/* QUESTION SIMULATION BODY */
.sim-body {
  padding: 14px !important;
  background: #ffffff !important;
}

.sim-q-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 7px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
}

.q-num {
  color: #1e293b !important;
  background: #f1f5f9 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  border: 1px solid #e2e8f0 !important;
}

.q-marks {
  color: #059669 !important;
  font-weight: 700 !important;
}

.sim-question-text {
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  color: #334155 !important;
  margin: 0 0 10px 0 !important;
  font-weight: 550 !important;
}

.sim-options-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-bottom: 12px !important;
}

.sim-option {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 10px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  color: #334155 !important;
  background: #fbfcfe !important;
  transition: all 0.15s ease !important;
}

.opt-circle {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  border: 1.5px solid #cbd5e1 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
}

.sim-option.selected-option {
  border-color: #10b981 !important;
  background: #ecfdf5 !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08) !important;
}

.opt-circle.checked {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  font-size: 8.5px !important;
}

.opt-tag {
  margin-left: auto !important;
  font-size: 8.5px !important;
  font-weight: 750 !important;
  background: #d1fae5 !important;
  color: #065f46 !important;
  padding: 2px 5px !important;
  border-radius: 4px !important;
}

/* LIVE QUESTION PALETTE MINI-BAR */
.sim-palette-summary {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 9px !important;
  background: #f8fafc !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 9.5px !important;
  font-weight: 650 !important;
}

.pal-status {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #475569 !important;
}

.pal-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  display: inline-block !important;
}

.pal-status.answered .pal-dot { background: #10b981 !important; }
.pal-status.marked .pal-dot { background: #8b5cf6 !important; }
.pal-status.pending .pal-dot { background: #cbd5e1 !important; }

/* SIMULATOR FOOTER */
.sim-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 9px 14px !important;
  background: #f1f5f9 !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom-left-radius: 15px !important;
  border-bottom-right-radius: 15px !important;
  font-size: 10px !important;
}

.sim-live-users {
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.sim-live-users i { color: #2563eb !important; }
.sim-live-users strong { color: #0f172a !important; }

.sim-footer-badge {
  color: #059669 !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

/* RESPONSIVE HERO RULES */
@media (max-width: 1120px) {
  .hero-section.hero-exam-portal {
    padding: 36px 28px !important;
    margin-bottom: 48px !important;
  }
  .hero-section.hero-exam-portal .hero-container {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .mock-simulator-card {
    max-width: 500px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 640px) {
  .hero-section.hero-exam-portal {
    padding: 24px 18px !important;
    border-radius: 16px !important;
    margin-top: 16px !important;
    margin-bottom: 40px !important;
  }
  .hero-main-title {
    font-size: 26px !important;
    letter-spacing: -0.4px !important;
  }
  .hero-description {
    font-size: 12.5px !important;
  }
  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100% !important;
    justify-content: center !important;
  }
  .hero-stats-grid {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 10px !important;
    padding: 12px 16px !important;
  }
  .stat-box-divider {
    display: none !important;
  }
  .floating-stat-pill {
    display: none !important;
  }
  .sim-header {
    padding: 9px 12px !important;
  }
  .sim-body {
    padding: 12px !important;
  }
  .sim-footer {
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-start !important;
  }
}

/* ==========================================================================
   PAGE MODE CONTROLS, SKELETON PLACEHOLDERS & FLICKER PREVENTION
   ========================================================================== */
html.mode-category-view #heroSection,
html.mode-category-view #allPassContainer,
html.mode-category-view #browseCategoriesContainer,
html.mode-category-view #popularSection,
html.mode-category-view #catalogSection {
  display: none !important;
}

html.mode-category-view #dynamicCategoryContainer {
  display: block !important;
}

html.mode-catalog-view #dynamicCategoryContainer {
  display: none !important;
}

html.mode-catalog-view #heroSection,
html.mode-catalog-view #allPassContainer,
html.mode-catalog-view #browseCategoriesContainer,
html.mode-catalog-view #popularSection {
  display: block;
}

html.mode-catalog-view #catalogSection {
  display: grid !important;
  grid-template-columns: 245px minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: start !important;
}

@media (max-width: 920px) {
  html.mode-catalog-view #catalogSection {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   EXAMTIER — CLEAN LOGO SLOT & HEADER ALIGNMENT (NO DOUBLE BOX)
   ============================================================ */

/* 1. Header Flex Layout & Title Alignment */
.card-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 52px !important;
}

.popular-card .card-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 52px !important;
}

.title-wrap {
  flex: 1 !important;
  min-width: 0 !important;
}

.card-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.28 !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

.popular-card .card-title {
  font-size: 13.5px !important;
  line-height: 1.28 !important;
  font-weight: 650 !important;
  color: #0f172a !important;
}

/* 2. Transparent Fixed-Size Alignment Slot - NO outer box */
.card-logo-wrap,
.single-exam-logo,
.logo-container,
.popular-card .card-logo-wrap {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* 3. Logo Image Itself - natural proportions, NO inner box */
.card-logo-wrap img,
.single-exam-logo img,
.logo-container img,
.card-logo,
.card-logo img,
.card-series-logo,
.popular-card .card-logo,
.card-head img {
  max-width: 42px !important;
  max-height: 42px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* 4. Dynamic category view single exam card header */
.single-exam-card-top {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.single-exam-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.single-exam-info h4 {
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.28 !important;
  color: #0f172a !important;
  margin: 0 0 4px !important;
}

.category-browse-icon-wrap img {
  width: 48px !important;
  height: 48px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

/* Shimmer Animation */
@keyframes tsShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}


.ts-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: tsShimmer 1.5s infinite ease-in-out;
  border-radius: 6px;
  display: inline-block;
}

.ts-skeleton-dark {
  background: linear-gradient(90deg, rgba(255,255,255,0.09) 25%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.09) 75%);
  background-size: 200% 100%;
  animation: tsShimmer 1.5s infinite ease-in-out;
  border-radius: 6px;
  display: inline-block;
}

.ts-skeleton-card {
  min-height: 245px !important;
  pointer-events: none !important;
  user-select: none !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(15,36,95,.045) !important;
}

.ts-pass-skeleton-card {
  pointer-events: none !important;
  user-select: none !important;
}

.fade-in-ready {
  animation: tsFadeIn 120ms ease-out forwards;
}

@keyframes tsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   SHARED SECONDARY PASS DETAILS LINK
   ========================================================================== */
.pass-secondary-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  transition: opacity 0.15s ease, text-decoration-color 0.15s ease, color 0.15s ease;
}

.all-pass-details-link {
  margin-top: 12px;
  color: #cbd5e1;
}

.category-pass-details-link {
  color: #e2e8f0;
}

.pass-secondary-link:hover,
.all-pass-details-link:hover,
.category-pass-details-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Restrained palette for the existing test-series hero. */
.hero-section.hero-exam-portal {
  background: #eef4fc !important;
  background-image: none !important;
  border-color: #d2def0 !important;
  box-shadow: none !important;
}
.hero-exam-portal .hero-main-title { color: #102a56 !important; }
.hero-exam-portal .hero-gradient-text {
  background: none !important;
  color: #1454c4 !important;
  -webkit-text-fill-color: #1454c4 !important;
}
.hero-exam-portal .hero-description { color: #475569 !important; }
.hero-exam-portal .hero-live-badge {
  background: #eef3fb !important;
  border-color: #d7e2f2 !important;
  box-shadow: none !important;
}
.hero-exam-portal .live-badge-text { color: #244b82 !important; }
.hero-exam-portal .live-pulse-dot { background: #15803d !important; animation: pulseGlow 2s infinite ease-in-out !important; }
.hero-exam-portal .hero-btn-primary {
  background: #1454c4 !important;
  box-shadow: none !important;
}
.hero-exam-portal .hero-btn-primary:hover { background: #103f96 !important; box-shadow: none !important; transform: none !important; }
.hero-exam-portal .hero-btn-secondary { color: #244b82 !important; border-color: #b9c9df !important; box-shadow: none !important; }
.hero-exam-portal .hero-btn-secondary:hover { background: #edf3fc !important; color: #103f96 !important; box-shadow: none !important; transform: none !important; }
.hero-exam-portal .hero-btn-primary:focus-visible,
.hero-exam-portal .hero-btn-secondary:focus-visible { outline: 3px solid #1454c4; outline-offset: 3px; }
.hero-exam-portal .hero-stats-grid { border-color: #dce4ef !important; box-shadow: none !important; }
.hero-exam-portal .stat-number, .hero-exam-portal .pill-value { color: #102a56 !important; }
.hero-exam-portal .stat-label, .hero-exam-portal .pill-label { color: #52637a !important; }
.hero-exam-portal .mock-simulator-card { border-color: #cbd7e6 !important; box-shadow: 0 8px 24px rgba(16,42,86,.08) !important; }
.hero-exam-portal .floating-stat-pill { border-color: #dce4ef !important; box-shadow: 0 3px 12px rgba(16,42,86,.06) !important; animation: none !important; }
.hero-exam-portal .sim-header { background: #173866 !important; }
.hero-exam-portal .sim-exam-tag { color: #e5edfa !important; }
.hero-exam-portal .sim-timer-box { background: #264a79 !important; border-color: #52749c !important; color: #fff !important; }
.hero-exam-portal .timer-lbl { opacity: 1 !important; }
.hero-exam-portal .sim-chip.active { background: #1454c4 !important; }
.hero-exam-portal .q-marks, .hero-exam-portal .pill-speed-text { color: #166534 !important; }
.hero-exam-portal .speed-icon { color: #166534 !important; }
.hero-exam-portal .trophy-icon { color: #92400e !important; }
.hero-exam-portal .opt-circle.checked { background: #15803d !important; border-color: #15803d !important; }
/* Compact hero proportions, aligned with the homepage banner. */
.hero-section.hero-exam-portal {
  padding: 26px 32px !important;
  min-height: 390px !important;
  margin-bottom: 28px !important;
  border-radius: 16px !important;
}
.hero-exam-portal .hero-copy-col { gap: 14px !important; }
.hero-exam-portal .hero-main-title { font-size: 32px !important; line-height: 1.18 !important; }
.hero-exam-portal .hero-stats-grid { padding: 10px 14px !important; gap: 18px !important; }
.hero-exam-portal .hero-visual-col { padding: 8px 0 !important; }
.hero-exam-portal .sim-body { padding: 10px 14px !important; }
.hero-exam-portal .sim-options-list { gap: 4px !important; margin-bottom: 8px !important; }
.hero-exam-portal .sim-option { padding: 4px 10px !important; }
@media (min-width: 901px) {
  .hero-section.hero-exam-portal .hero-container { grid-template-columns: 1.15fr 1fr !important; gap: 28px !important; }
}
@media (max-width: 900px) {
  .hero-section.hero-exam-portal { padding: 24px !important; min-height: 0 !important; }
  .hero-section.hero-exam-portal .hero-container { gap: 22px !important; }
  /* The simulated screen is decorative; keep the mobile hero focused on its actions. */
  .hero-exam-portal .hero-visual-col { display: none !important; }
  .hero-exam-portal .hero-description { max-width: 100% !important; }
}
@media (max-width: 640px) {
  .hero-section.hero-exam-portal { padding: 22px 18px !important; margin-bottom: 24px !important; }
  .hero-exam-portal .hero-main-title { font-size: 27px !important; }
  .hero-exam-portal .hero-description { font-size: 14px !important; }
  .hero-exam-portal .hero-stats-grid { flex-direction: row !important; align-items: flex-start !important; flex-wrap: wrap !important; gap: 12px 18px !important; }
}
/* Two visual scenes share one grid cell so rotation never shifts the hero. */
.hero-exam-portal .ts-hero-carousel { flex-direction: column !important; gap: 16px !important; }
.ts-hero-scenes { display: grid; width: 100%; max-width: 460px; }
.ts-hero-scene { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: center; }
.ts-hero-scene:not(.is-active) * { visibility: hidden !important; }
.ts-hero-scene.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.ts-hero-review { align-items: center; text-align: center; padding: 6px 16px; }
.ts-hero-review img { width: 100%; max-width: 260px; height: 245px; object-fit: contain; }
.ts-hero-review h2 { font-size: 21px; line-height: 1.25; color: #102a56; margin: 8px 0; }
.ts-hero-review p { font-size: 14px; line-height: 1.5; color: #475569; max-width: 340px; margin: 0; }
.ts-hero-credit { font-size: 8px; line-height: 1.4; color: #64748b; text-decoration: underline; margin-top: 8px; }
.ts-hero-controls { display: flex; justify-content: center; align-items: center; gap: 9px; }
.ts-hero-dot { width: 24px; height: 24px; padding: 7px; border: 0; background: transparent; cursor: pointer; }
.ts-hero-dot::before { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: #b5c4d8; }
.ts-hero-dot.is-active::before { background: #1454c4; }
.ts-hero-pause { color: #244b82; background: #fff; border: 1px solid #d7e2f2; border-radius: 6px; padding: 4px 9px; font: inherit; font-size: 11px; cursor: pointer; }
.ts-hero-controls button:focus-visible, .ts-hero-credit:focus-visible { outline: 2px solid #1454c4; outline-offset: 3px; }
@media(prefers-reduced-motion:reduce) { .ts-hero-scene { transition: none; } }

/* Tighter test-series banner, retaining both visual slides and all copy. */
@media (min-width: 901px) {
  .hero-section.hero-exam-portal { padding: 20px 28px !important; min-height: 0 !important; }
  .hero-exam-portal .hero-copy-col { gap: 12px !important; }
  .hero-exam-portal .hero-main-title { font-size: 30px !important; }
  .hero-exam-portal .hero-description { font-size: 14px !important; line-height: 1.5 !important; }
  .hero-exam-portal .hero-stats-grid { margin-top: 2px !important; padding: 8px 12px !important; }
  .hero-exam-portal .hero-visual-col { padding: 0 !important; }
  .hero-exam-portal .ts-hero-carousel { gap: 12px !important; }
  .hero-exam-portal .sim-header { padding: 8px 12px !important; }
  .hero-exam-portal .sim-meta-banner { padding: 8px 12px !important; }
  .hero-exam-portal .sim-body { padding: 8px 12px !important; }
  .hero-exam-portal .sim-question-text { margin-bottom: 8px !important; }
  .hero-exam-portal .sim-footer { padding: 7px 12px !important; }
  .hero-exam-portal .ts-hero-review { padding: 0 12px; }
  .hero-exam-portal .ts-hero-review img { height: 215px; max-width: 240px; }
  .hero-exam-portal .ts-hero-review h2 { font-size: 20px; margin: 6px 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-exam-portal .live-pulse-dot { animation: none !important; } }

/* Quiet loading feedback; preserve the finished catalogue layout. */
.catalogue-loading-status{margin-left:auto;color:#52647b;font-size:13px;font-weight:500;display:inline-flex;align-items:center;gap:8px}
.catalogue-loading-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#2263d5}
.catalogue-loading-status[hidden]{display:none!important}
.catalogue-load-message{grid-column:1/-1;padding:22px;border:1px solid #dae4f1;border-radius:12px;background:#fff;color:#52647b;font-size:13px}
html[data-catalogue-state="loading"] .ts-skeleton-card .card-head>div:last-child{flex:1;min-width:0}
html[data-catalogue-state="loading"] .ts-skeleton-card{min-height:215px!important}
@media(max-width:640px){.catalogue-loading-status{font-size:12px}.popular-section .section-heading{flex-wrap:wrap;gap:10px}}
@media(prefers-reduced-motion:reduce){.ts-skeleton,.ts-skeleton-dark,.fade-in-ready{animation:none!important}}

/* Prevent a desktop flex basis from becoming a 220px mobile control height. */
@media(max-width:760px){
 .catalog-toolbar .toolbar-right{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px!important;width:100%!important;padding:8px!important}
 .catalog-toolbar .sort-control{display:flex!important;flex-direction:row!important;align-items:center!important;flex:none!important;min-width:0;height:42px}
 .catalog-toolbar .sort-label{flex:0 0 auto}
 .catalog-toolbar .tb-sort{flex:1;min-width:0;width:auto!important}
 .catalog-toolbar .catalog-search-box{flex:none!important;width:100%!important;min-width:0;height:42px!important}
}
