/* ====================
   RESPONSIVE STYLES
   ==================== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .dropdown-submenu .dropdown-menu {
        display: none;
        position: absolute;
        left: 100%;
        top: 0;
    }
    
    .dropdown-submenu:hover .dropdown-menu {
        display: block;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (max-width: 991px) {
    /* Header */
    .navbar-nav {
        padding: 20px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }
    
    .navbar-nav .nav-link:after {
        display: none;
    }
    
    .dropdown-menu {
        box-shadow: none;
        padding-left: 20px;
    }
    
    .dropdown-submenu .dropdown-menu {
        display: block;
        margin-left: 20px;
    }
    
    /* Hero Slider */
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h3 {
        font-size: 32px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
    
    /* Statistics */
    .stat-box {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .stat-box:last-child {
        border-bottom: none;
    }
    
    /* Admin */
    .admin-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }
    
    .admin-content {
        margin-left: 0;
    }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (max-width: 767px) {
    /* Header */
    .top-header {
        text-align: center;
    }
    
    .top-header .text-end {
        text-align: center !important;
        margin-top: 10px;
    }
    
    /* Hero Slider */
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 20%;
        transform: translateY(0);
    }
    
    .carousel-caption h3 {
        font-size: 24px;
    }
    
    /* Services */
    .service-card {
        max-width: 350px;
        margin: 0 auto 30px;
    }
    
    /* Statistics */
    .stat-box h3 {
        font-size: 36px;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 250px;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer h5:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    /* Hero Slider */
    .carousel-caption h3 {
        font-size: 20px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    /* Statistics */
    .stat-box h3 {
        font-size: 28px;
    }
    
    /* Admin */
    .admin-header {
        padding: 15px;
    }
    
    .admin-card {
        padding: 15px;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

/* Print styles */
@media print {
    .top-header,
    .navbar,
    footer,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}