/**
 * JobSure Mobile Responsive CSS
 * Improves the mobile view of the website
 */

/* Mobile-specific adjustments */
@media (max-width: 767.98px) {
    /* General improvements */
    body {
        font-size: 14px;
    }
    
    h1, .h1 {
        font-size: 1.8rem !important;
    }
    
    h2, .h2 {
        font-size: 1.5rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Card improvements */
    .job-card {
        margin-bottom: 20px !important;
    }
    
    .job-card .card-body {
        padding: 1rem !important;
    }
    
    .job-card .card-title {
        font-size: 1rem !important;
        height: auto !important;
        min-height: 2.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .job-card .card-text {
        font-size: 0.85rem !important;
        height: auto !important;
        min-height: 3.8rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .job-card .card-img-top {
        height: 140px !important;
    }
    
    /* Fix for card grid */
    .col-6 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .row {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }
    
    /* Button improvements */
    .btn {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Badge improvements */
    .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* Footer improvements */
    .footer {
        padding: 30px 0 20px !important;
    }
    
    .footer-link {
        margin-bottom: 10px !important;
        display: inline-block !important;
    }
    
    /* Navigation improvements */
    .navbar-brand {
        max-width: 60% !important;
        overflow: hidden !important;
    }
    
    /* Fix for competitive tag and view details button */
    .card-footer {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 0.75rem 0 0 0 !important;
    }
    
    .competitive-tag {
        display: inline-block !important;
        margin-bottom: 8px !important;
    }
    
    /* Improve pagination on mobile */
    .pagination .page-link {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Fix for hero section */
    .page-hero {
        padding: 30px 0 !important;
    }
    
    .page-hero-icon {
        max-height: 150px !important;
        margin-top: 20px !important;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    /* Even smaller text and spacing */
    body {
        font-size: 13px;
    }
    
    h1, .h1 {
        font-size: 1.5rem !important;
    }
    
    h2, .h2 {
        font-size: 1.3rem !important;
    }
    
    /* Keep two cards per row even on small screens */
    .col-6 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
    
    .job-card .card-img-top {
        height: 180px !important;
    }
    
    /* Improve button display */
    .btn {
        display: block !important;
        width: 100% !important;
    }
    
    /* Fix for competitive tag */
    .competitive-tag {
        display: block !important;
        text-align: center !important;
    }
}
