.body {
    background-color: #F6F9F5;
    margin: 0;
    padding-top: 100px;
}
.hero-section {
    background-image: url('/static/images/mainpage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.service-header {
    background-color: #1a2b6d;
    color: white;
    padding: 30px 0 10px 0;
    text-align: center;
}
.service-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.service-header p {
    font-size: 1.2rem;
}
.card {
    background-size: cover;
    background-position: center;
    border: none;
    min-height: 300px;
}

.card-link {
    color: #DE6164; /* Normal durumda renk */
}

.card-link:hover {
    color: #1a2b6d; /* Üzerine gelindiğinde değişen renk */
}


.contact-section {
    background-image: url('{% static "images/image01.jpg" %}');
    background-position: center;
    background-size: cover;
    color: white;
    min-height: 600px;
    position: relative;
}
.contact-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 73, 92, 0.90);
    z-index: 1;
}
.contact-content {
    position: relative;
    z-index: 2;
    padding: 40px 0;
}
.contact-address {
    text-align: left;
}
/* Anasayfa Gönder Butonu */
.btn-msgsender {
    width: 100%;              /* Ekran genişliğine uyumlu */
    max-width: 585px;         /* Maksimum genişlik */
    height: 40px;
    border-radius: 4px;       /* Hafif yuvarlatılmış köşeler */
    border: 2px solid white;
    background-color: transparent;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    display: block;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;  /* Padding ve border genişliğe dahil */
    margin: 0 auto;           /* Ortalamak için */
}

/* Hover durumu */
.btn-msgsender:hover {
    background-color: black;
    color: white;
}

/* Anasayfa Hizmetlerimiz */
.service-div {
    background-color: #F6F9F5;
    color: #035772 !important;
    max-width: 600px;
    width: 90%;
    min-height: 50px; /* height yerine min-height kullanıyoruz */
    padding: 10px 15px; /* İç boşluk ekliyoruz */
    background-position: center;
    text-align: center;
    border: 2px solid #035772;
    border-radius: 5px;
    margin: 20px auto;
    text-decoration: none;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem; /* Varsayılan font boyutu */
}

.service-div:hover {
    background-color: #035772 !important;
    color: #F6F9F5 !important;
}

.service-div a {
    text-decoration: none;
    color: inherit;
    display: flex; /* Block yerine flex yapıyoruz */
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Daha küçük ekranlar için responsive ayarlar */
@media (max-width: 768px) {
    .service-div {
        padding: 8px 12px; /* Daha sıkı padding */
        font-size: 1.5rem; /* Font boyutunu küçültüyoruz */
    }
}

@media (max-width: 480px) {
    .service-div {
        width: 95%;
        min-height: 45px; /* Daha az yükseklik */
        padding: 6px 10px;
        font-size: 1.65rem; /* Okunabilir minimum boyut */
    }
    
    .service-div a {
        font-size: inherit; /* Link fontunu div'den miras al */
        line-height: 1.3; /* Satır aralığını biraz artırıyoruz */
        word-break: break-word; /* Uzun kelimeleri satır sonunda böl */
    }
}

/* Responsive düzenlemeler */
@media (max-width: 991.98px) {
    .hero-section {
        height: 400px;
        padding: 50px 10px;
    }
    .service-header h1 { font-size: 2rem; }
}
@media (max-width: 767.98px) {
    .hero-section {
        height: 250px;
        padding: 30px 5px;
    }
    .card { min-height: 260px; }
    .contact-section { min-height: 700px; }
    .contact-content { padding: 20px 0; }
}
@media (max-width: 575.98px) {
    .hero-section {
        height: 180px;
        padding: 10px 2px;
    }
    .card { min-height: 200px; }
    .service-header h1 { font-size: 1.3rem; }
    .service-header p { font-size: 1rem; }
}

@media (max-width: 576px) {
    .btn-msgsender {
        height: 36px;
        font-size: 14px;
        padding: 8px 20px;
        max-width: 100%;    /* Tam genişlik */
    }
}

@media (max-width: 768px) {
    body, p, h1, h2, h3, h4, h5, h6 {
        font-size: 90%; /* Genel font küçültme */
    }
    img {
        max-width: 100%;
        height: auto;
    }
    /* Özel bölümler için örnek */
    .hero-section {
        padding: 50px 10px !important;
        height: auto !important;
    }
    .card {
        min-height: 200px !important;
    }
    /* Kartlardaki bağlantılar için*/
    .card-link {
        color: #DE6164; /* Normal durumda renk */
    }
    .card-link:hover {
        color: #1a2b6d; /* Üzerine gelindiğinde değişen renk */
    }

}

@media (max-width: 480px) {
    body, p, h1, h2, h3, h4, h5, h6 {
        font-size: 80%;
    }
    .hero-section p {
        font-size: 1rem !important;
    }
    /* Daha fazla mobil uyumlu ayar */
    }

    /* Anasayfa En Alt Menü Bağlantıları */
.a-links {
    color: black;
    text-decoration: none;  /* Alt çizgi yok */
}

/* Link üzerine gelindiğinde renk değişmesini engellemek */
.a-links {
    color: black;  /* Üzerine gelince renk değişmesin */
    text-decoration: none;  /* Üzerine gelince alt çizgi yok */
}

/* Link tıklanmışsa (aktif durumda) renk değişmemesi */
.a-links {
    color: black;  /* Tıklanmış durumda renk değişmesin */
    text-decoration: none;  /* Alt çizgi yok */
}

/* Ziyaret edilmiş linkler için de aynı kural */
.a-links {
    color: black;  /* Ziyaret edilen linkin rengi değişmesin */
    text-decoration: none;  /* Alt çizgi yok */
}
