/* ==========================================================================
   Hanoi College Theme - Homepage Styles (Figma Design 100% Match)
   ========================================================================== */

.site-section {
  padding: 55px 0;
}

/* ==========================================================================
   1. HERO BANNER: Pure Image Container (Exact 1920x751 Ratio)
   ========================================================================== */
.site-hero-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #f8fafc;
  line-height: 0;
}

.hero-banner-link {
  display: block;
  width: 100%;
}

.hero-banner-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 751;
  display: block;
  object-fit: cover;
}

/* Khung chờ tải ảnh banner tỷ lệ 1920x751 */
.hero-banner-empty-slot {
  width: 100%;
  aspect-ratio: 1920 / 751;
  max-height: 480px;
  background: #f1f5f9;
  border-bottom: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  line-height: 1.5;
  text-align: center;
}

.slot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.slot-icon {
  font-size: 2.8rem;
  opacity: 0.6;
}

.slot-hint {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.slot-subhint {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.slot-subhint strong {
  color: var(--accent);
}

/* ==========================================================================
   2. SECTION: TIN TỨC (Figma News Layout: Exact Match)
   ========================================================================== */
.section-news-figma {
  background-color: #ffffff;
  padding: 60px 0 70px;
}

.figma-news-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 42px;
  align-items: stretch;
}

/* Cột trái: 1 Bài viết lớn nổi bật */
.news-col-featured {
  display: flex;
  flex-direction: column;
}

.featured-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-news-thumb {
  position: relative;
  aspect-ratio: 16/10;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.featured-news-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.featured-news-thumb:hover img {
  transform: scale(1.02);
}

.featured-news-title {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0;
}

.featured-news-title a {
  color: #203B72;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-news-title a:hover {
  color: #F36F21;
}

/* Cột phải: 3 bài viết danh sách */
.news-col-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}

.list-news-item {
  display: flex;
  gap: 20px;
  align-items: stretch;
  padding: 16px 0;
  border-bottom: 1px solid #cbd5e1;
  background: transparent;
}

.list-news-item:first-child {
  padding-top: 0;
}

.list-news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.list-news-thumb {
  flex: 0 0 180px;
  height: 112px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.list-news-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.list-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.list-news-thumb:hover img {
  transform: scale(1.04);
}

.list-news-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
}

.list-news-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.42;
  margin: 0;
}

.list-news-title a {
  color: #203B72;
  text-decoration: none;
  transition: color 0.2s ease;
}

.list-news-title a:hover {
  color: #F36F21;
}

.list-news-date-wrap {
  text-align: right;
  margin-top: auto;
  padding-top: 6px;
}

.list-news-date {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: #203B72;
  opacity: 0.85;
}

/* ==========================================================================
   3. SECTION: SỰ KIỆN (Exact Figma 1920x492 Section & 400x267 Cards)
   ========================================================================== */
.section-events-figma {
  background: radial-gradient(circle at 85% 30%, #006ce6 0%, #0c3e86 40%, #051c44 85%, #02122d 100%);
  color: #ffffff;
  padding: 50px 0 75px;
  position: relative;
  overflow: visible;
}

.events-container-1268 {
  max-width: 1268px;
}

.underline-orange {
  background-color: #F36F21 !important;
}

.figma-events-grid-exact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 25px;
}

.exact-event-card {
  width: 100%;
  max-width: 400px;
  position: relative;
  margin: 0 auto 35px;
}

.exact-event-card:hover {
  transform: translateY(-4px);
  transition: transform 0.25s ease;
}

.event-card-inner-link {
  display: block;
  width: 100%;
  position: relative;
  text-decoration: none;
}

.event-card-thumb {
  width: 100%;
  aspect-ratio: 400 / 267;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.event-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.exact-event-card:hover .event-card-thumb img {
  transform: scale(1.03);
}

.event-visual-bg {
  width: 100%;
  height: 100%;
}

.bg-ev-1 { background: linear-gradient(135deg, #1b4588 0%, #3069bf 100%); }
.bg-ev-2 { background: linear-gradient(135deg, #7c2d12 0%, #c2410c 100%); }
.bg-ev-3 { background: linear-gradient(135deg, #065f46 0%, #0d9488 100%); }

/* Floating White Badge (Cố định chiều cao và vị trí ngày tháng thẳng hàng ngang) */
.event-card-floating-badge {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 38px);
  height: 116px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  z-index: 5;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.exact-event-card:hover .event-card-floating-badge {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.event-badge-date {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13.5px;
  font-weight: 500;
  color: #203B72;
  margin: 0;
  display: block;
  line-height: 1.2;
  flex-shrink: 0;
}

.event-badge-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #203B72;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  text-align: center;
  transition: color 0.22s ease;
}

.exact-event-card:hover .event-badge-title {
  color: #F36F21;
}

/* ==========================================================================
   4. SECTION: CÁC CHƯƠNG TRÌNH ĐÀO TẠO (Figma 3 Disciplines + 3 Value Pillars)
   ========================================================================== */
.section-programs-figma {
  background-color: #ffffff;
  padding: 60px 0 75px;
}

.programs-container-1240 {
  max-width: 1180px;
}

/* 3 Khối ngành đào tạo phía trên - Căn giữa đối xứng từng cột */
.programs-disciplines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 45px;
}

.discipline-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 275px;
  margin: 0 auto;
}

.discipline-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.discipline-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-icon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.custom-pillar-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.discipline-title-group {
  display: flex;
  flex-direction: column;
}

.discipline-label {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: #203B72;
  line-height: 1.25;
}

.discipline-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #F36F21;
  line-height: 1.25;
  margin: 2px 0 0;
}

.discipline-majors-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0 58px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discipline-majors-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.discipline-majors-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  color: #203B72;
  font-size: 16px;
  line-height: 1.2;
}

.discipline-majors-list li a {
  color: #1e293b;
  font-weight: 500;
  transition: var(--transition);
}

.discipline-majors-list li a:hover {
  color: #F36F21;
  padding-left: 3px;
}

/* Đường phân cách ngang mỏng */
.programs-divider-line {
  width: 100%;
  height: 1px;
  background-color: #e2e8f0;
  margin: 55px 0 45px;
}

/* 3 Trụ cột giá trị màu cam phía dưới - Căn giữa 1-1 với 3 cột trên */
.programs-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.pillar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  padding: 0 4px;
}

.pillar-icon {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pillar-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #203B72;
  line-height: 1.55;
  margin: 0;
}

.pillar-line-nowrap {
  white-space: nowrap;
  display: inline-block;
}

/* ==========================================================================
   5. SECTION: TIN TUYỂN SINH (Exact Figma 570x381 Image + 3 News Articles)
   ========================================================================== */
.section-admissions-figma {
  background-color: #F5F5F5;
  padding: 60px 0 75px;
}

.admissions-container-1240 {
  max-width: 1240px;
}

.figma-admissions-grid-exact {
  display: grid;
  grid-template-columns: 570px 1fr;
  gap: 45px;
  align-items: center;
  margin-top: 35px;
}

/* Cột trái: Poster 570 x 381 px */
.admissions-poster-col {
  width: 100%;
}

.admissions-poster-wrap {
  width: 100%;
  max-width: 570px;
  aspect-ratio: 570 / 381;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.poster-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.admissions-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.admissions-poster-wrap:hover .admissions-poster-img {
  transform: scale(1.02);
}

/* Khung chờ tải ảnh Poster 570x381 */
.admissions-poster-empty-slot {
  width: 100%;
  height: 100%;
  aspect-ratio: 570 / 381;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  line-height: 1.5;
  text-align: center;
}

/* Cột phải: Danh sách Bài viết Tuyển Sinh */
.admissions-news-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exact-admission-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid #cbd5e1;
}

.exact-admission-item:first-child {
  padding-top: 0;
}

.exact-admission-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.admission-tag-icon-wrap {
  flex: 0 0 20px;
  display: flex;
  align-items: flex-start;
  margin-top: 5px;
}

.admission-list-icon-img {
  width: 20px;
  height: auto;
  max-height: 14px;
  object-fit: contain;
  display: block;
}

.admission-tag-pill {
  width: 20px;
  height: 10px;
  background-color: #F36F21;
  border-radius: 3px;
}

.admission-content-box {
  flex: 1;
}

.exact-admission-title {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
}

.exact-admission-title a {
  color: #203B72;
  transition: var(--transition);
}

.exact-admission-title a:hover {
  color: #F36F21;
}

.exact-admission-excerpt {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   6. SECTION: CÁC ĐỐI TÁC CHIẾN LƯỢC (Exact Figma 7 Logos on Pure White)
   ========================================================================== */
.section-partners-figma {
  background-color: #ffffff;
  padding: 60px 0 75px;
}

.partners-container-1240 {
  max-width: 1240px;
}

.partner-intro-text {
  max-width: 820px;
  margin: 14px auto 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  text-align: center;
}

.partners-logos-exact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-top: 45px;
  flex-wrap: wrap;
}

.partner-logo-item-exact {
  flex: 1 1 calc(14.28% - 25px);
  min-width: 115px;
  max-width: 155px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.partner-logo-item-exact:hover {
  transform: translateY(-3px);
}

.partner-logo-img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.partner-logo-item-exact:hover .partner-logo-img {
  transform: scale(1.06);
}

.partner-brand-fallback {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.brand-vincom { color: #d32f2f; }
.brand-vinpearl { color: #c2410c; }
.brand-fpt { color: #F36F21; }
.brand-cmc { color: #0284c7; }
.brand-tafe { color: #0f172a; }
.brand-kyungsung { color: #1e3a8a; }
.brand-konyang { color: #059669; }

/* ==========================================================================
   7. SECTION: HỢP TÁC DOANH NGHIỆP (Exact Figma 1920x566 Overlap Layout)
   ========================================================================== */
.section-cooperation-figma {
  background-color: #ffffff;
  padding: 60px 0 0;
  position: relative;
}

.cooperation-top-wrapper {
  max-width: 1240px;
  margin-bottom: 130px; /* Tạo khoảng thở 45px thông thoáng từ gạch chân cam đến mép trên 3 ảnh */
}

.cooperation-blue-banner {
  background: radial-gradient(circle at 85% 30%, #006ce6 0%, #0c3e86 40%, #051c44 85%, #02122d 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0 0 65px;
  color: #ffffff;
}

.cooperation-cards-container-1240 {
  max-width: 1240px;
}

.cooperation-cards-exact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  transform: translateY(-85px); /* Kéo 3 ảnh gối lên ranh giới nền trắng và xanh */
  margin-bottom: -55px;
}

.exact-coop-card {
  display: flex;
  flex-direction: column;
}

.coop-card-link-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
}

.exact-coop-thumb {
  width: 100%;
  aspect-ratio: 400 / 260;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  margin-bottom: 20px;
  background: #f8fafc;
}

.coop-img-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.exact-coop-card:hover .coop-img-element {
  transform: scale(1.03);
}

/* Khung chờ tải ảnh sạch sẽ (Không dùng màu giả lập) */
.coop-empty-img-slot {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #475569;
}

.slot-camera-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.slot-camera-text {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  color: #64748b;
}

.exact-coop-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.55;
  margin: 0;
  text-align: left;
  opacity: 0.95;
  transition: color 0.22s ease;
}

.exact-coop-card:hover .exact-coop-text {
  color: #fef08a;
}

/* ==========================================================================
   8. SECTION: HỢP TÁC QUỐC TẾ (Exact Figma 3 Articles: Thumb + Title)
   ========================================================================== */
.section-international-figma {
  background-color: #ffffff;
  padding: 60px 0 85px;
}

.international-container-1240 {
  max-width: 1240px;
}

.international-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 35px;
}

.exact-intl-card {
  display: flex;
  flex-direction: column;
}

.intl-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.intl-thumb-wrap {
  width: 100%;
  aspect-ratio: 400 / 260;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  background: #f8fafc;
}

.intl-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.exact-intl-card:hover .intl-thumb-img {
  transform: scale(1.03);
}

.intl-empty-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #475569;
}

.intl-post-title {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: #203B72;
  line-height: 1.55;
  margin: 0;
  text-align: left;
  transition: color 0.22s ease;
}

.intl-card-link:hover .intl-post-title {
  color: #F36F21;
}

.intl-post-title-placeholder {
  color: #64748b;
  font-weight: 500;
}

/* ==========================================================================
   9. SECTION: CUỘC SỐNG SINH VIÊN (Left: 3 Articles, Right: Interactive Photo Gallery)
   ========================================================================== */
.section-student-life-figma {
  background-color: #ffffff;
  padding: 60px 0 85px;
}

.student-life-container-1240 {
  max-width: 1240px;
}

.student-life-grid-exact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: stretch;
}

/* Cột Trái: 3 Bài viết - Căn đều từ đỉnh xuống đáy bằng Gallery */
.student-life-news-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.student-life-articles-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 0;
}

.student-article-item {
  padding: 16px 0;
  border-bottom: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.student-article-item:first-child {
  padding-top: 0;
}

.student-article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.student-article-link,
.student-article-placeholder {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  text-decoration: none;
  align-items: flex-start;
}

.student-article-thumb {
  width: 200px;
  height: 125px;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}

.student-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.student-article-item:hover .student-thumb-img {
  transform: scale(1.04);
}

.student-empty-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e8edf5;
  border-radius: 6px;
  color: #8fa3c4;
  padding: 8px;
  text-align: center;
  font-size: 11px;
}

.student-article-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 2px;
}

.student-article-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #203B72;
  line-height: 1.4;
  margin: 0 0 8px 0;
  transition: color 0.22s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.student-article-item:hover .student-article-title {
  color: #F36F21;
}

.student-article-excerpt {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-style: italic;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cột Phải: Interactive Gallery */
.student-life-gallery-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 627px;
}

.student-gallery-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.gallery-main-view {
  width: 100%;
  aspect-ratio: 627 / 408;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  background: #f1f5f9;
  position: relative;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.gallery-main-empty-slot {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  color: #64748b;
}

.slot-gallery-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.slot-gallery-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

.gallery-thumbnails-nav-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Nút điều hướng: Overlay 2 mép trái & phải của dải thumbnail */
.gallery-nav-btn {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26px;
  height: 100%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: #1e293b;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  z-index: 10;
}

.gallery-nav-btn.is-visible {
  display: flex;
}

.gallery-nav-btn.btn-prev {
  left: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.gallery-nav-btn.btn-next {
  right: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.gallery-nav-btn:hover {
  background: #F36F21;
  color: #ffffff;
  border-color: #F36F21;
}

.gallery-thumbnails-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  width: 100%;
  flex-wrap: nowrap;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge */
}

.gallery-thumbnails-slider::-webkit-scrollbar {
  display: none;               /* Chrome/Safari */
}

/* Thumbnail items: 4 ảnh chia đều 100% chiều rộng */
.gallery-thumb-item {
  flex: 0 0 calc((100% - 30px) / 4);
  width: calc((100% - 30px) / 4);
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #e2e8f0;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  flex-shrink: 0;
}

.gallery-thumb-item.is-active {
  border-color: #F36F21;
  box-shadow: 0 0 0 1px #F36F21;
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-thumb-item:hover img {
  transform: scale(1.06);
}

.gallery-thumb-item .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-empty-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .figma-events-grid-exact {
    gap: 20px;
  }
  
  .event-card-floating-badge {
    width: calc(100% - 24px);
    padding: 10px;
    bottom: -22px;
  }

  .cooperation-cards-exact-grid,
  .international-cards-grid {
    gap: 20px;
  }

  .student-life-grid-exact {
    gap: 25px;
  }
}

@media (max-width: 868px) {
  .figma-news-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .figma-events-grid-exact {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  
  .exact-event-card {
    max-width: 100%;
    margin-bottom: 30px;
  }
  
  .figma-admissions-grid-exact {
    grid-template-columns: 1fr;
  }
  
  .programs-disciplines-grid,
  .programs-pillars-grid {
    grid-template-columns: 1fr;
  }

  .cooperation-cards-exact-grid,
  .international-cards-grid,
  .student-life-grid-exact {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .student-article-link,
  .student-article-placeholder {
    grid-template-columns: 120px 1fr;
    gap: 12px;
  }

  .student-article-thumb {
    width: 120px;
    height: 80px;
  }

  .partners-logos-exact-row {
    justify-content: center;
    gap: 16px;
  }

  .partner-logo-item-exact {
    flex: 1 1 calc(33.33% - 16px);
    max-width: 130px;
  }
}

@media (max-width: 576px) {
  .figma-section-title {
    font-size: 1.45rem;
  }

  .figma-section-subtitle {
    font-size: 0.88rem;
    padding: 0 10px;
  }

  .hero-slide-title {
    font-size: 1.5rem;
  }

  .hero-slide-desc {
    font-size: 0.88rem;
  }

  .partner-logo-item-exact {
    flex: 1 1 calc(50% - 12px);
    max-width: 120px;
    height: 52px;
  }

  .student-article-link,
  .student-article-placeholder {
    grid-template-columns: 90px 1fr;
    gap: 10px;
  }

  .student-article-thumb {
    width: 90px;
    height: 65px;
  }

  .student-article-title {
    font-size: 13.5px;
    line-height: 1.35;
  }

  .gallery-thumb-item {
    flex: 0 0 calc((100% - 20px) / 3);
    width: calc((100% - 20px) / 3);
  }
}

@media (max-width: 420px) {
  .figma-section-title {
    font-size: 1.3rem;
  }

  .exact-admission-item {
    flex-direction: column;
    gap: 8px;
  }

  .exact-event-title a {
    font-size: 14.5px;
  }

  .gallery-thumb-item {
    flex: 0 0 calc((100% - 10px) / 2);
    width: calc((100% - 10px) / 2);
  }
}
