/**
 * Güven Sigorta - Ana Sayfa Stilleri
 * @package Korenel Theme
 */

/* ==========================================================================
   COLOR VARIABLES (override)
   ========================================================================== */
:root {
  --gs-primary: var(--color-primary);
  --gs-primary-dark: var(--color-primary-dark);
  --gs-secondary: var(--color-secondary);
  --gs-secondary-dark: #008040; /* Custom or derived if not in global */
  --gs-accent: var(--color-warning); /* Mapping accent to warning or similar */
  --gs-light: var(--color-light);
  --gs-dark: var(--color-dark);
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.gs-hero-slider {
  position: relative;
}

.gs-hero-slider .carousel {
  position: relative;
}

.gs-slide {
  /* 
     Navbar approx 88px
     Stats bar approx 100px 
     Total offset: 188px
  */
  min-height: calc(100vh - 180px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.gs-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.gs-slide__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  padding: 80px 0;
}

.gs-slide__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 14px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.8s ease;
}

.gs-slide__badge i {
  color: var(--gs-accent);
}

.gs-slide__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 25px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.gs-slide__title span {
  color: var(--gs-accent);
}

.gs-slide__text {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 35px;
  line-height: 1.7;
  max-width: 550px;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.gs-slide__buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.gs-slide__btn {
  padding: 18px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
}

.gs-slide__btn--primary {
  background: #fff;
  color: var(--gs-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid #fff;
}

.gs-slide__btn--primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  color: var(--gs-primary);
  background: #fff;
  text-decoration: none !important;
}

.gs-slide__btn--outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
}

.gs-slide__btn--outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--gs-primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  text-decoration: none !important;
}

/* Carousel Controls */
.gs-hero-slider .carousel-control-prev,
.gs-hero-slider .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.gs-hero-slider .carousel-control-prev {
  left: 30px;
}

.gs-hero-slider .carousel-control-next {
  right: 30px;
}

.gs-slider-arrow {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gs-slider-arrow:hover {
  background: #fff;
}

.gs-slider-arrow i {
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
}

.gs-slider-arrow:hover i {
  color: var(--gs-primary);
}

/* Carousel Indicators */
.gs-hero-slider .carousel-indicators {
  bottom: 40px;
  gap: 12px;
  margin-bottom: 0;
}

.gs-hero-slider .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  margin: 0;
  padding: 0;
  position: relative;
}

.gs-hero-slider .carousel-indicators button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.gs-hero-slider .carousel-indicators button.active {
  width: 35px;
  border-radius: 10px;
  background-color: #fff;
  border-color: #fff;
}

.gs-hero-slider .carousel-indicators button.active::after {
  transform: translate(-50%, -50%) scale(0); /* Hide inner circle for active pill */
}

/* Slide Animations Override */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 0.8s;
  transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  z-index: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  opacity: 0;
  z-index: 0;
  transition: opacity 0s 0.8s;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Slider */
@media (max-width: 991px) {
  .gs-slide {
    min-height: 70vh;
  }

  .gs-slide__content {
    padding: 60px 0;
  }

  .gs-hero-slider .carousel-control-prev,
  .gs-hero-slider .carousel-control-next {
    display: none;
  }

  .gs-hero-slider .carousel-indicators {
    bottom: 30px;
  }
}

@media (max-width: 576px) {
  .gs-slide__title {
    font-size: 2rem;
  }

  .gs-slide__text {
    font-size: 1rem;
  }

  .gs-slide__buttons {
    flex-direction: column;
  }

  .gs-slide__btn {
    justify-content: center;
  }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.gs-services {
  padding: var(--spacing-xxl) 0;
  background: var(--gs-light);
}

.gs-section-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.gs-section-badge {
  display: inline-block;
  background: rgba(0, 102, 179, 0.1);
  color: var(--gs-primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: var(--font-sm);
  font-weight: var(--font-medium);
  margin-bottom: var(--spacing-md);
}

.gs-section-title {
  font-size: var(--font-3xl);
  font-weight: var(--font-bold);
  color: var(--gs-dark);
  margin-bottom: var(--spacing-md);
}

.gs-section-subtitle {
  font-size: var(--font-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.gs-service-card {
  background: var(--color-white);
  border-radius: 5px;
  padding: var(--spacing-xl);
  height: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.gs-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gs-primary);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.gs-service-card:hover {
  box-shadow: 0 20px 60px rgba(0, 102, 179, 0.15);
}

.gs-service-card:hover::before {
  transform: scaleX(1);
}

.gs-service-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 102, 179, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  transition: var(--transition-base);
}

.gs-service-card:hover .gs-service-icon {
  background: var(--gs-primary);
}

.gs-service-icon i {
  font-size: 30px;
  color: var(--gs-primary);
  transition: var(--transition-base);
}

.gs-service-card:hover .gs-service-icon i {
  color: var(--color-white);
}

.gs-service-title {
  font-size: var(--font-xl);
  font-weight: var(--font-semibold);
  color: var(--gs-dark);
  margin-bottom: var(--spacing-sm);
}

.gs-service-desc {
  color: var(--text-muted);
  font-size: var(--font-sm);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

a.gs-service-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  color: var(--gs-primary);
  font-weight: 600;
  text-decoration: none !important; /* Force remove underline globally */
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  background: transparent !important;
}

a.gs-service-link:hover,
a.gs-service-link:focus,
a.gs-service-link:active {
  color: var(--gs-primary-dark);
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding-left: 5px;
}

a.gs-service-link i {
  font-size: 0.9rem;
  margin-left: 0.5rem;
  display: inline-block;
}

@keyframes arrow-cycle {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  40% {
    transform: translateX(10px);
    opacity: 0;
  }
  50% {
    transform: translateX(-10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

a.gs-service-link:hover i {
  animation: arrow-cycle 0.6s ease 1 normal forwards;
}

/* ==========================================================================
   WHY US SECTION
   ========================================================================== */
.gs-why-us {
  padding: var(--spacing-xxl) 0;
  background: var(--color-white);
}

.gs-why-card {
  text-align: center;
  padding: var(--spacing-xl);
}

.gs-why-icon {
  width: 100px;
  height: 100px;
  background: var(--gs-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  box-shadow: 0 15px 40px rgba(0, 102, 179, 0.3);
}

.gs-why-icon i {
  font-size: 40px;
  color: var(--color-white);
}

.gs-why-title {
  font-size: var(--font-xl);
  font-weight: var(--font-semibold);
  color: var(--gs-dark);
  margin-bottom: var(--spacing-sm);
}

.gs-why-desc {
  color: var(--text-muted);
  font-size: var(--font-sm);
  line-height: 1.7;
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.gs-stats-bar {
  background: var(--gs-primary);
  padding: 15px 0;
  position: relative;
  z-index: 10;
  /* margin-top: -30px; removed for 100vh layout */
}

.gs-stats-bar__item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  padding: 15px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  height: 100%;
  justify-content: center;
}

.gs-stats-bar .row > div:last-child .gs-stats-bar__item {
  border-right: none;
}

.gs-stats-bar__item > i {
  font-size: 35px;
  opacity: 0.9;
}

.gs-stats-bar__number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.gs-stats-bar__label {
  font-size: 0.9rem;
  opacity: 0.9;
  display: block;
  line-height: 1.2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gs-stats-bar {
    margin-top: 0;
    padding: 15px 0;
  }

  .gs-stats-bar__item {
    border-right: none;
    padding: 20px;
    justify-content: flex-start;
  }

  .gs-stats-bar .row > div:last-child .gs-stats-bar__item {
    border-bottom: none;
  }
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.gs-testimonials {
  padding: var(--spacing-xxl) 0;
  background: var(--color-white);
}

.gs-testimonial-card {
  background: var(--gs-light);
  border-radius: 20px;
  padding: var(--spacing-xl);
  height: 100%;
  position: relative;
}

.gs-testimonial-quote {
  font-size: 50px;
  color: var(--gs-primary);
  opacity: 0.2;
  position: absolute;
  top: 20px;
  left: 30px;
  font-family: Georgia, serif;
}

.gs-testimonial-content {
  font-size: var(--font-base);
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 2;
}

.gs-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.gs-testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gs-primary);
}

.gs-testimonial-name {
  font-weight: var(--font-semibold);
  color: var(--gs-dark);
  margin: 0;
}

.gs-testimonial-role {
  color: var(--text-muted);
  font-size: var(--font-sm);
  margin: 0;
}

.gs-testimonial-rating {
  margin-top: 5px;
}

.gs-testimonial-rating i {
  color: var(--gs-accent);
  font-size: 14px;
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.gs-blog {
  padding: var(--spacing-xxl) 0;
  background: var(--gs-light);
}

.gs-slide__btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: var(--font-md);
  font-weight: var(--font-semibold);
  text-decoration: none;
  border-radius: var(--border-radius-pill);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.gs-slide__btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

.gs-slide__btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gs-slide__btn:hover::before {
  width: 100%;
}

.gs-slide__btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.gs-blog-btn {
  padding: 18px 40px;
  background: var(--gs-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  font-size: var(--font-base);
  font-weight: var(--font-semibold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-base);
  box-shadow: 0 10px 30px rgba(0, 102, 179, 0.3);
}

.gs-blog-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 102, 179, 0.4);
  color: var(--color-white);
  text-decoration: none;
}

.gs-why-card {
  padding: 2rem;
  background: #fff;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.gs-why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gs-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.gs-why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gs-why-card:hover::before {
  transform: scaleX(1);
}

.gs-blog-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  height: 100%;
}

.gs-blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.gs-blog-image {
  height: 200px;
  overflow: hidden;
}

.gs-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.gs-blog-card:hover .gs-blog-image img {
  transform: scale(1.1);
}

.gs-blog-content {
  padding: var(--spacing-lg);
}

.gs-blog-category {
  display: inline-block;
  background: rgba(0, 102, 179, 0.1);
  color: var(--gs-primary);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: var(--font-xs);
  font-weight: var(--font-medium);
  margin-bottom: var(--spacing-sm);
}

.gs-blog-category a {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: var(--transition-base) !important;
}

.gs-blog-category a:hover {
  color: var(--gs-primary);
  text-decoration: underline;
}

.gs-blog-title {
  font-size: var(--font-lg);
  font-weight: var(--font-semibold);
  color: var(--gs-dark);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.gs-blog-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

.gs-blog-title a:hover {
  color: var(--gs-primary);
}

.gs-blog-excerpt {
  color: var(--text-muted);
  font-size: var(--font-sm);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.gs-blog-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.gs-blog-meta i {
  margin-right: 5px;
  color: var(--gs-primary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .gs-hero {
    min-height: auto;
    padding: var(--spacing-xxl) 0;
  }

  .gs-hero__stats {
    flex-wrap: wrap;
    gap: var(--spacing-lg);
  }

  .gs-hero__image {
    margin-top: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .gs-hero__title {
    font-size: 2rem;
  }

  .gs-hero__buttons {
    flex-direction: column;
  }

  .gs-hero__btn {
    justify-content: center;
  }

  /* Slider Responsive Adjustments */
  .gs-slide {
    min-height: 500px; /* Reduced specific height for mobile */
    text-align: center; /* Center align for better mobile look */
  }

  .gs-slide__content {
    padding: 60px 0;
    margin: 0 auto; /* Center content container */
  }

  .gs-slide__title {
    font-size: 2.5rem; /* Smaller font on mobile */
  }

  .gs-slide__text {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .gs-slide__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .gs-slide__buttons {
    justify-content: center;
  }

  .gs-slider-arrow {
    width: 45px;
    height: 45px;
  }

  .gs-slider-arrow i {
    font-size: 16px;
  }

  /* Stats Bar Responsive */
  .gs-stats-bar {
    margin-top: 0;
    padding: 20px 0;
  }

  .gs-stats-bar__item {
    border-right: none;
    padding: 15px;
    justify-content: center; /* Center on mobile */
    text-align: center; /* Center text */
    flex-direction: column; /* Stack icon and text */
    gap: 10px;
  }

  .gs-stats-bar__item > i {
    font-size: 30px;
    margin-bottom: 5px;
  }

  /* Section Spacing & Typography */
  .gs-services,
  .gs-why-us,
  .gs-testimonials {
    padding: var(--spacing-lg) 0; /* Reduced padding */
  }

  .gs-section-title {
    font-size: 2rem; /* Smaller section title */
  }

  .gs-section-header {
    margin-bottom: var(--spacing-lg);
  }

  /* Why Us Cards */
  .gs-why-card {
    padding: var(--spacing-md);
  }

  .gs-why-icon {
    width: 80px;
    height: 80px;
  }

  .gs-why-icon i {
    font-size: 32px;
  }

  /* Adjust spacing for cards on mobile */
  .gs-service-card,
  .gs-testimonial-card {
    margin-bottom: var(--spacing-lg);
  }
}

@media (max-width: 576px) {
  .gs-slide {
    min-height: 550px;
  }

  .gs-slide__title {
    font-size: 2rem;
  }

  .gs-slide__buttons {
    flex-direction: row; /* Force side-by-side */
    gap: 10px; /* Reduced gap */
    width: 100%;
    justify-content: center;
    flex-wrap: wrap; /* Safety wrap for very small screens */
  }

  .gs-slide__btn {
    width: auto;
    padding: 12px 20px; /* Reduced horizontal padding */
    font-size: 13px;
    min-width: unset; /* Remove min-width to allow fitting */
    flex: 0 1 auto; /* Allow shrinking/growing as needed */
  }

  /* Services Section Mobile */
  .gs-service-card {
    display: grid; /* Enable grid for justify-items */
    justify-items: center; /* User requested */
    padding: 25px 20px;
    text-align: center;
  }

  .gs-service-icon {
    margin: 0 auto 20px; /* Center icon */
  }

  .gs-service-desc {
    text-align: center; /* User requested */
  }

  /* Make the link button span full width or center it */
  a.gs-service-link {
    justify-content: center;
    width: 100%;
    margin-top: 15px;
    background: rgba(0, 102, 179, 0.05) !important;
    padding: 10px;
    border-radius: 8px;
  }
}
