body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

header {
    background-color: #2c3e50;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-nav {
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    font-weight: 700;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
    border-radius: 5px;
}

.main-nav ul li a:hover {
    color: #e74c3c;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.hero {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 80px auto 20px;
    padding: 20px;
    text-align: center;
}

.hero h1 {
    font-size: 1.8em;
    color: #2c3e50;
    margin: 0 0 10px;
}

h1 .red, h2 .red, h3 .red, h4 .red {
    color: #e74c3c;
}

h1 .blue, h2 .blue, h3 .blue, h4 .blue {
    color: #3498db;
}

.hero p {
    font-size: 1em;
    color: #666;
    margin: 0 0 15px;
}

.photo-section {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}

.hero-photo {
    width: 100%;
    height: auto;
    max-width: 800px;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

main {
    padding: 20px;
}

.ilceler-liste h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.kart-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cekici-kart {
    background: linear-gradient(145deg, #ffffff, #f1f2f6);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    border: 2px solid #dfe6e9;
}

.cekici-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    background: #ffffff;
    border-color: #e74c3c;
}

.cekici-kart h3 {
    color: #2c3e50;
    margin: 0 0 10px;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.cekici-kart:hover h3 {
    color: #e74c3c;
}

.cekici-kart p {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.cekici-kart:hover p {
    color: #3498db;
}

.button-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-tel {
    background-color: #e74c3c;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 0;
    width: 180px;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-tel:hover {
    background-color: #c0392b;
}

.btn-sayfa {
    background-color: #3498db;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 0;
    width: 180px;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-sayfa:hover {
    background-color: #2980b9;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.photo-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

footer a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #3498db;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e74c3c;
    color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #3498db;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 600px) {
    header {
        padding: 12px 0;
    }
    .main-nav ul {
        gap: 4px; /* Menü öğeleri arasındaki boşluk küçültüldü */
        flex-wrap: nowrap;
        justify-content: center;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 5px; /* Kenar boşlukları azaltıldı */
        max-width: 100%; /* Ekran genişliğini aşmasını önler */
        box-sizing: border-box;
    }
    .main-nav ul li a {
        padding: 10px 10px; /* Yatay padding biraz daha küçültüldü */
        font-size: 0.85em; /* Yazı boyutu biraz küçültüldü */
        font-weight: 700;
        background-color: rgba(255, 255, 255, 0.15);
        line-height: 1.5;
        display: inline-block;
    }
    .main-nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }
    .hero {
        margin: 70px auto 15px;
        padding: 15px;
    }
    .hero h1 {
        font-size: 1.5em;
    }
    .hero p {
        font-size: 0.9em;
    }
    .photo-section {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        text-align: center;
    }
    .hero-photo {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 6px;
        display: block;
        margin: 0 auto;
    }
    .kart-container {
        grid-template-columns: 1fr;
    }
    .button-container {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    .btn-tel, .btn-sayfa {
        min-width: 160px;
        padding: 10px 12px;
        font-size: 0.9em;
        box-sizing: border-box;
    }
    .btn-tel {
        font-weight: 700;
    }
    .btn-sayfa {
        font-weight: 600;
    }
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    .photo-gallery img {
        max-width: 100%;
    }
}

@media (min-width: 601px) {
    .button-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .btn-tel, .btn-sayfa {
        width: 180px;
        padding: 10px 0;
        font-size: 0.9em;
        font-weight: 600;
        box-sizing: border-box;
        text-align: center;
    }
}