body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    height: 100%;
    /* Fix for iOS Safari viewport height issues */
    -webkit-text-size-adjust: 100%;
}



.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-left {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    flex: 1;
    transition: color 0.3s ease;
}

.header-left:hover {
    color: #ffd700;
}

.header-title {
    margin: 0;
    margin-left: 15px;
    font-size: 18px;
}

nav {
    flex: 1;
    text-align: right;
}

.top-bar a, .top-bar nav a {
    color: white;
    text-decoration: none;
}

.background-image {
    margin-top: 60px;
    margin-bottom: 80px;
    min-height: calc(100vh - 140px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-attachment: fixed;
}



.home-bg {
    background-image: url('Homepage_files/mf-5s-red-dot-award-2022-1400x700.jpg');
    background-attachment: fixed;
}

.iletisim-bg {
    background-image: url('Homepage_files/mf-6s-homepage-banner-1400x700.jpg');
    background-attachment: fixed;
}

.legal-bg {
    background-image: url('Homepage_files/mf-5s-red-dot-award-2022-1400x700.jpg');
    background-attachment: fixed;
}

.overlay {
    background: rgba(0, 0, 0, 0.65);
    padding: 20px 20px 40px 20px;
    position: relative;
    min-height: calc(100vh - 140px);
}

.legal-bg .overlay {
    position: relative;
    min-height: calc(100vh - 140px);
    height: auto;
    padding-bottom: 40px;
}

.content {
    color: white;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.table-responsive {
    overflow-x: auto;
}

.underlined-text {
    text-decoration: underline;
    font-weight: bold;
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    margin-bottom: 20px;
}

.contact-table td {
    color: white;
    padding: 8px;
    word-wrap: break-word;
}

.content a:link, .contact-table a:visited {
    color: white;
    text-decoration: underline;
}

.contact-table a:link, .contact-table a:visited {
    color: white;
    text-decoration: underline;
}

.special-link {
    color: #ffd700; /* Gold color for better visibility */
    text-decoration: underline;
}

/* Legal Pages Styling */
.legal-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.legal-content h1 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 30px;
    margin-top: 30px;
    font-size: 28px;
}

.legal-text {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    margin-bottom: 40px;
}

.legal-text h2 {
    color: #ffd700;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 5px;
}

.legal-text p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.legal-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-text li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.legal-text strong {
    color: #ffd700;
}

@media screen and (max-width: 768px) {
    .contact-table, .contact-table td {
        font-size: 12px;
    }
    
    .contact-table {
        font-size: 11px;
        margin-bottom: 30px;
    }
    
    .contact-table td {
        padding: 6px 4px;
        line-height: 1.3;
    }

    .header-content {
        padding: 0 20px;
    }

    .header-title {
        font-size: 14px;
        margin-left: 10px;
    }
    
    .content {
        padding: 0 20px;
    }
    
    .footer-content {
        padding: 0 20px;
    }
    
    nav {
        text-align: right;
    }
}

/* Footer Styles */
.bottom-bar {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

.separator {
    color: #ccc;
    margin: 0 5px;
}

@media screen and (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .separator {
        display: none;
    }
    
    .footer-content p {
        font-size: 12px;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    .background-image {
        margin-bottom: 100px;
        min-height: calc(100vh - 140px);
        padding-bottom: 0;
    }
    
    .overlay {
        position: relative;
        min-height: calc(100vh - 140px);
        height: auto;
        padding-bottom: 40px;
    }
    
    /* iOS Safari specific fixes */
    @supports (-webkit-touch-callout: none) {
        .background-image {
            min-height: calc(100vh - 160px);
        }
        
        .overlay {
            min-height: calc(100vh - 160px);
            height: auto;
            padding-bottom: 60px;
        }
    }
    
    .legal-content {
        padding: 0 10px;
    }
    
    .legal-content h1 {
        font-size: 22px;
    }
    
    .legal-text {
        padding: 20px 15px;
    }
    
    .legal-text h2 {
        font-size: 18px;
    }
    
    .legal-text p {
        font-size: 13px;
    }
}
