/* Portfolio Section */
.portfolio-block {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.portfolio-title {
  font-family: 'Exo 2', Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #102452;
  margin: 0 0 40px;
  text-align: left;
}

.portfolio-content {
  display: grid;
  grid-template-columns: 662px 450px;
  gap: 30px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Main Image Slider */
.portfolio-main {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.portfolio-main-swiper {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 2px 4px 4px 0px #000A461A;
}

.portfolio-main-swiper .swiper-wrapper {
  width: 100% !important;
}

.portfolio-main-swiper .swiper-slide {
  width: 100% !important;
  flex-shrink: 0;
}

.portfolio-main-slide {
  position: relative;
  width: 100%;
}

.portfolio-main-image {
  width: 662px;
  height: 420px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.portfolio-main-image:hover {
  transform: scale(1.02);
}

/* Thumbnail Grid */
.portfolio-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio-thumb-swiper {
  height: 415px;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.portfolio-thumb-swiper .swiper-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-thumb-swiper .swiper-slide {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  min-height: 400px;
  align-content: start;
  justify-content: start;
  max-width: 450px;
  margin: 0 auto;
  box-sizing: border-box;
}

.portfolio-thumb-image {
  width: 141px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.portfolio-thumb-image:hover {
  border-color: #CC3917;
  transform: scale(1.05);
}

.portfolio-thumb-image.active {
  border-color: #CC3917;
  box-shadow: 0 0 0 2px rgba(204, 57, 23, 0.3);
}

.portfolio-pagination {
  display: flex;
  justify-content: center;
  margin-top: 10px;
    height: 13px;
}

.portfolio-pagination-dots {
  position: static !important;
  display: flex;
  gap: 8px;
}

.portfolio-pagination-dots .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ccc;
  opacity: 1;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.portfolio-pagination-dots .swiper-pagination-bullet-active {
  background: #102452;
}

.portfolio-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.portfolio-button {
  background: #fff;
  border-radius: 50%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: all 0.3s ease;
}

.portfolio-button:hover {
  transform: scale(1.1);
}

.portfolio-button--prev { 
  background-image: url('https://static.tildacdn.com/tild3736-3638-4063-a233-376361613131/button-prev.png'); 
}
.portfolio-button--prev:hover { 
  background-image: url('https://static.tildacdn.com/tild6139-6432-4632-a431-613062356233/button-prev-hover.png'); 
}
.portfolio-button--next { 
  background-image: url('https://static.tildacdn.com/tild3936-3665-4533-b231-653763353331/button-next.png'); 
}
.portfolio-button--next:hover { 
  background-image: url('https://static.tildacdn.com/tild6661-3766-4638-b662-346466313835/button-next-hover.png'); 
}

/* Remove default Swiper arrow pseudo-elements/text for portfolio */
.portfolio-swiper-button-prev::after,
.portfolio-swiper-button-next::after,
.swiper-rtl .portfolio-swiper-button-next::after,
.swiper-rtl .portfolio-swiper-button-prev::after {
  content: none !important;
  display: none !important;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 10px;
  font-size: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: #f0f0f0;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 10px;
  font-size: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .lightbox-prev,
  .lightbox-next {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .lightbox-prev {
    left: 5px;
  }
  
  .lightbox-next {
    right: 5px;
  }
}

@media (max-width: 1200px) {
  .portfolio-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .portfolio-main-image {
    width: 100%;
    max-width: 662px;
    height: auto;
    aspect-ratio: 662/420;
  }
  
  .portfolio-thumb-image {
    width: 100px;
    height: 90px;
    flex-shrink: 0;
  }
  
  
  .portfolio-thumb-swiper {
    height: auto;
  }
  
  .portfolio-thumb-slide {
    width: 100% !important;
    height: auto;
    min-height: 300px;
    gap: 6px;
    justify-content: center;
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .portfolio-block {
    padding: 40px 0;
    overflow-x: hidden;
  }
  
  .portfolio-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  .portfolio-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .portfolio-main-image {
    height: 300px;
    width: 100%;
    max-width: 100%;
  }
  
  .portfolio-thumb-swiper {
    height: 160px;
    overflow: visible;
  }
  
  .portfolio-thumb-swiper .swiper-wrapper {
    display: flex;
    flex-direction: row;
    height: auto;
  }
  
  .portfolio-thumb-slide {
    width: auto !important;
    height: auto !important;
    min-height: auto;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: start;
    max-width: none;
    padding: 0;
  }
  
  .portfolio-thumb-image {
    width: 80px;
    height: 70px;
    flex-shrink: 0;
  }
  
  .portfolio-pagination {
    display: flex !important;
    justify-content: center;
    margin-top: 15px;
  }
  
  .portfolio-nav {
    display: flex !important;
    justify-content: center;
    margin-top: 15px;
  }
  
  .portfolio-button {
    width: 35px !important;
    height: 35px !important;
  }
}
.container {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 10px;
}

.services-title {
	font-family: 'Exo 2', Arial, sans-serif;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  color: #102452;
  margin: 40px 0 20px;
}

/* Services Page  */
.services__container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}
.services__container .service-card .service-card__more, 
.services__container .service-card .service-card__cta {
    opacity: 1;
    pointer-events: auto;
}
.services__container .service-card__content {
    padding: 20px 20px 40px;
}

/* Main Services Slider */
.services-slider {
  position: relative;
  margin-top: 50px;
}
.services-slider__container { 
    position: relative; 
    padding-left: 230px; 
    overflow: visible; 
}
.services-slider .services-swiper {
  overflow: visible; 
  padding-bottom: 8px;
}

.services-slider .swiper-wrapper {
  align-items: stretch;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 2px 4px 4px 0px #000A461A;
  overflow: hidden;
  width: 350px; 
  height: 100%;
}

.service-card__image { display: block; position: relative; width: 100%; height: 190px; overflow: hidden; transition: height .35s ease; }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.service-card__content {
  padding: 25px;
  display: flex;
    flex-direction: column;
		font-family: 'Exo 2', Arial, sans-serif;
}

.service-card__title { margin: 0 0 10px; font-weight: 600; font-size: 22px; color: #333; }
.service-card__more { display: inline-block; color: #CC3917 !important; text-decoration: none; font-weight: 400; font-size: 18px; margin-bottom: 14px; }
.service-card__cta {
    display: inline-flex;
    width: 200px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #12365b;
    color: #fff !important;
    border: 0;
    border-radius: 10px;
    font-weight: 400;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}
.service-card__title:hover {
  text-decoration: underline;
  cursor: pointer;
}
.service-card__more:hover {
  text-decoration: underline !important;
}
.service-card__cta:hover {
  background: #CC3917;
}

.service-card { transition: transform .35s ease, box-shadow .35s ease; }
.services-swiper .swiper-slide { width: 350px; height: 290px; }
.services-swiper .swiper-slide-active {
  transform: translateY(-6px);
  box-shadow: 2px 4px 4px 0px #000A461A;
  height: 380px; /* active slide height from requirements */
}
.services-swiper .swiper-slide-active .service-card__image { height: 210px; }
.service-card .service-card__more,
.service-card .service-card__cta { opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.services-swiper .swiper-slide-active .service-card__more,
.services-swiper .swiper-slide-active .service-card__cta { opacity: 1; transform: translateY(0); pointer-events: auto; }


.services-slider__nav { position: absolute; top: 0; left: 0; width: 150px; height: auto; display: flex; gap: 12px; align-items: center; justify-content: center; z-index: 5; }

.services-button {
    background: #fff;
    border-radius: 50%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px !important;
  height: 60px !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.services-button--prev { background-image: url('https://static.tildacdn.com/tild3736-3638-4063-a233-376361613131/button-prev.png'); }
.services-button--prev:hover { background-image: url('https://static.tildacdn.com/tild6139-6432-4632-a431-613062356233/button-prev-hover.png'); }
.services-button--next { background-image: url('https://static.tildacdn.com/tild3936-3665-4533-b231-653763353331/button-next.png'); }
.services-button--next:hover { background-image: url('https://static.tildacdn.com/tild6661-3766-4638-b662-346466313835/button-next-hover.png'); }

.swiper-button-prev::after,
.swiper-button-next::after,
.swiper-rtl .swiper-button-next::after,
.swiper-rtl .swiper-button-prev::after {
  content: none !important;
  display: none !important;
}

.services-block { overflow: hidden; }
.services-block .container { position: relative; }
.services-block .services-swiper { margin-right: calc(50vw - 600px); }

@media (max-width: 1280px) {
  .services-block .services-swiper { margin-right: 24px; }
}
@media (max-width: 768px) {
    .container {
      margin: 50px auto;
      padding: 0 20px;
    }

	.services-slider__container {
		padding-left: 0;
		padding-right: 0;
	}
  .services-title { font-size: 34px; }
  .service-card { width: 43%;}
  .services-swiper .swiper-slide.service-card--primary { width: 80vw; }
	.services-slider__nav {
    position: absolute;
    top: -100px;
    right: 0;
		left: auto;
	}
}
@media only screen and (max-width: 480px) {
        .container {
          margin: 30px auto;
          padding: 0 20px;
        }
         .service-card { width: 100%; }
		.services-swiper .swiper-slide {
			width: 100%;
			height: auto;
		}
		.services-slider__nav {
			width: 90px;
		}
    .services-button {
        width: 30px !important;
        height: 30px;
		}
		
		.portfolio-block {
			padding: 20px 0;
			overflow-x: hidden;
		}
		
		.portfolio-title {
			font-size: 28px;
			margin-bottom: 20px;
		}
		
		.portfolio-main-image {
			height: 250px;
			width: 100%;
			max-width: 100%;
		}
		
		.portfolio-thumb-swiper {
			height: 130px;
		}
		
		.portfolio-thumb-image {
			width: 60px;
			height: 55px;
			flex-shrink: 0;
		}
		
		.portfolio-thumb-slide {
			gap: 6px;
		}
		
		.portfolio-pagination {
			display: flex !important;
			justify-content: center;
			margin-top: 10px;
		}
		
		.portfolio-nav {
			display: flex !important;
			justify-content: center;
			margin-top: 10px;
			        z-index: 1;
		}
		
		.portfolio-button {
			width: 30px !important;
			height: 30px !important;
		}
}

