﻿/*--------------------------------------------------------------
# Global Section Titles renamed to Topheader 
--------------------------------------------------------------*/
.topheader-title {
  padding-bottom: 60px;
  position: relative;
}
.topheader-title h2 {
  font-size: 24px;
  font-weight: 700;
  padding: 0;
  line-height: 1px;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}
.topheader-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 4px 10px;
}
.topheader-title p {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin: 5px 0 0 0;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Services Section changed into Agencies Section 2025
--------------------------------------------------------------*/
.agencies {
  position: relative;
}
.agencies .agencies-content .subtitle {
  display: inline-block;
  background-color: color-mix(in srgb, var(--accent-color), transparent 94%);
  color: var(--accent-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.agencies .agencies-content h2 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}
@media (max-width: 992px) {
  .agencies .agencies-content h2 {
    font-size: 32px;
  }
}
@media (max-width: 768px) {
  .agencies .agencies-content h2 {
    font-size: 28px;
  }
}
.agencies .agencies-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
}
.agencies .agencies-content .btn-consultation {
  display: inline-flex;
  align-items: center;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.agencies .agencies-content .btn-consultation span {
  margin-right: 8px;
}
.agencies .agencies-content .btn-consultation i {
  transition: transform 0.3s ease;
}
.agencies .agencies-content .btn-consultation:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 15%);
}
.agencies .agencies-content .btn-consultation:hover i {
  transform: translateX(5px);
}
.agencies .agencies-image {
  position: relative;
  height: 380px;
  display: flex;
  justify-content: flex-end;
}
.agencies .agencies-image img {
  position: relative;
  z-index: 2;
  max-height: 100%;
  object-fit: cover;
}
.agencies .agencies-image .shape-circle {
  position: absolute;
  right: -30px;
  top: -30px;
  height: 180px;
  width: 180px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  z-index: 1;
}
.agencies .agencies-image .shape-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100px;
  width: 100px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  z-index: 1;
  animation: float 5s infinite ease-in-out;
}
@media (max-width: 992px) {
  .agencies .agencies-image {
    margin-top: 30px;
    height: 300px;
    justify-content: center;
  }
}
.agencies .agencies-slider {
  position: relative;
  margin-top: 30px;
  padding-top: 30px;
  max-height: 60vh; /* limit height to 60% of viewport */
  overflow-y: auto; /* enable vertical scrolling */
  overflow-x: hidden; /* prevent horizontal scroll */
}
.agencies .agencies-slider .swiper-wrapper {
  height: auto !important;
}
.agencies .agency-card {
  width: 33%;
  background-color: var(--surface-color);
  padding: 32px;
  border-radius: 16px;
  position: relative;
  transition: all 0.4s;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.agencies .agency-card .icon-box {
  height: 70px;
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  border-radius: 50%;
  margin-bottom: 20px;
  transition: all 0.4s;
}
.agencies .agency-card .icon-box i {
  font-size: 30px;
  color: var(--contrast-color);
  transition: all 0.4s;
}
.agencies .agency-card .arrow-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  color: var(--accent-color);
  background-color: var(--surface-color);
  border-radius: 50%;
  transform: rotate(-45deg);
  position: absolute;
  right: -50px;
  top: -50px;
  transition: all 0.4s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.agencies .agency-card .content h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}
.agencies .agency-card .content h4 a {
  color: var(--heading-color);
  transition: all 0.4s;
}
.agencies .agency-card .content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  transition: all 0.4s;
}
.agencies .agency-card .content .agency-number {
  position: relative;
  padding-left: 76px;
  color: var(--accent-color);
  font-size: 18px;
  font-weight: 500;
  transition: all 0.4s;
}
.agencies .agency-card .content .agency-number::after {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  height: 1px;
  width: 70px;
  background-color: var(--accent-color);
  transition: all 0.4s;
}
.agencies .agency-card:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
}
.agencies .agency-card:hover .icon-box {
  background-color: var(--contrast-color);
}
.agencies .agency-card:hover .icon-box i {
  color: var(--accent-color);
}
.agencies .agency-card:hover .arrow-link {
  top: 16px;
  right: 16px;
  background-color: var(--contrast-color);
}
.agencies .agency-card:hover .content h4 a {
  color: var(--contrast-color);
}
.agencies .agency-card:hover .content p {
  color: var(--contrast-color);
}
.agencies .agency-card:hover .content .agency-number {
  color: var(--contrast-color);
  padding-left: 0;
}
.agencies .agency-card:hover .content .agency-number::after {
  background-color: var(--contrast-color);
  left: 30px;
}
.agencies .swiper-navigation {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}
.agencies .swiper-navigation button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  height: 56px;
  width: 56px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  font-size: 20px;
  transition: all 0.4s;
  margin-right: 10px;
}
.agencies .swiper-navigation button:last-child {
  margin-right: 0;
}
.agencies .swiper-navigation button:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 15%);
}
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
