/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Stilleri */
.sidebar {
    width: 250px;
    background-color: #2a2a2a;
    padding: 20px 0;
    height: 100vh;
    position: fixed;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.logo {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.menu ul {
    list-style: none;
}

.menu li {
    position: relative;
    margin: 5px 0;
}

.menu li a {
    display: block;
    padding: 14px 20px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    font-size: 16px;
    min-height: 44px;
}

.menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.menu li a:hover {
    color: #fff;
}

.menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #4CAF50;
    z-index: -1;
    transition: width 0.3s ease;
}

.menu li a:hover::before {
    width: 100%;
}

/* Main Content Stilleri */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
    line-height: 1.6;
}

/* SLIDER */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 12px;
    display: block;
    background-color: #111;
}

/* SLIDER BİLGİ */
.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
}

.slide-info h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.slide-info p {
    margin: 0;
    font-size: 16px;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* HABER GÖRÜNÜMÜ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 sütun */
    gap: 20px;
    margin-top: 30px;
}

/* HABER RESİMLERİ */
.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 8px;
    background-color: #111;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
        padding: 10px 0;
        overflow: visible;
        max-height: 300px;
        overflow-y: auto;
    }
    .logo {
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #333;
    }
    .menu li a {
        padding: 12px 15px;
        font-size: 18px;
        min-height: 44px;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px 10px;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .slider-container {
        height: 250px;
    }
    .slide-info h3 {
        font-size: 20px;
    }
    .slide-info p {
        font-size: 14px;
    }
    .dot {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .menu li a {
        padding: 14px 10px;
        font-size: 16px;
    }
    .slider-container {
        height: 180px;
    }
    .slide-info {
        padding: 15px 10px;
    }
    .slide-info h3 {
        font-size: 18px;
    }
    .slide-info p {
        font-size: 13px;
    }
    body {
        font-size: 14px;
    }
}

/* Dokunmatik cihazlarda hover efektlerini kaldır */
@media (hover: none) {
    .menu li a:hover::before {
        width: 0;
    }
}
