/* --- Ana Footer Konteyner --- */
.main-footer {
    /* Senin orijinal renklerin ve efektlerin */
    background: linear-gradient(
        to right,
        color-mix(in srgb, var(--accent), transparent 15%),
        color-mix(in srgb, var(--main-text), transparent 10%)
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    padding: 70px 0 30px;
    font-family: "Segoe UI", sans-serif;
    color: #fff;
    margin-top: 40px;
}

.footer-container {
    display: grid;
    /* DÜZELTME BURADA: 4 yerine 5 sütun tanımladık */
    /* Hakkında (1.3fr) - Kurumsal (1fr) - Belediye (1fr) - Fanus AI (0.8fr) - Eğitim (1.5fr) */
    grid-template-columns: 1.3fr 1fr 1fr 0.8fr 1.5fr;
    gap: 30px; /* Boşluğu biraz kıstık ki hepsi sığsın */
    max-width: 100%; /* Genişliği biraz artırdık */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Hakkımızda Bölümü --- */
.footer-section-about {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #fff;
    font-size: 1rem;
}

.footer-logo {
    max-width: 160px; /* Biraz küçülttük */
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-section-about p {
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.6;
    text-align: justify;
}

/* --- Başlıklar --- */
.footer-section h4 {
    color: #fff;
    font-size: 1rem; /* Başlıkları bir tık küçülttük ki tek satıra sığsınlar */
    font-weight: 700;
    text-transform: uppercase;
    text-align: left; /* Başlıkları sola yasladık */
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* Başlık altındaki çizgi */
.footer-section h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px; /* Sabit uzunluk daha düzenli durur */
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.education-group h4 {
    position: relative; /* ::after'ın buna göre konumlanması için şart */
    /* text-align: center; <-- Eğer yazının da solda olmasını istiyorsan bunu kaldır veya 'left' yap */
    display: inline-block; /* Yazının kapladığı alan kadar genişlik sağlar, böylece çizgi tam yazının altında kalır */
}

.education-group h4::after {
    content: "";
    position: absolute;

    /* SOLA YASLAMA KODU */
    left: 0; /* Çizgiyi h4'ün en solundan başlatır */
    bottom: 0;

    width: 50px; /* Sabit genişlik */
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.footer-section:hover h4::after {
    width: 80px;
}

/* --- Linkler --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

/* Link Hover Efekti */
.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-links a::before {
    margin-right: 6px;
    color: var(--accent);
    font-weight: bold;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
}

/* --- Referanslar (Glass Box) --- */
.footer-references {
    max-width: 100%;
    margin: 50px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.ref-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ref-logos img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ref-logos img:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* --- Alt Bölüm: Harita ve İletişim --- */
.footer-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.map-area iframe {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.map-area iframe:hover {
    filter: grayscale(0%);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info h3,
.map-area h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.contact-info address {
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

/* Buton Tasarımları */
.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-contact i {
    font-size: 1.1rem;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Özel Renkler */
.btn-contact.whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e);
}

.btn-contact.call {
    background: linear-gradient(45deg, var(--title), var(--accent));
}

.btn-contact.mail {
    background: linear-gradient(45deg, #ff9900, #ff5e00);
}

/* --- Responsive (Mobil/Tablet) Ayarlar --- */

/* Tablet (Yatay) ve Küçük Laptoplar İçin */
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: 1fr 1fr 1fr; /* 3 Sütuna düşür */
        gap: 30px;
    }

    /* Hakkında kısmını ve Eğitim kısmını tam genişlik yap */
    .footer-section-about {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-section h4 {
        text-align: center;
    }
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-section.education-group {
        grid-column: 1 / -1;
    }
}

/* Mobil İçin */
@media (max-width: 768px) {
    .footer-container {
        display: flex;
        flex-direction: column; /* Tek sütun */
        gap: 40px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .footer-references {
        margin: 30px 20px;
    }

    .edu-grid {
        grid-template-columns: 1fr; /* Eğitimleri tek sütuna düşür */
    }
}
