html, body {
    height: 100%;
    font-family: 'Titillium Web', sans-serif;

}
body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    font-family: 'Titillium Web', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(./assets/background-Photoroom.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    text-align: center;
    margin-top: 50px;
    flex: 1 0 auto;
}

.logo {
    width: 280px;
    margin-bottom: 8px;
    margin-left: 30px;
}

h1 {
    font-size: 36px;
    font-weight: bold;
    margin: 15px 0 8px 0;
}

.main-link {
    color: #3b5c68;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 40px;
}

.departments {
    margin-top: 40px;
}

.department {
    width: 70%;
    border-radius: 16px;
    padding: 20px 10px 15px 10px;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    margin: 0 auto;
}

.department:hover {
    transform: translateY(-8px) scale(1.04);
    text-decoration: none;
    color: inherit;
}

.department img {
    width: 144px;
    margin-bottom: 10px;
}

.department a img {
    cursor: pointer;
}

.department h2 {
    font-size: 22px;
    margin: 8px 0 6px 0;
    color: rgb(0, 0, 0);
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
}

.department a {
    color: #3b5c68;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.footer {
    flex-shrink: 0;
    background: rgba(59, 92, 104, 0.95);
    color: white;
    padding: 20px 0 10px;
    margin-top: auto;
    width: 100%;
}

.footer-company-title {
    text-align: center;
    color: white;
    text-transform: uppercase;
    margin-top: -5px;
    margin-bottom: 20px;
    font-size: 14px;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 50px;
    margin-bottom: 20px;
}

.footer-section {
    min-width: 250px;
}

.footer-title {
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.contact-item .label {
    font-size: 12px;
    opacity: 0.8;
    min-width: 60px;
    text-align: left;
}

.contact-item .value {
    font-size: 12px;
    color: white !important;
}

.contact-item .value a {
    color: white !important;
    text-decoration: none !important;
}

.contact-item .value a:hover {
    color: white !important;
    text-decoration: none !important;
}

.address-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.address-block {
    flex: 1;
    min-width: 200px;
}

.address-block h5 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.address-block p {
    margin: 5px 0;
    font-size: 12px;
    line-height: 2;
}

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

.footer-bottom p {
    font-size: 10px;
    opacity: 0.8;
    margin: 0;
}

.footer .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .logo {
        width: 140px;
        margin-left: 0;
    }
    .department {
        padding: 10px 5px 8px 5px;
        width: 65%;
    }
    .department img {
        width: 72px;
        margin-bottom: 6px;
    }
    .department h2 {
        font-size: 18px;
        margin: 6px 0 4px 0;
    }
    .container {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
        flex: unset !important;
    }
    .footer {
        margin-top: 8px;
        padding-top: 10px;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    .footer-section {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .contact-info {
        align-items: center;
    }
    .address-section {
        flex-direction: column;
        gap: 15px;
    }
    .address-block {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-section {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .container {
        flex: 1 0 auto;
        margin-top: 15px;
        /* min-height: 100vh; */
    }

    .logo {
        width: 280px;
    }

    h1 {
        font-size: 28px;
    }

    .department {
        max-width: 200px;
        width: 80%;
    }

    .department img {
        width: 96px;
    }

    .department h2 {
        font-size: 19px;
    }

    .footer {
        padding: 15px 0 5px;
    }

    .footer-company-title {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .footer-content {
        padding: 0 10px;
        gap: 15px;
    }

    .contact-item {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .contact-item .label,
    .contact-item .value {
        text-align: center;
    }
    
    .address-block {
        text-align: center;
    }
}

/* iPhone SE ve diğer küçük ekranlı mobil cihazlar için */
@media (max-width: 375px) {
    .container {
        margin-top: 5px;
        padding-bottom: 20px;
    }

    .departments {
        margin-top: 0;
        gap: 5px;
    }

    .department h2 {
        font-size: 18px;
        margin: 2px 0 4px 0;
    }
    
    .department {
        margin-top: 0;
        max-width: 220px;
        padding: 3px 5px 8px 5px;
    }
    
    .logo {
        width: 220px;
    }

    .mb-4 {
        margin-bottom: 0 !important;
    }

    .department img {
        width: 72px;
    }
}

/* Çok küçük ekranlar için ekstra düzenleme */
@media (max-width: 360px) {
    .container {
        margin-top: 15px;
        padding-bottom: 0;
    }

    .departments {
        margin-top: 10px;
        gap: 10px;
    }
    
    .department {
        max-width: 200px;
        margin-bottom: 0 !important;
    }

    .mb-4 {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 344px) {
    .container {
        margin-top: 15px;
        padding-bottom: 0;
    }

    .departments {
        margin-top: 10px;
        gap: 10px;
    }
    
    .department {
        max-width: 200px;
        margin-bottom: 0 !important;
    }

    .mb-4 {
        margin-bottom: 0 !important;
    }
}

/* Ekran boyutlarına göre hem genişlik hem yükseklik bazlı düzenlemeler */
/* Kısa ekranlı telefonlar için */
@media (max-width: 375px) and (max-height: 667px) {
    .container {
        margin-top: 5px;
    }
    
    .departments {
        margin-top: 5px;
        gap: 35px;
    }
    
    .department {
        padding: 5px;
        margin-bottom: 8px !important;
    }
    
    .department img {
        width: 84px;
    }
}

/* Uzun, ince telefonlar için */
@media (max-width: 375px) and (min-height: 800px) {
    .container {
        margin-top: 20px;
    }
    
    .departments {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .department {
        padding: 10px;
    }
    
    .department img {
        width: 102px;
    }
}

/* Çok küçük genişlik, standart yükseklikte cihazlar */
@media (max-width: 360px) and (min-height: 640px) and (max-height: 740px) {
    .container {
        margin-top: 10px;
    }
    
    .department {
        max-width: 200px;
        padding: 5px;
    }
    
    .logo {
        width: 200px;
    }
}

/* Çok küçük genişlik, uzun cihazlar */
@media (max-width: 360px) and (min-height: 741px) {
    .container {
        margin-top: 25px;
    }
    
    .departments {
        margin-top: 15px;
        gap: 50px;
    }
    
    .department {
        max-width: 210px;
        padding: 8px;
    }
    
    .logo {
        width: 210px;
        margin-bottom: 15px;
    }
}

/* En küçük genişlik, farklı yükseklikler için */
@media (max-width: 320px) and (min-height: 568px) {
    .container {
        margin-top: 5px;
    }
    
    .departments {
        margin-top: 5px;
    }
    
    .department {
        max-width: 180px;
        padding: 3px;
    }
    
    .department img {
        width: 78px;
    }
    
    .logo {
        width: 180px;
    }
}

/* 430px genişlik, uzun ekranlı cihazlar için */
@media (min-width: 420px) and (max-width: 440px) and (min-height: 900px) {
    .container {
        margin-top: 30px;
    }
    
    .departments {
        margin-top: 25px;
        gap: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .department {
        max-width: 280px;
        padding: 12px;
    }
    
    .department img {
        width: 120px;
    }
    
    .logo {
        width: 240px;
        margin-bottom: 20px;
    }
    
    .department h2 {
        font-size: 18px;
        margin: 8px 0 6px 0;
    }
}

/* 360 x 740 ekran boyutu için özel ayarlar */
@media (min-width: 355px) and (max-width: 365px) and (min-height: 735px) and (max-height: 745px) {
    .container {
        margin-top: 20px;
    }
    
    .departments {
        margin-top: 20px;
        gap: 22px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .department {
        max-width: 250px;
        padding: 10px;
    }
    
    .department img {
        width: 108px;
    }
    
    .logo {
        width: 220px;
        margin-bottom: 15px;
    }
    
    .department h2 {
        font-size: 19px;
        margin: 6px 0 5px 0;
    }
}

/* 412 x 915 ekran boyutu için özel ayarlar */
@media (min-width: 407px) and (max-width: 417px) and (min-height: 910px) and (max-height: 920px) {
    .container {
        margin-top: 25px;
    }
    
    .departments {
        margin-top: 25px;
        gap: 28px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .department {
        max-width: 270px;
        padding: 12px;
    }
    
    .department img {
        width: 114px;
    }
    
    .logo {
        width: 230px;
        margin-bottom: 18px;
    }
    
    .department h2 {
        font-size: 20px;
        margin: 7px 0 5px 0;
    }
}

/* 768 x 1024 ekran boyutu (tablet) için özel ayarlar */
@media (min-width: 760px) and (max-width: 775px) and (min-height: 1020px) and (max-height: 1030px) {
    .container {
        margin-top: 40px;
    }
    
    .departments {
        margin-top: 30px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
    }
    
    .department {
        max-width: 320px;
        padding: 15px;
        width: 45%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .department img {
        width: 132px;
    }
    
    .logo {
        width: 300px;
        margin-bottom: 20px;
    }
    
    .department h2 {
        font-size: 24px;
        margin: 10px 0 8px 0;
    }
    
    .footer-content {
        padding: 0 30px;
    }
}

/* 375 x 635 ekran boyutu için özel ayarlar */
@media (min-width: 370px) and (max-width: 380px) and (min-height: 630px) and (max-height: 640px) {
    .container {
        margin-top: 10px;
    }
    
    .departments {
        margin-top: 0;
        gap: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .department {
        max-width: 240px;
        padding: 10px;
    }
    
    .department img {
        width: 90px;
    }
    
    .logo {
        width: 200px;
        margin-bottom: 10px;
    }
    
    .department h2 {
        font-size: 18px;
        margin: 5px 0 4px 0;
    }
    
    .footer {
        padding-top: 10px;
    }
    
    .footer-company-title {
        margin-bottom: 10px;
        font-size: 12px;
    }
}

/* Ana bölüm ve container için masaüstünde flex ve min-height ayarı yok */

