:root {
    --footer-bg-color: #F3F3F3;
    --footer-text-color: #333;
    --footer-accent-color: red;
    --footer-link-hover: #005A9E;
}

/* Global styles removed:
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1; 
}
*/

/* Feature Section */
.footer-features {
    background-color: #fff;
    padding: 20px 0;
    margin-bottom: 0;
}

.footer-features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
}

.footer-features .feature {
    flex: 1;
    text-align: center;
}

.footer-features .feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-features .feature h3 i {
    color: var(--footer-accent-color);
}

.footer-features .feature p {
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .footer-features-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-features .feature {
        margin-bottom: 20px;
    }
}

/* Main Footer Styles */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 0 0 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    display: flex;
    gap: 40px;
    padding: 0 20px;
    justify-content: space-between;
    align-items: flex-start;
}

/* Contact and ETBIS sections */
.contact-section,
#ETBIS {
    flex: 0 0 auto;
}

/* Grouped Links Container */
.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex: 1;
    max-width: 600px;
}

/* Link Columns Styling */
.footer-section {
    min-width: 180px;
}

.footer-links .footer-section {
    flex: 0 0 auto;
}

.footer-links .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links .footer-section ul li {
    margin-bottom: 8px;
}

.footer-links .footer-section ul li a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1em;
    display: block;
}

.footer-links .footer-section ul li a:hover {
    color: var(--footer-link-hover);
}

.footer-links .footer-section ul li a .arrow {
    font-size: 0.8em;
    margin-right: 5px;
}

/* Contact Section Specifics */
.contact-section {
    padding: 0 20px 0 0;
    min-width: 240px;
}

/* Renamed contact-info to footer-contact-info */
.footer-contact-info {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-info i {
    font-size: 1.1em;
}

.contact-phone {
    font-weight: bold;
    font-size: 1.2em;
}

.contact-hours {
    font-size: 0.9em;
    color: var(--footer-text-color);
}

.contact-social a {
    font-size: 1.8em;
    color: var(--footer-text-color);
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.contact-social a:hover {
    color: var(--footer-accent-color);
    transform: scale(1.2);
}

/* Adjustments for 1024px and below */
@media (max-width: 1024px) {
    .footer-container {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-links {
        order: 2;  /* Changed from 3 */
        width: 100%;
        justify-content: flex-start;
        margin-top: 0;
    }
    
    .contact-section {
        flex: 1;
        min-width: auto;
        order: 1;
    }
    
    #ETBIS {
        flex: 1;
        text-align: right;
        order: 3;  /* ETBIS now after links */
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    /* Contact Section Mobile Layout */
    .contact-section {
        text-align: left !important;
        padding: 0 15px !important;
        order: 1 !important;
        width: 100%;
    }

    .footer-contact-info {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-bottom: 15px;
    }

    .footer-contact-info i {
        font-size: 1.3em;
        margin-right: 8px;
        flex-shrink: 0; /* Prevent icon from shrinking */
    }

    .contact-phone {
        font-size: 1.3em;
        margin-bottom: 0;
        display: inline; /* Keep phone inline with icon */
    }

    .contact-hours {
        width: 100%;
        margin-left: 0 !important; /* Remove left margin */
        padding-left: 28px; /* Align with phone number */
        font-size: 0.9em;
        line-height: 1.4;
        color: #666;
    }

    .contact-social {
        margin-top: 15px;
        margin-left: 0;
        width: 100%;
    }

    /* Sözleşmeler Columns Adjustment */
    .footer-links {
        order: 2;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .yardim-section,
    .agreements-section {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .footer-links .footer-section ul {
        padding: 0;
        margin: 0;
    }

    .footer-links .footer-section ul li {
        margin-bottom: 15px;
        padding: 0;
    }

    .yardim-section ul li:last-child {
        margin-bottom: 15px;
    }

    /* ETBIS Positioning */
    #ETBIS {
        order: 3 !important;
        margin-top: 25px;
        text-align: center !important;
        width: 100%;
    }

    /* Feature Section Mobile Adjustment */
    .footer-features-container {
        flex-direction: column;
        gap: 25px;
        padding: 0 15px;
    }

    .footer-features .feature {
        margin-bottom: 0;
    }

    .footer-features .feature h3 {
        justify-content: flex-start;
        font-size: 1.1rem;
    }

    /* Footer Bottom Text */
    .footer-bottom-content {
        padding: 0 15px;
        text-align: center;
    }

    .footer-bottom-content p {
        font-size: 0.85em;
        line-height: 1.5;
    }
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 20px;
    padding-top: 10px;
    font-size: 0.9em;
}

.footer-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin-bottom: 10px;
    width: 100%;
}

.footer-bottom-content {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #777;
}
