/* Genel reset ve font */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Yatay kaydırmayı engellemek için */
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

h1, h2, h3, h4, h5, h6 {
    color: #212529;
    font-weight: 700;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%; /* Kapsayıcının tam genişlikte çalışmasını sağlar */
}

/* Kök değişkenleri */
:root {
    --primary-blue: #013880;
    --accent-yellow: #fca311;
    --dark-text: #333;
    --light-text: #f8f9fa;
}

/* Üst Bilgi Çubuğu */
.top-info-bar {
    background-color: var(--primary-blue);
    color: var(--light-text);
    font-size: 0.85rem;
    padding: 6px 0;
}
.top-info-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.info-section {
    display: flex;
    gap: 20px;
    align-items: center;
}
.info-section div {
    display: flex;
    align-items: center;
    gap: 5px;
}
.user-section a {
    color: var(--light-text);
    text-decoration: underline;
    margin-left: 12px;
}
.user-section a:hover {
    text-decoration: none;
}

/* Ana Navigasyon Çubuğu */
.main-navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0; /* Artırılmış dikey padding */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Bootstrap'in varsayılan padding'ini kaldırmak ve esnekliği ayarlamak için */
.navbar-nav {
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap; /* Menü öğeleri taşınca alt satıra geçsin */
}

.nav-item {
    padding: 0 5px; /* Yatayda biraz boşluk */
}

.nav-link {
    color: var(--primary-blue);
    font-weight: bold !important;
    text-transform: uppercase;
    padding: 8px 25px; /* Dikey padding 8px olarak ayarlandı */
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
    white-space: nowrap; /* Menü öğelerinin kelimelerinin kırılmasını engeller */
}

.nav-link:hover, 
.nav-link.active {
    background-color: var(--accent-yellow);
    color: #000;
}

/* Footer */
.main-footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 40px 0;
    margin-top: 40px;
}

.main-footer h5 {
    color: #ffffff;
    margin-bottom: 20px;
}

.main-footer ul {
    list-style: none;
    padding: 0;
}

.main-footer ul li {
    margin-bottom: 10px;
}

.main-footer ul li a {
    color: #ced4da;
}

.main-footer ul li a:hover {
    color: #ffffff;
}

.main-footer .social-icons a {
    color: #f8f9fa;
    font-size: 1.5rem;
    margin-right: 15px;
}

.main-footer .social-icons a:hover {
    color: #007bff;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.9em;
    color: #adb5bd;
}

/* News Cards & Grids */
.news-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.news-card .card-body {
    padding: 20px;
}

.news-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-card .card-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Üç satırda kes */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card .card-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card .card-meta .category-badge {
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 500;
}

.news-card .card-meta .author-date {
    display: flex;
    align-items: center;
}

.news-card .card-meta .author-date i {
    margin-right: 5px;
}

/* Trending News */
.trending-news-section {
    background-color: #f0f2f5;
    padding: 30px 0;
    margin-bottom: 40px;
    border-radius: 10px;
}

.trending-news-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #212529;
}

.trending-news-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform 0.2s ease;
}

.trending-news-item:hover {
    transform: translateY(-3px);
}

.trending-news-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.trending-news-item .item-content .item-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.trending-news-item .item-content .item-meta {
    font-size: 0.8em;
    color: #6c757d;
}

/* News Detail Page */
.news-detail-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.news-detail-container img.main-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.news-detail-container .news-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #212529;
}

.news-detail-container .news-meta {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.news-detail-container .news-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
    text-align: justify;
}

.news-detail-container .social-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-detail-container .social-share a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.news-detail-container .social-share a:hover {
    transform: translateY(-3px);
}

.news-detail-container .social-share .btn-facebook { background-color: #3b5998; }
.news-detail-container .social-share .btn-twitter { background-color: #1da1f2; }
.news-detail-container .social-share .btn-whatsapp { background-color: #25d366; }
.news-detail-container .social-share .btn-linkedin { background-color: #0077b5; }

.related-news-section {
    margin-top: 40px;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.related-news-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #212529;
}

/* TAKVİM MODÜLÜ STİLLERİ - YENİDEN YAZILDI */
.calendar-module {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    padding: 20px;
    margin-bottom: 30px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden; /* İçerik taşmasını engellemek için */
}

.calendar-module .section-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Başlığı ortalamak için */
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    gap: 10px; /* İkon ve yazı arası boşluk */
}

.calendar-module .section-header i {
    font-size: 1.5rem;
    color: var(--accent-yellow); /* İkon rengi */
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* Haftanın 7 günü için eşit sütunlar */
    gap: 5px; /* Hücreler arası boşluk */
    text-align: center;
}

.calendar-header {
    grid-column: 1 / -1; /* Tüm sütunları kapla */
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 0;
    margin-bottom: 5px; /* Başlık ile gün isimleri arasına boşluk */
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
}

.day-cell {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    padding: 8px 0; /* Dikey padding ayarlandı */
    font-size: 0.9em;
    display: flex; /* İçeriği ortalamak için flex kullanıldı */
    justify-content: center;
    align-items: center;
    min-height: 35px; /* Hücre yüksekliği sabitlendi */
    box-sizing: border-box; /* Padding ve border'ı genişliğe dahil et */
}

.day-cell.weekday {
    color: #343a40;
    font-weight: 500;
}

.day-cell.weekend {
    color: #dc3545; /* Kırmızı renk */
    font-weight: 500;
}

.day-cell.today {
    background-color: var(--accent-yellow); /* Bugünkü gün turuncu */
    color: #000;
    font-weight: bold;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 5px rgba(252, 163, 17, 0.5); /* Hafif gölge */
    border-radius: 5px;
}

/* Takvim günlerinin (1-31) arkasındaki boş hücreler için */
.calendar-grid .day-cell:not(.weekday):nth-child(n+8):empty {
    background-color: #fff; /* Boş hücrelerin arka planı beyaz */
    border: 1px dashed #e9ecef; /* Hafif çizgili kenarlık */
    color: #ccc; /* Rengi soluk */
    cursor: default; /* İmleç değişmesin */
}


/* Slider özel stilleri */
.carousel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.carousel-image {
    width: 100%;
    height: auto;
    min-height: 350px;
    max-height: 450px;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.5s ease;
}

.carousel-item:hover .carousel-image {
    transform: scale(1.03);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    text-align: left;
}

.carousel-caption .badge {
    font-size: 0.85em;
    padding: 5px 10px;
    background-color: var(--primary) !important;
}

.carousel-caption .carousel-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
}

.carousel-caption .carousel-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.carousel-caption .carousel-title a:hover {
    color: #e9ecef;
    text-decoration: underline;
}

.carousel-caption .carousel-date {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Özel numaralandırılmış göstergeler */
.carousel-indicators-custom {
    position: static;
    align-items: center;
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    padding-left: 10px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.carousel-indicators-custom button {
    background-color: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    border-radius: 5px;
    width: 35px;
    height: 35px;
    line-height: 30px;
    text-align: center;
    margin: 0 5px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.carousel-indicators-custom button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    opacity: 1;
}

.carousel-indicators-custom button:hover {
    background-color: #e9ecef;
    transform: scale(1.05);
    opacity: 0.9;
}

/* Küçük ekranlar için responsive ayarlar */
@media (max-width: 991.98px) {
    /* Menü Responsive Düzeltmeleri */
    .top-info-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .info-section {
        justify-content: center;
        width: 100%;
    }
    .user-section {
        width: 100%;
        justify-content: center;
    }
    /* Bootstrap'in varsayılan davranışına izin veriyoruz */
    .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 1;
        align-items: center; /* Ortalamak için */
    }
    .navbar-nav {
        flex-direction: column; /* Mobil cihazlarda alt alta sıralansın */
        width: 100%;
        align-items: center; /* Menü öğelerini mobil görünümde ortala */
    }
    .nav-item {
        padding: 5px 0; /* Mobil menü öğeleri arasında dikey boşluk */
        width: 100%; /* Tüm genişliği kaplasın */
        text-align: center; /* Metni ortala */
    }
    .nav-link {
        padding: 10px 0; /* Mobil menü linkleri için padding */
    }
    
    /* Slider ve diğer responsive ayarlar */
    .carousel-image {
        height: 300px;
    }
    .carousel-caption {
        padding: 10px;
    }
    .carousel-caption .carousel-title {
        font-size: 1.4rem;
    }
    .carousel-indicators-custom {
        display: none !important;
    }

    /* Takvim Responsive */
    .calendar-module {
        padding: 15px;
    }
    .calendar-module .section-header {
        font-size: 1.1rem;
    }
    .calendar-module .section-header i {
        font-size: 1.3rem;
    }
    .day-cell {
        font-size: 0.8em;
        padding: 6px 0;
        min-height: 30px;
    }
    .calendar-header {
        font-size: 1rem;
        padding: 8px 0;
    }
}

@media (max-width: 576px) {
    .info-section {
        flex-direction: column;
        gap: 5px;
    }
    .nav-menu {
        gap: 3px;
    }
    .nav-link {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
    .carousel-image {
        height: 250px;
    }
    .carousel-caption .carousel-title {
        font-size: 1.2rem;
    }
}