/* Mobile Styling */
@media only screen and (max-width: 768px) {
    /* General */
    body {
        font-size: 14px;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    /* Header */
    header {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
        text-align: center;
    }
    
    /* Navigation */
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav ul li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    /* Main content */
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
    
    .content-area {
        width: 100%;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Buttons */
    button, .btn {
        width: 100%;
        padding: 12px;
    }
    
    /* Forms */
    form input, form textarea, form select {
        width: 100%;
    }
    
    /* Tables */
    table {
        display: block;
        overflow-x: auto;
    }

    /* Hero section mobile specific padding */
    #home {
        padding-top: 72px !important; /* Ensures it doesn't overlap with header on mobile */
    }
}

/* Small phones */
@media only screen and (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .container {
        padding: 0 5px;
    }
}

/* Header and hero section positioning fix */
#home {
    padding-top: 64px; /* Default padding to account for header height */
    box-sizing: border-box;
}

/* Ensure fixed header doesn't overlap content */
body {
    padding-top: 0; /* Remove any default padding */
}

nav.fixed {
    position: fixed;
    width: 100%;
    z-index: 50;
}
