/* // X-Small devices (portrait phones, less than 576px) */

@media (max-width: 575.98px) {
    .person-list-h-535 {
        height: auto;
    }
    .no-message {
        font-size: 24px;
        line-height: 36px;
    }
    .no-message-des {
        font-size: 14px;
        line-height: 22px;
    }
    /* content */
    .hero-rating {
        border-left: 0;
    }
    .hero-one-title {
        font-size: 48px;
        line-height: 1.4;
    }
    .hero-form-wrapper .form-control {
        border-left: 0;
    }
    .hero-form-wrapper .form-select {
        display: none;
    }
    .py-110 {
        padding: 50px 0;
    }
    .pt-110 {
        padding-top: 50px;
    }
    .blog-details-title {
        font-size: 26px;
        line-height: 1.4;
    }
    .service-details-title {
        font-size: 24px;
        line-height: 1.3;
    }
    .border-end {
        border-right: 0 !important;
    }
    .cta-counter-title,
    .section-title {
        font-size: 26px;
        line-height: 1.5;
    }
    .company-profile-card-title,
    .job-wage,
    .text-24,
    .service-card-price {
        font-size: 18px;
    }
    .blog-title a,
    .footer-widget-title,
    .feature-card-title,
    .job-post-title,
    .service-details-subtitle,
    .freelancer-name a {
        font-size: 20px;
    }
    .service-review-count {
        width: 100%;
    }
    .faq-accordions .accordion .accordion-item .accordion-button,
    .footer-nav-list .footer-nav-list-item .footer-nav-link,
    .text-18 {
        font-size: 16px;
    }
    .job-posts-container,
    .review-card {
        padding: 30px;
    }
}


/* // Small devices (landscape phones, less than 768px) */

@media (max-width: 767.98px) {
    .hero-one {
        padding-top: 80px;
    }
    .hero-one-title {
        font-size: 42px;
    }
    .hero-one-img {
        max-width: 100%;
    }
    /* content */
    .hero-two-title {
        font-size: 40px;
        line-height: 1.4;
    }
    /* Cta */
    .cta-wrapper {
        padding: 20px;
    }
    .custom-dropdown.dropdown {
        width: 100%;
    }
    .cta-area-bg {
        padding: 35px;
    }
    .cta-counter-item {
        width: 100%;
    }
    .section-title-light {
        font-size: 30px;
        line-height: 1.3;
    }
    .top-seller-name {
        font-size: 18px;
    }
    .job-post-horizontal-title a {
        line-height: 28px;
        font-size: 16px;
    }
    .feature-category-link a,
    .service-card-author-name,
    .service-card-title {
        font-size: 16px;
    }
}


/* // Medium devices (tablets, less than 992px) */

@media (max-width: 991.98px) {
    /* content */
    .border-end {
        border-right: 0 !important;
    }
    .custom-dropdown-toggle.dropdown-toggle {
        width: 100%;
    }
    .pb-150 {
        padding-bottom: 60px;
    }
    .py-110 {
        padding: 60px 0;
    }
    .pt-110 {
        padding-top: 60px;
    }
    .about-company {
        padding-top: 20px;
    }
}


/* // Large devices (desktops, less than 1200px) */

@media (max-width: 1199.98px) {
    .hero-two {
        padding: 150px 0 0 0;
    }
    /* content */
    .hero-two-img {
        position: relative;
        transform: none;
    }
    .dashboard-main {
        margin-left: 0;
    }
    .dashboard-header {
        margin-left: 0;
    }
}


/* // X-Large devices (large desktops, less than 1400px) */

@media (max-width: 1399.98px) {}

@media (max-width: 1440px) {}

/* Mobile App-Like Enhancements */

/* Mobile Card Optimizations */
@media (max-width: 768px) {
    /* Service Cards */
    .service-card, .modern-service-card {
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease;
    }

    .service-card:active, .modern-service-card:active {
        transform: scale(0.98);
    }

    /* Job Cards */
    .job-card, .job-post-card {
        margin-bottom: 1rem;
        border-radius: 12px;
        padding: 1rem;
        min-height: auto;
    }

    /* Talent Cards */
    .talent-card, .modern-talent-card {
        margin-bottom: 1rem;
        border-radius: 12px;
        min-height: 280px;
        max-height: 320px;
    }

    /* Company Cards */
    .company-card {
        margin-bottom: 1rem;
        border-radius: 12px;
        padding: 1rem;
    }

    /* Dashboard Cards */
    .dashboard-card, .card {
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /* Touch-Friendly Buttons */
    .btn {
        min-height: 44px;
        padding: 12px 16px;
        border-radius: 8px;
        font-weight: 500;
    }

    /* Form Controls */
    .form-control, .form-select {
        min-height: 44px;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Dropdown Toggles */
    .dropdown-toggle {
        min-height: 44px;
        padding: 12px 16px;
    }

    /* Links and Clickable Elements */
    a, button, .clickable {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Grid Adjustments */
    .row-cols-xl-5 {
        --bs-columns: 2;
    }

    .row-cols-xl-4 {
        --bs-columns: 2;
    }

    .row-cols-lg-3 {
        --bs-columns: 2;
    }

    /* Stats Grid */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Performance Metrics */
    .performance-overview .metric-card {
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 0.75rem;
    }

    /* Order Cards */
    .orders-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .order-card {
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 0.75rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 576px) {
    /* Further optimize for small screens */
    .talent-card, .modern-talent-card {
        min-height: 260px;
        max-height: 300px;
        padding: 0.875rem;
    }

    .service-card, .modern-service-card {
        padding: 0.875rem;
    }

    .job-card, .job-post-card {
        padding: 0.875rem;
    }

    /* Single column layout for very small screens */
    .row-cols-xl-5,
    .row-cols-xl-4,
    .row-cols-lg-3 {
        --bs-columns: 1;
    }

    /* Stats in single column */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Smaller text for mobile */
    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.875rem;
    }

    /* Compact headers */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }
}