/* Genel Ayarlar */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    position: relative;
    height: 60px; /* Header yüksekliğini artırarak logoya daha fazla alan sağlama */
}


@media (max-width: 768px) {
    nav  {
        display: none; /* Küçük ekranlarda menüyü gizle */
        }

    
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* Logoyu tam ortalamak için */
}

nav {
    margin-left: auto; /* Menüyü sağa itmek için */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: rgb(36, 35, 35);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase; /* Yazıları büyük harfle yazmak için */
}

/* Hero Bölümü */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Carousel Yapısı */
.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

/* Carousel Öğeleri */
.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görsellerin hero alanına tam oturacak şekilde ölçeklenmesini sağlar */
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero İçeriği */
.carousel-content {
    text-align: center;
    color: white;
    position: absolute;
    width: 80%;
    max-width: 800px;
}

/* Carousel Navigasyon */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .carousel-content h2 {
        font-size: 24px;
    }

    .carousel-content p {
        font-size: 16px;
    }
}

#yeni-bolum {
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.yeni-container {
    display: flex;
    flex-direction: row; /* Varsayılan olarak yatay hizalama */
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin-top: 20px;
}

.yeni-container img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin-left: 60px; /* Görsel ile metin arasında boşluk bırakmak için */
}

.yeni-text {
    max-width: 800px;
    text-align: center;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .yeni-container {
        flex-direction: column; /* Ekran boyutu küçüldüğünde dikey hizalama */
    }

    .yeni-container img {
        margin-left: 0; /* Dikey hizalamada sol boşluğu kaldır */
        margin-top: 20px; /* Görselin üstünde boşluk bırak */
    }
}
/* Hizmetlerimiz Bölümü */
#hizmetlerimiz {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1800px;
    margin: 0 auto;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.service-item h3 {
    font-size: 20px;
    margin: 15px 0;
}

.service-item p {
    font-size: 16px;
    color: #666;
}

/* Responsive Düzenlemeler */

/* Tabletler (5 sütun yerine 3 sütun) */
@media (max-width: 1024px) {
    .services {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Küçük Tabletler (3 sütun yerine 2 sütun) */
@media (max-width: 768px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Telefonlar (2 sütun yerine 1 sütun) */
@media (max-width: 480px) {
    .services {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Hakkımızda Bölümü */
#hakkimizda {
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-container {
    display: flex;
    flex-direction: row; /* Görsel ve metni yatay olarak hizalamak için */
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin-top: 20px; /* Başlık ile içerik arasında boşluk bırakmak için */
}

.about-container img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin-right: 160px;
}

.about-text {
    max-width: 700px; /* Metin alanının genişliğini sınırlamak için */
    text-align: center; 
}


/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Ekran boyutu küçüldüğünde dikey hizalama */
    }

    .about-container img {
        margin-right: 0; /* Dikey hizalamada sağ boşluğu kaldır */
        margin-bottom: 20px; /* Görselin altında boşluk bırak */
    }
}

.about-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center; /* Başlığı da ortalamak için */
}

.about-text p {
    font-size: 16px;
    color: #333;
    text-align: center; /* Paragrafları ortalamak için */
    margin-bottom: 15px; /* Paragraflar arasında boşluk bırakmak için */
}

.about-container p {
    font-size: 16px;
    color: #333;
    max-width: 500px; /* Metin alanının genişliğini sınırlamak için */
    text-align: center; /* Metni sola hizalamak için */
}

/* İletişim Bölümü */
#iletisim {
    padding: 50px 20px;
    background-color: #f1f1f1;
    text-align: center; /* Tüm metinleri ortalamak için */
}

#iletisim h2 {
    text-align: center; /* Başlığı ortalamak için */
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    gap: 80px;
}

/* Formu Sol Tarafa Yerleştir */
.contact-container form {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.contact-container label {
    font-weight: bold;
    text-align: left;
    display: block;
}

.contact-container input,
.contact-container textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.contact-container button {
    background-color: #333;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

/* İletişim Bilgilerini Sağa Yerleştir */
.contact-info {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.contact-info p {
    font-size: 16px;
    margin: 10px 0;
    line-height: 1.5;
}

.contact-info a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .contact-container form {
        max-width: 100%;
    }

    .contact-info {
        max-width: 100%;
    }
}


/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}

footer p {
    margin: 5px 0;
}

/* Ana Sayfa Blog Bölümü */
#blog {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1800px;
    margin: 30px auto;
}

.blog-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
}

.blog-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-item h3 {
    padding: 15px 15px 0;
    font-size: 18px;
    font-weight: bold;
}

.blog-item p {
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
}

.read-more {
    display: inline-block;
    margin: 0 15px 15px;
    padding: 8px 15px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #555;
}

.blog-more {
    margin-top: 30px;
}

.all-posts {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: #333;
    border: 2px solid #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}

.all-posts:hover {
    background-color: #333;
    color: white;
}

/* Blog Sayfası Stilleri */
.blog-page {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgb(253, 243, 224);
}
.blog-page h1 {
    font-size: 40px; /* Daha büyük font boyutu */
    text-align: center; /* Yazıyı ortala */
    margin-bottom: 30px; /* Alt kısımda biraz boşluk bırak */
    color: #333; /* Yazı rengi */
    font-weight: bold; /* Kalın yazı */
}

.blog-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #666;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.blog-card p {
    flex-grow: 1;
    margin-bottom: 15px;
}

.blog-card .read-more {
    align-self: flex-start;
    margin: 0;
}

/* Blog Yazısı Sayfası Stilleri */
.blog-post {
    max-width: 700px;
    margin: 50px auto;
    padding: 30px 20px;
    background: rgb(253, 243, 224);
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
    
}

.post-meta {
    color: #888;
    font-size: 16px;
}

.post-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.post-content {
    line-height: 1.8;
    font-size: 17px;
    color: #333;
}

.post-content h2 {
    margin: 30px 0 15px;
    font-size: 24px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-navigation {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: center;
}

.back-to-blog {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-to-blog:hover {
    background-color: #555;
}

/* Responsive Düzenlemeler */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-card img {
        height: 200px;
    }
}