/* Default state for mobile menu close button - hidden on desktop */
.site-header .main-nav .close-menu-btn {
    display: none;
}

/* Mobiele menu toggle button styling */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Page Overlay for Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Below the menu, above the content */
}

.mobile-menu-overlay.show {
    display: block;
}


/* Media queries voor responsieve layout */
@media screen and (max-width: 992px) {
    .site-header .main-nav a.btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .site-header {
        /* Ensure padding is consistent, adjust if needed. 
           Current .site-header in style.css has padding: 1rem 5%; */
        padding: 1rem 5%; 
        height: 70px; /* Fixed height for mobile header */
    }

    .header-main-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    /* Show mobile menu toggle on mobile */
    .mobile-menu-toggle {
        display: flex;
        /* Adjust margin if needed to visually align with logo */
    }

    /* Hide main nav by default on mobile, show it as slide-in menu */
    .site-header .main-nav {
        display: flex; /* Ensure it's a flex container */
        position: fixed;
        top: 0;
        right: -100%; /* Start completely off-screen */
        width: 320px; 
        max-width: 85vw; /* Ensure it doesn't exceed viewport width */
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px 20px 20px; /* Top padding for close button */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1001; /* Higher than overlay */
        overflow-y: auto; 
        transition: right 0.3s ease-in-out; /* Animate the right property instead */
    }    .site-header .main-nav .close-menu-btn {
        display: block; /* Show on mobile */
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 32px;
        line-height: 1; 
        padding: 5px; 
        color: #333;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: #f5f5f5;
        transition: all 0.2s ease;
    }

    .site-header .main-nav .close-menu-btn:hover {
        background-color: #e0e0e0;
        color: var(--secondary-color);
    }
    
    /* Show mobile menu when active */
    .site-header .main-nav.show {
        right: 0; /* Slide in by changing right position */
    }    /* Mobile navigation items styling */
    .site-header .main-nav a,
    .site-header .main-nav .admin-menu-dropdown .admin-menu-trigger { /* Apply to admin trigger too */
        margin: 0; /* Remove individual margins */
        width: 100%;
        height: auto; /* Reset fixed height for mobile */
        padding: 16px 20px; /* Generous padding for touch targets */
        text-align: left;
        background-color: transparent;
        color: var(--text-color);
        border-bottom: 1px solid #eee;
        border-radius: 0; /* Remove border radius for mobile */
        text-transform: none; /* Reset text transform for better mobile readability */
        letter-spacing: normal; /* Reset letter spacing */
        font-weight: 500; /* Consistent font weight */
        box-shadow: none; /* Remove box shadow */
        transform: none; /* Disable transform effects on mobile */
        transition: background-color 0.3s ease, color 0.3s ease;
        display: flex;
        align-items: center;
        font-size: 16px; /* Slightly larger for mobile */
        line-height: 1.4;
    }

    .site-header .main-nav a:first-child {
        margin-top: 20px; /* Space from close button */
    }

    .site-header .main-nav a:last-child,
    .site-header .main-nav .admin-menu-dropdown:last-child .admin-menu-trigger {
        border-bottom: none; /* No border for the last item */
    }

    .site-header .main-nav a:hover,
    .site-header .main-nav .admin-menu-dropdown .admin-menu-trigger:hover {
        background-color: #f9f9f9;
        color: var(--primary-color);
    }

    .site-header .main-nav a.active {
        background-color: rgba(255, 170, 37, 0.1);
        color: var(--primary-color);
        font-weight: 600;
    }    /* General buttons in mobile menu */
    .site-header .main-nav a.btn {
        margin: 15px 0 10px 0; /* Space above and below button */
        padding: 16px 20px; /* Generous padding */
        text-align: center;
        width: 100%; /* Full width */
        background-color: var(--primary-color);
        color: #fff;
        border-radius: 6px;
        border-bottom: none; /* Remove border if it's a button */
        font-weight: 600;
        font-size: 16px;
    }

    /* Special styling for Solliciteer button on mobile */
    .site-header .main-nav a.solliciteer-btn {
        margin: 25px 0 15px 0; /* More space above primary CTA */
        padding: 20px 20px; /* Larger padding for prominence */
        background-color: var(--secondary-color); /* Brover Dark Blue */
        color: #fff;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 45, 98, 0.3);
        border: 2px solid var(--secondary-color);
        border-bottom: 2px solid var(--secondary-color); /* Override the border-bottom from general rule */
        text-align: center;
        font-size: 16px;
        line-height: 1.3;
    }

    .site-header .main-nav a.solliciteer-btn i {
        margin-right: 10px;
        font-size: 1.1em;
    }

    .site-header .main-nav a.solliciteer-btn:hover {
        background-color: #001f4b; /* Darker blue on hover */
        border-color: #001f4b;
        color: #fff;
        transform: none; /* Disable transform on mobile */
        box-shadow: 0 4px 12px rgba(0, 45, 98, 0.4);
    }

    .site-header .main-nav a.btn:hover {
        background-color: #e69000; /* Darken on hover */
        color: #fff;
    }

    /* Admin dropdown adjustments for mobile menu */
    .site-header .main-nav .admin-menu-dropdown {
        width: 100%;
        margin-left: 0;
    }
    .site-header .main-nav .admin-menu-dropdown .admin-menu-trigger {
        display: flex; /* Ensure it behaves like other links */
        justify-content: space-between; /* Align text and caret */
        align-items: center;
    }
    .site-header .main-nav .admin-dropdown-content {
        position: static; /* No longer absolute */
        display: none; /* Hidden by default, JS will toggle 'show' */
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid #eee; /* Separator from trigger */
        padding: 0;
        margin-top: 0;
        background-color: #f9f9f9; /* Slightly different background for sub-menu */
    }
    .site-header .main-nav .admin-dropdown-content.show {
        display: block; /* Show when active */
    }
    .site-header .main-nav .admin-dropdown-content li a {
        padding-left: 25px; /* Indent sub-menu items */
        border-bottom: 1px solid #e0e0e0; /* Lighter separator for sub-items */
    }
     .site-header .main-nav .admin-dropdown-content li:last-child a {
        border-bottom: none;
    }

    .site-header .main-nav .user-icon { /* If you still use this class directly */
        margin-top: 20px;
        padding: 15px 10px;
    }
    
    /* Section and container adjustments for mobile */
    .container, section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero {
        padding: 60px 15px;
    }
    
    /* Visual Categories Section - Mobile */
    .visual-categories-section {
        padding: 50px 15px;
    }
    
    .visual-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .visual-category-card {
        margin-bottom: 15px;
    }
    
    .visual-category-content h3 {
        font-size: 1.2rem;
    }
    
    /* About Section - Mobile */
    .about-section {
        padding: 50px 15px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-text, .about-image {
        min-width: auto;
        width: 100%;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    /* Vacature Section - Mobile */
    .vacature-section {
        padding: 50px 15px;
    }
    
    .vacature-container {
        padding: 0;
    }
    
    .vacature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vacature-card {
        margin-bottom: 15px;
    }
    
    /* Employee Reviews Section - Mobile */
    .employee-reviews-section {
        padding: 50px 15px;
    }
    
    .reviews-slider-container {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .review-card-slide {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .review-image {
        margin-bottom: 15px;
        width: 80px;
        height: 80px;
    }
    
    .slider-btn {
        display: none; /* Hide arrows on mobile, rely on swipe */
    }
    
    /* CTA Section - Mobile */
    .cta-section {
        padding: 50px 15px;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    /* Contact Section - Mobile */
    .contact-section {
        padding: 50px 15px;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info {
        min-width: auto;
        width: 100%;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
    }
    
    .contact-detail {
        flex-direction: column;
        text-align: center;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .contact-detail i {
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    /* Section headings - Mobile */
    .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .section-heading p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .site-header .logo img {
        height: 40px;
    }
    
    .site-header {
        padding: 0.8rem 4%;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    /* Enhanced mobile styles for smallest screens */
    .visual-categories-section .section-heading h2,
    .section-heading h2 {
        font-size: 1.6rem;
    }
    
    .about-text h2,
    .contact-info h2 {
        font-size: 1.6rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .vacature-card-content h3 {
        font-size: 1.1rem;
    }
    
    .visual-category-content h3 {
        font-size: 1.1rem;
    }
    
    /* Adjust button groups for very small screens */
    .hero .btn-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .hero .btn-group .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Responsive adjustments for form elements */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Reviews section on small mobile */
    .review-card-slide {
        padding: 15px;
    }
    
    .review-text {
        font-size: 0.9rem;
    }
    
    /* Contact details stack better on small screens */
    .contact-detail {
        margin-bottom: 25px;
    }
    
    .contact-detail div {
        text-align: center;
    }
}
