/* Typography comes from the system stack; avoid a render-blocking webfont request. */

:root {
    --brand-blue: #3F7478;
    --brand-blue-dark: #30474E;
    --brand-blue-light: #A9C8C4;
    --brand-accent: #698B7E;
    --brand-accent-light: #34d399;
    --primary: var(--brand-blue);
    --primary-dark: var(--brand-blue-dark);
    --primary-light: var(--brand-blue-light);
    --accent: var(--brand-accent);
    --bg-primary: #F7F8F6;
    --bg-secondary: #EDF2EF;
    --bg-gradient: linear-gradient(135deg, var(--bg-primary) 0%, #EDF2EF 100%);
    --bg-overlay: rgba(255, 255, 255, 0.9);
    --text-primary: #2D3D42;
    --text-secondary: #506066;
    --text-muted: #6D7A7D;
    --text-light: #ffffff;
    --shadow-color: rgba(48, 71, 78, 0.1);
    --shadow-sm: 0 2px 4px var(--shadow-color);
    --shadow-md: 0 4px 8px var(--shadow-color), 0 2px 4px var(--shadow-color);
    --shadow-lg: 0 15px 25px var(--shadow-color), 0 5px 10px var(--shadow-color);
    --shadow-xl: 0 25px 50px var(--shadow-color), 0 10px 15px var(--shadow-color);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

.buttonebru, .basinButton {
    background-color: var(--brand-blue);
    color: var(--text-light);
    font-weight: 500;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    letter-spacing: 0.5px;
}

.buttonebru:hover, .basinButton:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}
/* Mobile Google Translate Positioning */
@media (max-width: 768px) {
  .google-translate-widget {
    text-align: right;
    margin-top: -10px; /* Adjust based on your header height */
    position: relative;
  }
    .skiptranslate.goog-te-gadget {
    margin-bottom: 20px;
}
}

.giriscontainer, .basin-text, .info-box, .medical-gallery {
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.giriscontainer, .basin-text, .maps-container {
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--brand-blue);
}

.basin-text:hover, .info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}
.images-place img {
    border-radius: 25px; /* Kenarları yumuşatır */
    overflow: hidden; /* Taşmaları önler */
}

.section-title, .iletisim h1, .page-section.anlasmali h1 {
    margin-bottom: calc(var(--space-xl) + var(--space-md));
}

.section-title:after, .iletisim h1:after, .page-section.anlasmali h1:after {
    width: 120px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--brand-blue) 100%);
    height: 4px;
}

.container {
    padding-right: var(--space-md);
    padding-left: var(--space-md);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

:root {
    /* Brand-aligned color scheme */
    --brand-blue: #3F7478;         /* Logo color */
    --primary-color: #3F7478;      /* Match logo */
    --secondary-color: #30474E;    /* Darker complementary blue */
    --tertiary-color: #698B7E;     /* Accent green */
      --accent-blue: #A9C8C4;
      --light-bg: #F8FAFC;  /* Light background */
  --tertiary-hue: 210; /* Roughly the hue of blue */
  --tertiary-saturation: 100%; /* Roughly the saturation of blue */
  --tertiary-lightness: 50%; /* Roughly the lightness of blue */

    --background-light: #F7F8F6;   /* Clean background */
    --background-alt: #EDF2EF;     /* Alternative light background */
    --background-gradient: linear-gradient(135deg, #F7F8F6 0%, #EDF2EF 100%);

    --text-dark: #2D3D42;         /* Rich dark text */
    --text-body: #506066;         /* Balanced body text */
    --text-light: #ffffff;        /* Pure white */
     --text-muted: #6D7A7D;         /* New muted text color */

  --border-color: #DCE4E1;
    --border-focus: #3F7478;       /* New focus border color */

    /* Standardized shadow system */
    --shadow-sm: 0 2px 4px rgba(48, 71, 78, 0.06);
    --shadow-md: 0 4px 8px rgba(48, 71, 78, 0.08);
    --shadow-lg: 0 8px 16px rgba(48, 71, 78, 0.12);
    --shadow-xl: 0 12px 24px rgba(48, 71, 78, 0.16);

    /* Standardized spacing system */
    --space-2xs: 0.25rem;  /* 4px */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 0.75rem;   /* 12px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */

    /* Border radius system */
    --radius-sm: 0.25rem;  /* 4px */
    --radius-md: 0.5rem;   /* 8px */
    --radius-lg: 0.75rem;  /* 12px */
    --radius-xl: 1rem;     /* 16px */
    --radius-full: 9999px; /* Full rounded (for pills, circles) */

    /* Standardized transition */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-fast: all 0.15s ease;

    /* Standardized font sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */

    --gradient-primary: linear-gradient(135deg, #F7F8F6 0%, #EDF2EF 100%);
  --gradient-accent: linear-gradient(135deg, var(--brand-blue) 0%, var(--secondary-color) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(244, 250, 255, 0.9) 0%, rgba(230, 243, 255, 0.8) 100%);
  --gradient-overlay: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(255, 255, 255, 0.85) 70%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}
/* ======= Hakkimda Section ======= */
.page-section.girisdiv {
    background-color: var(--background-light);
    padding: var(--space-lg) 0; /* Reduced padding */
    min-height: 90vh; /* Set a minimum height to fit viewport */
    display: flex;
    align-items: center;
}
.mb-4 {
    margin-bottom: 1.5rem;
}

/* Buton Konteyneri */
.button-container {
    display: flex;
    gap: 15px; /* Butonlar arası boşluk */
    margin-top: 20px;
    flex-wrap: wrap; /* Küçük ekranlarda alt alta geçmesi için */
    justify-content: center; /* Ortalamak için */
}

/* Buton Stilleri */
.buttonebru {
    display: inline-block;
    padding: 12px 25px;
    background-color: #3F7478;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px; /* Butonların aynı genişlikte olması için */
    border: 2px solid #3F7478;
     position: relative;
    overflow: hidden;
    z-index: 1;
}
.buttonebru::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: white;
    transition: width 0.3s ease;
    z-index: -1;
}

.buttonebru:hover::before {
    width: 100%;
}

.buttonebru:hover {
    background-color: transparent;
    color: #3F7478;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Mobil Uyum */
@media (max-width: 576px) {
    .button-container {
        flex-direction: column; /* Çok küçük ekranlarda alt alta */
        gap: 10px;
    }

    .buttonebru {
        width: 100%;
    }
}
    .video-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin: 2rem 0;
    }

    .video-item {
        position: relative;
        background: #000;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

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

    .lite-youtube-fallback {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        background: #000;
        color: #fff;
        text-decoration: none;
        aspect-ratio: 16/9;
        text-align: center;
    }

    .lite-youtube-fallback::before {
        content: '▶';
        display: block;
        margin-right: 0.5rem;
        color: red;
        font-size: 1.5rem;
    }

    @media (max-width: 768px) {
        .video-grid {
            grid-template-columns: 1fr;
        }
    }

.giriscontainer {
    background-color: var(--text-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg); /* Reduced padding */
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.giriscontainer h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-md); /* Reduced margin */
    text-align: center;
}

.giriscontainer p {
    font-size: var(--text-base); /* Smaller font size */
    line-height: 1.6; /* Reduced line height */
    color: var(--text-body);
    margin-bottom: var(--space-md); /* Reduced margin */
    text-align: justify;
}

.cta-button, .buttonebru, .basinButton, .info-box {
    will-change: transform;
}

.btn:hover, .info-box:hover {
    transform: translateY(-5px);
}
a:hover,
.btn:hover,
.list-group-item:hover,
.card:hover,
.accordion-button:hover {
  text-decoration: none;
}
#girishtext {
    text-align: justify;
    overflow-y: auto; /* Add scrolling for very small screens */
    flex: 1;
}

.h1ebru {
    font-size: var(--text-lg); /* Smaller font size */
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-top: var(--space-md); /* Reduced margin */
    font-style: italic;
}

.buttonebru {
    background-color: var(--brand-blue);
    color: var(--text-light);
    padding: var(--space-sm) var(--space-lg); /* Reduced padding */
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: var(--text-base);
    transition: var(--transition-base);
    border: none;
    display: block;
    margin: var(--space-md) auto 0; /* Reduced margin */
    text-align: center;
    text-decoration: none;
    width: fit-content;
}


.buttonebru:hover{
text-decoration:none;
}

.images-place {
    margin-bottom: var(--space-md); /* Reduced margin */
    max-height: 70vh; /* Control image height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.images-place img {
    max-height: 70vh; /* Limit image height */
    object-fit: contain;
}

@media (max-width: 992px) {
    .giriscontainer {
        padding: var(--space-md);
    }

    .giriscontainer h2 {
        font-size: var(--text-lg);
    }

    .giriscontainer p {
       font-size: var(--text-sm);
    }

    .h1ebru {
        font-size: var(--text-lg);
    }

    .buttonebru {
        font-size: var(--text-sm);
        padding: var(--space-sm) var(--space-lg);
    }
}

@media (max-width: 768px) {
    .page-section.girisdiv {
        padding: var(--space-md) 0;
        min-height: auto;
    }

    .giriscontainer {
        padding: var(--space-md);
    }

    .giriscontainer h2 {
        font-size: var(--text-base);
    }

    .giriscontainer p {
        font-size: var(--text-sm);
        text-align: left;
        margin-bottom: var(--space-sm);
    }

    .h1ebru {
        font-size: var(--text-base);
        margin-top: var(--space-sm);
    }

    .buttonebru {
        font-size: var(--text-base);
        padding: var(--space-sm) var(--space-lg);
        margin-top: var(--space-sm);
    }

    .images-place {
        text-align: center;
        margin-bottom: var(--space-md);
        max-height: 40vh;
    }

    .images-place img {
        max-height: 40vh;
    }

    /* Improve mobile layout by stacking properly */
    .row.align-items-center {
        flex-direction: column-reverse;
    }

    .col-md-6.col-12 {
        width: 100%;
        max-width: 100%;
    }

    /* Make sure text area appears first on mobile */
    .order-md-2.order-1 {
        order: 1;
    }

    .order-md-1.order-2 {
        order: 2;
    }
}

@media (max-width: 576px) {
    #girishtext {
        max-height: 50vh;
    }

    .giriscontainer p {
        font-size: var(--text-xs);
        line-height: 1.5;
    }
}
/* ======= Muayenehane Section ======= */

.muayenehane-section {
  background-color: var(--text-light);
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmIj48L3JlY3Q+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNlNmYzZmYiPjwvcmVjdD4KPC9zdmc+');
  background-attachment: fixed;
  padding: var(--space-2xl) 0; /* Padding azaltıldı */
  position: relative;
  overflow: hidden;
}

.medical-gallery {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}


.swiper-wrapper {
  align-items: center;
}

.swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.medical-gallery {
    height: 500px; /* Add fixed height */
}

.swiper {
    width: 80%;
    height: 100%;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Add to image containers */
.image-container {
    height: 400px;
    width: 100%;
}

.gallery-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.image-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F7F8F6;
}

.gallery-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}
.image-container.cover-image .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-container.contain-image .gallery-image {
  object-fit: contain;
  width: auto; /* Let image dictate width */
  height: auto; /* Let image dictate height */
  max-width: 100%; /* Ensure it doesn't overflow container */
  max-height: 80vh; /* Prevent overly tall images */
}
.image-container.contain-image {
  background-color: #F7F8F6;
  padding: 15px; /* Add padding around contained images */
  max-width: 800px; /* Set maximum width for contained images */
  height: auto; /* Remove fixed height */
}


.image-container.cover-image .gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-container:hover .gallery-image {
  transform: scale(1.02);
}

.image-overlay {
      background: rgba(255, 255, 255, 0.85);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
 color: white;
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg); /* Padding azaltıldı */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

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

.overlay-content {
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.image-container:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content h3 {
    color: var(--brand-blue);
    font-size: calc(var(--text-xl) + 0.125rem); /* Slightly larger font size */
    margin-bottom: var(--space-xs);
    letter-spacing: 0.5px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3); /* Subtle shadow for prominence */
    position: relative;
    padding-bottom: 8px;
}
.overlay-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;

  background-color: var(--brand-blue); /* Or use a light color like #58CCF6 */
  border-radius: 3px;
}

@media (max-width: 768px) {
    .cta-button, .channel-button {
        animation: none !important;
        transform: none !important;
        transition: all 0.2s ease;
    }

    .cta-button:active, .channel-button:active {
        transform: scale(0.97) !important;
        opacity: 0.9;
    }
}
.overlay-content p {
    color: var(--text-dark);
    font-size: calc(var(--text-base) + 0.125rem); /* Slightly larger font size */
    margin: 0;
    opacity: 1;
    font-weight: 500;
    max-width: 90%;
    line-height: 1.4;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  background-color: var(--brand-blue);
  color: white;
  opacity: 0.9;
  padding: var(--space-sm);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  width: 40px; /* Boyut azaltıldı */
  height: 40px; /* Boyut azaltıldı */
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: white;
  border: 2px solid var(--brand-blue);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: var(--text-base) !important; /* Boyut azaltıldı */
  font-weight: 700;
  color: var(--text-light);
  transition: var(--transition-base);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: var(--brand-blue);
}

.swiper-button-next:active,
.swiper-button-prev:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

/* Swiper Pagination */
.swiper-pagination {
  bottom: var(--space-sm); /* Aşağıya kaydırıldı */
}

.container-fluid .row.justify-content-center {
    max-width: 1400px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .info-box.h-100 {
        height: calc(100% - 1rem);
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .image-overlay {
    padding: var(--space-md);
  }

  .overlay-content h3 {
    font-size: var(--text-lg);
    padding-bottom: 6px;
  }

  .overlay-content h3::after {
    width: 30px;
    height: 2px;
  }

  .overlay-content p {
    font-size: var(--text-sm);
  }
  .overlay-link {
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  .image-overlay {
    padding: var(--space-sm);
    height: 60%; /* More coverage on mobile */
  }

  .overlay-content h3 {
    font-size: var(--text-base);
    padding-bottom: 4px;
  }

  .overlay-content h3::after {
    width: 25px;
  }
}
.swiper-pagination-bullet {
  background: grey;
  opacity: 1;
  width: 8px; /* Boyut azaltıldı */
  height: 8px; /* Boyut azaltıldı */
  margin: 0 var(--space-xs);
  transition: var(--transition-base);
}

.swiper-pagination-bullet-active {
  background-color: var(--brand-blue);
    color: var(--brand-blue);
  width: 10px; /* Boyut azaltıldı */
  height: 10px; /* Boyut azaltıldı */
  transform: scale(1.2);
}

/* Fade effect enhancement */
.swiper-fade .swiper-slide {
  pointer-events: none;
  transition-property: opacity;
}

.swiper-fade .swiper-slide-active {
  pointer-events: auto;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .image-container {
    padding-top: 50%; /* Tablet için biraz daha yüksek */
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: var(--text-2xl);
  }

  .image-container {
    padding-top: 56.25%; /* 16:9 oranı */
  }

  .image-overlay {
    padding: var(--space-md);
  }

  .overlay-content h3 {
    font-size: var(--text-lg);
  }

  .overlay-content p {
    font-size: var(--text-sm);
  }
   .overlay-link p {
    font-size: var(--text-sm);
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: var(--text-sm) !important;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: var(--text-xl);
  }

  .image-container {
    padding-top: 65%; /* Mobil için daha yüksek */
  }

  .overlay-content h3 {
    font-size: var(--text-base);
  }

  .overlay-content p {
    font-size: var(--text-xs);
  }
  .overlay-link {
    font-size: var(--text-xs);
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
  }
}

/* ======= Video Section ======= */
.video-section {
    padding: var(--space-3xl) 0;
    background: var(--background-gradient);
}

.carousel-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-xl);
}


.carousel-main .carousel-cell {
    width: 100%;
    height: 400px;
}

.carousel-main iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.channel-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: var(--space-xl) 0;
    padding: 0 var(--space-md);
    text-align: center;
}

.carousel-nav.flickity-enabled.is-draggable {
    display:none
}

.channel-button {
    position: relative;
    z-index: 2;
    transform: none !important;
    margin: 0 auto;
   background: #0D72AC;  /* Professional blue instead of bright red */
    box-shadow: var(--shadow-md);
    color: white !important;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    transition: var(--transition-base);
    text-decoration: none !important;
}

.channel-button:hover {
    background: #075D8F;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
    .gallery-image {
        max-height: 60vh;
    }

    .image-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-image {
        max-height: 50vh;
    }
}
/* Responsive Adjustments */
@media (max-width: 992px) {
     .carousel-main .carousel-cell {
        height: 350px;
    }

    .channel-button {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-base);
    }
}

@media (max-width: 768px) {
      .video-section {
        padding: var(--space-xl) 0;
    }

    .carousel-main .carousel-cell {
        height: 300px;
    }

    .channel-button {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
     .video-section {
        padding: var(--space-md) 0;
    }

    .carousel-main .carousel-cell {
        height: 250px;
    }

    .channel-button {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-xs);
    }
}
/* ======= CTA Section ======= */
.cta-section {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--secondary-color) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}
.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.3;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}


.cta-section h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-light);
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.cta-section p {
     text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    font-size: var(--text-xl);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-button {
    background-color: var(--tertiary-color);
    color: var(--text-light);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-lg);
    transition: var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    position: relative;
    z-index: 4;
    letter-spacing: 0.5px;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Apply to selected elements */
.cta-button, .channel-button {
    animation: float 4s ease-in-out infinite !important;
}

.cta-button.btn-light {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.cta-button.btn-outline-light {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button.btn-light:hover {
    background-color: var(--background-light);
    color: var(--secondary-color);
}

.cta-button.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-button.btn-success {
    background-color: var(--tertiary-color);
    color: white;
}

.cta-button.btn-success:hover {
    background-color: #2C9F98;
}

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: var(--text-2xl);
    }

    .cta-section p {
        font-size: var(--text-lg);
    }

    .cta-button {
        font-size: var(--text-base);
        padding: var(--space-md) var(--space-lg);
    }
}

@media (max-width: 480px) {
    .cta-section h2 {
        font-size: var(--text-xl);
    }

    .cta-section p {
        font-size: var(--text-base);
    }

    .cta-button {
        font-size: var(--text-sm);
        padding: var(--space-xs) var(--space-md);
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ======= Basında Biz Section ======= */
/* ======= Basında Biz Section ======= */
#basindabiz {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    padding: 0;
}

/* Background container with image */
.bg-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/basindabiz/1-1200.webp') no-repeat left center;
    background-size: cover;
    z-index: 1;
    transition: var(--transition-base);
}

/* Overlay to improve text readability if needed */
.bg-1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 2;
    opacity: 0.95; /* Increased opacity for better readability */
}

/* Container for the content */
.basin-content {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    min-height: 400px;
    padding: var(--space-xl);
}

/* Text content area */
.basin-text {
    box-shadow: var(--shadow-lg);
    max-width: 50%;
    padding: var(--space-xl);
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    margin-right: var(--space-2xl);
}

.basin-text h2 {
    color: var(--brand-blue);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.basin-text p {
    color: var(--text-body);
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.basinButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-blue);
    color: white;
    font-weight: 600;
    font-size: var(--text-base);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.basinButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: 0;
}
.basinButton span {
    position: relative;
    z-index: 1;
}

.basinButton:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
text-decoration: none;
}

.basinButton:hover::before {
    left: 100%;
}

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

/* Responsive adjustments */
@media (max-width: 1200px) {
    .basin-content {
        padding: var(--space-xl) var(--space-3xl) var(--space-xl) var(--space-xl);
    }

    .basin-text {
        max-width: 60%;
        margin-right: 0;
    }

    .basin-text h2 {
        font-size: var(--text-xl);
    }
}

@media (max-width: 992px) {
    #basindabiz {
        min-height: 350px;
    }

    .basin-content {
        min-height: 350px;
    }

    .basin-text {
        max-width: 65%;
        padding: var(--space-lg);
    }

    .basin-text h2 {
        font-size: var(--text-xl);
    }

    .basin-text p {
        font-size: var(--text-base);
    }

    .basinButton {
        font-size: var(--text-base);
        padding: var(--space-sm) var(--space-lg);
    }
}

@media (max-width: 768px) {
    #basindabiz {
        min-height: 300px;
    }

    .basin-content {
        min-height: 300px;
        justify-content: center;
        padding: var(--space-lg);
    }

    .bg-1 {
        background-position: 30% center;
    }

    .bg-1::after {
        background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(255,255,255,0.9) 50%);
    }

    .basin-text {
        max-width: 80%;
        margin-right: 0;
        padding: var(--space-md);
    }

    .basin-text h2 {
        font-size: var(--text-lg);
    }

    .basinButton {
        font-size: var(--text-base);
        padding: var(--space-sm) var(--space-lg);
    }
}

@media (max-width: 480px) {
    #basindabiz {
        min-height: 250px;
    }

    .basin-content {
        min-height: 250px;
    }

    .bg-1 {
        background-position: 25% center;
    }

    .basin-text {
        max-width: 90%;
        padding: var(--space-md);
    }

    .basin-text h2 {
        font-size: var(--text-lg);
    }

    .basin-text p {
        font-size: var(--text-sm);
        margin-bottom: var(--space-md);
    }

    .basinButton {
        font-size: var(--text-sm);
        padding: var(--space-xs) var(--space-md);
    }
}

@media (max-width: 360px) {
    .basin-text {
        max-width: 95%;
    }

    .basin-text h2 {
        font-size: var(--text-base);
    }

    .basinButton {
        font-size: var(--text-sm);
        padding: var(--space-xs) var(--space-md);
    }
}


/* ======= Anlaşmalı Kurumlar Section ======= */
.page-section.anlasmali {
    background: var(--background-gradient);
    padding: var(--space-2xl) var(--space-lg);
    position: relative;
    color: var(--brand-blue);
    overflow: hidden;
}

.page-section.anlasmali h1,
.page-section.anlasmali h2 {
    font-size: var(--text-4xl);
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.page-section.anlasmali h1:after,
.page-section.anlasmali h2:after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--space-md));
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
    width: 80px;
}

.sliderBar {
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl);
    height: 120px;
    margin: auto;
    width: 100%;
    max-width: 1400px;
}

.slideBar {
    flex: 0 0 auto;
    width: 250px;
    padding: 0 10px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideBar-track {
    display: flex;
    width: max-content;
    will-change: transform;
    /* Animation is now added via JavaScript */
}

.sliderBar .slideBar img {
    max-width: 85%;
    max-height: 85%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-base);
}

.sliderBar .slideBar img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.sliderBar::before,
.sliderBar::after {
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 150px;
    position: absolute;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

.sliderBar::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.sliderBar::before {
    left: 0;
    top: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-section.anlasmali h1,
    .page-section.anlasmali h2 {
        font-size: var(--text-2xl);
    }

    .sliderBar {
        height: 120px;
    }

    .sliderBar::before,
    .sliderBar::after {
        height: 120px;
        width: 100px;
    }

    .sliderBar .slideBar {
        height: 120px;
        width: 200px;
    }

    .sliderBar .slideBar img {
        max-width: 70%;
        max-height: 70%;
    }
}

@media (max-width: 480px) {
    .page-section.anlasmali h1,
    .page-section.anlasmali h2 {
        font-size: var(--text-xl);
    }

    .sliderBar {
        height: 100px;
    }

    .sliderBar::before,
    .sliderBar::after {
        height: 100px;
        width: 50px;
    }

    .sliderBar .slideBar {
        height: 100px;
        width: 150px;
    }

    .sliderBar .slideBar img {
        max-width: 60%;
        max-height: 60%;
    }
}
/* ======= Contact Section ======= */
.iletisim {
    padding: var(--space-2xl) 0;
    position: relative;
    z-index: 3;
}

.maps-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 0 auto; /* Center the container */
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
    border-left: 4px solid var(--brand-blue);
    max-height: 500px;
}

.maps-aspect-ratio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.responsive-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure the iframe is displayed as a block element */
    margin: 0; /* Remove any default margin */
    padding: 0; /* Remove any default padding */
}
.iletisim h1 {
    font-size: var(--text-4xl);
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.iletisim h1:after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--space-md));
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
    width: 80px;
}


.contact {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-xl);
    margin: 0 auto;
    max-width: 100%;
}

.cta-button, .channel-button {
    animation: float 4s ease-in-out infinite;
}
@media (max-width: 768px) {
    .cta-button {
        animation: bounce 1.2s infinite ease-in-out;
    }
}

@media (max-width: 480px) {
    .cta-button {
        animation: bounce 1s infinite ease-in-out;
    }
}


.info-box {
    width: 100%;
    max-width: none;
    margin: auto; /* Center the info-box elements */
    background: rgba(255, 255, 255, 0.98) !important;
    border-left: 4px solid var(--brand-blue);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg);
    transition: var(--transition-base);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.info-box h3 {
    color: var(--secondary-color);
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    font-weight: 600;
    position: relative;
}

.info-box h3::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--space-xs));
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    margin: 0 auto;
}

.info-box p {
    color: var(--text-body);
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-top: var(--space-lg);
    margin-bottom: 0;
}

.info-box i {
    color: var(--brand-blue);
    background-color: rgba(40, 118, 168, 0.1);
    border: none;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.page-section.iletisim {
    background-color: var(--text-light);
}
.info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.maps {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#mapsIframe {
    border: 0;
    width: 100%;
    border-radius: var(--radius-md);
}

.contact-link {
    color: var(--brand-blue);
    font-weight: 500;
    transition: var(--transition-base);
    text-decoration: none;
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .maps-container {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .maps-container {
        max-width: 100%;
    }

    .maps-aspect-ratio {
        padding-bottom: 50%;
    }

    .iletisim h1 {
        font-size: var(--text-3xl);
    }

    .info-box h3 {
        font-size: var(--text-lg);
    }

    .info-box p {
        font-size: var(--text-base);
    }
}

@media (max-width: 768px) {
    .iletisim {
        padding: var(--space-xl) 0;
    }

    .maps-aspect-ratio {
        padding-bottom: 60%;
    }

    .contact {
        padding: var(--space-lg);
    }

    .info-box {
        padding: var(--space-md);
    }

    .info-box h3 {
        font-size: var(--text-lg);
    }

    .info-box p {
        font-size: var(--text-base);
    }

    .info-box i {
        font-size: var(--text-xl);
        padding: var(--space-xs);
    }
}

@media (max-width: 480px) {
    .iletisim h1 {
        font-size: var(--text-xl);
    }

    .maps-aspect-ratio {
        padding-bottom: 75%;
    }

    .info-box h3 {
        font-size: var(--text-base);
    }

    .info-box p {
        font-size: var(--text-sm);
    }

    .info-box i {
        font-size: var(--text-lg);
        padding: var(--space-2xs);
    }
}
@media (max-width: 768px) {
  img, .gallery-image {
    width: 100%;
    height: auto;
  }

  .image-container {
    padding: 0;
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .images-place {
    max-height: none;
    height: auto;
    margin-bottom: 20px;
  }

  .images-place img {
    max-height: none;
    height: auto;
    width: 100%;
    object-fit: cover;
  }

  .image-container {
    padding: 0;
    max-width: 100%;
  }

  .image-container.contain-image .gallery-image {
    max-height: none;
    height: auto;
    width: 100%;
  }

  .gallery-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 80vh !important;
  }
}

@media (max-width: 480px) {
  .gallery-image {
    max-height: 60vh !important;
  }

  .image-container.contain-image {
    padding: 5px;
  }

  .images-place img {
    border-radius: 15px;
  }
}
