/********** Template CSS **********/
:root {
  --primary: #1d2262; /* Ana renk */
  --primary-rgb: rgba(29, 34, 98, 1);
  --primary-hover: #2a3191;
  --secondary: #595758;
  --light: #f5f5f5; /* Açık gri/white gibi */
  --dark: #64666d; /* Koyu gri/mavi yerine */
  --highlight-blue: #2a3191;
  --soft-blue: #d0e7ff;

  --card-bg: #ffffff;
  --card-hover-bg: #f0f4ff;
}
/************************************************************/
/* Kart başlıkları için arka plan ve padding */

.top-feature .item.card h2.h4,
.top-feature .item.card h5.card-title {
  display: -webkit-box; /* kutu modeli */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* max 2 satır göster */
  overflow: hidden; /* fazlasını gizle */
  text-overflow: ellipsis; /* "..." ekle */
  white-space: normal; /* satır kırılabilsin */

  background-color: rgba(29, 34, 98, 0.1);
  color: var(--primary);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 48px; /* tüm başlık kutuları aynı hizada */
}

/* Hover ile arka plan ve renk değişimi */
.top-feature .item.card:hover h2.h4,
.top-feature .item.card:hover h5.card-title {
  background-color: var(--highlight-blue); /* Daha canlı mavi */
  color: #fff;
}

.top-feature .item.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.top-feature .item.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: var(--card-hover-bg);
}

.top-feature .item.card .card-title {
  color: var(--primary);
  font-weight: 700;
  transition: color 0.3s ease;
}

.top-feature .item.card:hover .card-title {
  color: var(--highlight-blue);
}

.top-feature .btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  transition: all 0.3s ease;
}

.top-feature .btn-outline-primary:hover {
  background-color: var(--highlight-blue);
  color: #fff;
  border-color: var(--highlight-blue);
}

/* Kart konteyneri */
.top-feature .col-lg-4 .bg-white {
  background: linear-gradient(
    135deg,
    #f5f7ff,
    #e0e7ff
  ); /* hafif degrade arka plan */
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Hover efekti */
.top-feature .col-lg-4 .bg-white:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #d0e0ff, #a8c0ff); /* hover degrade */
}

/* Başlık (h2.h4) */
.top-feature .col-lg-4 .bg-white h2.h4 {
  display: inline-block;
  background-color: rgba(29, 34, 98, 0.1);
  color: var(--primary);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 3em; /* 2 satır için sabit yükseklik */
  line-height: 1.5em; /* satır yüksekliği */
  display: flex;
  align-items: center; /* dikey ortala */
  text-align: center;
}

/* Hover başlık */
.top-feature .col-lg-4 .bg-white:hover h2.h4 {
  background-color: var(--highlight-blue);
  color: #fff;
}

/* Açıklama paragrafı */
.top-feature .col-lg-4 .bg-white p {
  color: #333;
  margin-top: 10px;
}
.top-feature .col-lg-4 .bg-white {
  background: linear-gradient(135deg, #f5f7ff, #e0e7ff);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  min-height: 160px;
}

.top-feature .col-lg-4 .bg-white:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #d0e0ff, #a8c0ff);
}

.top-feature .col-lg-4 .bg-white:hover h2.h4 {
  background-color: var(--highlight-blue);
  color: #fff;
}

@media (max-width: 991.98px) {
  /* Mobilde kartların altına boşluk */
  .top-feature .col-lg-4 {
    margin-bottom: 20px; /* istediğin değeri ayarla */
  }
}

.dealer-link {
  display: block;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.dealer-card {
  background-color: var(--soft-blue);
  transition: all 0.3s ease-in-out;
  border-radius: 12px;
}

.dealer-link:hover .dealer-card {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/************************************************************/
.highlight-blue {
  color: var(--highlight-blue);
  font-weight: 700; /* daha kalın */
}
.back-to-top {
  position: fixed;
  display: none;
  right: 20px;
  bottom: 50px;
  z-index: 99;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.languages {
  position: fixed;
  right: 20px;
  bottom: 0;
  z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
  font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
  font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
  font-weight: 500 !important;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  transition: 0.5s;
  font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
  color: var(--light);
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.navbar.sticky-top {
  top: -100px;
  transition: 0.5s;
}

.navbar .navbar-brand,
.navbar a.btn {
  height: 80px;
}

.navbar .navbar-nav .nav-link {
  margin-right: 25px;
  padding: 25px 0;
  color: var(--dark);
  /*font-size: 18px;*/
  font-weight: 600;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    border-top: 1px solid #eeeeee;
  }

  .navbar .navbar-nav .btn-search {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 3rem;
  background-color: var(--primary);
  border: 10px solid var(--primary);
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 450px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../images/bg-general-page.jpg) center center no-repeat;
  background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  font-size: 18px;
  color: var(--light);
}

/*** Top Feature ***/
@media (min-width: 991.98px) {
  .top-feature {
    position: relative;
    margin-top: -80px;
    z-index: 1;
  }
}

/*** Facts & Quote ***/
.facts,
.quote {
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
}

/*** Service ***/
.service-item {
  position: relative;
  text-align: center;
}

.service-item .service-img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: -1;
}

.service-item .service-img img {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  object-fit: cover;
  transform: scale(1.2);
  transition: 0.3s;
  z-index: -1;
}

.service-item:hover .service-img img {
  transform: scale(1);
}

.service-item .service-text {
  background: #ffffff;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.service-item:hover .service-text {
  background: rgba(15, 66, 41, 0.6);
}

.service-item .service-text h4,
.service-item .service-text p {
  transition: 0.3;
}

.service-item:hover .service-text h4 {
  color: #ffffff;
}

.service-item:hover .service-text p {
  color: var(--light);
}

.service-item .service-text .btn-square {
  width: 100px;
  height: 100px;
  background: transparent;
  transition: 0.5s;
}

.service-item:hover .service-text .btn-square {
  background: var(--light);
}

.service-item .service-text .btn {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  color: var(--dark);
  background: var(--light);
  white-space: nowrap;
  overflow: hidden;
  transition: 0.3s;
}

.service-item:hover .service-text .btn {
  width: 112px;
}

/*** Project Portfolio ***/
#portfolio-flters {
  display: inline-block;
  background: var(--light);
  padding: 10px 15px;
}

#portfolio-flters li {
  display: inline-block;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  transition: 0.5s;
  border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
  color: var(--dark);
  border-color: var(--dark);
}

.portfolio-inner {
  position: relative;
  overflow: hidden;
}

.portfolio-inner::before,
.portfolio-inner::after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(15, 66, 41, 0.6);
  transition: 0.5s;
}

.portfolio-inner::after {
  left: auto;
  right: 0;
}

.portfolio-inner:hover::before,
.portfolio-inner:hover::after {
  width: 50%;
}

.portfolio-inner .portfolio-text {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  z-index: 3;
  opacity: 0;
}

.portfolio-inner:hover .portfolio-text {
  transition-delay: 0.3s;
  opacity: 1;
}

.portfolio-inner .portfolio-text .btn {
  background: var(--light);
  color: var(--primary);
}

.portfolio-inner .portfolio-text .btn:hover {
  background: var(--primary);
  color: var(--light);
}

/*** Team ***/ /*** Enhanced Team Styles ***/
.team-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  background: #fff;
  height: 400px;
}

.team-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-item .team-img {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.team-item .team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-item:hover .team-img img {
  transform: scale(1.1);
}

.team-item .team-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 20px;
  border-radius: 0 0 15px 15px;
  transform: translateY(0);
  opacity: 1;
  transition: all 0.4s ease;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-item .team-text h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #2c3e50;
}

.team-item .team-text .position {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0;
}

.team-item .team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.9) 0%,
    rgba(0, 86, 179, 0.9) 100%
  );
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  color: white;
  text-align: center;
}

.team-item:hover .team-overlay {
  opacity: 1;
}

.team-item .team-overlay h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}

.team-item .team-overlay .position {
  font-size: 1rem;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.team-item .contact-info {
  margin-bottom: 25px;
}

.team-item .contact-info p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.team-item .contact-info i {
  width: 20px;
  text-align: center;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.team-item .team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-item .team-social .btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.team-item .team-social .btn:hover {
  background: white;
  color: var(--primary);
  transform: scale(1.1);
  border-color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .team-item {
    height: 350px;
  }

  .team-item .team-img {
    height: 250px;
  }

  .team-item .team-overlay {
    padding: 20px;
  }

  .team-item .team-overlay h4 {
    font-size: 1.2rem;
  }
}

/* Additional animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.team-item.animate {
  animation: fadeInUp 0.6s ease forwards;
}

/* Section styling */
.team-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.section-title p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}
/*** Testimonial ***/

.testimonial-carousel .owl-item img {
  width: 100px;
  height: 100px;
}

.testimonial-carousel .owl-nav {
  margin-top: 30px;
  display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin-right: 15px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--light);
  border-radius: 4px;
  font-size: 22px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  color: var(--light);
}

/*** Footer ***/
.footer {
  background-color: var(--secondary);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #fff;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
  font-size: 0.87rem;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--primary);
  box-shadow: none;
}

.copyright {
  color: var(--light);
  background: linear-gradient(
    180deg,
    rgba(29, 34, 98, 1) 0%,
    /* --primary */ rgba(42, 49, 145, 1) 100% /* --primary-hover */
  );
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}

.copyright a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease;
}

.copyright a:hover {
  color: var(--secondary); /* --dark kökü gri */
  background: transparent;
}

/*my*/

.item,
.reference {
  /*position: relative;*/
  background: #ffffff;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.item img {
  transition: 0.5s;
}

.item:hover img {
  transform: scale(1.4);
}

.item .causes-overlay,
.reference .causes-overlay {
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  opacity: 0;
  transition: 0.5s;
}

.item:hover .causes-overlay,
.reference:hover .causes-overlay {
  height: 100%;
  opacity: 1;
}

.social {
  background: var(--primary-rgb);
}

/*video*/
.video-container {
  /*height: 300px;*/
  width: 100%;
  position: relative;
}

.video-container video {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  z-index: 0;
}

/* Just styling the content of the div, the *magic* in the previous rules */
.video-container .overlay {
  z-index: 1;
  position: relative;
  background: rgba(0, 0, 0, 0.7);
}

/*** Project ***/
.project-carousel .owl-stage-outer {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.1);
}

/*** top features ***/
.border-grey {
  border: 1px solid;
  border-top: none;
  border-color: #dee2e6;
}

#topTab .active {
  background-color: white;
}
#topTab {
  background-color: #dee2e6;
}
#topTab .nav-link {
  color: #666;
}

.nav-tabs {
  border-bottom: 0px solid transparent;
}
.nav-tabs .nav-link {
  border-bottom: 0px solid transparent;
}

.nav-tabs {
  border: none;
  background: var(--soft-blue);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  padding: 8px;
  box-shadow: 0 4px 20px var(--primary-rgb);
}

.nav-tabs .nav-item {
  margin: 0 4px;
}

.nav-tabs .nav-link {
  border: 1px solid transparent;
  background: var(--highlight-blue);
  color: var(--card-bg);
  border-radius: 12px;
  padding: 20px 24px;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(29, 34, 98, 0.08);
}

/* Hover Effect */
.nav-tabs .nav-link:hover {
  background: var(--card-bg);
  color: var(--highlight-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42, 49, 145, 0.2);
}

.nav-tabs .nav-link:hover h2 {
  color: var(--highlight-blue) !important;
}

/* Active Tab */
.nav-tabs .nav-link.active {
  background: var(--card-bg);
  color: var(--highlight-blue);
  box-shadow: 0 8px 30px rgba(29, 34, 98, 0.35);
  transform: translateY(-1px);
}

.nav-tabs .nav-link.active h2 {
  color: var(--highlight-blue) !important;
}

.nav-tabs .nav-link.active span {
  color: var(--highlight-blue);
}
/* Typography */
.nav-tabs .nav-link h2 {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  color: white;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link span {
  font-size: 0.9rem;
  opacity: 0.85;
  display: block;
  color: rgb(255, 255, 255);
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-tabs {
    padding: 6px;
    border-radius: 12px;
  }

  .nav-tabs .nav-link {
    padding: 16px 12px;
    border-radius: 10px;
  }

  .nav-tabs .nav-link h2 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .nav-tabs .nav-link span {
    font-size: 0.8rem;
  }

  .nav-tabs .nav-item {
    margin: 0 2px;
  }
}

@media (max-width: 576px) {
  .nav-tabs .nav-link {
    padding: 12px 8px;
  }

  .nav-tabs .nav-link h2 {
    font-size: 0.9rem;
  }

  .nav-tabs .nav-link span {
    font-size: 0.75rem;
  }
}

.site-logo {
  height: 60px;
  width: 221px;
}

@media (max-width: 1199.98px) {
  .site-logo {
    height: 46px;
    width: 170px;
  }
}

.buttonFullscreen {
  position: absolute;
  z-index: 1000;
  right: 10px;
  top: 10px;
}

.rounded-start-pill {
  border-bottom-left-radius: 50rem !important;
  border-top-left-radius: 50rem !important;
}

.rounded-end-pill {
  border-bottom-right-radius: 50rem !important;
  border-top-right-radius: 50rem !important;
}

.bigVideo .video-container,
.modalVideo .video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.bigVideo .video-player,
.modalVideo .video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
