html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Global Typography - Content Areas */
body {
  margin-bottom: 0; /* Remove fixed margin for new footer design */
  font-family: 'Montserrat', sans-serif;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Old footer CSS removed - using new footer design at bottom of file */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

h5 {
  font-size: 1.1rem;
  font-weight: 500;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
}

/* Paragraphs and Text */
p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

/* Hero Section Typography */
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.2;
}

/* Card Typography */
.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

/* Section Titles */
.text-center h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Feature Icons Text */
.feature-icon + h5 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

/* Testimonial Typography */
.testimonial h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

.testimonial p {
  font-size: 15px;
  line-height: 1.6;
}

/* Button Typography */
.btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .text-center h2 {
    font-size: 1.85rem;
  }
  
  p {
    font-size: 15px;
  }
  
  .lead {
    font-size: 17px;
  }
}

/* Navbar Styles */
.navbar {
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.navbar-brand:hover {
  transform: scale(1.02);
  text-decoration: none;
}

/* Navbar Logo Styles */
.navbar-logo {
  width: 200px !important;
  height: auto !important;
  max-height: 160px !important;
  min-width: 200px !important;
  transition: all 0.3s ease;
  border-radius: 8px;
  object-fit: contain;
}

/* Override Bootstrap img-fluid for logo */
.navbar-logo.img-fluid {
  max-width: none !important;
  width: 200px !important;
  height: auto !important;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

/* Logo responsive breakpoints */
@media (max-width: 1200px) {
  .navbar-logo {
    width: 180px !important;
    max-height: 140px !important;
    min-width: 180px !important;
  }
}

@media (max-width: 992px) {
  .navbar-logo {
    width: 160px !important;
    max-height: 120px !important;
    min-width: 160px !important;
  }
}

@media (max-width: 768px) {
  .navbar-logo {
    width: 140px !important;
    max-height: 100px !important;
    min-width: 140px !important;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    width: 120px !important;
    max-height: 80px !important;
    min-width: 120px !important;
  }
  
  .navbar-brand span {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .navbar-logo {
    width: 100px !important;
    max-height: 70px !important;
    min-width: 100px !important;
  }
}

@media (max-width: 768px) {
  .navbar-brand span {
    display: none !important;
  }
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  margin: 0 5px;
}

.nav-link:hover {
  color: #2563eb !important;
  background-color: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.nav-link.active {
  color: #2563eb !important;
  background-color: rgba(37, 99, 235, 0.1);
}

.navbar-toggler {
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.btn-success {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(37, 99, 235, 0.3);
}

/* Button Styles */
.btn {
  border-radius: 5px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-success {
  color: #2563eb;
  border-color: #2563eb;
}

.btn-outline-success:hover {
  background-color: #2563eb;
  color: white;
}

/* Card Styles */
.card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-weight: 600;
  color: #2563eb;
}

/* Footer Styles */
.footer {
  background-color: #f8f9fa;
  padding: 2rem 0;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f1f1f1;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #2563eb;
  color: white !important;
}

/* Social Icons Large */
.social-icons-large a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #f1f1f1;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.social-icons-large a:hover {
  background-color: #2563eb;
  color: white !important;
  transform: translateY(-5px);
}

/* Map Container */
.map-container {
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
}

.map-container iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Custom Utility Classes */
.text-success {
  color: #2563eb !important;
}

.bg-success-light {
  background-color: rgba(37, 99, 235, 0.1);
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('/img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.hero-title {
  font-weight: 700;
  color: #2563eb;
}

/* Features Section */
.feature-icon {
  font-size: 1.5rem;
  color: #2563eb;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.feature-icon i {
  line-height: 1;
  vertical-align: middle;
}

/* About page - Education section alignment fix */
.card-body .d-flex.align-items-center {
  align-items: center !important;
}

.card-body .feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 0rem !important;
}

.card-body h5 {
  line-height: 1.2;
  margin: 0;
  display: flex;
  align-items: center;
}



/* Testimonials */
.testimonial {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  position: relative;
}

.testimonial-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2563eb;
}

/* Form Styles */
.form-control {
  border-radius: 5px;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
}

.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
  color: #2563eb;
  background-color: rgba(37, 99, 235, 0.1);
}

.accordion-button:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Accordion global responsive improvements */
.accordion .accordion-button {
    white-space: normal;
    line-height: 1.4;
}

.accordion .accordion-item {
    border-radius: 0.5rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .accordion .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    .accordion .accordion-body {
        font-size: 0.95rem;
    }
}

/* Gap utility for flexbox */
.gap-2 {
  gap: 0.5rem;
}

.rounded-4 {
  border-radius: 0.5rem;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  animation: none;
}

.whatsapp-button::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  background-color: #25d366;
  opacity: 0.7;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease-out;
}

/* Tanker Su Servisi Özel Stiller */
.online-badge {
  background-color: #2563eb;
  color: white;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
}

.profile-image {
  border-radius: 50%;
  border: 4px solid #2563eb;
  padding: 3px;
  background-color: white;
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.service-icon i {
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background-color: #2563eb;
  transform: translateY(-5px);
}

.service-card:hover .service-icon i {
  color: white !important;
}

.service-card:hover .service-icon svg circle {
  fill: #d4ebd7;
}

.service-card:hover .service-icon svg path,
.service-card:hover .service-icon svg circle:not(:first-child) {
  stroke-width: 3.5;
}

@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.service-icon svg {
  animation: iconPulse 2s infinite ease-in-out;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.5rem;
  color: #2563eb;
  flex-shrink: 0;
}

.cta-box {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 10px;
  padding: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-box::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 40px;
  height: 40px;
  background-color: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: #e9ecef;
  z-index: -1;
}

@media (max-width: 768px) {
  .process-step:not(:last-child)::after {
    display: none;
  }
}

/* Responsive Navbar */
@media (max-width: 992px) {
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .nav-link {
    padding: 0.5rem 1rem !important;
  }
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98) !important;
}

/* Custom Navigation Styling */
.navbar-nav .nav-link {
    font-family: 'Montserrat' !important;
    font-size: 15px !important;
    color: #555555 !important;
    font-weight: 500 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    margin-top: 72px !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        margin-top: 0 !important;
        padding: 0.75rem 1rem !important;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        align-items: flex-end !important;
    }
    
    .navbar-collapse {
        align-items: flex-end !important;
    }
}

.navbar-nav .nav-link:hover {
    color: #2563eb !important;
    background: none !important;
}

.navbar-nav .nav-link.active {
    color: #2563eb !important;
    font-weight: 600 !important;
    background: none !important;
}

/* Special WhatsApp Teklif button styling */
.navbar-nav .nav-link.btn-whatsapp-special {
    background-color: #333333 !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.5rem !important;
    margin: 0 0.5rem !important;
    transition: all 0.3s ease !important;
}

.navbar-nav .nav-link.btn-whatsapp-special:hover {
    background-color: #2563eb !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Top Header Wrapper - NEW APPROACH */
.top-header-wrapper {
    display: flex;
    width: 100%;
}

.empty-space {
    width: 33%;
    background: white;
}

.top-header-section {
    background: #1d4ed8;
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
    width: 67%;
    flex: 1;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
}

.header-slogan {
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 300;
    line-height: 30px;
    text-transform: none;
    flex: 1;
}

.header-slogan span {
    display: inline-block;
    animation: fadeInSlide 2s ease-in-out;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.social-media-links {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #666;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

/* Instagram */
.social-link .fa-instagram {
    color: #E4405F;
}

.social-link:hover .fa-instagram {
    color: white;
}

.social-link:has(.fa-instagram):hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    border-color: #E4405F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}

/* Facebook */
.social-link .fa-facebook-f,
.social-link .fa-facebook {
    color: #1877F2;
}

.social-link:hover .fa-facebook-f,
.social-link:hover .fa-facebook {
    color: white;
}

.social-link:has(.fa-facebook-f):hover,
.social-link:has(.fa-facebook):hover {
    background-color: #1877F2;
    border-color: #1877F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* Twitter */
.social-link .fa-twitter {
    color: #1DA1F2;
}

.social-link:hover .fa-twitter {
    color: white;
}

.social-link:has(.fa-twitter):hover {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

/* LinkedIn */
.social-link .fa-linkedin-in,
.social-link .fa-linkedin {
    color: #0A66C2;
}

.social-link:hover .fa-linkedin-in,
.social-link:hover .fa-linkedin {
    color: white;
}

.social-link:has(.fa-linkedin-in):hover,
.social-link:has(.fa-linkedin):hover {
    background-color: #0A66C2;
    border-color: #0A66C2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3);
}

/* YouTube */
.social-link .fa-youtube {
    color: #FF0000;
}

.social-link:hover .fa-youtube {
    color: white;
}

.social-link:has(.fa-youtube):hover {
    background-color: #FF0000;
    border-color: #FF0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* Contact Page Social Links */
.contact-info .social-link,
.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #666;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

/* Contact Page - Instagram */
.contact-info .social-link .fa-instagram,
.social-links .social-link .fa-instagram {
    color: #E4405F;
}

.contact-info .social-link:hover .fa-instagram,
.social-links .social-link:hover .fa-instagram {
    color: white;
}

.contact-info .social-link:has(.fa-instagram):hover,
.social-links .social-link:has(.fa-instagram):hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    border-color: #E4405F;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(228, 64, 95, 0.3);
    text-decoration: none;
}

/* Contact Page - Facebook */
.contact-info .social-link .fa-facebook-f,
.contact-info .social-link .fa-facebook,
.social-links .social-link .fa-facebook-f,
.social-links .social-link .fa-facebook {
    color: #1877F2;
}

.contact-info .social-link:hover .fa-facebook-f,
.contact-info .social-link:hover .fa-facebook,
.social-links .social-link:hover .fa-facebook-f,
.social-links .social-link:hover .fa-facebook {
    color: white;
}

.contact-info .social-link:has(.fa-facebook-f):hover,
.contact-info .social-link:has(.fa-facebook):hover,
.social-links .social-link:has(.fa-facebook-f):hover,
.social-links .social-link:has(.fa-facebook):hover {
    background-color: #1877F2;
    border-color: #1877F2;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.3);
    text-decoration: none;
}

/* Contact Page - Twitter */
.contact-info .social-link .fa-twitter,
.social-links .social-link .fa-twitter {
    color: #1DA1F2;
}

.contact-info .social-link:hover .fa-twitter,
.social-links .social-link:hover .fa-twitter {
    color: white;
}

.contact-info .social-link:has(.fa-twitter):hover,
.social-links .social-link:has(.fa-twitter):hover {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(29, 161, 242, 0.3);
    text-decoration: none;
}

/* Contact Page - LinkedIn */
.contact-info .social-link .fa-linkedin-in,
.contact-info .social-link .fa-linkedin,
.social-links .social-link .fa-linkedin-in,
.social-links .social-link .fa-linkedin {
    color: #0A66C2;
}

.contact-info .social-link:hover .fa-linkedin-in,
.contact-info .social-link:hover .fa-linkedin,
.social-links .social-link:hover .fa-linkedin-in,
.social-links .social-link:hover .fa-linkedin {
    color: white;
}

.contact-info .social-link:has(.fa-linkedin-in):hover,
.contact-info .social-link:has(.fa-linkedin):hover,
.social-links .social-link:has(.fa-linkedin-in):hover,
.social-links .social-link:has(.fa-linkedin):hover {
    background-color: #0A66C2;
    border-color: #0A66C2;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(10, 102, 194, 0.3);
    text-decoration: none;
}

/* Contact Page - YouTube */
.contact-info .social-link .fa-youtube,
.social-links .social-link .fa-youtube {
    color: #FF0000;
}

.contact-info .social-link:hover .fa-youtube,
.social-links .social-link:hover .fa-youtube {
    color: white;
}

.contact-info .social-link:has(.fa-youtube):hover,
.social-links .social-link:has(.fa-youtube):hover {
    background-color: #FF0000;
    border-color: #FF0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.3);
    text-decoration: none;
}

/* Fallback for older browsers that don't support :has() */
@supports not selector(:has(*)) {
    /* Instagram fallback */
    .social-link.instagram:hover {
        background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4) !important;
        border-color: #E4405F !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3) !important;
    }
    
    /* Facebook fallback */
    .social-link.facebook:hover {
        background-color: #1877F2 !important;
        border-color: #1877F2 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3) !important;
    }
    
    /* Twitter fallback */
    .social-link.twitter:hover {
        background-color: #1DA1F2 !important;
        border-color: #1DA1F2 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3) !important;
    }
    
    /* LinkedIn fallback */
    .social-link.linkedin:hover {
        background-color: #0A66C2 !important;
        border-color: #0A66C2 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(10, 102, 194, 0.3) !important;
    }
    
    /* YouTube fallback */
    .social-link.youtube:hover {
        background-color: #FF0000 !important;
        border-color: #FF0000 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
    }
}

/* Contact Page - Force Center Alignment for Card Titles */
.card-body h5.text-center {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.card-body p.text-center {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

/* Gallery Page Styles */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item .card {
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover .card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Gallery Navigation Pills */
.nav-pills .nav-link {
    color: #666;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-pills .nav-link:hover {
    background-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background-color: #2563eb !important;
    color: white !important;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Gallery Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-body img {
    border-radius: 0 0 15px 15px;
}

/* Gallery Statistics Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-body .row.text-center > div {
    animation: countUp 0.8s ease forwards;
}

.card-body .row.text-center > div:nth-child(1) { animation-delay: 0.1s; }
.card-body .row.text-center > div:nth-child(2) { animation-delay: 0.2s; }
.card-body .row.text-center > div:nth-child(3) { animation-delay: 0.3s; }
.card-body .row.text-center > div:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-img {
        height: 200px;
    }
    
    .nav-pills .nav-link {
        font-size: 0.875rem;
        padding: 0.4rem 1rem;
        margin: 0.1rem;
    }
    
    .gallery-item .card-body {
        padding: 0.75rem !important;
    }
    
    .gallery-item .card-title {
        font-size: 0.9rem;
    }
}

/* Footer Styles */
.footer {
    background-color: #f8f9fa;
    margin-top: 3rem;
}

.footer h5 {
    color: #2563eb !important;
    font-size: 1.1rem;
}

/* Google Maps iframe Stili */
.map-container {
    border: 1px solid #dee2e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.map-container iframe {
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .map-container {
        height: 250px !important;
    }
    
    .map-container iframe {
        height: 250px !important;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 220px !important;
    }
    
    .map-container iframe {
        height: 220px !important;
    }
}

.footer .text-primary {
    color: #2563eb !important;
}

.footer .text-success {
    color: #25d366 !important;
}

.footer .text-info {
    color: #17a2b8 !important;
}

.footer a:hover {
    color: #2563eb !important;
    transition: color 0.3s ease;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer .row {
        text-align: center;
    }
    
    .footer .d-flex {
        justify-content: center !important;
    }
    
    .map-container {
        height: 180px !important;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem !important;
    }
}

/* Contact Page - Green Color Override to #609a33 */
/* Text Elements */
.container .text-success {
    color: #2563eb !important;
}

/* Contact Icons */
.contact-icon .text-success {
    color: #2563eb !important;
}

/* Success Buttons */
.container .btn-success {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

.container .btn-success:hover,
.container .btn-success:focus,
.container .btn-success:active {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

/* Success Background */
.container .bg-success {
    background-color: #2563eb !important;
}

/* Contact Form Labels */
.container .form-label {
    color: #333 !important;
    font-weight: 500;
}



/* Hero Slider Section */
.hero-slider {
  height: 70vh;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
}

/* Modern viewport units to avoid scrollbar-induced overflow (supported browsers) */
@supports (width: 100dvw) {
  .hero-slider {
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
  }
}

.carousel {
  height: 100%;
  width: 100%;
}

.carousel-inner {
  height: 100%;
  width: 100%;
}

.carousel-item {
  height: 70vh;
  position: relative;
}

.slider-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1;
}

.slider-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 10;
}

.slider-content {
  position: relative;
  z-index: 10;
  color: white;
}

.slider-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.slider-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.program-card {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 0;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.program-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Header Title Loader */
.title-loading-bar {
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.3rem; /* 5px */
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.15rem;
}

.title-loading-bar.active {
  opacity: 1;
}

/* Subtitle Loader */
.subtitle-loading-bar {
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 0.3rem; /* 5px */
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.15rem;
}

.subtitle-loading-bar.active {
  opacity: 1;
}



/* Title Progress (Left to Right) */
.title-loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6, #2563eb);
  width: 0%;
  transition: width 1.5s ease;
  position: relative;
  border-radius: 0.15rem;
}

/* Subtitle Progress (Right to Left) */
.subtitle-loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb, #3b82f6);
  width: 0%;
  transition: width 1.5s ease;
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 0.15rem;
}

.title-loading-progress::after,
.subtitle-loading-progress::after {
  content: '';
  position: absolute;
  top: 0;
  right: -0.5rem; /* -8px */
  width: 1rem; /* 16px */
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 1s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-1rem); } /* -16px */
  100% { transform: translateX(1rem); } /* 16px */
}

.program-content {
  padding: 2rem 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.program-card.loaded .program-content {
  opacity: 1;
  transform: translateY(0);
}

.program-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 1rem;
}

.divider {
  width: 2px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.divider.animate-in {
  opacity: 1;
}

/* Carousel Indicators Custom Style */
.carousel-indicators {
  bottom: 30px;
  z-index: 15;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  margin: 0 8px;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
  border-color: rgba(255, 255, 255, 0.9);
}

/* Carousel Navigation Arrows */
.carousel-control-prev,
.carousel-control-next {
  width: 3rem; /* 48px - küçültüldü */
  height: 3rem; /* 48px - küçültüldü */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border-radius: 50%;
  border: 0.125rem solid rgba(37, 99, 235, 0.2); /* 2px */
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.4s ease;
  opacity: 0.9;
  z-index: 1000;
  position: absolute;
  backdrop-filter: blur(0.625rem); /* 10px */
  box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.15); /* 0 6px 16px */
}

.carousel-control-prev {
  left: 1rem; /* 16px */
}

.carousel-control-next {
  right: 1rem; /* 16px */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0.5rem 1.25rem rgba(37, 99, 235, 0.4); /* 0 8px 20px */
  border-color: rgba(37, 99, 235, 0.6);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 1.125rem; /* 18px - küçültüldü */
  height: 1.125rem; /* 18px - küçültüldü */
  background-size: 1.125rem; /* 18px */
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(224deg) brightness(104%) contrast(97%);
  transition: filter 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  filter: brightness(0) saturate(100%) invert(100%);
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3e%3cpath d='m4.646 1.646.708-.708l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Featured Images Section */
.featured-images {
  padding: 0;
}

.image-card {
  overflow: hidden;
  height: 300px;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-card:hover img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  text-align: center;
  color: white;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-card:hover .image-overlay {
  opacity: 1;
}

.overlay-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.overlay-text {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
}

/* Responsive Design for Slider */
@media (max-width: 768px) {
  .hero-slider {
    height: 60vh;
  }
  
  .carousel-item {
    height: 60vh;
  }
  
  .slider-title {
    font-size: 2rem;
  }
  
  .slider-subtitle {
    font-size: 1rem;
  }
  
  .program-card .program-content {
    padding: 1.5rem 1rem;
  }
  
  .program-title {
    font-size: 1.1rem;
  }
  
  .divider {
    width: 60px;
    height: 2px;
    margin: 1rem 0;
  }
  
  .image-card {
    height: 250px;
  }
  
  .image-overlay {
    opacity: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
  }
}

/* Responsive Design for Top Header */
@media (max-width: 768px) {
    .top-header-wrapper {
        flex-direction: column;
    }
    
    .empty-space {
        display: none;
    }
    
    .top-header-section {
        width: 100%;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .header-slogan {
        font-size: 14px;
        text-align: center;
    }
    
    .social-media-links {
        margin-left: 0;
        justify-content: center;
    }
}

/* Main Program Card Styles */
.main-program-card {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 0;
  border-radius: 0; /* Kare - radius kaldırıldı */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(0.75rem); /* 12px */
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(1.875rem); /* 30px */
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.12); /* 0 10px 30px */
  border: 0.0625rem solid rgba(255, 255, 255, 0.4); /* 1px */
  width: 34.375rem; /* 550px */
  height: 28.125rem; /* 450px */
  margin: 0 auto;
}

.main-program-card.animate-in {
  opacity: 0.9;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.main-program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.main-program-card .program-content {
  padding: 2rem 1.5rem; /* 32px 24px */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(0.9375rem); /* 15px */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.main-program-card.loaded .program-content {
  opacity: 1;
  transform: translateY(0);
}

.program-header {
  margin-bottom: 1.5rem;
}

.program-main-title {
  font-size: 1.75rem; /* Daha büyük ama dengeli */
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.program-main-title.show {
  opacity: 1;
}

.program-subtitle {
  font-size: 1rem; /* Daha büyük */
  color: #666;
  max-width: 450px; /* Daha geniş */
  margin: 0 auto;
  line-height: 1.5;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.program-subtitle.show {
  opacity: 1;
}

.sub-program-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem; /* 12px */
  padding: 1.25rem 1rem; /* 20px 16px */
  transition: all 0.3s ease;
  border: 0.0625rem solid rgba(37, 99, 235, 0.15); /* 1px */
  opacity: 0;
  transform: translateY(0.9375rem); /* 15px */
}

.sub-program-card:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-0.3125rem); /* -5px */
  box-shadow: 0 0.625rem 1.875rem rgba(37, 99, 235, 0.15); /* 0 10px 30px */
}

.program-vector-icon {
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.sub-program-card:hover .program-vector-icon {
  transform: scale(1.1);
}

.sub-program-title {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
}

.btn-program {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem; /* 8px 20px */
  border-radius: 1.25rem; /* 20px */
  font-weight: 500;
  font-size: 0.875rem; /* 14px */
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-program:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-0.125rem); /* -2px */
  box-shadow: 0 0.5rem 1.5625rem rgba(37, 99, 235, 0.3); /* 0 8px 25px */
  color: white;
}

.programs-divider {
  width: 0.125rem; /* 2px */
  height: 4rem; /* 64px */
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.3), transparent);
  border-radius: 0.0625rem; /* 1px */
}

/* Mobile First - Small devices (phones, 576px and down) */
@media (max-width: 36rem) { /* 576px */
  .main-program-card {
    width: 20rem; /* 320px */
    height: 16rem; /* 256px */
    max-width: 95vw;
  }
  
  .main-program-card .program-content {
    padding: 1rem 0.75rem; /* 16px 12px */
  }
  
  .program-main-title {
    font-size: 1.25rem; /* 20px */
  }
  
  .program-subtitle {
    font-size: 0.75rem; /* 12px */
    max-width: 18.75rem; /* 300px */
  }
  
  .sub-program-card {
    padding: 0.75rem 0.5rem; /* 12px 8px */
  }
  
  .sub-program-title {
    font-size: 0.875rem; /* 14px */
  }
  
  .programs-divider {
    width: 0.125rem; /* 2px */
    height: 0.125rem; /* 2px */
    margin: 0.5rem 0; /* 8px */
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
  }
  
  .carousel-control-prev {
    left: 0.5rem; /* 8px */
  }
  
  .carousel-control-next {
    right: 0.5rem; /* 8px */
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1rem; /* 16px */
    height: 1rem; /* 16px */
    background-size: 1rem; /* 16px */
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 36.01rem) and (max-width: 48rem) { /* 577px - 768px */
  .main-program-card {
    width: 27.5rem; /* 440px */
    height: 22.5rem; /* 360px */
    max-width: 90vw;
  }
  
  .program-main-title {
    font-size: 1.5rem; /* 24px */
  }
  
  .program-subtitle {
    font-size: 0.8rem; /* 13px */
    max-width: 20rem; /* 320px */
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 2.75rem; /* 44px */
    height: 2.75rem; /* 44px */
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 1.0625rem; /* 17px */
    height: 1.0625rem; /* 17px */
    background-size: 1.0625rem; /* 17px */
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 48.01rem) { /* 769px+ */
  .main-program-card {
    width: 34.375rem; /* 550px */
    height: 28.125rem; /* 450px */
  }
}

/* Ultra-wide screens */
@media (min-width: 75rem) { /* 1200px+ */
  .main-program-card {
    width: 34.375rem; /* 550px fixed */
    height: 28.125rem; /* 450px fixed */
  }
}

/* Landscape mobile optimization */
@media (max-width: 48rem) and (orientation: landscape) and (max-height: 37.5rem) {
  .main-program-card {
    width: 18.75rem; /* 300px */
    height: 15rem; /* 240px */
  }
  
  .program-main-title {
    font-size: 1.125rem; /* 18px */
  }
  
  .program-subtitle {
    font-size: 0.7rem; /* 11px */
  }
  
  .main-program-card .program-content {
    padding: 1rem 0.875rem; /* 16px 14px */
  }
}

/* Services Page - Card Button Alignment */
.service-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card .card-body .btn {
  margin-top: auto;
  align-self: center;
}

/* Service card content wrapper for better spacing */
.service-card .card-body > *:not(.btn) {
  flex-shrink: 0;
}

.service-card .card-body .list-unstyled {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Global Bootstrap Success Color Override to Blue */
.btn-success {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.btn-outline-success {
  color: #2563eb !important;
  border-color: #2563eb !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: white !important;
}

.text-success {
  color: #2563eb !important;
}

.bg-success {
  background-color: #2563eb !important;
}

.bg-success-light {
  background-color: rgba(37, 99, 235, 0.1) !important;
}

.border-success {
  border-color: #2563eb !important;
}

/* WhatsApp Specific Overrides - Keep Green */
a[href*="wa.me"] .btn-success,
.whatsapp-link .btn-success,
.btn-whatsapp {
  background-color: #25d366 !important;
  border-color: #25d366 !important;
}

a[href*="wa.me"] .btn-success:hover,
.whatsapp-link .btn-success:hover,
.btn-whatsapp:hover {
  background-color: #128c7e !important;
  border-color: #128c7e !important;
}

.fab.fa-whatsapp,
.fa-whatsapp {
  color: #25d366 !important;
}

/* Footer Bottom Menu Icon Text Alignment Fix - Table-Cell Approach */
.contact-meta i {
    font-size: 1rem !important; /* 16px - sayfa ile tutarlı */
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 0.5rem !important; /* ikon ile metin arası sabit */
}

.contact-meta span {
    font-size: 1rem !important; /* 16px - küçültme yok */
    line-height: 1.2 !important;
}

/* Footer contact row slight left adjustment */
.footer .contact-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1.25rem !important;
    font-size: 0 !important; /* flex içindeki whitespace etkisini kaldır */
    margin-left: 0 !important;
}

.footer .contact-meta .contact-item {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 1rem !important; /* font-size:0 reset */
}

.footer .contact-meta .contact-item {
    display: inline-flex !important;
    align-items: center !important;
}

/* Footer contact row - responsive stacking on small screens */
@media (max-width: 576px) {
  .footer .contact-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .footer .contact-meta .contact-item {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

/* Tablet breakpoint: stack footer contact row as well */
@media (max-width: 768px) {
  .footer .contact-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  .footer .contact-meta .contact-item {
    width: 100% !important;
  }
}

/* Global spacing to prevent footer overlapping previous elements */
.footer {
  margin-top: 6rem !important;
  clear: both;
}

@media (max-width: 768px) {
  .footer {
    margin-top: 4rem !important;
  }
}

@media (max-width: 576px) {
  .footer {
    margin-top: 3rem !important;
  }
}

/* Extra internal breathing room for footer content */
.footer {
  padding-top: 3rem !important;
}

@media (max-width: 768px) {
  .footer {
    padding-top: 2rem !important;
  }
}

@media (max-width: 576px) {
  .footer {
    padding-top: 1.5rem !important;
  }
}

/* Ensure safe spacing before footer across all pages */
main[role="main"] {
  padding-bottom: 1rem !important;
}

@media (max-width: 768px) {
  main[role="main"] {
    padding-bottom: 10rem !important;
  }
}

/* Hard spacer before footer to guarantee visible gap regardless of margins */
.before-footer-spacer {
  height: 20rem;
}

@media (max-width: 768px) {
  .before-footer-spacer {
    height: 18rem;
  }
}

@media (max-width: 576px) {
  .before-footer-spacer {
    height: 16rem;
  }
}

@media (max-width: 576px) {
  main[role="main"] {
    padding-bottom: 16rem !important;
  }
}

/* Responsive rem/clamp overrides for better scaling across viewports */
/* Logo scales within limits */
.navbar-logo {
  width: clamp(7.5rem, 18vw, 12.5rem) !important; /* 120–200px */
  max-height: clamp(5rem, 9vw, 10rem) !important; /* 80–160px */
  min-width: clamp(7.5rem, 18vw, 12.5rem) !important;
}

/* Social icons scale */
.social-link {
  width: clamp(2rem, 2.8vw, 2.25rem);
  height: clamp(2rem, 2.8vw, 2.25rem);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  border-width: 0.125rem;
}

.social-icons-large a {
  width: clamp(3rem, 5vw, 3.75rem);
  height: clamp(3rem, 5vw, 3.75rem);
}

/* Cards and visuals */
.card-img-top {
  height: clamp(12rem, 28vw, 12.5rem);
}

.gallery-img {
  height: clamp(12.5rem, 34vw, 15.625rem);
}

.image-card {
  height: clamp(15rem, 36vw, 18.75rem);
}

/* Feature/service icons */
.feature-icon {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
}

.service-icon {
  width: clamp(3.5rem, 8vw, 5rem);
  height: clamp(3.5rem, 8vw, 5rem);
}

.service-icon i {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.benefit-icon {
  width: clamp(2.5rem, 7vw, 3.125rem);
  height: clamp(2.5rem, 7vw, 3.125rem);
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
}

/* Testimonial avatar */
.testimonial-img {
  width: clamp(3rem, 7vw, 4.375rem);
  height: clamp(3rem, 7vw, 4.375rem);
  border-width: 0.1875rem; /* 3px */
}

/* WhatsApp floating button */
.whatsapp-button {
  width: clamp(3rem, 12vw, 3.75rem);
  height: clamp(3rem, 12vw, 3.75rem);
  font-size: clamp(1.25rem, 4vw, 1.875rem);
}

/* Map container override to avoid fixed pixel heights */
.map-container {
  height: clamp(14rem, 32vw, 18rem) !important;
}
.map-container iframe {
  height: inherit !important;
}

/* Client logos section */
.client-logos .client-logo-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0; /* kart içinde boşluk bırakma */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37,99,235,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.client-logos .client-logo-box {
  width: 100%;
  max-width: 100%; /* dış kart genişliği kadar */
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  background: transparent; /* maksimum alan için minimal görsel öğe */
  border: 0;
}

.client-logos .client-logo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0; /* iç kutuda boşluk bırakma */
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logos .brand-name {
  position: relative;
  z-index: 2;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.2px;
}

/* Logo ikonları kaldırıldı */

@media (hover: hover) {
  .client-logos .client-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37,99,235,0.08);
    transition: all .2s ease;
  }
}

/* Real client logo images inside 2:1 box */
.client-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  display: block;
}

/* Slider responsive fixed width: max 1688px including paddings (box-sizing) */
section.hero-slider {
  box-sizing: border-box;
  width: min(100vw, 120rem); /* 1920px */
  margin-left: calc(50% - min(50vw, 60rem));
  margin-right: 0; /* computed by margin-left breakout */
  padding: 0;
}

@supports (width: 100dvw) {
  section.hero-slider {
    width: min(100dvw, 120rem);
    margin-left: calc(50% - min(50dvw, 60rem));
  }
}

/* Floating contact buttons (WhatsApp + Phone) */
.floating-contact-buttons {
  position: fixed;
  right: clamp(1rem, 2vw, 1.25rem);
  bottom: max(clamp(1rem, 2vw, 1.25rem), env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 2000;
}

.floating-btn {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1.25rem; /* modern rounded-square */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* glass outer shell */
.floating-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 38%, rgba(255,255,255,0.02) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.floating-btn i {
  font-size: 1.35rem;
  line-height: 1;
  color: #fff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

/* Tooltips */
.floating-tooltip {
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.floating-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(17, 24, 39, 0.9);
}

@media (hover: hover) {
  .floating-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.28); }
  .floating-btn:hover .floating-tooltip { opacity: 1; transform: translate(-4px, -50%); }
}

.floating-btn:active { transform: translateY(-1px); }

/* Gradients */
.floating-btn--whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1CB654 50%, #128C7E 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), 0 10px 24px rgba(37, 211, 102, 0.36);
}
.floating-btn--whatsapp:hover {
  background: linear-gradient(135deg, #2ae070 0%, #1ac25b 50%, #0f7a6f 100%);
}

.floating-btn--phone {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), 0 10px 24px rgba(37, 99, 235, 0.38);
}
.floating-btn--phone:hover {
  background: linear-gradient(135deg, #4b8df7 0%, #2f74f2 50%, #1b39a0 100%);
}

@media (max-width: 576px) {
  .floating-btn { width: 3.25rem; height: 3.25rem; border-radius: 1rem; }
  .floating-btn i { font-size: 1.2rem; }
  .floating-tooltip { display: none; }
}

/* Floating button logo images */
.floating-btn img {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* remove icon-specific overrides when using <img> */
.floating-btn i { display: none; }

/* Final floating logos (clean) */
.floating-logo { position: fixed; right: 0.5rem; z-index: 2000; line-height: 0; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; }
.floating-logo--whatsapp { bottom: 7rem; right: 2.75rem; }
.floating-logo--phone    { bottom: 2rem; right: 0.375rem; }
.floating-logo img { display: block; width: 4.5rem; height: 4.5rem; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
@media (hover: hover) { .floating-logo:hover img { transform: none; } }

/* Attribute fallback (anchors without classes) */
a[href*="wa.me"][aria-label="WhatsApp"] { position: fixed !important; right: 2.75rem !important; bottom: 7rem !important; z-index: 2000 !important; line-height: 0 !important; }
a[href^="tel:+905539659939"][aria-label="Telefon"] { position: fixed !important; right: 0.375rem !important; bottom: 2rem !important; z-index: 2000 !important; line-height: 0 !important; }
a[href*="wa.me"][aria-label="WhatsApp"] img,
a[href^="tel:+905539659939"][aria-label="Telefon"] img { width: 4.5rem !important; height: 4.5rem !important; }
/* Footer overlap separation (final overrides) */
.footer, footer {
  position: relative !important;
  clear: both !important;
  margin-top: clamp(4rem, 8vw, 6rem) !important;
  padding-top: clamp(2rem, 5vw, 3rem) !important;
  z-index: 1;
  isolation: isolate;
}

/* Ensure last content block above footer has breathing room */
main[role="main"] > *:last-child {
  margin-bottom: clamp(2rem, 5vw, 3rem) !important;
}
/* Footer overlap separation - tuned smaller */
.footer, footer {
  margin-top: clamp(1rem, 3vw, 2rem) !important;
  padding-top: clamp(0.75rem, 2vw, 1.25rem) !important;
}
main[role="main"] > *:last-child {
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem) !important;
}
/* Reduce hard spacer before footer */
.before-footer-spacer { height: clamp(2rem, 6vw, 4rem) !important; }
@media (max-width: 768px) { .before-footer-spacer { height: clamp(1.5rem, 8vw, 3.5rem) !important; } }
@media (max-width: 576px) { .before-footer-spacer { height: clamp(1rem, 10vw, 3rem) !important; } }
/* Footer spacing - even smaller */
.footer, footer {
  margin-top: clamp(0.5rem, 1.5vw, 1rem) !important;
  padding-top: clamp(0.5rem, 1.2vw, 0.875rem) !important;
}
main[role="main"] > *:last-child {
  margin-bottom: clamp(0.5rem, 1.5vw, 0.875rem) !important;
}
.before-footer-spacer { height: clamp(0.5rem, 3vw, 1.5rem) !important; }
@media (max-width: 768px) { .before-footer-spacer { height: clamp(0.5rem, 4vw, 1.25rem) !important; } }
@media (max-width: 576px) { .before-footer-spacer { height: clamp(0.25rem, 5vw, 1rem) !important; } }
/* Footer spacing - minimal */
.footer, footer {
  margin-top: clamp(0.25rem, 1vw, 0.5rem) !important;
  padding-top: clamp(0.25rem, 0.8vw, 0.5rem) !important;
}
main[role="main"] > *:last-child {
  margin-bottom: clamp(0.25rem, 1vw, 0.5rem) !important;
}
.before-footer-spacer { height: clamp(0rem, 0.5vw, 0.5rem) !important; }
@media (max-width: 768px) { .before-footer-spacer { height: clamp(0rem, 1vw, 0.5rem) !important; } }
@media (max-width: 576px) { .before-footer-spacer { height: clamp(0rem, 1.5vw, 0.5rem) !important; } }
/* Page-specific tweak: add small extra bottom space for index only */
.page-index main[role="main"] > *:last-child { margin-bottom: clamp(0.75rem, 2vw, 1.25rem) !important; }
.page-index .before-footer-spacer { height: clamp(1rem, 3vw, 2rem) !important; }
/* Final position tweak: move further left and up for both logos */
.floating-logo.floating-logo--phone { right: 0.375rem !important; bottom: 2rem !important; }
.floating-logo.floating-logo--whatsapp { right: 2.75rem !important; bottom: 7rem !important; }

/* Attribute-based fallback positions */
a[href^="tel:+905539659939"][aria-label="Telefon"] { right: 2.875rem !important; bottom: 4rem !important; }
a[href*="wa.me"][aria-label="WhatsApp"] { right: 2.75rem !important; bottom: 7rem !important; }
/* Hero slider full-bleed (final margins) */
section.hero-slider,
.page-index .hero-slider {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
}
@supports (width: 100dvw) {
  section.hero-slider,
  .page-index .hero-slider {
    width: 100dvw !important;
    max-width: 100dvw !important;
    margin-left: calc(50% - 50dvw) !important;
    margin-right: calc(50% - 50dvw) !important;
  }
}
/* Hero slider full-bleed – no side gaps, no horizontal overflow (final) */
section.hero-slider,
.page-index .hero-slider {
  position: relative !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  overflow-x: hidden !important; /* prevent sub-pixel bleed */
}
@supports (width: 100dvw) {
  section.hero-slider,
  .page-index .hero-slider {
    width: 100dvw !important;
    max-width: 100dvw !important;
    margin-left: calc(50% - 50dvw) !important;
    margin-right: calc(50% - 50dvw) !important;
  }
}
/* Ensure inner parts never exceed container */
.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item { width: 100% !important; margin: 0 !important; }
/* Mobile responsive refinements */
@media (max-width: 576px) {
  /* Avoid any rounding overflow on very small screens */
  section.hero-slider,
  .page-index .hero-slider { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

  /* Floating logos: smaller and tighter positions */
  .floating-logo img { width: 3.75rem !important; height: 3.75rem !important; }
  .floating-logo--phone { right: 0.5rem !important; bottom: 0.75rem !important; }
  .floating-logo--whatsapp { right: 0.5rem !important; bottom: 4.75rem !important; }

  /* Ensure top header bars never overflow */
  .top-header-wrapper, .top-header-section, .top-bar-content { max-width: 100% !important; overflow-x: hidden !important; }
}
