/* Shared section title */
.section-title {
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--primary);
  padding: 0 0.75rem;
}

.section-title__heading {
  font-size: var(--text-4xl);
}

.section-title__subtitle {
  font-size: var(--text-base);
  color: var(--muted-foreground);
}

/* NEWS PAGES */
/* Search & Filter Section */
.news-searchbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--background);
  border-radius: calc(1.5 * var(--radius-3xl));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.news-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Filter Tags */
.news-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-content: flex-start;
}

.news-searchbar__btn,
.news-filters__tag {
  border-radius: var(--radius-full);
}

/* News Section (News Page - /tin-tuc) */
.news-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-3xl);
  font-weight: var(--fw-medium);
  line-height: var(--text-3xl-line-height);
  color: var(--foreground);
}

.news-section__title :is(.fa-solid, .fa-regular) {
  font-size: var(--text-2xl);
  color: var(--primary);
}

.news-section__title svg {
  width: var(--text-2xl);
  height: var(--text-2xl);
  color: var(--primary);
}

.news-featured__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* News Card */
.news-card {
  position: relative;
  padding: 0;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  gap: 0;
}

.news-card__header {
  display: block;
  position: relative;
  padding: 0;
}

.news-card__image-wrapper {
  display: block;
  position: relative;
  width: 100%;
  height: 15rem;
  overflow: hidden;
}

.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  box-shadow: var(--shadow);
}

.news-card__views-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

.news-card__views-badge .fa-solid,
.news-card__views-badge .fa-regular {
  width: var(--text-sm);
  height: var(--text-sm);
  font-size: var(--text-sm);
}

.news-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  font-size: var(--text-sm);
}

.news-card__content * {
  font-size: inherit;
}

.news-card__meta {
  display: flex;
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  gap: 0.5rem;
  align-items: center;
}

.news-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--fw-medium);
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__description {
  font-size: var(--text-base);
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:is(.news-card__title, .news-card__description) > * {
  font-weight: inherit;
}

.news-card__link {
  margin-top: 1rem;
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  width: fit-content;
}

.news-card__link :is(.fa-solid, .fa-regular) {
  font-size: var(--text-xs);
}

.news-card__link svg {
  width: var(--text-sm);
  height: var(--text-sm);
}

/* NEWS LIST */
.news-list__sort {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.news-list__sort label {
  width: fit-content;
  text-wrap: nowrap;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.news-list__sort .select__trigger {
  min-width: 10rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
}

.select__content-wrapper[data-select-for="all-news-sort-select"] {
  border-radius: var(--radius-2xl);
}

.select__content-wrapper[data-select-for="all-news-sort-select"] .select__item {
  border-radius: var(--radius-2xl);
}

/* All News List */
.all-news__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card--horizontal {
  display: grid;
  grid-template-columns: 300px 1fr;
  padding: 0;
  gap: 0;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 15rem;
}

.news-card--horizontal .news-card__badge {
  box-shadow: none;
  position: relative;
  inset: 0;
}

.news-actions {
  display: flex;
  justify-content: center;
}

.news-actions .btn {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* NEWS DETAIL PAGE */
.news-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-sidebar {
  position: sticky;
  top: 1.5rem;
}

.news-detail-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-detail-header__title {
  font-size: var(--text-5xl);
  color: var(--foreground);
}

.news-detail-header__meta {
  display: flex;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  align-items: center;
}

.news-detail-header__meta-item {
  font-size: var(--text-sm);
}

.news-detail-header__social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted-foreground);
}

.news-detail-header__social .btn {
  width: 2rem;
  height: 2rem;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  border-radius: var(--radius-full);
}

.news-detail-footer__tags {
  display: flex;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.news-detail-footer__tag {
  color: var(--foreground);
}

.news-sidebar-wrapper {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.news-toc {
  border-radius: var(--radius-3xl);
}

.news-toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-toc-list__item {
  color: var(--muted-foreground);
  font-size: var(--text-sm);
}

/* AUTH & ONBOARDING PAGES */
.auth-form-card {
  margin: 0 auto;
  max-width: var(--container-md);
  border-radius: var(--radius-3xl);
}

.auth-form-card .card__footer {
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 50%, transparent);
}

.onboard-form-card {
  margin: 0 auto;
  max-width: var(--container-2xl);
  margin-bottom: 2rem;
}

.onboard-actions {
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 50%, transparent);
}

.onboard-review {
  display: grid;
  grid-template-columns: minmax(6rem, 10rem) 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
  font-size: 0.9rem;
}

.onboard-review dt {
  margin: 0;
  color: color-mix(in oklab, var(--color-fg, #111) 55%, transparent);
  font-weight: 500;
}

.onboard-review dd {
  margin: 0;
  word-break: break-word;
}

@media (max-width: 64rem) {
  .news-card--horizontal {
    height: auto;
  }

  .news-detail {
    grid-column: 1 / -1;
  }

  .news-sidebar,
  .news-sidebar-wrapper {
    grid-column: 1 / -1;
    position: static;
  }

  .news-detail-header__title {
    font-size: var(--text-4xl);
    line-height: var(--text-4xl-line-height);
  }
}

@media (max-width: 48rem) {
  .news-featured__grid,
  .onboard-review {
    grid-template-columns: 1fr;
  }

  .news-card--horizontal {
    grid-template-columns: 1fr;
  }

  .news-card__image-wrapper {
    height: 12rem;
  }

  .news-section__header,
  .news-detail-header__meta,
  .news-detail-footer__tags {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-detail-header__title {
    font-size: var(--text-3xl);
    line-height: var(--text-3xl-line-height);
  }

  .news-detail-header__social {
    gap: 0.75rem;
  }

  .news-detail-header__social .btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .news-search {
    flex-direction: column;
    align-items: stretch;
  }

  .news-list__sort {
    flex-wrap: wrap;
  }
}

/* Education page */
.education-facts {
  background: var(--muted);
}

.education-facts > span {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--muted-foreground);
}

.education-facts strong,
.education-program-short-name {
  color: var(--primary);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
}

.education-copy-grid h3,
.education-content h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: var(--fw-semibold);
}

.education-copy-grid h3:not(:first-child) {
  margin-top: 1.5rem;
}

.education-copy-grid :is(ul, ol),
.education-content :is(ul, ol) {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-left: 1.25rem;
  list-style: disc outside;
}

.education-copy-grid li::marker,
.education-content li::marker {
  color: var(--primary);
}

.education-semester-tabs [data-tabs-trigger] {
  padding: 0;
  border: 0;
  background: transparent;
}

.education-semester-tabs .badge {
  min-height: 2.5rem;
  padding: 0.625rem 1.125rem;
  font-size: var(--text-md);
  line-height: 1.25;
}

.education-table-wrap {
  border-color: var(--border);
  background: var(--background);
}

.education-course-table tbody tr:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.education-course-table tbody :is(td, th) {
  padding: 0.75rem 0.5rem;
  text-align: left;
}

.education-course-table tbody tr:hover {
  background: color-mix(in oklab, var(--muted) 60%, transparent);
}

.partners-page__header {
  max-width: 52rem;
  margin: 2rem auto 3rem;
  text-align: center;
}

.scroll-section{scroll-margin-top:8rem}
.partners-page__header h1 {
  margin: 0.75rem 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}
.partners-directory {
  display: grid;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.partner-grid-card {
  min-height: 10rem;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.75rem;
  padding: 1rem;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.partner-grid-card:hover {
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border));
  transform: translateY(-2px);
}
.partner-grid-card:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--primary) 35%, transparent);
  outline-offset: 3px;
}
.partner-grid-card--active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 18%, transparent);
}
.partner-grid-card__logo {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: #fff;
}
.partner-grid-card__logo img {
  width: 100%;
  height: 5rem;
  object-fit: contain;
}
.partner-grid-card__name {
  line-height: 1.4;
}
.partner-detail {
  scroll-margin-top: 7.5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}
.partner-detail:focus {
  outline: none;
}
.partner-detail__media {
  min-height: 22.5rem;
  padding: 3rem;
  background: #fff;
}
.partner-detail__media img {
  max-height: 15rem;
}
.partner-detail__content {
  padding: 3rem;
}
.partner-detail__eyebrow {
  color: var(--primary);
  text-transform: uppercase;
}
.partner-detail__content h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  line-height: 1.25;
}
.partners-page__empty {
  text-align: center;
  padding: 4rem 1rem;
}
@media (max-width: 767px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .partner-grid-card {
    min-height: 7.5rem;
    padding: 0.75rem;
  }
  .partner-detail {
    grid-template-columns: 1fr;
  }
  .partner-detail__media {
    min-height: 15rem;
    padding: 2rem;
  }
  .partner-detail__content {
    padding: 1.5rem;
  }
  .partner-detail__content h2 {
    font-size: 1.5rem;
  }
}
