:root {
  --red: #c94b6b;
  --red-dark: #a83655;
  --pink: #ffd6e6;
  --blue: #d9ecff;
  --yellow: #fff1b8;
  --purple: #e8dcff;
  --mint: #d9fff1;
  --text: #243044;
  --muted: #6e7891;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --shadow: 0 20px 50px rgba(101, 85, 143, 0.18);
  --shadow-hover: 0 28px 70px rgba(101, 85, 143, 0.28);
  --radius: 26px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--text);
  line-height: 1.4;
  background:
    radial-gradient(circle at top left, #ffe1ed 0, transparent 32%),
    radial-gradient(circle at top right, #d9ecff 0, transparent 34%),
    linear-gradient(135deg, #fff8fb 0%, #f7fbff 55%, #fff9e8 100%);
  min-height: 100vh;
}

.container {
  width: min(1120px, 90%);
  margin: auto;
}

.site-header {
  position: sticky;
  top: 18px;

  z-index: 999;

  width: min(1180px, 92%);
  margin: 0 auto;

  background: rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(22px);

  border: 1px solid rgba(255, 255, 255, 0.9);

  border-radius: 28px;

  box-shadow:
    0 20px 45px rgba(101, 85, 143, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.nav-wrapper {
  min-height: 84px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;

  transition: 0.28s ease;
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-icon {
  width: 62px;
  height: 62px;

  display: grid;
  place-items: center;

  border-radius: 22px;

  color: white;

  font-weight: 900;
  font-size: 18px;

  background:
    linear-gradient(
      145deg,
      #ff8cac,
      #c94b6b
    );

  box-shadow:
    0 18px 36px rgba(201, 75, 107, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.35);

  transition: 0.3s ease;
}

.brand:hover .brand-icon {
  transform: rotate(-6deg) scale(1.05);
}

.brand-small {
  font-size: 11px;

  color: #8a90a6;

  font-weight: 800;

  letter-spacing: 2px;

  margin-bottom: 2px;
}

.brand h1 {
  font-size: 22px;

  font-weight: 800;

  color: var(--text);

  letter-spacing: -0.4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px;

  border-radius: 999px;

  background: rgba(255,255,255,0.55);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 8px 20px rgba(101,85,143,0.08);
}

.nav-link {
  position: relative;

  border: none;

  cursor: pointer;

  padding: 13px 20px;

  border-radius: 999px;

  color: var(--text);

  font-weight: 700;

  background: transparent;

  transition: 0.28s ease;
}

.nav-link:hover {
  color: var(--red-dark);

  background: rgba(255,255,255,0.95);

  transform: translateY(-2px);
}

.nav-link.active {
  color: white;

  background:
    linear-gradient(
      145deg,
      #ff8cac,
      #c94b6b
    );

  box-shadow:
    0 14px 28px rgba(201,75,107,0.25);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  padding: 86px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: inline-block;
  color: var(--red-dark);
  background: rgba(255, 214, 230, 0.72);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 15px;
}

.hero-content h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.4;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

.hero-desc {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
  margin-bottom: 30px;
}
.hero-points {
  display: grid;
  gap: 14px;
  margin: 28px 0 34px;
  max-width: 760px;
}

.hero-point {
  position: relative;
  overflow: hidden;

  padding: 16px 20px;
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.9);

  box-shadow:
    0 14px 34px rgba(101, 85, 143, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  color: var(--text);
  font-weight: 700;
  line-height: 1.4;

  transition: 0.28s ease;
}

.hero-point::before {
  content: '';
  position: absolute;

  top: 0;
  left: 0;

  width: 6px;
  height: 100%;

  background: linear-gradient(
    180deg,
    #ff8cac,
    #c94b6b
  );
}

.hero-point:hover {
  transform: translateY(-5px) translateX(6px);

  background: rgba(255, 255, 255, 0.95);

  box-shadow:
    0 24px 50px rgba(101, 85, 143, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.read-more-btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.28s ease;
}

.primary-btn {
  padding: 15px 26px;
  color: white;
  background: linear-gradient(145deg, #ff8cac, #c94b6b);
  box-shadow: 0 18px 36px rgba(201, 75, 107, 0.28);
}

.secondary-btn {
  padding: 15px 26px;
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(101, 85, 143, 0.14);
}

.primary-btn:hover,
.secondary-btn:hover,
.read-more-btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: var(--shadow-hover);
}

.hero-visual {
  min-height: 430px;
  position: relative;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.orb-one {
  width: 240px;
  height: 240px;
  background: linear-gradient(145deg, #ffd6e6, #d9ecff);
  top: 12px;
  right: 34px;
  box-shadow: var(--shadow);
}

.orb-two {
  width: 170px;
  height: 170px;
  background: linear-gradient(145deg, #fff1b8, #d9fff1);
  bottom: 28px;
  left: 18px;
  box-shadow: var(--shadow);
}

.glass-card,
.mini-card,
.service-card,
.announcement-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.main-card {
  position: relative;
  z-index: 2;
  width: min(360px, 90%);
  padding: 34px;
  border-radius: 34px;
  transform: rotate(-2deg);
}

.card-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  font-size: 34px;
  border-radius: 26px;
  background: linear-gradient(145deg, #fff, #ffe3ed);
  box-shadow: 10px 10px 24px rgba(201, 75, 107, 0.16);
  margin-bottom: 20px;
}

.main-card h3 {
  font-size: 26px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.main-card p {
  color: var(--muted);
}

.mini-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  font-weight: 800;
}

.mini-one {
  top: 42px;
  left: 18px;
}

.mini-two {
  right: 6px;
  bottom: 58px;
}

.section {
  padding: 64px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  padding: 26px;
  border-radius: var(--radius);
  transition: 0.28s ease;
}

.service-card:hover,
.announcement-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-size: 26px;
  margin-bottom: 18px;
  box-shadow: inset 8px 8px 18px rgba(255, 255, 255, 0.5);
}

.service-icon.pink {
  background: var(--pink);
}

.service-icon.blue {
  background: var(--blue);
}

.service-icon.yellow {
  background: var(--yellow);
}

.service-icon.purple {
  background: var(--purple);
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p,
.announcement-card p {
  color: var(--muted);
}

.announcement-toolbar {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}

.announcement-toolbar input,
.announcement-toolbar select {
  width: 100%;
  border: none;
  outline: none;
  padding: 15px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(101, 85, 143, 0.12);
  color: var(--text);
  font-weight: 700;
}

.announcement-list {
  display: grid;
  gap: 20px;
}

.announcement-card {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 22px;
  padding: 24px;
  border-radius: var(--radius);
  transition: 0.28s ease;
}

.announcement-date {
  min-height: 94px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  background: linear-gradient(145deg, #ff8cac, #c94b6b);
  box-shadow: 0 14px 30px rgba(201, 75, 107, 0.25);
}

.announcement-date strong {
  display: block;
  font-size: 28px;
  line-height: 1.4;
}

.announcement-date span {
  font-size: 13px;
  font-weight: 700;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--red-dark);
  background: rgba(255, 214, 230, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.announcement-content h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.read-more-btn {
  margin-top: 16px;
  padding: 10px 18px;
  color: var(--red-dark);
  background: #fff;
  box-shadow: 0 10px 24px rgba(101, 85, 143, 0.14);
}

.site-footer {
  text-align: center;

  padding: 16px 0;

  font-size: 13px;

  color: #7b8196;

  background: rgba(255,255,255,0.55);

  backdrop-filter: blur(12px);

  border-top: 1px solid rgba(255,255,255,0.8);
}

.hidden {
  display: none;
}

@media (max-width: 920px) {
  .hero-grid,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    grid-column: 1 / -1;
  }

  .hero-visual {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .nav-wrapper,
  .announcement-toolbar {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
  }

  .nav-menu {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .announcement-card {
    grid-template-columns: 1fr;
  }

  .announcement-date {
    width: 110px;
  }

  .mini-card {
    display: none;
  }

}


/* ===== Scientific homepage redesign ===== */

.scientific-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
}

.scientific-hero::before {
  content: '';
  position: absolute;
  inset: 40px auto auto 6%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 236, 255, 0.95), transparent 70%);
  z-index: -1;
}

.scientific-hero::after {
  content: '';
  position: absolute;
  right: 4%;
  bottom: 12%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 230, 0.92), transparent 70%);
  z-index: -1;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.4;
  letter-spacing: -2.4px;
  margin-bottom: 22px;
}

.hero-title span {
  display: block;
  color: var(--red-dark);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.hero-dashboard {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.dashboard-card,
.dashboard-metric,
.dashboard-note {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 38px rgba(101, 85, 143, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: 0.28s ease;
}

.dashboard-card:hover,
.dashboard-metric:hover,
.dashboard-note:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
}

.dashboard-main {
  grid-column: 1 / -1;
  min-height: 170px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 230, 239, 0.88));
}

.dashboard-label {
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 7px;
}

.dashboard-main h3 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 7px;
}

.dashboard-badge {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 24px;
  color: white;
  font-weight: 900;
  background: linear-gradient(145deg, #ff8cac, #c94b6b);
  box-shadow: 0 16px 30px rgba(201, 75, 107, 0.28);
}

.dashboard-metric {
  padding: 24px;
  border-radius: 26px;
}

.dashboard-metric strong {
  display: block;
  color: var(--red-dark);
  font-size: 42px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.dashboard-metric span {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 26px;
}

.dashboard-note span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--blue);
  font-size: 26px;
}

.dashboard-note p {
  color: var(--text);
  font-weight: 800;
}

.mission-section {
  padding-top: 44px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mission-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: 0.28s ease;
}

.mission-card::after {
  content: '';
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 214, 230, 0.78), rgba(217, 236, 255, 0.82));
}

.mission-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-hover);
}

.mission-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: white;
  font-weight: 900;
  background: linear-gradient(145deg, #ff8cac, #c94b6b);
  box-shadow: 0 14px 28px rgba(201, 75, 107, 0.24);
}

.mission-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  font-size: 22px;
}

.mission-card p {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-weight: 650;
}

.wide-card {
  grid-column: span 2;
  min-height: 180px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(217, 255, 241, 0.72));
}

.flow-section {
  padding-top: 28px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flow-step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition: 0.28s ease;
}

.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 46px;
  right: -18px;
  width: 18px;
  height: 3px;
  background: linear-gradient(90deg, #ff8cac, #d9ecff);
}

.flow-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.flow-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  color: var(--red-dark);
  background: var(--pink);
  font-weight: 900;
  box-shadow: inset 8px 8px 18px rgba(255, 255, 255, 0.55);
}

.flow-step h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.flow-step p {
  color: var(--muted);
  font-weight: 650;
}

@media (max-width: 920px) {
  .hero-dashboard,
  .mission-grid,
  .flow-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wide-card {
    grid-column: span 2;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero-title {
    font-size: 42px;
    letter-spacing: -1.2px;
  }

  .hero-dashboard,
  .mission-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: span 1;
  }

  .dashboard-main {
    flex-direction: column;
  }
}
