/* Mobile nav controls */
.mobile-nav-controls {
    display: none;
    align-items: center;
    gap: 10px;
}

/* Mobile navbar CTA button */
.mobile-navbar-cta {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.mobile-navbar-cta:hover,
.mobile-navbar-cta:active,
.mobile-navbar-cta:focus {
    color: white;
    text-decoration: none;
}

/* Mobile menu styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #333;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile enrollment button */
.mobile-enroll {
    display: none;
}

.mobile-cta-button {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    width: auto;
}

.mobile-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    color: white !important;
}

@media (max-width: 1024px) {
    .mobile-nav-controls {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 1000;
        display: none;
    }
    
    .nav-menu.show-mobile-menu {
        transform: translateY(0);
        display: flex !important;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    /* Hide desktop CTA button and show mobile one */
    .desktop-cta {
        display: none;
    }
    
    .mobile-enroll {
        display: block !important;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .mobile-cta-button {
        display: inline-block !important;
        background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
        color: white !important;
        padding: 10px 20px !important;
        border-radius: 25px !important;
        font-weight: bold !important;
    }
    
    /* Hide Kestel Belediyesi logo on mobile */
    .kb-logo {
        display: none;
    }
}

/* Fix for content being hidden under navbar */
body {
    padding-top: 0;
}

/* Ensure modals appear above everything */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

/* Mobile modal fixes */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 0.5rem auto;
        width: 95% !important;
        max-width: none !important;
    }
    
    .modal-fullscreen-sm-down {
        width: 100% !important;
        max-width: none !important;
        height: 100%;
        margin: 0;
    }
    
    .modal-fullscreen-sm-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }
}