/*
    Renk Paleti:
    Ana Kırmızı: #D9001D
    İkincil Siyah: #1A1A1A
*/

/* TEMEL STİLLER VE RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: #D9001D;
}

/* BUTONLAR */
.btn-primary {
    display: inline-block;
    background-color: #D9001D; 
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #a30016; 
}

.btn-secondary {
    display: inline-block;
    background-color: #1A1A1A; 
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #444;
}

/* HEADER VE NAVİGASYON */
header {
    background-color: #fff;
    border-bottom: 2px solid #D9001D;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px; /* Logo boyutunu ayarlayın */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    color: #1A1A1A;
    padding: 15px 15px;
    display: block;
    font-weight: bold;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: #D9001D;
    border-bottom: 3px solid #D9001D;
}

/* BÖLÜM STİLLERİ */
section {
    padding: 60px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: #1A1A1A;
}

h2 {
    text-align: center;
    font-size: 2.5em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

/* GÖRSEL GENEL KURALLAR */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Bu, görselin satır içinde değil blok element gibi davranmasını sağlar */
}

/* ANA SAYFA - HERO SECTION */
.hero-section {
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

/* HERO İÇERİK ALANI - BAŞLIK VE BUTONLARIN OLDUĞU SOL KISIM */
.hero-content {
    flex: 1;
    padding-right: 40px;
    
    /* YAZIYI KENDİ İÇ ALANINDA ORTALA */
    text-align: center; 
}

.hero-content h1 {
    font-size: 3em;
    color: #D9001D;
}

.hero-image {
    flex: 1;
    height: 600px; /* Görselin yüksekliğini sınırla */
    object-fit: cover; /* Resmi, ayrılan alana sığdırmak için kırp */
    border-radius: 8px;
}

/* HİZMETLER ÖZETİ */
.services-summary {
    background-color: #f2f2f2;
}

.service-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    text-align: center;
}

.service-cards .card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 1;
    transition: transform 0.3s ease;
}

.service-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* GÖRSEL 2, 3, 4: HİZMET KARTI GÖRSELLERİ İÇİN YENİ KURALLAR */
.card-image {
    width: 100%; /* Kartın genişliğini kapla */
    height: 200px; /* Bütün görsellerin sabit bir yüksekliği olsun */
    
    /* GÖRSELİN OTURTULMASI */
    object-fit: cover; /* Resmi kırparak belirlenen alana tam sığdır (cover) */
    
    /* ORTALAMA VE MARJİN EKLEME */
    margin: 0 auto 15px auto; /* Üstte 0, Altta 15px marjin bıraktık */
    display: block; /* Ortalamak için blok seviyesinde olmalı */
    
    border-radius: 5px; /* Köşeleri yuvarla */
}


/* HAKKIMIZDA BÖLÜMÜ */
.about-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-section .content-left {
    flex: 1;
}

/* GÖRSEL 5 */
.about-image {
    flex: 1;
    border-radius: 8px;
    object-fit: cover;
    max-height: 400px;
}


/* BLOG BÖLÜMÜ */
.blog-posts {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.post-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* GÖRSEL 6, 7 */
.post-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.post-card h3 {
    padding: 15px;
    font-size: 1.2em;
}

.post-card p {
    padding: 0 15px 15px;
}


/* İLETİŞİM BÖLÜMÜ */
.contact-section {
    background-color: #fff;
}

/* ... İletişim, Harita ve Form Stilleri aynı kaldı ... */

.contact-info {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.map-container {
    margin-bottom: 40px;
}

.map-container iframe {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f2f2f2;
    border-radius: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form button {
    width: 100%;
}

/* FOOTER */
footer {
    background-color: #1A1A1A;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* RESPONSIVE DÜZENLEMELER */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .service-cards, .blog-posts {
        flex-direction: column;
        gap: 20px;
    }

    .post-card {
        width: 100%;
    }

    .about-section .container {
        flex-direction: column;
    }
}