/* ==========================================================================
   Academy of Music & Performing Arts - Custom Styles
   Color palette inspired by traditional UK conservatoire branding
   ========================================================================== */

:root {
  --aom-navy: #101c3a;
  --aom-navy-light: #1b2c56;
  --aom-gold: #c9a24b;
  --aom-gold-light: #e0c07a;
  --aom-gold-dark: #a8813d;
  --aom-cream: #f7f4ee;
  --aom-text: #2b2b2b;
  --aom-maroon: #6e1423;
  --aom-black: #0a0a0a;
  --aom-font: 'Aptos Sans', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --aom-heading-size: 2rem;
}

/* one font for everything, including filled and outline buttons and form controls */
button, input, select, textarea, .btn {
  font-family: var(--aom-font);
}

body {
  font-family: 'Aptos Sans', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--aom-text);
  background-color: #ffffff;
}

.logo-font
{
	font-family: 'Aptos Sans', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-weight: 400 !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--aom-gold);
}
.logo-vi {
	display: inline-block;
	white-space: nowrap;
}
.logo-font-en{
	margin-top: 10px;
	display: block;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff;
}
/* letter-spacing of the English line is set by main.js so it spans the same width as the Vietnamese line */
.logo-en-text {
	display: inline-block;
	white-space: nowrap;
}

h1, h2, h3, h4, h5, .navbar-brand, .site-title {
  font-family: 'Aptos Sans', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

a {
  color: var(--aom-navy);
}
a:hover {
  color: var(--aom-gold);
}

/* ---------- Top utility bar ---------- */
.top-bar {
  background-color: var(--aom-gold);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 0;
}
.top-bar a {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
}
.top-bar a:hover {
  color: var(--aom-black);
}

/* ---------- Main navigation (black block, per user preference) ---------- */
.navbar-main {
  background-color: var(--aom-navy-light);
  border-bottom: 0.25px solid var(--aom-gold);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.navbar-main .navbar-brand {
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.1;
  white-space: normal;
}
.navbar-main .navbar-brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--aom-gold-light);
  text-transform: uppercase;
}
.navbar-main .nav-link {
  color: #fff;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.6rem 1rem !important;
}
/* Menu sát nhau hơn và không xuống dòng (vd. "Trang chủ") */
@media (min-width: 992px) {
  .navbar-main .nav-link { padding: 0.6rem 0.75rem !important; white-space: nowrap; }
}
.navbar-main .nav-link.active {
  color: #fff;
}
.navbar-main .nav-link:hover {
  color: var(--aom-gold-light);
}
.navbar-main .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}
.navbar-main .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Navbar search ---------- */
.navbar-search-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  padding: 0.4rem 0.6rem;
  line-height: 1;
}
.navbar-search-btn:hover {
  color: var(--aom-gold-light);
}
.navbar-search-form {
  display: none;
  align-items: center;
  background: #fff;
  padding: 0.3rem 0.3rem 0.3rem 0.9rem;
  margin-top: 0.6rem;
}
.navbar-search-form.show {
  display: flex;
}
.navbar-search-form input {
  border: none;
  outline: none;
  flex: 1 1 auto;
  font-size: 0.9rem;
  font-family: 'Aptos Sans', sans-serif;
}
.navbar-search-form button {
  background: var(--aom-gold);
  border: none;
  color: #fff;
  padding: 0.4rem 0.9rem;
  font-size: 0.95rem;
}
@media (min-width: 992px) {
  .navbar-search-form {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    box-shadow: 0 14px 28px rgba(16, 28, 58, 0.25);
    margin-top: 0;
  }
}

/* ---------- Dropdown mega-menu (hover on desktop) ---------- */
.navbar-main .dropdown-menu {
  position: static;
  display: none; /* mobile: thu gọn, mở bằng nút mũi tên (.nav-sub-toggle) */
  float: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  margin: 0 0 0.4rem 1rem;
  padding: 0;
}
.navbar-main .dropdown-item {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.3rem 0.5rem;
  white-space: normal;
}
.navbar-main .dropdown-item:hover,
.navbar-main .dropdown-item:focus {
  background-color: transparent;
  color: var(--aom-gold-light);
}
.navbar-main .dropdown-toggle::after {
  vertical-align: 0.14em;
}

/* ---- Mobile / tablet (< 992px): menu cuộn được, mục con thu gọn ---- */
.navbar-main .nav-sub-toggle { display: none; }
@media (max-width: 991.98px) {
  .navbar-main .navbar-collapse {
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin-top: 0.5rem;
  }
  .navbar-main .nav-link { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .navbar-main .nav-item.dropdown { display: flex; flex-wrap: wrap; align-items: stretch; }
  .navbar-main .nav-item.dropdown > .nav-link { flex: 1 1 0; min-width: 0; }
  .navbar-main .nav-item.dropdown > .nav-link.dropdown-toggle::after { display: none; }
  .navbar-main .nav-sub-toggle {
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 48px; background: transparent; border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff; padding: 0;
  }
  .navbar-main .nav-sub-toggle::before {
    content: ""; width: 9px; height: 9px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease;
  }
  .navbar-main .nav-item.dropdown.open > .nav-sub-toggle::before { transform: translateY(2px) rotate(-135deg); }
  .navbar-main .nav-item.dropdown > .dropdown-menu { flex: 0 0 100%; width: 100%; }
  .navbar-main .nav-item.dropdown.open > .dropdown-menu { display: block; margin: 0 0 0.4rem 0.75rem; }
  .navbar-main .dropdown-item { padding: 0.6rem 0.5rem; }
  .navbar-search-btn { padding: 0.7rem 0.6rem; }
}

@media (min-width: 992px) {
  .navbar-main .nav-item.dropdown {
    position: relative;
  }
  .navbar-main .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--aom-navy);
    border-top: 3px solid var(--aom-gold);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    padding: 0.5rem 0;
    margin: 0;
    z-index: 1050;
  }
  .navbar-main .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    animation: dropdownFade 0.18s ease;
  }
  .navbar-main .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 0.55rem 1.3rem;
    white-space: nowrap;
  }
  .navbar-main .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--aom-gold-light);
  }
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--aom-navy) 0%, var(--aom-navy-light) 60%, var(--aom-maroon) 130%);
  color: #fff;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,162,75,0.25) 0%, rgba(201,162,75,0) 70%);
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--aom-gold);
  font-weight: 400;
}
.hero .lead {
  font-size: 1.2rem;
  color: #e5e2d8;
  max-width: 620px;
}
.hero-cta-group .btn {
  min-width: 232px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  border: 1px solid var(--aom-gold);
  color: var(--aom-gold-light);
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.2rem;
  text-align: center;
  white-space: nowrap;
}
.hero-badge__text {
  display: inline-block;
}
@media (max-width: 991.98px) {
  .hero-badge {
    white-space: normal;
    font-size: 1.1rem;
  }
}
/* keep the first title line on one line so the badge frame can match its width */
@media (min-width: 992px) {
  .hero-line1 { white-space: nowrap; }
  .hero h1 { font-size: 2.1rem; }
}
@media (min-width: 1200px) {
  .hero h1 { font-size: 2.5rem; }
}
@media (min-width: 1400px) {
  .hero h1 { font-size: 2.8rem; }
}

/* ---------- Hero with autoplay background video ---------- */
.hero--video {
  min-height: var(--hero-height, 620px);
  display: flex;
  align-items: center;
}
.hero--video::after {
  display: none;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(16, 28, 58, 0.90) 0%, rgba(16, 28, 58, 0.68) 45%, rgba(16, 28, 58, 0.30) 100%);
  z-index: 1;
}
.hero--video .container {
  position: relative;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

.page-header {
  background-color: var(--aom-navy);
  color: #fff;
  padding: 3.5rem 0;
  border-bottom: 4px solid var(--aom-gold);
}
.page-header h1 {
  margin-bottom: 0.4rem;
}
.page-header .breadcrumb a {
  color: #cfd4e6;
}
.page-header .breadcrumb-item.active {
  color: var(--aom-gold-light);
}

/* ---------- Section helpers ---------- */
.section {
  padding: 2.5rem 0;
}
.section-cream {
  background-color: var(--aom-cream);
}
.section-title-eyebrow {
  color: var(--aom-maroon);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
}
.section-title {
  font-size: var(--aom-heading-size);
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--aom-gold);
  font-weight: 400;
}
.divider-gold {
  width: 60px;
  height: 0;
  border-top: 0.25px solid var(--aom-gold);
  margin: 0.8rem 0 1.5rem;
}
.divider-gold--full {
  width: 100%;
}
.divider-gold.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Feature bands (RAM-style: tinted background + full-bleed elliptical image) ---------- */
.feature-band {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 3.5rem 0;
  transition: box-shadow 0.35s ease;
}
.feature-band:hover {
  box-shadow: inset 0 0 0 9999px rgba(16, 28, 58, 0.03), 0 20px 45px rgba(16, 28, 58, 0.14);
}
.feature-band--tint-gold   { background-color: #f6efe0; }
.feature-band--tint-navy   { background-color: #e9edf5; }
.feature-band--tint-maroon { background-color: #f5e6e6; }

.feature-band__text {
  position: relative;
  z-index: 2;
  max-width: 520px;
}
.feature-band__text h3 {
  text-transform: uppercase;
  color: var(--aom-gold);
  font-weight: 400;
  font-size: var(--aom-heading-size);
}
.feature-band:hover .feature-band__text h3 {
  color: var(--aom-gold-dark);
}
.feature-band--reverse .feature-band__text {
  margin-left: auto;
}

.feature-band__media {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 47%;
  min-width: 300px;
}
.feature-band--reverse .feature-band__media {
  right: auto;
  left: 0;
}
.feature-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.35s ease;
  /* image is clipped to part of a large ellipse anchored near the bottom-right
     corner of the section, with the center pulled in from the corner so that
     more than half of the ellipse stays visible inside the box */
  clip-path: ellipse(89% 65% at 89% 66%);
}
.feature-band--reverse .feature-band__media img {
  /* mirrored: anchored near the bottom-left corner instead */
  clip-path: ellipse(89% 65% at 11% 66%);
}
.feature-band:hover .feature-band__media img {
  /* size/shape stays the same on hover, only a drop-shadow is added
     (box-shadow would ignore the clip-path, so filter: drop-shadow is used) */
  filter: grayscale(0) drop-shadow(0 22px 30px rgba(16, 28, 58, 0.35));
}
.org-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.65);
  color: var(--aom-maroon);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.8rem;
}

@media (max-width: 991.98px) {
  .feature-band {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.75rem;
    padding-bottom: 0;
  }
  .feature-band__text,
  .feature-band--reverse .feature-band__text {
    max-width: 100%;
    margin-left: 0;
    padding: 0 0 1.25rem;
  }
  .feature-band__media,
  .feature-band--reverse .feature-band__media {
    position: relative;
    width: 100%;
    height: 280px;
    left: auto;
    right: auto;
    margin: 0;
  }
  .feature-band__media img,
  .feature-band--reverse .feature-band__media img {
    clip-path: ellipse(89% 80% at 89% 81%);
  }
  .feature-band:hover .feature-band__media img,
  .feature-band--reverse:hover .feature-band__media img {
    clip-path: ellipse(96% 88% at 89% 81%);
  }
}

/* ---------- Cards ---------- */
.card-academy {
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 14px rgba(16, 28, 58, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.card-academy:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(16, 28, 58, 0.15);
}
.card-academy .card-img-top {
  height: 190px;
  object-fit: cover;
}
.card-academy .card-body {
  padding: 1.4rem;
}
.card-academy .badge-tag {
  background-color: var(--aom-gold);
  color: var(--aom-navy);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.stat-block {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-block:last-child {
  border-right: none;
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--aom-gold);
}
.stat-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #dfe3ee;
}

/* ---------- Khoa thumbnail grid (name overlaid, no separate caption needed) ---------- */
.khoa-heading {
  text-transform: uppercase;
  color: var(--aom-maroon);
  font-family: 'Aptos Sans', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.04em;
}
.khoa-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 64px;
  background-color: transparent;
  border: 1px solid var(--aom-gold-dark);
  border-radius: 10px;
  padding: 0.9rem 2.6rem 0.9rem 1.2rem;
  box-shadow: 0 4px 10px rgba(16, 28, 58, 0.10);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}
.khoa-item:hover,
.khoa-item:focus {
  text-decoration: none;
}
.khoa-item:hover,
.khoa-item:focus-visible {
  background-color: var(--aom-gold-dark);
  box-shadow: 0 10px 18px rgba(16, 28, 58, 0.2);
  transform: translateY(-3px);
}
.khoa-item .khoa-name {
  color: var(--aom-gold-dark);
  text-align: left;
  text-transform: none;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}
.khoa-item:hover .khoa-name,
.khoa-item:focus-visible .khoa-name {
  color: #fff;
}
/* chevron to signal the row is tappable, at every screen size */
.khoa-item::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--aom-gold-dark);
  border-bottom: 2px solid var(--aom-gold-dark);
  transform: translateY(-65%) rotate(-45deg);
  transition: border-color 0.2s ease;
}
.khoa-item:hover::after,
.khoa-item:focus-visible::after {
  border-color: #fff;
}

/* Mobile: 1 column */
@media (max-width: 767.98px) {
  .khoa-grid > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Desktop/tablet: 3 columns, bigger buttons */
@media (min-width: 768px) {
  .khoa-grid {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
  }
  .khoa-item {
    min-height: 92px;
    padding: 1.1rem 2.8rem 1.1rem 1.4rem;
  }
  .khoa-item .khoa-name {
    font-size: 1.05rem;
  }
}

/* ---------- Buttons (unified gold-brown tone, same as logo/stat numbers) ---------- */
.btn-academy-primary,
.btn-academy-outline {
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--aom-gold);
  transition: background-color 0.25s ease, border-color 0.25s ease,
    color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-academy-primary {
  background-color: var(--aom-gold);
  color: #fff;
  box-shadow: 0 2px 8px rgba(201, 162, 75, 0.3);
}
.btn-academy-primary:hover {
  background-color: var(--aom-gold-dark);
  border-color: var(--aom-gold-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(201, 162, 75, 0.4);
}
.btn-academy-outline {
  background-color: transparent;
  color: var(--aom-gold);
}
.btn-academy-outline:hover {
  background-color: var(--aom-gold);
  border-color: var(--aom-gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(201, 162, 75, 0.4);
}

/* Solid circular gold button with a white right-arrow */
.btn-circle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--aom-gold);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(201, 162, 75, 0.35);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-circle-arrow:hover,
.btn-circle-arrow:focus {
  text-decoration: none;
}
.btn-circle-arrow:hover {
  background-color: var(--aom-gold-dark);
  color: #fff;
  transform: translateX(5px);
  box-shadow: 0 8px 16px rgba(201, 162, 75, 0.45);
}
.cta-band h2 {
  font-size: var(--aom-heading-size);
  text-transform: uppercase;
  color: var(--aom-gold);
  font-weight: 400;
}

/* ---------- Events / News list ---------- */
.event-date-box {
  background-color: var(--aom-navy);
  color: #fff;
  text-align: center;
  width: 70px;
  flex: 0 0 70px;          /* không co giãn theo độ dài tiêu đề */
  align-self: flex-start;  /* không kéo cao theo nội dung bên cạnh */
  padding: 0.5rem 0;
}
.event-date-box .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.event-date-box .mon {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.list-item-academy {
  border-bottom: 1px solid #e6e2d6;
  padding: 1.2rem 0;
}
.list-item-academy:last-child {
  border-bottom: none;
}
.list-item-academy img {
  border-radius: 10px;
  filter: grayscale(1);
  transition: filter 0.35s ease;
}
.list-item-academy:hover img {
  filter: grayscale(0);
}

/* ---------- Filter pills (courses page) ---------- */
/* Nút lọc: cùng tông với các nút của website (viền vàng; rê chuột/đang chọn nền vàng, chữ trắng) */
.filter-pill {
  border: 1px solid var(--aom-gold);
  color: var(--aom-gold);
  background: transparent;
  border-radius: 8px;
  padding: 0.5rem 1.3rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  margin: 0.2rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.filter-pill.active,
.filter-pill:hover {
  background-color: var(--aom-gold);
  border-color: var(--aom-gold);
  color: #fff;
}
.filter-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(201, 162, 75, 0.35);
}

/* ---------- Faculty ---------- */
.faculty-card img {
  height: 260px;
  object-fit: cover;
  width: 100%;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}
.faculty-card .name {
  font-weight: 700;
  margin-top: 0.9rem;
}
.faculty-card .role {
  color: var(--aom-maroon);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  /* rounded rectangle */
  border-radius: 14px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(16,28,58,0.88), rgba(16,28,58,0));
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem 0.9rem;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}
.gallery-item {
  cursor: pointer;
}
.gallery-item::after {
  content: "\2922";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(16, 28, 58, 0.55);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.gallery-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- Gallery lightbox modal ---------- */
.lightbox-modal .modal-dialog {
  max-width: 92vw;
}
.lightbox-modal .modal-content {
  background: rgba(16, 28, 58, 0.97);
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.lightbox-body {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}
.lightbox-img {
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
  border: 4px solid #fff;
  background: #fff;
}
.lightbox-caption {
  color: #fff;
  margin-top: 1.2rem;
  font-family: 'Aptos Sans', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.95rem;
}
.lightbox-counter {
  color: var(--aom-gold-light);
  margin-left: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  opacity: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  z-index: 5;
}
.lightbox-nav:hover {
  background-color: var(--aom-maroon);
  color: #fff;
}
.lightbox-prev {
  left: 0.5rem;
}
.lightbox-next {
  right: 0.5rem;
}
@media (max-width: 575.98px) {
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

/* ---------- Forms ---------- */
.form-academy .form-control,
.form-academy .form-select {
  border-radius: 0;
  border: 1px solid #c9c4b4;
  padding: 0.65rem 0.8rem;
}
.form-academy .form-control:focus,
.form-academy .form-select:focus {
  border-color: var(--aom-navy);
  box-shadow: 0 0 0 0.15rem rgba(16, 28, 58, 0.15);
}
.form-academy label {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--aom-navy-light);
  color: #c9cede;
  padding-top: 3.5rem;
}
.site-footer h5 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}
.site-footer a {
  color: #c9cede;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--aom-gold-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.5rem;
  padding: 1.2rem 0;
  font-size: 0.82rem;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;
}
.social-icons a svg {
  width: 16px;
  height: 16px;
  fill: #c9cede;
  transition: fill 0.2s ease;
}
.social-icons a:hover {
  background-color: var(--aom-gold);
  border-color: var(--aom-gold);
}
.social-icons a:hover svg {
  fill: var(--aom-navy);
}
.footer-social-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-social-col .social-icons a {
  margin-left: 0;
  margin-right: 0.5rem;
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: none;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--aom-gold);
  color: #fff;
  border: none;
  align-items: center;
  justify-content: center;
}

/* ---------- Sticky sidebar ---------- */
.sidebar-box {
  background-color: var(--aom-cream);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h5 {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--aom-gold);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .hero h1 { font-size: 2rem; }
  .stat-block { border-right: none; margin-bottom: 1rem; }
  .navbar-main .navbar-brand {
    font-size: 0.72rem;
  }
  .navbar-main .navbar-brand img {
    height: 42px;
  }
  .logo-font-en {
    font-size: 0.46rem;
    letter-spacing: 0.04em;
    margin-top: 3px;
  }
}
.img-academy{
	border-radius: 10px;
    box-shadow: 6px 4px 15px rgba(16, 28, 58, 0.68);
    filter: grayscale(1);
    transition: filter 0.35s ease;
}
.img-academy {
  animation: monoToColor 7s ease-in-out infinite alternate;
}
.img-academy:hover {
  animation-play-state: paused;
  filter: grayscale(0);
}
@keyframes monoToColor {
  0%, 20%   { filter: grayscale(1); }
  80%, 100% { filter: grayscale(0); }
}
@media (prefers-reduced-motion: reduce) {
  .img-academy { animation: none; }
}

/* ---------- Faculty pages ---------- */
.khoa-banner {
  background: var(--aom-navy);
  line-height: 0;
  height: var(--hero-height, 620px); /* bằng chiều cao khung video đầu trang chủ (.hero--video) */
  overflow: hidden;
}
.khoa-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
/* Điện thoại / máy tính bảng: hiện nguyên ảnh theo tỉ lệ gốc, không cắt hai bên */
@media (max-width: 991.98px) {
  .khoa-banner { height: auto; }
  .khoa-banner img { width: 100%; height: auto; object-fit: contain; }
}
.he-card {
  border: 1px solid var(--aom-gold-dark);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  color: var(--aom-gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}
.table-academy thead th {
  background: var(--aom-navy-light);
  color: #fff;
  font-weight: 600;
  border: none;
}
.table-academy td { padding: 0.8rem 0.75rem; }

/* ---------- Ensemble / center pages ---------- */
.img-ensemble {
  width: 100%;
  border-radius: 14px;
  box-shadow: 6px 4px 15px rgba(16, 28, 58, 0.35);
}
.contact-lines li { padding: 0.45rem 0; border-bottom: 1px solid #e6e2d6; }
.contact-lines li:last-child { border-bottom: none; }

/* ---------- About page: mission / vision / values ---------- */
.values-box { border-top: 3px solid var(--aom-gold); border-radius: 0; }
.values-box h5 { text-transform: uppercase; color: var(--aom-gold-dark); letter-spacing: 0.06em; }

/* ---------- Organization page ---------- */
.org-unit { padding: 1.4rem 0; border-bottom: 1px solid #e6e2d6; scroll-margin-top: 110px; }
.org-unit:last-child { border-bottom: none; }
.org-unit__title { font-size: 1.4rem; color: var(--aom-maroon); margin-bottom: 0.8rem; }
.org-card {
  display: block;
  height: 100%;
  background: #fff;
  padding: 1.2rem;
  border-left: 4px solid var(--aom-gold);
  box-shadow: 0 2px 10px rgba(16, 28, 58, 0.08);
  text-decoration: none;
  color: var(--aom-text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.org-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(16, 28, 58, 0.15); color: var(--aom-text); }
#so-do-to-chuc, #bao-cao-thuong-nien, #quy-dinh-quy-che { scroll-margin-top: 110px; }
.org-chart { display: flex; flex-direction: column; gap: 1.2rem; align-items: stretch; }
.org-chart__top { display: flex; justify-content: center; }
.org-chart__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.org-chart a {
  background: #fff;
  border: 1px solid var(--aom-gold-dark);
  border-radius: 10px;
  color: var(--aom-gold-dark);
  padding: 0.8rem 1.3rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.org-chart a:hover { background: var(--aom-gold-dark); color: #fff; }
.org-chart__top a { background: var(--aom-gold-dark); color: #fff; font-weight: 700; padding: 0.9rem 3rem; }
.org-chart__top a:hover { background: var(--aom-gold); }

.he-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.he-grid .he-card { display: flex; align-items: center; justify-content: center; min-height: 84px; }
.cn-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.cn-item { background: #fff; border-left: 4px solid var(--aom-gold); padding: 1.1rem 1.3rem; box-shadow: 0 2px 10px rgba(16,28,58,0.08); }
.cn-item h5 { font-size: 1.05rem; color: var(--aom-gold-dark); margin-bottom: 0.4rem; }
.cn-item p { margin: 0; font-size: 0.92rem; color: #555; }

.he-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.he-grid .he-card { flex-direction: column; gap: 0.5rem; padding: 1.4rem 1.2rem; text-align: center; background: #fff; }
.he-card .he-icon { color: var(--aom-gold-dark); }
.he-card p { margin: 0; font-size: 0.88rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: #555; line-height: 1.45; }

/* ---------- Article detail ---------- */
.article-cat { margin-bottom: 0.8rem; }
.article-title { font-size: 2rem; line-height: 1.3; color: var(--aom-navy); margin-bottom: 1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.88rem; color: #666; padding: 0.8rem 0; margin-bottom: 1.2rem; border-top: 1px solid #e6e2d6; border-bottom: 1px solid #e6e2d6; }
.article-meta li { display: flex; align-items: center; gap: 0.4rem; }
.article-meta svg { color: var(--aom-gold-dark); flex-shrink: 0; }
.article-meta span { font-weight: 600; }
.article-sapo { font-size: 1.1rem; font-weight: 600; line-height: 1.6; }
.article-figure { margin: 1.5rem 0; }
.article-figure img { width: 100%; border-radius: 10px; }
.article-figure figcaption { font-size: 0.85rem; color: #666; text-align: center; padding-top: 0.5rem; }
.article-body { line-height: 1.75; }
.article-body h2 { font-size: 1.35rem; color: var(--aom-maroon); margin: 1.6rem 0 0.8rem; }
/* Bảng trong nội dung bài (vd Kết quả tuyển sinh): số dòng/cột tuỳ ý, cuộn ngang khi hẹp */
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.95rem; }
.article-body table td, .article-body table th { border: 1px solid #d9d3c3; padding: 0.5rem 0.75rem; vertical-align: top; }
.article-body table th, .article-body table thead td, .article-body table tr:first-child th { background: #f3efe3; color: var(--aom-maroon); font-weight: 700; }
.article-body table tr:nth-child(even) td { background: #fbf9f3; }
.article-body table p { margin: 0; }
.article-tags, .article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.5rem; font-size: 0.9rem; }
.article-tags span, .article-share span { font-weight: 600; }
.article-tags a, .article-share a, .article-share button { border: 1px solid var(--aom-gold-dark); color: var(--aom-gold-dark); background: transparent; border-radius: 20px; padding: 0.25rem 0.9rem; text-decoration: none; font-size: 0.85rem; transition: background-color 0.2s, color 0.2s; }
.article-tags a:hover, .article-share a:hover, .article-share button:hover { background: var(--aom-gold-dark); color: #fff; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e6e2d6; }
.article-nav a { text-decoration: none; color: var(--aom-text); font-weight: 600; font-size: 0.92rem; }
.article-nav a:hover { color: var(--aom-gold-dark); }
.article-nav small { display: block; color: #888; font-weight: 400; margin-bottom: 0.2rem; }
@media (max-width: 575.98px) { .article-nav { grid-template-columns: 1fr; } .article-title { font-size: 1.5rem; } }
@media print { .navbar-main, .site-footer, aside, .article-share, .article-nav, #backToTop { display: none !important; } }
.article-cat { background-color: var(--aom-gold); color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; }
.article > .article-cat { display: inline-block; }

.notice-detail { max-width: 820px; }
.notice-list { max-width: 820px; }
.notice-list .list-item-academy { align-items: center; }

.org-card { display: block; background: #fff; border-left: 4px solid var(--aom-gold); padding: 1.1rem 1.3rem; box-shadow: 0 2px 10px rgba(16,28,58,0.08); }
.org-parts { padding-left: 1.1rem; color: #555; }
.org-parts li { margin-bottom: 0.25rem; }
.img-historic { width: 100%; border-radius: 14px; box-shadow: 0 4px 18px rgba(16,28,58,0.15); }

/* ---------- Category post list ---------- */
.post-item { display: flex; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid #e6e2d6; }
.post-item:first-child { padding-top: 0; }
.post-item__img { flex: 0 0 220px; }
.post-item__img img { width: 100%; height: 100%; max-height: 150px; object-fit: cover; border-radius: 10px; display: block; }
.post-item__body h3 { font-size: 1.15rem; line-height: 1.4; margin: 0.2rem 0 0.5rem; }
.post-item__body h3 a { color: var(--aom-navy); text-decoration: none; }
.post-item__body h3 a:hover { color: var(--aom-gold-dark); }
.post-item__body p { font-size: 0.92rem; color: #555; margin-bottom: 0.5rem; }
.post-item__more { font-size: 0.88rem; font-weight: 600; color: var(--aom-gold-dark); text-decoration: none; }
.cat-menu li a { display: block; padding: 0.65rem 0.2rem; border-bottom: 1px solid #e6e2d6; color: var(--aom-text); text-decoration: none; }
.cat-menu li a:hover, .cat-menu li a.active { color: var(--aom-gold-dark); font-weight: 600; }
.pagination .page-link { color: var(--aom-gold-dark); }
.pagination .active .page-link { background: var(--aom-gold-dark); border-color: var(--aom-gold-dark); color: #fff; }
@media (max-width: 575.98px) { .post-item { flex-direction: column; } .post-item__img { flex-basis: auto; } }

/* ---------- Faculty pages: nội dung cập nhật 70 năm ---------- */
.khoa-banner--duo { display: flex; gap: 4px; }
.khoa-banner--duo img { width: 50%; height: 100%; min-width: 0; object-position: center 40%; }
@media (max-width: 767.98px) { .khoa-banner--duo { flex-direction: column; } .khoa-banner--duo img { width: 100%; height: auto; } }
@media (min-width: 768px) and (max-width: 991.98px) { .khoa-banner--duo img { width: 50%; height: auto; align-self: flex-start; } }
.khoa-intro p { text-align: justify; line-height: 1.75; margin-bottom: 1rem; }
.he-card .he-years { display: block; font-size: 0.85rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: #555; }
.cn-group { margin: 1.6rem 0 0.9rem; color: var(--aom-navy); font-weight: 700; }
.cn-group:first-child { margin-top: 0; }
.cn-item h5 { margin-bottom: 0; }
.gv-list { margin: 0; padding-left: 2.2rem; columns: 2 320px; column-gap: 2.5rem; }
.gv-list li { break-inside: avoid; padding: 0.22rem 0; line-height: 1.5; }
.gv-list li.gv-label { display: block; list-style: none; margin-left: -2.2rem; font-weight: 700; color: var(--aom-gold-dark); padding-top: 0.8rem; }
.history-text p { text-align: justify; line-height: 1.75; }
.history-h { font-size: 1.15rem; font-weight: 700; color: var(--aom-gold-dark); margin: 1.6rem 0 0.6rem; }
.history-h:first-child { margin-top: 0; }
@media (min-width: 992px) { .history-img-wrap { position: sticky; top: 100px; } }
.values-box p:last-child, .values-box ul:last-child { margin-bottom: 0; }
.values-box p { text-align: justify; }
.history-figure { margin: 0 0 2.2rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 10px; }
.history-figure .img-historic { width: auto; max-width: 100%; max-height: 440px; display: block; }
/* Phương án B (desktop): 2 ảnh chia đôi chiều rộng, cùng tỉ lệ, thẳng hàng với 2 cột chữ bên dưới */
@media (min-width: 992px) {
  .history-figure { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .history-figure .img-historic { width: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
  /* chỉ còn 1 ảnh: trải rộng hết hàng, giữ tỉ lệ gốc */
  .history-figure .img-historic:only-child { grid-column: 1 / -1; width: auto; max-width: 100%; max-height: 440px; aspect-ratio: auto; justify-self: center; }
}
@media (min-width: 992px) { .history-text { columns: 2; column-gap: 3rem; } .history-text .history-h { break-after: avoid; } .history-text p { break-inside: avoid-column; } }

/* ---------- Biểu diễn: poster bấm xem ảnh gốc + hiệu ứng lightbox ---------- */
.list-item-academy img.bd-poster {
  filter: none;
  cursor: zoom-in;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.list-item-academy img.bd-poster:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(16, 28, 58, 0.28);
}
.bd-summary p { margin-bottom: 0.35rem; }
.bd-summary ul, .bd-summary ol { margin-bottom: 0.35rem; padding-left: 1.2rem; }
/* Ảnh trong lightbox phóng ra mượt khi mở; xem 1 ảnh (poster) thì ẩn nút chuyển ảnh */
.lightbox-modal.show .lightbox-img {
  animation: lbZoomIn 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lightbox-modal.lightbox-single .lightbox-nav { display: none; }
.lightbox-img { cursor: zoom-out; }
@keyframes lbZoomIn {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}

/* Biểu diễn: dòng chương trình đã diễn ra bấm được */
.list-item-academy.bd-past { cursor: pointer; transition: background-color 0.2s ease, padding-left 0.2s ease; }
.list-item-academy.bd-past:hover { background: rgba(0, 0, 0, 0.03); padding-left: 0.5rem; }

/* Biểu diễn: mọi dòng lịch bấm được (mở popup chi tiết); poster thu nhỏ phóng nhẹ khi rê chuột */
.list-item-academy.bd-item { cursor: pointer; transition: background-color 0.2s ease, padding-left 0.2s ease; }
.list-item-academy.bd-item:hover { background: rgba(0, 0, 0, 0.03); padding-left: 0.5rem; }
.list-item-academy img.bd-thumb { filter: none; transition: transform 0.28s ease, box-shadow 0.28s ease; }
.list-item-academy.bd-item:hover img.bd-thumb { transform: scale(1.06); box-shadow: 0 6px 16px rgba(16, 28, 58, 0.25); }

/* Tệp & hình ảnh đính kèm bài viết */
.article-attach { margin: 28px 0 8px; padding-top: 18px; border-top: 1px solid #e4eef0; }
.article-attach h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.article-attach .att-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.article-attach .att-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #f0f7f7; }
.article-attach .att-gallery img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform .25s; }
.article-attach .att-gallery a:hover img { transform: scale(1.08); }
/* Hiệu ứng khi rê chuột: ảnh phóng nhẹ, nổi bóng, phủ lớp tối + biểu tượng kính lúp */
.article-attach .att-gallery a { position: relative; cursor: zoom-in; transition: box-shadow .25s, transform .25s; }
.article-attach .att-gallery a:hover { box-shadow: 0 10px 24px rgba(16, 28, 58, .28); transform: translateY(-2px); }
.article-attach .att-gallery a::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: rgba(16, 28, 58, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 32px no-repeat;
}
.article-attach .att-gallery a:hover::after { opacity: 1; }
/* Tin liên quan (chi tiết bài viết): ảnh cố định, tiêu đề tối đa 2 dòng, dài hơn thì cắt bằng dấu ba chấm */
.rel-body { min-width: 0; flex: 1; }
.rel-title { line-height: 1.35; }
.rel-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#newsRelated .list-item-academy > img { flex: 0 0 96px; }
/* Mỗi tin liên quan là một thẻ: bo góc, đổ bóng, nâng lên + đổ bóng đậm hơn khi rê chuột */
#newsRelated .list-item-academy { padding: 0.6rem; margin-bottom: 0.75rem; border: 1px solid #ece8dc; border-bottom: 1px solid #ece8dc; border-radius: 12px; background: #fff; align-items: center; box-shadow: 0 2px 8px rgba(16, 28, 58, 0.08); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
#newsRelated .list-item-academy:last-child { margin-bottom: 0; border-bottom: 1px solid #ece8dc; }
#newsRelated .list-item-academy:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(16, 28, 58, 0.18); border-color: var(--aom-gold); }
#newsRelated .list-item-academy:hover .rel-title a { color: var(--aom-gold) !important; }
#newsRelated .list-item-academy .act-thumb { transform: none; box-shadow: none; }
#newsRelated .thumb-logo.rel-thumb { width: 96px; height: 64px; flex: 0 0 96px; border-radius: 10px; }
#newsRelated .thumb-logo.rel-thumb img { height: 48px; }
/* Trang Dàn nhạc dân tộc: danh sách thành viên (HTML từ CMS) dùng kiểu bảng/chữ của bài viết */
.unit-members-html { margin-top: 1.25rem; background: #fff; padding: 1.25rem 1.5rem; }
.unit-members-html img { max-width: 100%; height: auto; }
/* Trang Nghiên cứu: chừa chỗ cho navbar khi nhảy tới neo */
.nc-section { scroll-margin-top: 70px; }
.nc-list { margin-top: 1.25rem; }
/* Section Sự kiện: bài mới nhất + ảnh to, bên dưới là danh sách tiêu đề có bullet */
.nc-feature { margin-top: 1.25rem; }
.nc-feature-title { font-size: 1.5rem; font-weight: 700; }
.nc-feature-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 14px rgba(16, 28, 58, .2); transition: transform .25s ease, box-shadow .25s ease; }
.nc-feature-img:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(16, 28, 58, .3); }
.thumb-logo.nc-feature-img { height: auto; flex: none; }
.thumb-logo.nc-feature-img img { height: 38%; width: auto; max-width: 70%; }
.nc-bullets { margin: 1.5rem 0 0; padding-left: 1.25rem; list-style: disc; }
.nc-bullets li { padding: .35rem 0; border-bottom: 1px dashed #e6e2d6; }
.nc-bullets li::marker { color: var(--aom-gold-dark); }
/* Tên ảnh (đặt ở CMS) hiện dưới mỗi ảnh, tối đa 2 dòng */
.article-attach .att-fig { margin: 0; }
.article-attach .att-fig figcaption {
  margin-top: 6px; font-size: .85rem; line-height: 1.3; text-align: center; color: #444;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-attach .att-files li { margin-bottom: 8px; }
.article-attach .att-files a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #e4eef0; border-radius: 10px; color: inherit; text-decoration: none; }
.article-attach .att-files a:hover { border-color: #2f9c9a; background: #f6fbfb; }
.article-attach .att-ext { flex: 0 0 auto; min-width: 46px; text-align: center; font-size: 12px; font-weight: 700; color: #fff; background: #2f9c9a; border-radius: 6px; padding: 4px 6px; }
.article-attach .att-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-attach small { color: #7a8c91; }

/* Giới thiệu: 6 khối Bản sắc... giới hạn ~8 dòng, "Xem thêm" để mở rộng */
.values-box .vb-body { line-height: 1.7; position: relative; }
.values-box .vb-body.is-clamped { max-height: calc(1.7em * 8); overflow: hidden; }
.values-box .vb-body.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.6em; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }
.values-box .vb-more { display: inline-block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--aom-gold-dark); font-weight: 600; font-size: .9rem; cursor: pointer; }
.values-box .vb-more:hover { text-decoration: underline; }

/* /to-chuc: danh sách bài viết theo chuyên mục (Công khai, Văn bản) */
.tc-news-list { padding-left: 1.2rem; list-style: disc; }
.tc-news-list li { margin-bottom: 8px; }

/* Ảnh đại diện thay thế: logo Học viện trên nền màu header (cùng kích thước 120x80 của ảnh bài viết) */
.thumb-logo { width: 120px; height: 80px; flex: 0 0 120px; background-color: var(--aom-navy-light); display: flex; align-items: center; justify-content: center; }
.thumb-logo img { width: auto; height: 62px; max-width: 80%; object-fit: contain; filter: none; }

/* Ảnh đại diện mục Hoạt động (trang chủ): bo góc, đổ bóng, nổi lên khi di chuột */
.act-thumb { border-radius: 10px; box-shadow: 0 2px 8px rgba(16, 28, 58, .15); transition: transform .25s ease, box-shadow .25s ease; }
.list-item-academy:hover .act-thumb, .act-thumb:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 22px rgba(16, 28, 58, .28); }
.thumb-logo.act-thumb { overflow: hidden; }

/* Nút thu gọn / mở menu bên phải trang con Tuyển sinh: viền vàng, nền trắng */
.adm-toggle { border: 1px solid var(--aom-gold-dark); color: var(--aom-gold-dark); background: #fff; border-radius: 20px; padding: 0.25rem 0.9rem; font-size: 0.85rem; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.adm-toggle:hover, .adm-toggle:focus-visible { background: var(--aom-gold-dark); color: #fff; }

/* Trang kết quả tìm kiếm (/tim-kiem) */
.search-page-form { display: flex; gap: 0.5rem; }
.search-page-form .form-control { border-radius: 20px; border-color: var(--aom-gold-dark); }
.search-page-form .adm-toggle { padding: 0.35rem 1.2rem; white-space: nowrap; flex: 0 0 auto; min-width: 110px; }
.search-tabs { gap: 0.5rem; flex-wrap: wrap; }
.search-tabs a { display: inline-block; border: 1px solid var(--aom-gold-dark); color: var(--aom-gold-dark); background: #fff; border-radius: 20px; padding: 0.25rem 0.9rem; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.search-tabs a.active, .search-tabs a:hover { background: var(--aom-gold-dark); color: #fff; }
.search-item { padding: 1rem 0; border-bottom: 1px solid #e6e2d6; }
.search-item mark { background: #f6e7b5; padding: 0 2px; }

/* ---------- Mobile: thanh menu giữ logo + nút ba gạch trên một hàng ---------- */
@media (max-width: 991.98px) {
  .navbar-main { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .navbar-main .navbar-brand { flex: 1 1 0; min-width: 0; margin-right: 0.5rem; }
  .navbar-main .navbar-toggler { flex: 0 0 auto; }
}
@media (max-width: 575.98px) {
  .navbar-main .navbar-brand { font-size: 0.6rem; }
  .navbar-main .navbar-brand img { height: 38px; margin-right: 0.4rem !important; }
  .logo-font-en { font-size: 0.4rem; }
}

/* Khoảng cách cột g-5 (3rem) lớn hơn lề container trên điện thoại gây tràn ngang -> thu về 1.5rem */
@media (max-width: 767.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }
  .section-title, .cta-band h2, .feature-band__text h3 { --aom-heading-size: 1.5rem; font-size: 1.5rem; }
}
/* Ảnh/video/bảng trong nội dung do CMS nhập không vượt khung */
.khoa-intro img, .values-box img, .history-text img, .org-unit img, .notice-detail img { max-width: 100%; height: auto; }
.khoa-intro iframe, .article-body iframe, .org-unit iframe { max-width: 100%; }
/* Captcha form liên hệ / đặt vé */
.captcha-box { margin-bottom: 1rem; }
.captcha-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.captcha-img { max-width: 100%; height: auto; border: 1px solid #ddd; border-radius: 4px; background: #f3f1ec; cursor: pointer; min-height: 64px; }
.captcha-refresh { font-size: 1.25rem; line-height: 1; padding: .25rem .6rem; }
