@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #0d9488; /* O sevdiğin Teal rengi */
    --secondary-color: #f59e0b; /* Turuncu */
    --accent-color: #0f172a;
    --light-bg: #f0fdfa;
    --font-main: 'Nunito', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.7;
}

/* ============================================
   ZİYARET EDİLMİŞ LİNKLER - SİTE GENELİ
   Mavi renk olmaması için
   ============================================ */
a:visited {
    color: inherit !important;
}

/* Navbar ve Üst Bar (Değişmedi) */
.top-bar { background-color: var(--primary-color); color: white; padding: 8px 0; font-size: 0.9rem; }
.navbar { background: white; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); padding: 1rem 0; }
.nav-link { font-weight: 700; color: #475569 !important; text-transform: uppercase; font-size: 0.95rem; padding: 0 15px !important; }
.nav-link:hover, .nav-link.active { color: var(--primary-color) !important; }
.btn-apply { background-color: var(--secondary-color); color: white; font-weight: 800; border-radius: 50px; padding: 10px 25px; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4); transition: transform 0.2s; }
.btn-apply:hover { transform: translateY(-2px); color: white; }

/* YENİ SLIDER YAPISI */
.main-slider {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}
.carousel-item {
    height: 450px; /* Slider yüksekliği */
}
.carousel-item img {
    height: 100%;
    object-fit: cover;
}
/* Slider üzerindeki yazı kutusu - Tasarıma uygun yumuşak stil */
.slider-caption-box {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 30px 0 0 0;
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 650px;
    color: var(--accent-color);
}

/* Proje Kartları (Eski Service Card) */
.service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}
.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.1);
}
.icon-box {
    width: 70px; height: 70px;
    background: var(--light-bg); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.8rem; color: var(--primary-color);
}

/* Sidebar Widget */
.sidebar-widget {
    background: white; border-radius: 16px; padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--secondary-color); margin-bottom: 25px;
}
/* Hızlı Erişim Linkleri - Tek Satırda Kalması İçin */
.sidebar-widget ul.list-unstyled li a {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.event-item { display: flex; gap: 15px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dashed #cbd5e1; }
.event-item:last-child { border-bottom: none; margin-bottom: 0; }
.event-item:hover { transform: translateX(5px); }
.event-item:hover .event-date-box { background: var(--primary-color); color: white; }
.event-item:hover h6 { color: var(--primary-color) !important; }

/* Event Date Box - Standart Tarih Kutusu */
.event-date-box { 
    background: var(--light-bg); 
    color: var(--primary-color); 
    padding: 8px 10px; 
    border-radius: 10px; 
    text-align: center; 
    min-width: 60px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Tarih Kutusu İçindeki Gün (Üstte, Büyük) */
.event-day, .event-date-box .event-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2px;
}

/* Tarih Kutusu İçindeki Ay (Altta, Küçük) */
.event-month, .event-date-box .event-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
}

h3 { color: var(--accent-color); font-weight: 800; }
.text-primary-soft { color: var(--primary-color); }
/* Slider Oklarını Güzelleştirme */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color); /* Bizim Turkuaz rengi */
    border-radius: 50%; /* Yuvarlak olsun */
    width: 3rem;
    height: 3rem;
    background-size: 50%; /* Ok simgesini ortala */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Hafif gölge */
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--secondary-color); /* Üzerine gelince Turuncu olsun */
    transform: scale(1.1); /* Hafif büyüsün */
}

/* Partnerler */
.partner-section h5 {
    letter-spacing: 0.12em;
}
.partner-logo-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}
.partner-logo-card img {
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(10%);
    opacity: 0.95;
    transition: all 0.2s ease;
}
.partner-logo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: 0 14px 35px rgba(13, 148, 136, 0.12);
}
.partner-logo-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Slider Yazı Kutusu Mobilde Düzgün Görünsün */
@media (max-width: 768px) {
    .slider-caption-box {
        position: relative;
        bottom: auto;
        right: auto;
        border-radius: 0 0 20px 20px;
        width: 100%;
        background: white;
    }
    .carousel-item {
        height: auto;
    }
    .carousel-control-prev, .carousel-control-next {
        display: none; /* Mobilde okları gizle (parmakla kaydırılır) */
    }
}

/* Dil Seçim Butonu Özelleştirmesi */
.btn-lang {
    background-color: white;
    color: var(--primary-color) !important; /* Turkuaz Metin */
    border: 2px solid #e2e8f0; /* İnce gri çerçeve */
    border-radius: 50px; /* Hap şeklinde yuvarlak */
    padding: 8px 24px !important;
    font-weight: 800;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-lang:hover, .btn-lang[aria-expanded="true"] {
    background-color: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3); /* Turkuaz gölge */
}

/* Dropdown Menü İçi */
.dropdown-item {
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--light-bg); /* Açık turkuaz arka plan */
    color: var(--primary-color);
    transform: translateX(5px); /* Sağa hafif kayma efekti */
}

/* Dropdown Açılma Animasyonu */
.animate-dropdown {
    animation: fadeInSlide 0.3s ease forwards;
}

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

/* --- BAYRAK DÜZENLEMELERİ --- */

/* Ana Butondaki Bayrak (Navbar'da görünen) */
.flag-icon-main {
    width: 24px;         /* Genişlik */
    height: 24px;        /* Yükseklik */
    object-fit: cover;   /* Orantıyı bozmadan sığdır */
    border-radius: 50%;  /* Tam yuvarlak yap */
    border: 2px solid rgba(255, 255, 255, 0.5); /* Hafif beyaz çerçeve (Teal üstünde güzel durur) */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Açılır Menüdeki Bayraklar */
.flag-icon-list {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px; /* Listede hafif köşeli olsun */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Seçili Dilin Listede Vurgulanması */
.active-lang {
    background-color: var(--light-bg); /* Açık turkuaz arka plan */
    color: var(--primary-color);
}

/* Ana Buton İnce Ayar (Yazı ve bayrak hizası) */
.btn-lang {
    display: flex;
    align-items: center;
    padding: 6px 16px !important; /* Biraz daha kompakt olsun */
}

/* ============================================
   DUYURU DETAY SAYFASI - DİĞER DUYURULAR
   Ana Sayfa ile Aynı Stil
   ============================================ */

/* Ana sayfadaki event-item stilleri burada da geçerli */
/* Ziyaret edilmiş linklerin mavi olmaması için override */
a.event-item:visited,
a.event-item:visited h6 {
    color: inherit !important;
}

/* Responsive Images in Announcement Content */
.announcement-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    display: block;
}

/* Responsive Images in Service Content */
.service-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    display: block;
}