/* Responsive Styles */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .hero {
        padding: 6rem 0;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .dropdown-menu {
        border: none;
        background-color: transparent;
        padding-left: 1rem;
    }
    
    .hero {
        padding: 5rem 0;
        text-align: center;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .card {
        margin-bottom: 2rem;
    }
    
    /* Admin Panel Responsive */
    .admin-sidebar {
        position: fixed;
        left: -250px;
        top: 76px;
        width: 250px;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .admin-sidebar.show {
        left: 0;
    }
    
    .admin-content {
        margin-left: 0 !important;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    footer {
        text-align: center;
    }
    
    .social-links {
        margin-bottom: 2rem;
    }
    
    /* Form Responsiveness */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Table Responsiveness */
    .table-responsive {
        margin-bottom: 1rem;
    }
    
    /* Button Adjustments */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn {
        width: auto;
        margin-bottom: 0;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-padding {
        padding: 2.5rem 0;
    }
    
    /* Card Adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Form Elements */
    .form-control {
        font-size: 0.9rem;
    }
    
    /* Footer Adjustments */
    footer h6 {
        margin-top: 1.5rem;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        line-height: 32px;
    }
}

/* Custom Classes for Responsive Behavior */
.hide-on-mobile {
    display: none !important;
}

@media (min-width: 768px) {
    .hide-on-mobile {
        display: block !important;
    }
    
    .hide-on-desktop {
        display: none !important;
    }
}

/* Responsive Typography */
@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    h4 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 0.9rem !important;
    }
}

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Responsive Spacing */
@media (max-width: 767.98px) {
    .mb-sm-0 {
        margin-bottom: 0 !important;
    }
    
    .mb-sm-3 {
        margin-bottom: 1rem !important;
    }
    
    .mb-sm-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-sm-3 {
        margin-top: 1rem !important;
    }
    
    .mt-sm-4 {
        margin-top: 1.5rem !important;
    }
}
