.modern-page {
  color: #163443;
}

.modern-page main {
  overflow: clip;
}

.modern-page main [id] {
  scroll-margin-top: 150px;
}

.page-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #176c92;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.modern-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 15px 24px;
  border-radius: 12px;
  background: #147eae;
  color: #fff;
  box-shadow: 0 8px 22px #1ba0de20;
}

.modern-page .button:hover {
  background: #10658c;
  filter: none;
  scale: 1;
}

.modern-page main a:focus-visible,
.modern-page summary:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 5px;
}

.service-hero {
  padding: 75px 0 85px;
  background: radial-gradient(ellipse at top left, #e4f5fc, transparent 60%),
    radial-gradient(ellipse at bottom right, #e9f5e5, transparent 55%), #f8fbfc;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 55px;
}

.service-hero h1 {
  margin-bottom: 24px;
  color: #163443;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.service-hero h1::after {
  content: "";
  display: block;
  width: 85px;
  height: 5px;
  margin-top: 24px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-hero .hero-content p {
  margin: 0 0 30px;
  color: #506776;
  font-size: 18px;
  line-height: 1.8;
}

.service-hero-visual {
  position: relative;
  padding: 14px 14px 0 0;
}

.service-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 35px 35px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.service-hero-visual img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 25px 50px #173f4f18;
}

.service-hero-note {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 30px);
  margin: -35px auto 0;
  padding: 20px 24px;
  border: 1px solid #e5edf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px #173f4f12;
  font-size: 14px;
  font-weight: 600;
}

.service-hero-note::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--secondary-color);
}

.modern-page .service-detail,
.modern-page .service-features-section,
.modern-page .service-process-section,
.modern-page .service-gallery-section,
.modern-page .service-cta-section,
.modern-page .clients,
.modern-page .activities,
.modern-page .faq,
.modern-page .news {
  padding: 80px 0;
}

.modern-page .service-intro,
.modern-page .service-features,
.modern-page .service-process,
.modern-page .service-gallery {
  margin-bottom: 0;
}

.modern-page .service-intro h2,
.modern-page .service-features > h3,
.modern-page .service-process > h3,
.modern-page .service-gallery > h3,
.modern-page .service-cta > h3,
.modern-page main section > .container > h2 {
  color: #163443;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.modern-page .service-intro p,
.modern-page .process-subtitle {
  color: #506776;
  line-height: 1.8;
}

.modern-page .service-features-section {
  padding-top: 0;
  background: #fff;
}

.modern-page .service-features > h3,
.modern-page .service-gallery > h3 {
  margin-bottom: 35px;
}

.modern-page .features-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 20px;
  counter-reset: feature;
}

.modern-page .feature-card {
  counter-increment: feature;
  padding: 28px 24px;
  border: 1px solid #e0ebef;
  border-radius: 20px;
  background: #f7fbfd;
}

.modern-page .feature-card::before {
  content: counter(feature, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: #1ba0de15;
  color: #176c92;
  font-weight: 700;
}

.modern-page .feature-card:nth-child(even) {
  background: #f4f9f1;
}

.modern-page .feature-card:nth-child(even)::before {
  background: #59b0541a;
  color: #3b7f37;
}

.modern-page .feature-card h4 {
  color: #163443;
  font-size: 19px;
  line-height: 1.35;
}

.modern-page .service-process-section {
  background: linear-gradient(135deg, #edf8fd, #f0f7eb);
}

.modern-page .process-subtitle {
  margin-bottom: 35px;
}

.modern-page .service-process-section .process-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.modern-page .service-process-section .step {
  padding: 28px 22px;
  border: 1px solid #e0ebef;
  border-top: 3px solid var(--primary-color);
  border-radius: 18px;
  box-shadow: none;
  animation: none;
}

.modern-page .service-process-section .step:nth-child(even) {
  border-top-color: var(--secondary-color);
}

.modern-page .service-process-section .step-number {
  display: block;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  color: #176c92;
  font-size: 32px;
  margin-bottom: 20px;
}

.modern-page .service-process-section .step h4 {
  color: #163443;
  font-size: 18px;
  line-height: 1.4;
}

.modern-page .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  max-width: 1000px;
  margin: 0 auto;
  gap: 24px;
}

.modern-page .gallery-item {
  border: 1px solid #e0ebef;
  border-radius: 22px;
  box-shadow: 0 12px 35px #1634430d;
}

.modern-page .gallery-item img {
  height: 350px;
  object-fit: contain;
  background: #f7fafb;
}

.modern-page .gallery-item:only-child {
  width: 100%;
  max-width: 850px;
  justify-self: center;
}

.modern-page .gallery-item:only-child img {
  height: auto;
  max-height: 520px;
}

.modern-page .service-cta-section {
  padding-top: 80px;
}

.modern-page .service-cta-section .service-cta {
  padding: 60px 30px;
  border-radius: 28px;
  background: radial-gradient(ellipse at top right, #59b05433, transparent 65%), #163443;
}

.modern-page .service-cta > h3 {
  color: #fff;
}

.modern-page .service-cta p {
  color: #c8dce6;
}

.home-page .hero {
  height: auto;
  min-height: 78vh;
  padding: 90px 20px 50px;
  gap: 35px;
}

.home-page .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(110deg, #f3faff26, #f5fbf00d);
}

.home-page .hero-content {
  max-width: 850px;
}

.home-page .hero h1 {
  color: #163443;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.1;
  letter-spacing: -2px;
}

.home-page .hero p {
  color: #405d6e;
  margin-bottom: 30px;
}

.home-page .hero-image {
  margin-top: 0;
  height: auto;
}

.home-page .hero-image img {
  width: 50px;
  margin-top: 0;
}

.home-page .clients {
  background: #fff;
  border-bottom: 1px solid #e6eef2;
}

.home-page .clients > .container > p,
.home-page .activities > .container > p,
.home-page .news > .container > p {
  margin-bottom: 35px;
  color: #506776;
}

.home-page .activities,
.home-page .news {
  background: #f7fafb;
}

.home-page .activities-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.home-page .activity-card,
.home-page .news-card {
  border: 1px solid #e0ebef;
  border-radius: 22px;
  box-shadow: 0 12px 35px #1634430a;
}

.home-page .activity-card:hover {
  scale: 1;
  border-color: var(--secondary-color);
  box-shadow: 0 15px 35px #16344314;
}

.home-page .activity-card h3 {
  margin: 22px 0 12px;
  padding: 0 24px;
  color: #163443;
}

.home-page .activity-card p {
  padding: 0 24px 26px;
  color: #506776;
}

.home-page .activity-image {
  height: 230px;
}

.home-page .faq {
  background: #fff;
}

.home-page .faq > .container > p {
  margin-bottom: 35px;
}

.home-page .faq-item {
  border-radius: 16px;
  border-color: #dfebee;
  box-shadow: none;
}

.home-page .faq-item[open] {
  border-color: var(--primary-color);
  background: #f4fafe;
}

.home-page .faq-item summary {
  color: #163443;
}

.home-page .news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1000px) {
  .service-hero-grid {
    gap: 30px;
  }

  .modern-page .service-process-section .process-steps,
  .home-page .activities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .service-hero {
    padding: 45px 0 55px;
  }

  .service-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  .service-hero h1 {
    font-size: clamp(36px, 7.5vw, 54px);
    letter-spacing: -1.3px;
  }

  .service-hero-visual {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }

  .service-hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .modern-page .service-detail,
  .modern-page .service-process-section,
  .modern-page .service-gallery-section,
  .modern-page .clients,
  .modern-page .activities,
  .modern-page .faq,
  .modern-page .news {
    padding: 55px 0;
  }

  .modern-page .service-features-section,
  .modern-page .service-cta-section {
    padding-bottom: 55px;
  }

  .modern-page .service-cta-section {
    padding-top: 55px;
  }

  .home-page .hero {
    min-height: 650px;
    padding: 65px 20px 40px;
  }

  .home-page .hero h1 {
    letter-spacing: -1px;
  }
}

@media (max-width: 520px) {
  .modern-page .service-process-section .process-steps,
  .home-page .activities-grid,
  .home-page .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-hero .button {
    width: 100%;
  }

  .service-hero-note {
    padding: 16px;
  }

  .modern-page .service-cta-section .service-cta {
    padding: 40px 22px;
  }

  .modern-page .gallery-item img {
    height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modern-page main *,
  .modern-page main section {
    animation: none !important;
    transition: none !important;
  }

  .modern-page main section {
    opacity: 1 !important;
    transform: none !important;
  }
}

  #turnstile-container:not([hidden]) {
    min-height: 65px;
    margin: 0 0 18px;
  }

  #turnstile-container iframe {
    max-width: 100%;
  }

.home-page .news-carousel {
  overflow: hidden;
}

.home-page .news-grid {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 32px;
  overflow: hidden;
}

.news-track {
  display: flex;
  width: max-content;
  animation: scrollClients 38s linear infinite;
  will-change: transform;
}

.news-group {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 20px;
  padding-right: 20px;
}

.news-group > .news-card {
  flex: 0 0 clamp(300px, 34vw, 440px);
  min-width: 0;
}

.news-carousel:hover .news-track,
.news-carousel:focus-within .news-track {
  animation-play-state: paused;
}

@media (max-width: 520px) {
  .news-group {
    gap: 14px;
    padding-right: 14px;
  }

  .news-group > .news-card {
    flex-basis: 82vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-track {
    animation: none;
    transform: none;
  }

  .news-group-clone {
    display: none;
  }
}

