/* Freelancer Home Section Styles */
.freelancer-home-section {
    position: relative;
    width: 100%;
    padding: 40px 0;
    background: #ffffff;
    z-index: 1;
    clear: both;
    overflow: hidden;
}

.freelancer-home-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
    gap: 16px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.freelancer-home-title {
    width: 100%;
    max-width: 600px;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 48px;
    line-height: 58px;
    text-align: center;
    color: #292929;
    margin: 0;
    position: relative;
    z-index: 10;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
}

.freelancer-home-subtitle {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    text-align: center;
    color: #666666;
    margin: 8px 0;
    position: relative;
    z-index: 10;
}

.freelancer-home-divider {
    width: 466px;
    height: 9px;
    background: #ff4c4b;
    border-radius: 6px;
    margin: 16px auto 0;
    position: relative;
    z-index: 10;
}

.freelancer-cards-container {
    display: flex;
    gap: 35px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .freelancer-cards-container {
        overflow-x: auto;
    }
}
.freelancer-cards-container .freelancer-card {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    max-width: 285px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 3;
    margin: 0 auto;
}

.freelancer-cards-container .freelancer-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #ff4c4b;
}

.freelancer-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.freelancer-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.freelancer-details {
    flex: 1;
}

.freelancer-name {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    line-height: 120%;
    color: #292929;
    margin: 0 0 5px;
    display: flex;
    align-items: center;
}

.freelancer-name .verify {
    margin-left: 5px;
    color: #fb5437;
    font-size: 14px;
}

.freelancer-specialty {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 120%;
    color: #666666;
    margin: 0 0 5px;
}

.freelancer-rating {
    display: flex;
    align-items: center;
}

.freelancer-rating i {
    color: #fb5437;
    font-size: 14px;
    margin-right: 3px;
}

.freelancer-rating i.empty {
    color: #cccccc;
}

.freelancer-rating span {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 14px;
    margin-left: 5px;
    color: #666666;
}

.freelancer-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: #666666;
    margin-bottom: 10px;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list li i,
.info-list li img {
    margin-right: 8px;
    color: #fb5437;
    font-size: 14px;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* No Data Message Styles */
.no-data-message {
    font-family: "Roboto", sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 13px;
    line-height: 120%;
    color: #999999;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    display: inline-block;
    margin-left: 2px;
}

.freelancer-specialty .no-data-message {
    font-size: 12px;
    color: #888888;
    background: #f5f5f5;
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.view-profile-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background: #292929;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.view-profile-button:hover {
    background: #fb5437;
    color: #ffffff;
}

.view-all-freelancers-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    gap: 12px;
    width: fit-content;
    height: 52px;
    background: #ff4c4b;
    border-radius: 12px;
    margin: 60px auto 0;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 76, 75, 0.3);
    position: relative;
    z-index: 3;
}

.view-all-freelancers-button span {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: #ffffff;
}

.view-all-freelancers-button:hover {
    background: #e63e3d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 76, 75, 0.4);
}

.view-all-freelancers-button i {
    width: 20px;
    height: 20px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.view-all-freelancers-button:hover i {
    transform: translateX(3px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .freelancer-cards-container {
        max-width: 100%;
        padding: 0 30px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .freelancer-home-section {
        padding: 60px 0;
        margin-top: 40px;
    }

    .freelancer-home-header {
        margin-bottom: 60px;
        padding: 20px 0;
    }

    .freelancer-home-title {
        font-size: 40px;
        line-height: 48px;
    }

    .freelancer-home-divider {
        width: 350px;
    }

    .freelancer-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .freelancer-home-section {
        padding: 50px 0;
        margin-top: 30px;
    }

    .freelancer-home-header {
        margin-bottom: 40px;
        padding: 16px 0;
    }

    .freelancer-home-title {
        font-size: 32px;
        line-height: 38px;
        padding: 0 15px;
    }

    .freelancer-home-subtitle {
        font-size: 16px;
        padding: 0 15px;
    }

    .freelancer-home-divider {
        width: 250px;
    }

    .freelancer-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .freelancer-cards-container .freelancer-card {
        max-width: 100%;
        padding: 25px 20px;
    }

    .view-all-freelancers-button {
        margin-top: 40px;
        padding: 12px 24px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .freelancer-home-title {
        font-size: 28px;
        line-height: 34px;
    }

    .freelancer-home-divider {
        width: 200px;
        height: 6px;
    }

    .freelancer-cards-container .freelancer-card {
        padding: 20px 15px;
    }

    .freelancer-home-header {
        gap: 12px;
    }
}
