/* Home page polish — news board, admissions, contact, chrome */

/* ── Shared section cadence ── */
.home-page .section-header--board {
  text-align: center;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.home-page .section-eyebrow,
.news-board__eyebrow,
.acta-board__eyebrow,
.cq-board__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #2563eb;
}

.home-page .section-header--board .section-title {
  margin-bottom: 0.55rem;
}

.home-page .section-header--board .section-desc {
  margin-inline: auto;
  max-width: 42ch;
}

/* ── Jump nav ── */
.home-jump-nav--board {
  position: static;
  box-shadow: none;
  background: transparent;
  border-bottom: 1px solid #e2e8f0;
  padding-block: 0.35rem;
}

.home-jump-nav--board .home-jump-label {
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 700;
  padding-inline-end: 0.35rem;
}

.home-jump-nav--board a {
  min-height: 0;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1e4080;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: none;
  backdrop-filter: none;
}

.home-jump-nav--board a:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: none;
}

/* ── Faculties section spacing ── */
.faculties-section--board {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

/* ── News board ── */
.news-section--board {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #eff6ff 100%);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.news-board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.news-board__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0c1f45;
  text-wrap: balance;
}

.news-board__desc {
  margin: 0;
  max-width: 48ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  font-weight: 500;
}

.news-board__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  background: #0c1f45;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    box-shadow 0.35s ease;
}

.news-board__cta:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.news-board__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.news-feature {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  border-radius: 20px;
  background: #fff;
  border: 1px solid #dbeafe;
  box-shadow: 0 14px 34px rgba(12, 31, 69, 0.07);
}

.news-feature__when {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 5rem;
  padding: 0.7rem 0.35rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #eff6ff);
  border: 1px solid #93c5fd;
  text-align: center;
}

.news-feature__day {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  color: #2563eb;
  direction: ltr;
  unicode-bidi: isolate;
}

.news-feature__month {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0c1f45;
}

.news-feature__year {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  direction: ltr;
  unicode-bidi: isolate;
}

.news-feature__cat,
.news-rail__cat {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
}

.news-feature__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.35;
  color: #0c1f45;
  text-wrap: pretty;
}

.news-feature__title a {
  color: inherit;
  text-decoration: none;
}

.news-feature__title a:hover {
  color: #1d4ed8;
}

.news-feature__text {
  margin: 0 0 1.1rem;
  max-width: 62ch;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #475569;
  font-weight: 500;
}

.news-feature__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: #1d4ed8;
  text-decoration: none;
}

.news-feature__link:hover {
  gap: 0.65rem;
  color: #0c1f45;
}

.news-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.35rem 0;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.news-rail__item {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.25s ease;
}

.news-rail__item:last-child {
  border-bottom: 0;
}

.news-rail__item:hover {
  background: #f8fafc;
}

.news-rail__date {
  align-self: start;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #2563eb;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
}

.news-rail__title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  color: #0c1f45;
}

.news-rail__title a {
  color: inherit;
  text-decoration: none;
}

.news-rail__title a:hover {
  color: #1d4ed8;
}

.news-rail__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748b;
  font-weight: 500;
}

/* When only featured news exists */
.news-board__layout:has(.news-feature):not(:has(.news-rail)) {
  grid-template-columns: 1fr;
}

/* ── Admissions CTA board ── */
.admissions-cta--board {
  background: transparent;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: visible;
}

.admissions-cta--board::before {
  display: none;
}

.acta-board {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(59, 130, 246, 0.32), transparent 55%),
    linear-gradient(145deg, #0c1f45 0%, #1a3a6b 52%, #1e4080 100%);
  color: #fff;
  box-shadow: 0 20px 44px rgba(12, 31, 69, 0.22);
}

.acta-board__eyebrow {
  color: #93c5fd;
}

.acta-board__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
  text-wrap: balance;
}

.acta-board__desc {
  margin: 0;
  max-width: 48ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(219, 234, 254, 0.95);
  font-weight: 500;
}

.acta-board__deadline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(147, 197, 253, 0.35);
  font-size: 0.95rem;
  color: #dbeafe;
}

.acta-board__deadline strong {
  color: #fff;
  font-weight: 800;
}

.acta-board__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: min(100%, 240px);
}

.acta-board__primary,
.acta-board__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.35s ease;
}

.acta-board__primary {
  background: #fff;
  color: #1e4080;
}

.acta-board__primary:hover {
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

.acta-board__secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.acta-board__secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Contact board ── */
.contact-quick--board {
  background: #f8fafc;
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.cq-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.cq-board__title {
  margin: 0 0 1.35rem;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 900;
  color: #0c1f45;
}

.cq-board__list {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cq-board__item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.cq-board__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1rem;
}

.cq-board__item h3 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0c1f45;
}

.cq-board__item p,
.cq-board__item a {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  font-weight: 500;
  text-decoration: none;
}

.cq-board__item a:hover {
  color: #1d4ed8;
}

.cq-board__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.cq-board__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1e4080;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cq-board__social a:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.cq-board__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  border: 1.5px solid #2563eb;
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s ease;
}

.cq-board__cta:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
}

.cq-board__map {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.cq-board__map-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1d4ed8;
  text-decoration: none;
}

.cq-board__map-more:hover {
  color: #0c1f45;
  gap: 0.6rem;
}

/* ── Explore more ── */
.home-explore-more--board {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding-block: 1.15rem;
}

.home-explore-more--board .home-explore-more-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}

.home-explore-more--board span {
  font-weight: 800;
  color: #0c1f45;
  font-size: 0.9rem;
}

.home-explore-more--board a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e4080;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-explore-more--board a:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

@media (max-width: 960px) {
  .news-board__layout,
  .acta-board,
  .cq-board {
    grid-template-columns: 1fr;
  }

  .acta-board__actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .acta-board__primary,
  .acta-board__secondary {
    flex: 1 1 180px;
  }
}

@media (max-width: 560px) {
  .news-feature {
    grid-template-columns: 3.85rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1.1rem;
  }

  .news-feature__day {
    font-size: 1.4rem;
  }

  .news-rail__item {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-board__cta,
  .news-feature__link,
  .acta-board__primary,
  .acta-board__secondary,
  .cq-board__cta {
    transition: none;
  }

  .news-board__cta:hover,
  .acta-board__primary:hover,
  .acta-board__secondary:hover,
  .cq-board__cta:hover {
    transform: none;
  }
}

/* ── Quick links: mobile layout polish ── */
@media (max-width: 768px) {
  .quick-links-bar {
    padding: 0.85rem 0.9rem 1rem;
    background:
      linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
    border-bottom: 1px solid #e2e8f0;
  }

  .quick-links-inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem !important;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .quick-links-cell {
    flex: unset !important;
    min-width: 0;
    width: 100%;
  }

  /* Odd last item (e.g. 5th) spans full width and stays centered */
  .quick-links-cell:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .quick-links-cell:last-child:nth-child(odd) .quick-link-item {
    max-width: 100%;
  }

  .quick-link-item {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.7rem !important;
    min-height: 3.5rem !important;
    height: auto !important;
    padding: 0.7rem 0.85rem !important;
    text-align: start !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
  }

  .quick-link-item .ql-icon {
    width: 2.35rem !important;
    height: 2.35rem !important;
    border-radius: 11px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0;
  }

  .quick-link-label {
    flex: 1;
    font-size: 0.8125rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: pretty;
    hyphens: none;
  }

  .quick-link-item--primary {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12) !important;
  }
}

@media (max-width: 380px) {
  .quick-links-bar {
    padding-inline: 0.7rem;
  }

  .quick-links-inner {
    gap: 0.5rem !important;
  }

  .quick-link-item {
    padding: 0.6rem 0.7rem !important;
    gap: 0.55rem !important;
  }

  .quick-link-label {
    font-size: 0.75rem !important;
  }
}
