/* Index page sections + footer (index-only) */

.index-hero {
  position: relative;
  overflow: hidden;
}

.index-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 320px at 20% 10%, rgba(10, 132, 255, 0.28), transparent 60%),
    radial-gradient(700px 320px at 80% 20%, rgba(108, 99, 255, 0.22), transparent 55%),
    radial-gradient(900px 520px at 50% 100%, rgba(255, 149, 64, 0.10), transparent 55%);
  pointer-events: none;
}

.index-hero > * {
  position: relative;
  z-index: 1;
}

.mini-kpi {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.mini-kpi .k {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.mini-kpi .t {
  color: rgba(15, 23, 42, 0.58);
}

.feature-card {
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.feature-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(var(--brand-primary-rgb), 0.12);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.20);
  color: var(--brand-primary);
}

.testimonial {
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.testimonial .quote {
  color: rgba(15, 23, 42, 0.70);
}

/* Index search modal (modern sheet) */
.search-modal .modal-dialog {
  margin-inline: auto;
}

.search-modal .modal-content.search-modal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.search-modal .modal-backdrop {
  background: #0b1220;
}

.search-sheet-card {
  max-width: 720px;
  margin-inline: auto;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 80px rgba(11, 18, 32, 0.18);
  padding: 12px 12px 16px;
}

.search-handle {
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  margin: 2px auto 10px;
}

.search-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 6px;
}

.search-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.70);
}

.search-close:hover {
  background: rgba(15, 23, 42, 0.06);
}

/* Compact inputs inside search sheet */
.search-sheet-card .ui-outline .form-control,
.search-sheet-card .ui-outline .form-select {
  height: 48px;
  border-radius: 14px;
}

.search-sheet-card .ui-outline > .form-label {
  font-size: 12px;
}

@media (max-width: 575.98px) {
  .search-sheet-card {
    border-radius: 20px;
    padding: 12px 12px 14px;
  }

  .search-sheet-card .ui-outline .form-control,
  .search-sheet-card .ui-outline .form-select {
    height: 46px;
  }
}

/* Home category cards — modern grid */
.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 576px) {
  .home-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (min-width: 768px) {
  .home-cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.home-cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: rgba(15, 23, 42, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border-color: rgba(var(--brand-primary-rgb), 0.2);
  color: var(--brand-primary);
}

.home-cat-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--brand-primary-rgb), 0.1);
  border-radius: 12px;
  color: var(--brand-primary);
}

.home-cat-card__icon .bi {
  font-size: 1.25rem;
}

.home-cat-card:hover .home-cat-card__icon {
  background: rgba(var(--brand-primary-rgb), 0.16);
}

.home-cat-card__title {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-cat-card__arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: rgba(15, 23, 42, 0.35);
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-cat-card:hover .home-cat-card__arrow {
  color: var(--brand-primary);
  transform: translateX(2px);
}

@media (max-width: 575.98px) {
  .home-cat-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .home-cat-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .home-cat-card__icon .bi {
    font-size: 1.1rem;
  }

  .home-cat-card__title {
    font-size: 0.85rem;
  }
}

/* Home About Section */
.home-about-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.home-about__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.92);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.home-about__text {
  color: rgba(15, 23, 42, 0.78);
  font-size: 0.95rem;
  line-height: 1.65;
}

.home-about__text p {
  margin: 0 0 12px 0;
}

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

.home-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-about__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-about__btn--primary {
  background: var(--brand-primary);
  color: #fff;
  border: none;
}

.home-about__btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--brand-primary-rgb), 0.35);
}

.home-about__btn--outline {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid rgba(var(--brand-primary-rgb), 0.35);
}

.home-about__btn--outline:hover {
  color: var(--brand-primary);
  background: rgba(var(--brand-primary-rgb), 0.08);
  border-color: var(--brand-primary);
}

/* Home Divisions + Download */
.home-divisions {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.home-divisions__grid {
  display: grid;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .home-divisions__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    align-items: start;
  }
}

.home-divisions__list {
  min-width: 0;
  max-width: 100%;
}

.home-divisions__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.9);
  margin: 0 0 14px 0;
}

.home-div-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  width: 100%;
}

@media (min-width: 576px) {
  .home-div-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 992px) {
  .home-div-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-div-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: rgba(15, 23, 42, 0.88);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-div-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  border-color: rgba(var(--brand-primary-rgb), 0.2);
  color: var(--brand-primary);
}

.home-div-card__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--brand-primary);
}

.home-div-card__name {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-div-card__arrow {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.3);
}

.home-div-card:hover .home-div-card__arrow {
  color: var(--brand-primary);
}

/* Download App Card */
.home-download-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.18);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(var(--brand-primary-rgb), 0.08);
}

.home-download-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  max-width: 100%;
}

.home-download-card__icon {
  font-size: 2.5rem;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.home-download-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.9);
  margin: 0 0 8px 0;
}

.home-download-card__text {
  font-size: 0.88rem;
  color: rgba(15, 23, 42, 0.7);
  line-height: 1.5;
  margin: 0 0 18px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-download-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 24px;
  background: var(--brand-primary);
  color: #fff !important;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-download-card__btn:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--brand-primary-rgb), 0.35);
}

.home-download-card__badge {
  height: 24px;
  width: auto;
}

@media (max-width: 767.98px) {
  .home-about-card {
    padding: 22px 18px;
  }

  .home-about__title {
    font-size: 1.2rem;
  }

  .home-download-card {
    padding: 20px;
  }

  .home-download-card__title {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .home-download-card__btn {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* Home Latest News */
.home-news__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.9);
  margin: 0 0 18px 0;
}

.home-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 576px) {
  .home-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 992px) {
  .home-news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.home-news-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border-color: rgba(var(--brand-primary-rgb), 0.15);
}

.home-news-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.04);
}

.home-news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-news-card:hover .home-news-card__thumb img {
  transform: scale(1.03);
}

.home-news-card__body {
  padding: 18px;
}

.home-news-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-card__excerpt {
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.65);
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-primary);
  transition: gap 0.2s ease;
}

.home-news-card:hover .home-news-card__link {
  gap: 10px;
}

.home-news-card__link .bi {
  font-size: 0.9rem;
}

/* Categories (compact grid, no horizontal scroll) */
.cat-card {
  height: 74px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  transition: transform 120ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
  border-color: rgba(var(--brand-primary-rgb), 0.18);
}

.cat-ico {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--brand-primary-rgb), 0.10);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.18);
  color: rgba(var(--brand-primary-rgb), 0.95);
  flex: 0 0 auto;
}

.cat-ico .bi {
  font-size: 1.15rem;
  line-height: 1;
}

.cat-text {
  min-width: 0;
}

.cat-title {
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.90);
  font-size: 0.98rem;
  line-height: 1.1;
}

.cat-sub {
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.82rem;
  line-height: 1.1;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-card--more .cat-ico {
  background: rgba(11, 18, 32, 0.08);
  border-color: rgba(11, 18, 32, 0.12);
  color: rgba(11, 18, 32, 0.86);
}

@media (max-width: 575.98px) {
  .cat-card {
    height: 70px;
    border-radius: 16px;
    gap: 10px;
    padding: 10px 10px;
  }

  .cat-ico {
    width: 40px;
    height: 40px;
    border-radius: 15px;
  }

  .cat-title {
    font-size: 0.95rem;
  }

  .cat-sub {
    font-size: 0.80rem;
  }
}

/* Footer — template primary color */
.site-footer {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer--next {
  background-color: var(--brand-primary);
}

.pb-bottom-nav .site-footer {
  padding-bottom: calc(var(--bottom-nav-total, 88px) + env(safe-area-inset-bottom) + 12px);
}

.footer__widget--title {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer__widget--text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.footer__widget--menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__widget--menu li {
  margin-bottom: 6px;
}

.footer__widget--menu a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__widget--menu a:hover {
  color: #fff;
}

.footer__play-store img {
  max-height: 48px;
  width: auto;
}

.footer__divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer__payment img {
  max-height: 32px;
  width: auto;
  opacity: 0.9;
}

@media (max-width: 767.98px) {
  .site-footer {
    margin-top: 20px;
  }
}

/* Modern Breadcrumb */
.breadcrumb-modern {
  margin-bottom: 1rem;
}

.breadcrumb-modern__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumb-modern__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-modern__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(15, 23, 42, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-modern__link:hover {
  color: var(--brand-primary);
}

.breadcrumb-modern__link .bi {
  font-size: 1rem;
  opacity: 0.9;
}

.breadcrumb-modern__separator {
  color: rgba(15, 23, 42, 0.35);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
}

.breadcrumb-modern__current {
  color: var(--text-1);
  font-weight: 600;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .breadcrumb-modern__current {
    max-width: 320px;
  }
}

/* Others pages (About, Contact, FAQ, Policy pages) */
.section--padding { padding-top: 2rem; padding-bottom: 2rem; }
.mb-20 { margin-bottom: 1.25rem; }
.mb-40 { margin-bottom: 2.5rem; }
.mb-95 { margin-bottom: 3rem; }
.section__heading--maintitle { font-size: 1.5rem; font-weight: 700; }
.about__content--maintitle { font-size: 1.25rem; }
.about__content--desc,
.privacy__policy--content__desc,
.terms__conditions--content__desc,
.support__policy--content__desc { color: rgba(15, 23, 42, 0.75); line-height: 1.6; }

/* Pagination — Modern compact (Prev 1 2 3 … 59 60 61 Next) */
.pagination-modern {
  margin-top: 1.5rem;
  padding: 0.5rem 0;
}

.pagination-modern__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-modern__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination-modern__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.75);
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-modern__link:hover {
  background: rgba(var(--brand-primary-rgb), 0.08);
  border-color: rgba(var(--brand-primary-rgb), 0.2);
  color: var(--brand-primary);
}

.pagination-modern__link--page {
  min-width: 36px;
}

.pagination-modern__item--active .pagination-modern__link {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.pagination-modern__item--active .pagination-modern__link:hover {
  color: #fff;
  opacity: 0.95;
}

.pagination-modern__item--disabled .pagination-modern__link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-modern__item--ellipsis {
  padding: 0 0.25rem;
}

.pagination-modern__ellipsis {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.4);
  user-select: none;
}

@media (max-width: 575.98px) {
  .pagination-modern__list {
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
  .pagination-modern__list::-webkit-scrollbar {
    display: none;
  }
  .pagination-modern__item {
    flex-shrink: 0;
  }
  .pagination-modern__link {
    min-width: 28px;
    height: 28px;
    padding: 0 0.35rem;
    font-size: 0.75rem;
  }
  .pagination-modern__link--page {
    min-width: 28px;
  }
  .pagination-modern__list {
    gap: 0.2rem;
  }
  .pagination-modern__ellipsis {
    font-size: 0.75rem;
  }
}

