/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for the Astra theme.
Author: Your Name
Author URI: https://yourwebsite.com/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

@import url("../astra/style.css"); /* Optional: Astra automatically handles style loading */
/* Make header sticky */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff; /* Change color if needed */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Optional: Add shadow */
}

/* Shrink header on scroll */
.ast-sticky-active .site-header {
    padding: 10px 0;
    transition: all 0.3s ease;
}



.form-message.error-message {
    font-size: 12px;
    color: red;
}

ul#menu-footer {
    margin: 0;
}


/* Mobile Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid #f1f1f1;
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        font-weight: 500;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1.5rem;
        background-color: #f8f9fa;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .d-none.d-lg-block {
        display: none !important;
    }
    
    /* Mobile menu animation */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        z-index: 1050;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 3.5rem;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .navbar-collapse.show {
        left: 0;
    }
    
    /* Close button for mobile menu */
    .close-menu {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
        z-index: 1051;
        color: #333;
    }
    
    /* Backdrop overlay */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
    }
    
    .menu-backdrop.show {
        display: block;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    
    .close-menu, .menu-backdrop {
        display: none !important;
    }
}

/* General Styles */
.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #d81159;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 100%;
}

.dropdown-menu {
    border: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #0d6efd;
    color: white;
}