/* style.css */

/* Genel Sıfırlama */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* NAVBAR */
.navbar {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-link {
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link img {
    height: 40px;
}

/* Navigasyon Linkleri */
.nav-links ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links ul li {
    position: relative;
    margin-left: 20px;
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
}

.nav-links ul li a:hover {
    background-color: #0056b3;
    border-radius: 4px;
}

/* Dropdown Menü */
.dropdown-content {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0056b3;
    min-width: 180px;
    z-index: 10;
    list-style: none;
    border-radius: 0 0 4px 4px;
}

.dropdown:hover .dropdown-content {
    display: block !important;
}

.dropdown-content li a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    text-align: left;
}

/* Ana İçerik */
main {
    padding: 20px;
    background-color: #f4f4f4;
    min-height: 80vh;
}

.content-section {
    padding: 40px 20px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.content-section h2 {
    color: #007bff;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0f7fa;
    padding-bottom: 10px;
}

.content-section p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

/* Hakkımızda Sayfası */
.about-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.about-image {
    display: block;
    margin: 30px auto;
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hamburger Menü (Mobil) */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        text-align: center;
        margin-top: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-links ul li {
        margin: 0;
        border-top: 1px solid #0056b3;
    }

    .dropdown .dropdown-content {
        display: none !important;
        position: static;
        width: 100%;
        box-shadow: none;
    }

    .dropdown-content.visible {
        display: block !important;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        max-width: 100%;
    }
}



/* Footer */
.site-footer {
    background-color: #007bff;
    color: #ffffff;
    padding: 30px 20px 15px 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-left h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-address a {
    color: #ffffff;
    text-decoration: none;
}

.footer-address a:hover {
    text-decoration: underline;
}

.footer-right p {
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 25px;
    padding-top: 15px;
}

/* Partner Logoları */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f0f4f8;
    border-top: 2px solid #e0e0e0;
    border-radius: 8px;
    max-width: 1100px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.partner-logos img {
    height: 150px;
    width: auto;
    filter: grayscale(20%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logos img.small-logo {
    height: 140px;
}

.partner-logos img:hover {
    transform: scale(1.08);
    filter: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobilde logolar küçülür */
@media (max-width: 768px) {
    .partner-logos {
        gap: 20px;
        padding: 15px;
    }

    .partner-logos img {
        height: 60px;
    }

    .partner-logos img.small-logo {
        height: 60px;
    }
}

/* === EĞİTİM SAYFASI GÖRSEL DENGESİ (HAKKIMIZDA İLE AYNI) === */
.education-image img {
    display: block;
    margin: 30px auto;
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

@media (max-width: 768px) {
    .education-image img {
        max-width: 100%;
    }
}

/* ===== FORCED VISUAL OVERRIDES (sonda, kesin) ===== */

/* Eğitim görseli - kesin limit */
img.about-image,
.education-image img {
    display: block !important;
    margin: 30px auto !important;
    max-width: 40% !important;
    width: auto !important;
    height: auto !important;
    max-height: 320px !important;
    object-fit: contain !important;
}

/* Eğer resim çok büyük doğal pikselliyse piksel cap */
img.about-image {
    max-width: 420px !important;
    max-height: 320px !important;
}

/* Partner logoları - kesin boyut */
.partner-logos img {
    height: 150px !important;
    width: auto !important;
    max-width: none !important;
}

.partner-logos img.small-logo {
    height: 140px !important;
}

/* Eğer başka sınıf kullanıldıysa kaynakla eşleştirme (örnek src içeren) */
img[src*="Bentley-Training-Partner"] {
    max-width: 420px !important;
    max-height: 320px !important;
}

/* Mobil */
@media (max-width: 768px) {
    img.about-image,
    .education-image img {
        max-width: 100% !important;
        max-height: none !important;
    }
    .partner-logos img, .partner-logos img.small-logo {
        height: 60px !important;
    }
}


/* === Eğitim Sayfası Logoları (Oranlı Görünüm Düzeltmesi) === */
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px auto;
    background-color: #f0f4f8;
    border-radius: 8px;
    padding: 20px;
}

/* Logolar orantılı görünsün, maksimum boy sınırıyla */
.partner-logos img {
    max-height: 100px !important; /* yüksekliği sınırlıyoruz, ama orantı korunuyor */
    height: auto !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    filter: grayscale(20%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover efekti */
.partner-logos img:hover {
    transform: scale(1.08);
    filter: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobil cihazlarda daha küçük */
@media (max-width: 768px) {
    .partner-logos img {
        max-height: 60px !important;
        max-width: 120px !important;
    }
}

/* === PROFESYONEL FOOTER TASARIMI === */
.site-footer {
    background-color: #007bff;
    color: #fff;
    padding: 40px 20px 25px 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Sol sütun */
.footer-left h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-address p,
.footer-address a {
    color: #ffffff;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-address a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

/* Sağ sütun */
.footer-right p {
    color: #ffffff;
    font-size: 15px;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-right i {
    color: #ffffff;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Alt kısım */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 30px;
    padding-top: 15px;
    font-size: 14px;
}

/* Tüm footer içeriğini beyaz renkte sabitle */
.site-footer * {
    color: #ffffff !important;
}

/* Hover efekti */
.site-footer a:hover,
.footer-right p:hover {
    color: #e0e0e0 !important;
}

/* Mobil uyum */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-right p {
        justify-content: center;
    }

    .footer-left h3 {
        text-align: center;
    }
}

/* === Modern Geri Dön Butonu (sağ alt + tooltip) === */
.floating-round-button {
    position: fixed;
    bottom: 25px;
    right: 25px; /* sağ alt köşe */
    width: 50px;
    height: 50px;
    background-color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease, transform 0.15s ease;
    z-index: 3000;
}

.floating-round-button i {
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    text-align: center;
    display: inline-block;
}

/* Hover animasyonu */
.floating-round-button:hover {
    background-color: #0056b3;
    transform: scale(1.12);
}

/* Tooltip tasarımı */
.floating-round-button .tooltip {
    position: absolute;
    right: 60px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

/* Tooltip görünürken */
.floating-round-button:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Küçük ekranlarda tooltip gizlenir */
@media (max-width: 768px) {
    .floating-round-button .tooltip {
        display: none;
    }
}

