body[data-page="home"] .home-news-section > .container,
body[data-page="home"] .directorSection > .container,
body[data-page="home"] .researchSection > .container {
  max-width: 1500px !important;
  margin-inline: auto !important;
  padding-left: clamp(22px, 2vw, 34px) !important;
  padding-right: clamp(22px, 2vw, 34px) !important;
}

body[data-page="home"] .hero > .container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body[data-page="home"] .partnersSection > .container {
  max-width: 1620px !important;
  margin-inline: auto !important;
  padding-left: clamp(16px, 1.7vw, 28px) !important;
  padding-right: clamp(16px, 1.7vw, 28px) !important;
}

body[data-page="home"] .hero {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body[data-page="home"] .heroGrid {
  position: relative;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  align-items: stretch !important;
}

body[data-page="home"] .slider {
  min-height: clamp(320px, 38vw, 560px);
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

body[data-page="home"] .slides,
body[data-page="home"] .slide {
  min-height: inherit;
}

body[data-page="home"] .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transform: scale(1.01);
}

body[data-page="home"] .slide.is-pan-vertical img {
  object-position: center top;
}

body[data-page="home"] .slide.active.is-pan-vertical.pan-down img {
  animation: homeHeroVerticalPanDown 5.05s ease-in-out both;
}

body[data-page="home"] .slide.active.is-pan-vertical.pan-up img {
  animation: homeHeroVerticalPanUp 5.05s ease-in-out both;
}

body[data-page="home"] .slide:not(.active) img {
  animation: none;
}

body[data-page="home"] .overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 20, 42, 0.08) 0%,
    rgba(10, 20, 42, 0.04) 42%,
    rgba(10, 20, 42, 0.28) 78%,
    rgba(10, 20, 42, 0.48) 100%
  );
}

@keyframes homeHeroVerticalPanDown {
  0% {
    object-position: center 2%;
  }
  100% {
    object-position: center 98%;
  }
}

@keyframes homeHeroVerticalPanUp {
  0% {
    object-position: center 98%;
  }
  100% {
    object-position: center 2%;
  }
}

body[data-page="home"] .captionRow {
  left: clamp(20px, 2.2vw, 34px);
  right: clamp(20px, 2.2vw, 34px);
  bottom: clamp(18px, 2vw, 30px);
  gap: 16px;
  justify-content: flex-start;
}

body[data-page="home"] .caption-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

body[data-page="home"] .caption {
  position: relative;
  display: grid;
  gap: 7px;
  max-width: min(580px, calc(100% - 170px));
  padding: 16px 22px 16px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.17);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body[data-page="home"] .caption::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

body[data-page="home"] .caption-link:hover .caption {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.2);
}

body[data-page="home"] .caption b {
  margin-bottom: 2px;
  padding-left: 16px;
  font-size: clamp(1.02rem, 1.4vw, 1.42rem);
  line-height: 1.22;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body[data-page="home"] .caption small {
  padding-left: 16px;
  font-size: clamp(0.84rem, 0.88vw, 0.96rem);
  line-height: 1.5;
  color: #5f6f8a;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body[data-page="home"] .slider .dots {
  right: clamp(18px, 2vw, 30px);
  bottom: clamp(18px, 2vw, 30px);
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 32px rgba(20, 33, 61, 0.14);
}

body[data-page="home"] .slider .dots button {
  background: rgba(20, 33, 61, 0.18);
}

body[data-page="home"] .slider .dots button.active {
  background: var(--primary);
}

body[data-page="home"] .arrows {
  opacity: 0;
  transition: opacity 0.25s ease;
}

body[data-page="home"] .arrow {
  pointer-events: none;
}

body[data-page="home"] .slider:hover .arrows,
body[data-page="home"] .slider:focus-within .arrows {
  opacity: 1;
}

body[data-page="home"] .slider:hover .arrow,
body[data-page="home"] .slider:focus-within .arrow {
  pointer-events: auto;
}

.home-news-section {
  position: relative;
  margin-top: -8px;
  padding: 30px 0 54px !important;
  background:
    radial-gradient(circle at top right, rgba(33, 68, 141, 0.08), transparent 22%),
    radial-gradient(circle at left center, rgba(33, 161, 121, 0.05), transparent 18%),
    linear-gradient(180deg, #eef4fb 0%, #f6f9fe 50%, #fcfdff 100%);
}

.home-news-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.home-news-head h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.home-news-head p {
  max-width: 640px;
  margin: 0;
  color: var(--text-light);
  line-height: 1.7;
}

.home-news-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-news-tag::before {
  content: "";
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-news-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(20, 49, 102, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.06);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.home-news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(33, 68, 141, 0.34);
  background: linear-gradient(135deg, rgba(236, 243, 255, 0.98) 0%, rgba(245, 249, 255, 0.98) 58%, rgba(238, 248, 245, 0.98) 100%);
  box-shadow: 0 22px 42px rgba(20, 33, 61, 0.16);
}

.home-news-thumb {
  width: 108px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-news-card:hover .home-news-thumb {
  transform: scale(1.04);
  box-shadow: 0 12px 24px rgba(33, 68, 141, 0.18);
}

.home-news-content {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.home-news-date {
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-news-card:hover .home-news-date {
  color: #1e57c5;
}

.home-news-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text-main);
}

.home-news-card:hover .home-news-title {
  color: #163d85;
}

.home-news-excerpt {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-card:hover .home-news-excerpt {
  color: #31466c;
}

.home-news-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.home-news-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.home-news-empty {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-light);
}

body[data-page="home"] .researchSection > .container {
  padding-left: clamp(18px, 1.7vw, 28px) !important;
  padding-right: clamp(18px, 1.7vw, 28px) !important;
}

body[data-page="home"] .researchSection .headRow,
body[data-page="home"] .partnersSection .headRow {
  margin-bottom: 24px !important;
}

body[data-page="home"] .researchGrid {
  gap: 18px !important;
  padding-top: 0 !important;
}

body[data-page="home"] .newsSection .headRow h2,
body[data-page="home"] .researchSection .headRow h2,
body[data-page="home"] .directorSection h2 {
  text-shadow: none !important;
}

body[data-page="home"] .researchSection .headRow p,
body[data-page="home"] .dirContent p {
  color: var(--text-light) !important;
  text-shadow: none !important;
}

body[data-page="home"] .directorSection > .container {
  position: relative;
  padding-top: clamp(34px, 3vw, 42px) !important;
  padding-bottom: clamp(34px, 3vw, 42px) !important;
}

body[data-page="home"] .directorSection > .container::before,
body[data-page="home"] .directorSection > .container::after {
  content: "";
  position: absolute;
  left: clamp(22px, 2vw, 34px);
  right: clamp(22px, 2vw, 34px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(33, 68, 141, 0.06) 0%,
    rgba(33, 68, 141, 0.74) 24%,
    rgba(14, 116, 144, 0.8) 50%,
    rgba(33, 68, 141, 0.74) 76%,
    rgba(33, 68, 141, 0.06) 100%
  );
}

body[data-page="home"] .directorSection > .container::before {
  top: 0;
}

body[data-page="home"] .directorSection > .container::after {
  bottom: 0;
}

body[data-page="home"] .directorCard {
  gap: clamp(28px, 4vw, 44px);
}

body[data-page="home"] .dirRole {
  color: var(--primary) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

body[data-page="home"] .directorSection h2 {
  margin: 8px 0 12px;
  color: var(--text-main) !important;
}

body[data-page="home"] .researchGrid .card {
  display: flex !important;
  flex-direction: column !important;
}

body[data-page="home"] .researchSection .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96)) !important;
  border: 1px solid rgba(20, 49, 102, 0.08) !important;
  box-shadow: 0 14px 28px rgba(20, 33, 61, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-page="home"] .researchSection .card::after {
  display: none !important;
}

body[data-page="home"] .researchSection .card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 18px 34px rgba(20, 33, 61, 0.12) !important;
}

body[data-page="home"] .researchGrid .cardBody {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  overflow: hidden !important;
}

body[data-page="home"] .researchGrid .cardBody h3 {
  min-height: 0 !important;
  margin: 0 !important;
  line-height: 1.28 !important;
  max-height: calc(1.28em * 4) !important;
  display: block !important;
  overflow: hidden !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  word-break: break-word !important;
}

body[data-page="home"] .researchGrid .researchTitleLink {
  display: block !important;
  line-height: inherit !important;
}

body[data-page="home"] .researchGrid .cardBody p {
  display: block !important;
  min-height: 0 !important;
  line-height: 1.5 !important;
  overflow: hidden !important;
  max-height: none !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  text-overflow: clip !important;
}

body[data-page="home"] .researchGrid .cardActions {
  margin-top: 0 !important;
}

body[data-page="home"] .researchSection .cardImage {
  border-bottom: 1px solid rgba(20, 49, 102, 0.08) !important;
}

body[data-page="home"] .researchGrid .large-card {
  min-width: calc((100% - 54px) / 4) !important;
  max-width: calc((100% - 54px) / 4) !important;
  width: calc((100% - 54px) / 4) !important;
}

body[data-page="home"] .partnersWrap {
  margin-top: 4px !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

@media (max-width: 1320px) {
  body[data-page="home"] .caption {
    max-width: min(520px, calc(100% - 150px));
  }
}

@media (max-width: 1200px) {
  body[data-page="home"] .researchGrid .large-card {
    min-width: calc((100% - 18px) / 2) !important;
    max-width: calc((100% - 18px) / 2) !important;
    width: calc((100% - 18px) / 2) !important;
  }
}

@media (max-width: 980px) {
  body[data-page="home"] .slider {
    min-height: clamp(280px, 46vw, 420px);
  }

  body[data-page="home"] .caption {
    max-width: min(460px, calc(100% - 108px));
  }

  .home-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-news-head {
    display: grid;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  body[data-page="home"] .hero {
    padding-bottom: 0 !important;
  }

  body[data-page="home"] .slider {
    min-height: clamp(220px, 52vw, 320px);
  }

  body[data-page="home"] .captionRow {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  body[data-page="home"] .caption {
    max-width: calc(100% - 96px);
    padding: 12px 14px;
  }

  body[data-page="home"] .caption::before {
    left: 14px;
    top: 12px;
    bottom: 12px;
  }

  body[data-page="home"] .caption b {
    padding-left: 14px;
    font-size: 1rem;
  }

  body[data-page="home"] .caption small {
    padding-left: 14px;
    font-size: 0.82rem;
  }

  body[data-page="home"] .slider .dots {
    right: 16px;
    bottom: 16px;
    padding: 8px 14px;
  }

  body[data-page="home"] .arrows {
    opacity: 1;
  }

  body[data-page="home"] .arrow {
    pointer-events: auto;
  }

  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .home-news-section {
    margin-top: -6px;
    padding: 24px 0 44px !important;
  }

  body[data-page="home"] .researchGrid .large-card {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
