/* --- Temel Ayarlar ve Değişkenler --- */
:root {
    --primary-color: #1a365d;   /* Kurumsal Lacivert */
    --secondary-color: #2f855a; /* Veteriner/Doğa Yeşili */
    --light-bg: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Taşmaları önler */
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Yatay scroll'u engeller */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header (Üst Menü) --- */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- Header (Üst Menü) --- */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 130px; 
}

/* --- Logo Alanı --- */
.logo-img {
    height: 110px; 
    width: auto;
    object-fit: contain;
}

/* --- Logo Alanı --- */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;  
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text span {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .logo-img {
        height: 60px; 
    }
    .logo-text {
        font-size: 1.5rem;
    }
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* --- Hero Slider --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden; /* Container dışına çıkan slaytları gizler */
}

.slider-container {
    display: flex;
    height: 100%;
    /* CSS Transition ile sağdan sola kayma efekti */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Slider Görünümü ve Karartma (Overlay) --- */
.slide {
    min-width: 100%;
    position: relative; /* Karartma katmanı için referans */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Arka planı hafif koyulaştıran katman */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* %50 saydam siyah. Rakamı 0.6 veya 0.7 yaparak daha da koyulaştırabilirsin */
    z-index: 1;
}

/* Metinlerin karartmanın üstünde kalmasını sağla */
.slide-content {
    max-width: 800px;
    padding: 20px;
    position: relative; 
    z-index: 2; 
}

.slide-content h1 {
    font-size: 3.5rem; /* Başlığı biraz daha büyük yaptık */
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Yazıya hafif gölge ekledik */
}

.slide-content p {
    font-size: 1.3rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Mobilde başlık boyutlarını tekrar dengeleyelim */
@media (max-width: 768px) {
    .slide-content h1 { font-size: 2.2rem; }
    .slide-content p { font-size: 1.1rem; }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s;
    backdrop-filter: blur(5px);
}

.slider-btn:hover { background: rgba(255, 255, 255, 0.4); }
.prev { left: 20px; }
.next { right: 20px; }

/* --- Haberler Grid Sistemi --- */
.news-section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.news-grid {
    display: grid;
    /* Ekran küçüldüğünde kartlar alta geçer, taşma yapmaz */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-img-wrapper {
    width: 100%;
    height: 220px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görsellerin en-boy oranını bozmadan alanı doldurmasını sağlar */
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

/* --- Hızlı İşlemler (Services) --- */
.services-section {
    background-color: #ffffff;
    padding: 0;
    margin-top: -40px; /* Slider'ın üzerine hafifçe bindirerek modern bir efekt yaratıyoruz */
    position: relative;
    z-index: 10;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 20px;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
    border: 1px solid #edf2f7;
}

.service-card:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.3s;
}

/* Hover durumunda yazı renklerini beyaza çevir */
.service-card:hover h3,
.service-card:hover p {
    color: #ffffff;
}
.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* --- Hakkımızda Özet Bölümü --- */
.about-section {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 80px 20px;
}

.about-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(47, 133, 90, 0.1);
    color: var(--secondary-color);
    font-weight: 700;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    line-height: 1.3;
}

.divider-left {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 20px 0;
    border-radius: 2px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.05rem;
}

.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    object-fit: cover;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* --- Footer (Alt Bilgi) --- */
.site-footer {
    background-color: var(--primary-color);
    color: #e2e8f0;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px 20px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Başlıkların altına şık bir yeşil çizgi */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #cbd5e0;
}

/* Sosyal Medya Linkleri */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

/* Liste Yapıları (Hızlı Bağlantılar ve İletişim) */
.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px; /* Hover durumunda metni hafif sağa kaydır */
}

.contact-info li {
    color: #cbd5e0;
    line-height: 1.6;
}

.contact-info strong {
    color: #ffffff;
    margin-right: 5px;
}

/* Telif Hakkı (Copyright) Çubuğu */
.footer-bottom {
    background-color: #112440; /* Daha koyu bir lacivert */
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #a0aec0;
}

/* Mobilde boşlukları dengeleme */
@media (max-width: 768px) {
    .footer-inner {
        padding: 40px 15px;
        gap: 30px;
    }
}

/* --- Hamburger İkonu Temel Ayarı --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001; /* Menünün üstünde kalması için */
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hamburger İkonu Animasyonu (Açıkken Çarpı Olması İçin) */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Mobil Uyumluluk (Responsive) --- */
@media (max-width: 768px) {
    /* Header Padding ve Düzenlemesi */
    .header-inner { 
        height: auto; 
        padding: 20px 15px; /* Üst/Alt 20px, Sağ/Sol 15px vererek daha ferah bir görünüm sağladık */
    }
    
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .main-nav.active {
        max-height: 400px; 
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav ul li {
        text-align: center;
        border-bottom: 1px solid #f0f4f8;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
    }

    /* Slider metinlerini mobilde küçült */
    .slide-content h1 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; }
    .hero-section { height: 400px; }

    /* --- Taşma (Overflow) Çözümü --- */
    .news-section {
        padding: 50px 15px; /* Mobilde kenar boşluklarını biraz daralttık */
    }

    .news-grid {
        /* minmax(320px) sınırını iptal edip, mobilde esnek tek sütun (1fr) yapıyoruz */
        grid-template-columns: 1fr; 
        gap: 20px; /* Kartlar arası boşluğu da mobilde biraz kısalttık */
    }

    /* Yeni Eklenen Bölümlerin Mobil Ayarları */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        flex-direction: column;
        padding: 60px 15px;
        text-align: center;
    }

    .divider-left {
        margin: 20px auto; /* Mobilde çizgiyi ortala */
    }

    .about-content h2 {
        font-size: 1.8rem;
    }
}

/* --- İç Sayfa Üst Görseli (Page Banner) --- */
.page-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 54, 93, 0.8); /* Lacivert karartma */
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

/* --- İç Sayfa Genel İçerik --- */
.page-content {
    padding-bottom: 60px;
}

.content-section {
    margin-bottom: 50px;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

/* --- Yönetim Kurulu Grid --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
}

/* --- Gelişmiş Yönetim Kurulu Grid ve Kartları --- */
.team-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* Yuvarlak Profil Fotoğrafı Alanı */
.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-role {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Kısa Özgeçmiş Metni */
.team-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
    /* Metnin çok uzayıp kartları bozmaması için maksimum 3 satır sınırı (isteğe bağlı) */
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Özgeçmiş Butonu */
.btn-cv {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-cv:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* --- İletişim Sayfası --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-box ul {
    list-style: none;
    margin-top: 20px;
}

.contact-info-box ul li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(47, 133, 90, 0.1);
}

/* --- Mobilde İletişim Formunu Alt Alta Al --- */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-banner h1 {
        font-size: 2.2rem;
    }
}

/* --- Başkanın Mesajı Bölümü --- */
.president-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.president-profile {
    flex: 0 0 300px; /* Fotoğraf alanının genişliğini sabitliyoruz */
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.president-profile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.president-info {
    padding: 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
}

.president-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.president-info span {
    display: block;
    font-size: 0.95rem;
    color: #68d391; /* Açık yeşil tonu */
    font-weight: 600;
}

.president-text {
    flex: 1; /* Metin alanının kalan tüm boşluğu doldurmasını sağlıyor */
}

.president-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-dark);
    text-align: justify;
}

/* --- Mobil Uyumluluk (Başkanın Mesajı İçin) --- */
@media (max-width: 768px) {
    .president-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .president-profile {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px; /* Mobilde çok fazla büyümesini engelliyoruz */
    }
    
    .president-text p {
        text-align: left; /* Mobilde sağa-sola yaslamak okumayı zorlaştırabilir */
    }
}

/* --- Açılır Pencere (Modal) Stilleri --- */
.modal-overlay {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    z-index: 2000; /* Menünün de üstünde çıkması için yüksek bir değer */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Arka planı hafif karart */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px); /* Arka planı hafif bulanıklaştırır (Çok şık durur) */
}

.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: asagidanGel 0.3s ease-out; /* Açılış animasyonu */
}

/* Modalı kapatma çarpı işareti */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: #e53e3e; /* Üzerine gelince kırmızı olsun */
}

#modalMetin {
    line-height: 1.8;
    color: var(--text-dark);
}

/* Modal açılış animasyonu */
@keyframes asagidanGel {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Butonun varsayılan stillerini temizleyip bizim CV butonuna uyarlayalım */
button.btn-cv {
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* --- Sayfalama (Pagination) --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    border: 1px solid #edf2f7;
    transition: all 0.3s;
}

.page-link:hover, .page-link.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* --- Haber Detay Sayfası --- */
.btn-back {
    display: inline-block;
    margin: 30px 0 20px 0;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-back:hover {
    color: var(--primary-color);
}

.news-detail-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 30px;
}

.news-detail-header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    line-height: 1.3;
    margin-top: 15px;
}

.news-detail-img-box {
    width: 100%;
    max-height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.news-detail-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-detail-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Mobilde detay sayfası metin boyutu düzenlemesi */
@media (max-width: 768px) {
    .news-detail-wrapper {
        padding: 20px;
    }
    .news-detail-header h1 {
        font-size: 1.8rem;
    }
}

/* --- Form Uyarı Mesajları --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

/* --- Klinikler Sayfası Stilleri --- */
.clinic-info-bar {
    background-color: #ebf8ff;
    border-left: 4px solid #3182ce;
    padding: 15px 20px;
    margin-bottom: 40px;
    border-radius: 4px;
    color: #2b6cb0;
    font-size: 1.1rem;
    text-align: center;
}

.clinic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.clinic-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    position: relative; /* Nöbetçi etiketi için */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.clinic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

/* Nöbetçi Klinik Özel Tasarımı */
.clinic-card.is-nobetci {
    border: 2px solid #e53e3e;
    box-shadow: 0 4px 20px rgba(229, 62, 62, 0.15);
}

.nobetci-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e53e3e;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(229, 62, 62, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(229, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

.clinic-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.clinic-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.vet-name {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1rem;
}

.clinic-details {
    text-align: left;
    background: #f7fafc;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.clinic-details p {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.clinic-details p:last-child {
    margin-bottom: 0;
}

.clinic-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.btn-call {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-call:hover {
    background-color: var(--secondary-color);
}

/* Nöbetçi olanın butonu da kırmızı olsun */
.clinic-card.is-nobetci .btn-call {
    background-color: #e53e3e;
}

.clinic-card.is-nobetci .btn-call:hover {
    background-color: #c53030;
}

/* --- Aidat ve Ücretler Sayfası Stilleri --- */
.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.fee-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

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

.fee-card.highlighted {
    border: 2px solid var(--secondary-color);
    position: relative;
    box-shadow: 0 10px 25px rgba(47, 133, 90, 0.15);
}

.fee-card.highlighted::before {
    content: "En Çok Aranan";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.fee-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.fee-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.fee-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.fee-amount span {
    font-size: 1.5rem;
    color: var(--text-light);
}

.fee-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Banka Hesap (IBAN) Kutuları --- */
.bank-info-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
}

.bank-info-box h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.bank-warning {
    color: #c53030;
    background: #fed7d7;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.iban-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.iban-card {
    background: #ffffff;
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
    padding: 25px;
}

.iban-card h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.iban-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: #edf2f7;
    padding: 10px;
    border-radius: 4px;
    user-select: all; /* Tek tıkla IBAN'ı seçmeyi sağlar */
}

.iban-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* --- Mevzuat Sayfası Stilleri --- */
.legislation-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.legislation-category {
    margin-bottom: 50px;
}

.category-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.document-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.doc-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    opacity: 0.8;
}

.doc-info {
    flex: 1; /* Ortadaki metin alanının genişleyip sağdaki butonu itmesini sağlar */
}

.doc-info h3 {
    color: var(--text-dark);
    font-size: 1.15rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.doc-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.btn-download {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 20px;
    white-space: nowrap; /* Buton metninin alt satıra inmesini engeller */
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: var(--primary-color);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .document-item {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
    
    .doc-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .btn-download {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* --- Eğitim ve Etkinlikler Sayfası Stilleri --- */
.events-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

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

/* Tarihi geçmiş eğitimler için hafif soluklaştırma */
.event-card.past-event {
    opacity: 0.7;
}

.event-card.past-event:hover {
    transform: none; /* Eskilerde hover animasyonunu iptal et */
}

/* Takvim Yaprağı Alanı */
.event-calendar {
    background: var(--primary-color);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    text-align: center;
}

.event-card.past-event .event-calendar {
    background: #718096; /* Geçmiş eğitimlerin takvimi gri olsun */
}

.event-day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.event-month {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-year {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Etkinlik Detayları Alanı */
.event-details {
    padding: 30px;
    flex: 1;
    position: relative;
}

.event-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.event-badge.upcoming {
    background-color: #d1fae5;
    color: #065f46;
}

.event-badge.past {
    background-color: #edf2f7;
    color: #4a5568;
}

.event-details h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-right: 120px; /* Rozetle çakışmaması için */
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    background: #f7fafc;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.event-meta span {
    display: flex;
    align-items: center;
}

.event-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }
    
    .event-calendar {
        flex-direction: row;
        gap: 15px;
        padding: 15px;
    }
    
    .event-day { font-size: 2rem; margin-bottom: 0; }
    .event-month { font-size: 1.2rem; }
    .event-year { font-size: 1.2rem; margin-top: 0; }
    
    .event-details h3 { padding-right: 0; margin-top: 25px; }
    .event-badge { top: 15px; right: auto; left: 30px; }
    .event-meta { flex-direction: column; gap: 8px; }
}