/* ==========================================================================
   Quỹ Giáo Dục Đại Học Y Dược TP. Hồ Chí Minh
   Static Landing Page Stylesheet
   ========================================================================== */

:root {
  --color-navy: #051045;
  --color-navy-dark: #030b30;
  --color-ump-blue: #1c4587;
  --color-ump-blue-light: #2b5cb0;
  --color-crimson: #c0392b;
  --color-crimson-dark: #a93226;

  --color-bg: #ffffff;
  --color-surface: #f7f9fc;
  --color-surface-warm: #f8f9fa;
  --color-border: #e2e8f0;

  --color-text: #1e293b;
  --color-text-dark: #081728;
  --color-text-muted: #475569;
  --color-text-light: #64748b;

  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Oswald', 'Be Vietnam Pro', sans-serif;

  --header-height: 74px;
  --container-max: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(5, 16, 69, 0.06);
  --shadow-md: 0 8px 24px rgba(5, 16, 69, 0.09);
  --shadow-lg: 0 16px 40px rgba(5, 16, 69, 0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-ump-blue);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1, h2, h3, h4, p, ul, ol, blockquote {
  margin-top: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--color-navy);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-dark);
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-navy);
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 11px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-ump-blue);
  background-color: rgba(28, 69, 135, 0.07);
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background-color: var(--color-navy);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(5, 16, 69, 0.2);
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.header-cta-btn:hover {
  background-color: var(--color-ump-blue);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 69, 135, 0.28);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-navy-dark);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 360px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 16, 69, 0.12) 0%, rgba(5, 16, 69, 0.3) 100%);
  pointer-events: none;
}

/* ==========================================================================
   General Section Spacing & Dividers
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section-divider hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border) 15%, var(--color-border) 85%, transparent);
  margin: 0;
}

.section-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 24px;
}

/* ==========================================================================
   Section 1: Thông điệp từ Ban Giám hiệu
   ========================================================================== */
.section-message {
  background-color: var(--color-bg);
}

.message-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}

.message-portrait-col {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.portrait-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.portrait-img-wrap {
  background: #e9eff7;
}

.portrait-img {
  width: 100%;
  aspect-ratio: 464 / 552;
  object-fit: cover;
  object-position: top center;
}

.portrait-caption {
  padding: 16px 20px;
  text-align: center;
  border-top: 3px solid var(--color-ump-blue);
  background: #ffffff;
}

.portrait-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.portrait-role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.message-content-col p {
  margin-bottom: 16px;
  color: var(--color-text);
  text-align: justify;
}

.lead-paragraph {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

.sub-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-ump-blue);
  margin-top: 26px;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 4px solid var(--color-crimson);
}

.signature-block {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--color-border);
  text-align: right;
}

.signature-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 2px !important;
  text-align: right !important;
}

.signature-title {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 0 !important;
  text-align: right !important;
}

/* ==========================================================================
   Section 2: Sứ mạng - Tầm nhìn - Giá trị cốt lõi & Triết lý giáo dục
   ========================================================================== */
.section-mission {
  background-color: var(--color-surface);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.mission-diagram-img {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

.mission-text-col {
  background: #ffffff;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.text-center-desktop {
  text-align: center;
}

.philosophy-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-crimson);
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.philosophy-quote {
  margin: 0;
  padding: 20px 24px;
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-ump-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-text-dark);
  text-align: justify;
}

/* ==========================================================================
   Section 3: Tin tức (Điểm tin UMP)
   ========================================================================== */
.news-section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}

.news-section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--color-crimson);
  margin: 10px auto 0;
  border-radius: 2px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}

.diem-tin-banner {
  margin-bottom: 16px;
}

.diem-tin-img {
  width: 100%;
  max-height: 105px;
  object-fit: contain;
  object-position: left center;
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news-img-link {
  display: block;
  overflow: hidden;
}

.news-img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.news-card-featured .news-img {
  aspect-ratio: 16 / 9;
}

.news-card-side {
  margin-bottom: 22px;
}

.news-card-side .news-img {
  aspect-ratio: 16 / 8.5;
}

.news-body {
  padding: 20px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.news-title a {
  color: var(--color-text-dark);
}

.news-title a:hover {
  color: var(--color-ump-blue);
}

.news-date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.65;
}

.btn-more-news {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background-color: var(--color-navy);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), transform var(--transition);
}

.btn-more-news:hover {
  background-color: var(--color-ump-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   Section 4: Trách nhiệm xã hội
   ========================================================================== */
.section-csr {
  background-color: var(--color-surface);
}

.csr-header {
  max-width: 780px;
  margin-bottom: 36px;
}

.csr-kicker {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-crimson);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.csr-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.csr-subtitle {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  margin: 0;
}

.csr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.csr-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.csr-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.csr-img-wrap {
  overflow: hidden;
  background: #eef2f6;
}

.csr-img {
  width: 100%;
  aspect-ratio: 365 / 224;
  object-fit: cover;
}

.csr-card-body {
  padding: 20px;
  flex: 1;
}

.csr-card-body p {
  font-size: 0.94rem;
  color: var(--color-text);
  margin: 0;
  line-height: 1.68;
  text-align: justify;
}

/* ==========================================================================
   Section 5: Quỹ Giáo dục & Đăng ký hỗ trợ dự án
   ========================================================================== */
.fund-article {
  max-width: 960px;
  margin: 0 auto;
}

.fund-heading {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.4;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.fund-content p {
  margin-bottom: 16px;
  color: var(--color-text);
  text-align: justify;
}

.registration-box {
  margin-top: 36px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #f3f7fd 0%, #ffffff 100%);
  border: 1px solid #cbd8eb;
  border-left: 5px solid var(--color-ump-blue);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.registration-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.registration-cta-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.registration-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-ump-blue);
}

.registration-url {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-ump-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.registration-url:hover {
  color: var(--color-crimson);
}

.registration-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background-color: var(--color-ump-blue);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(28, 69, 135, 0.25);
  transition: background-color var(--transition), transform var(--transition);
}

.registration-btn:hover {
  background-color: var(--color-navy);
  color: #ffffff;
  transform: translateY(-1px);
}

.registration-note {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.65;
}

.registration-confirm {
  font-size: 0.95rem;
  color: var(--color-text-dark);
  margin: 0;
}

/* ==========================================================================
   Section 6: Video Giới thiệu
   ========================================================================== */
.section-video {
  padding-top: 12px;
  padding-bottom: 64px;
}

.video-wrapper {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000000;
}

.video-aspect {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.video-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy);
  color: #ffffff;
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 180px 1fr 1.25fr;
  gap: 36px;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-logo {
  width: 160px;
  height: auto;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.footer-org-vi {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-org-en {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.footer-address {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.map-embed-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #e5e7eb;
}

.map-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 230px;
  border: 0;
}

.footer-bottom {
  padding-top: 22px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #dadada;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1100px) {
  .brand-subtitle {
    display: none;
  }

  .nav-link {
    padding: 8px 8px;
    font-size: 0.85rem;
  }
}

@media (max-width: 960px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .header-cta-btn {
    width: 100%;
    padding: 12px 16px;
  }

  .message-grid,
  .mission-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .message-portrait-col {
    position: static;
    max-width: 340px;
    margin: 0 auto;
  }

  .csr-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding: 44px 0;
  }

  .hero-image-wrapper {
    height: 220px;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .section-heading,
  .fund-heading,
  .csr-title {
    font-size: 1.35rem;
  }

  .mission-text-col {
    padding: 24px 20px;
  }

  .registration-box {
    padding: 20px;
  }

  .registration-btn {
    width: 100%;
    justify-content: center;
  }

  .message-content-col p,
  .fund-content p,
  .csr-card-body p,
  .philosophy-quote {
    text-align: left;
  }
}

