/* ================================================== */
/* ANA SAYFA ÖZEL STİLLERİ (anasayfa.css)               */
/* ================================================== */

/* 1. HERO BÖLÜMÜ */
.hero-section {
  background: linear-gradient(rgba(56, 79, 124, 0.6), rgba(136, 167, 228, 0.6)), url('/img/sesob.webp') center/cover no-repeat;
  height: 700px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
}
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-title {
  font-size: calc(1.375rem + 1.5vw);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.hero-button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 0.3rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}
.hero-button:hover {
  color: #000;
  background-color: #f9fafb;
  border-color: #f9fafb;
}
.hero-button-outline {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color, #0d6efd);
  background-color: transparent;
  border: 2px solid var(--primary-color, #0d6efd);
  border-radius: 0.3rem;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}
.hero-button-outline:hover {
  color: #fff;
  background-color: var(--primary-color, #0d6efd);
}

/* ================================== */
/* 2. BAĞLI KURULUŞLAR BÖLÜMÜ */
/* ================================== */
.institutions-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  color: var(--primary-color, #0d6efd);
}

.institution-slider-wrapper {
    position: relative;
}
.is-static .institution-slider-track-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 1.5rem;
    padding: 1rem 0.5rem;
}
.is-static .institution-slider-track {
    display: contents; 
}
.is-animated .institution-slider-track-container {
    overflow: hidden;
    display: flex;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.is-animated .institution-slider-track-container::-webkit-scrollbar {
    display: none;
}
.is-animated .institution-slider-track {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
    flex-shrink: 0;
    animation: horizontal-scroll 60s linear infinite;
}
.is-animated:hover .institution-slider-track {
    animation-play-state: paused;
}

.institution-card {
    display: flex; flex-direction: column; align-items: center; text-decoration: none;
    color: #333; flex-shrink: 0; width: 150px; background: #fff; border-radius: 8px;
    padding: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all 0.2s ease-in-out;
}
.institution-card:hover {
    transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.12); color: var(--primary-color, #0d6efd);
}
.institution-card img {
    width: 100%; height: 100px; object-fit: contain; margin-bottom: 0.75rem;
}
.institution-card span {
    font-size: 0.85rem; font-weight: 500; text-align: center;
    line-height: 1.3; height: 2.6em; overflow: hidden;
}


/* ================================== */
/* 3. İÇERİK BÖLÜMLERİ (BAŞKAN/HABERLER & İŞLEMLER/ETKİNLİKLER) */
/* ================================== */

.president-and-news-section {
    padding: 3rem 0;
    background-color: #ffffff; 
}
.actions-and-events-section {
    padding: 3rem 0;
    background-color: #f8f9fa; 
    border-top: 1px solid #e0e0e0;
}

.layout-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 2.5rem;
}
@media (min-width: 992px) {
    .layout-wrapper {
        flex-direction: row; 
        align-items: flex-start;
    }
}

.layout-column-left {
    flex-shrink: 0;
    width: 100%;
}
@media (min-width: 992px) {
    .layout-column-left {
        width: 320px; 
    }
}

.layout-column-right {
    flex-grow: 1; 
    min-width: 0; 
}

.layout-column-left .section-title,
.layout-column-right .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}
@media (max-width: 991.98px) {
    .layout-column-left .section-title,
    .layout-column-right .section-title {
        text-align: center; 
    }
}


/* --- BAŞKAN KARTI STİLLERİ --- */
.president-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.president-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 5px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.president-name {
    font-weight: 700;
    color: var(--primary-color, #0d6efd);
    margin-bottom: 0.25rem;
}
.president-title {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 1rem;
}
.president-bio {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


/* --- HIZLI İŞLEMLER GRİDİ (2x2) --- */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.service-grid-item {
  width: 100%;
}
@media (min-width: 576px) {
  .service-grid-item {
    width: calc((100% - 1.5rem) / 2);
  }
}
@media (min-width: 992px) {
  .service-grid-item {
    width: calc((100% - 1.5rem) / 2);
  }
}
.service-card {
  padding: 1.25rem; 
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.icon-circle {
  width: 60px;
  height: 60px;
  margin-bottom: 0.75rem; 
  background: rgba(0, 100, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
  color: var(--primary-color, #0d6efd);
}
.icon-circle i {
    font-size: 1.75em; 
}
.service-card-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 1.1rem; 
}
.service-card-text {
  color: #6c757d;
  font-size: 0.85em; 
  margin-bottom: 0.75rem;
}
.service-card-link {
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 1;
  pointer-events: auto;
  content: "";
  background-color: rgba(0, 0, 0, 0);
}


/* --- HABERLER & ETKİNLİKLER GRİDİ --- */
.no-content-message {
  text-align: center;
  color: #6c757d;
}
.news-card {
  height: 100%;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}
.news-card-body {
  padding: 1.25rem;
}
.news-card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.news-card-date {
  color: #6c757d;
  font-size: 0.875em;
  margin-bottom: 0.75rem;
}
.news-card-link {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  color: var(--primary-color, #0d6efd);
  border: 1px solid var(--primary-color, #0d6efd);
  border-radius: 0.2rem;
  transition: all 0.15s ease-in-out;
}
.news-card-link:hover {
  color: #fff;
  background-color: var(--primary-color, #0d6efd);
}

.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.news-grid-item {
  width: 100%;
}
@media (min-width: 768px) {
  .layout-column-right .news-grid-item {
    width: calc((100% - 1.5rem) / 2);
  }
}
@media (min-width: 1200px) {
  .layout-column-right .news-grid-item {
    width: calc((100% - (1.5rem * 2)) / 3);
  }
}
.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.haberler-container-yeni {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .haberler-container-yeni {
        grid-template-columns: 1fr 1fr;
    }
    .haberler-container-yeni .haberler-list-col {
        grid-column: 1 / -1; 
    }
}
@media (min-width: 992px) {
    .haberler-container-yeni {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .haberler-container-yeni .haberler-list-col {
        grid-column: auto;
    }
}

.news-card-large {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.news-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.news-image-large {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.news-card-large-body {
    padding: 1.25rem;
}
.news-card-large-body .news-card-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.news-card-large-body .news-card-title {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 700;
}

.haberler-list-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.news-card-small {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    overflow: hidden;
}
.news-card-small:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.news-card-small-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-height: 90px;
}
.news-image-small {
    width: 90px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
}
.news-card-small-body {
    padding: 0.75rem 1rem;
}
.news-card-small-body .news-card-date {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    color: #6c757d;
}
.news-card-small-body .news-card-title {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 0;
}


/* ================================== */
/* 4. DUYURU BÖLÜMÜ (GÜNCELLENDİ) */
/* ================================== */

.ticker-bar {
  /* DÜZELTME: Renk, sitenin ana mavisi olarak değiştirildi */
  background-color: var(--primary-color, #0d6efd) !important;
  color: #fff;
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  /* DÜZELTME: Layout'tan 'Inter' fontu uygulandı */
  font-family: 'Inter', sans-serif;
}
.ticker-container {
  display: flex;
  align-items: center;
}
.ticker-label {
  font-weight: 700;
  font-size: 0.95rem;
  padding-right: 1.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.slider-wrapper {
  position: relative;
  flex-grow: 1;
  overflow: hidden;
}
.is-static .ticker-content {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 1.5rem;
    height: auto;
}
.is-static .ticker-list {
    display: contents; 
}
.is-animated .ticker-content {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  height: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.is-animated .ticker-content::-webkit-scrollbar {
  display: none;
}
.is-animated .ticker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  position: static;
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
  animation: horizontal-scroll 45s linear infinite;
}
.is-animated:hover .ticker-list {
  animation-play-state: paused;
}
.ticker-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  /* DÜZELTME: Kart görünümü iyileştirildi */
  width: 300px; /* Genişlik 300px'e ayarlandı */
  min-height: 80px; 
  white-space: normal;
  background: rgba(255,255,255, 0.15); /* Görünürlük artırıldı */
  padding: 1rem; /* Padding artırıldı */
  border-radius: 8px; /* Köşeler yuvarlatıldı */
  border: 1px solid rgba(255,255,255, 0.2); /* İnce bir çerçeve */
}
.ticker-list a {
  color: #fff;
  text-decoration: none;
  /* DÜZELTME: Yazı tipi ve boyutu güncellendi */
  font-weight: 600; /* Daha kalın */
  transition: all 0.2s;
  font-size: 0.95rem; /* Biraz daha büyük */
  line-height: 1.4; 
}
.ticker-list a:hover {
  text-decoration: underline;
  color: #fff;
}
.ticker-badge {
  display: inline-block; padding: 0.35em 0.65em; font-size: 0.75em; font-weight: 700;
  line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline;
  border-radius: 0.25rem; background-color: #ffc107; color: #000; flex-shrink: 0;
}
/* DÜZELTME: "Tümü" linki buton gibi görünecek şekilde güncellendi */
.ticker-all-link {
  color: var(--primary-color, #0d6efd);
  background-color: #fff;
  margin-left: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 0.3rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
}
.ticker-all-link:hover {
    background-color: #f0f0f0;
    color: #000;
}
/* Galeri Özel Stilleri */
.gallery-section {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
}

.gallery-item-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    aspect-ratio: 4/3; /* Resimleri eşit boyuta getirir */
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 110, 253, 0.7); /* Primary color with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.gallery-item-wrapper:hover .gallery-main-img {
    transform: scale(1.1);
}

.gallery-item-wrapper:hover .gallery-overlay {
    opacity: 1;
}
/* ================================== */
/* 5. KAYAN ANİMASYON */
/* ================================== */
@keyframes horizontal-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}