/* =========================================================
   PROJECT CARD
   ========================================================= */

.project-card {
    position: relative;
    width: 100%;
    min-height: 310px;
    height: 100%;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-light);
    border-radius: 18px !important;
    padding: 20px !important;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent), #e88962);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.save-btn-top-right {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #555555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.save-btn-top-right:hover {
    color: var(--card-accent);
    border-color: var(--card-accent);
    background: rgba(191, 79, 38, 0.06);
    transform: translateY(-1px);
}

.save-btn-top-right.saved {
    color: var(--card-accent);
    border-color: rgba(191, 79, 38, 0.35);
    background: rgba(191, 79, 38, 0.08);
}

.project-card .d-flex.mb-3 {
    margin-bottom: 22px !important;
    align-items: flex-start;
}

/* Project Image */
.project-img {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px;
    border: 1px solid #e5e5e5 !important;
    border-radius: 14px !important;
    padding: 5px !important;
    background: #fafafa !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover .project-img {
    border-color: rgba(191, 79, 38, 0.25) !important;
    transform: scale(1.02);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-img i {
    color: #a0a0a0 !important;
    font-size: 27px !important;
}

/* Header Content */
.project-header-content {
    min-width: 0;
    padding-top: 1px;
}

.project-title {
    margin: 0 !important;
    color: var(--text-primary);
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 5px;
    transition: color 0.25s ease;
}

.project-card:hover .project-title {
    color: var(--card-accent);
}

/* Project Meta */
.project-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    margin-bottom: 18px !important;
    padding: 14px 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.project-meta>div {
    width: 50%;
}

.project-meta>div:first-child {
    padding-right: 15px;
    border-right: 1px solid #ededed;
}

.project-meta>div:last-child {
    padding-left: 15px;
}

.project-meta span {
    display: block;
    color: var(--accent) !important;
    font-size: 12px !important;
    font-weight: 500;
    margin-bottom: 3px;
}

.project-meta strong {
    color: var(--accent);
    font-size: 18px !important;
    line-height: 1.2;
    font-weight: 700;
}

/* Project Rating */
.project-rating {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px !important;
    font-size: 14px;
    color: var(--accent);
}

.project-rating i {
    font-size: 14px;
}

.project-rating .fa-star {
    color: #f7b500;
}

.project-rating strong {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.project-rating span {
    font-size: 12px !important;
}

.project-rating>div:last-child {
    color: var(--accent) !important;
    font-size: 12px !important;
    font-weight: 600;
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 10px;
    margin-top: 2px;
}

/* Swiper Slide Fix */
.swiper-slide>.col-md-6.col-lg-6.col-xl-3 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

/* Project Icon */
.project-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.project-icon i {
    font-size: 25px;
}

.project-icon.ecommerce {
    background: #fff2eb;
}

.project-icon.ecommerce i {
    color: #BF4F26;
}

.mobile-app {
    background-color: #d7edd7 !important;
}

.mobile-app i {
    color: #3e893e !important;
}

.blog-art {
    background-color: #eae3f3 !important;
}

.blog-art i {
    color: #ae72de !important;
}

/* =========================================================
   TAB CONTENT
   ========================================================= */

.tab-content,
.tab-content-box {
    display: none;
}

.tab-content-box.active {
    display: block;
}

/* =========================================================
   GENERIC CARDS
   ========================================================= */

.custom-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
}

.dashboard-card {
    background: var(--bg-sidebar);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    height: 100%;
}

/* =========================================================
   LIST ITEMS (Portfolio / Application / Message)
   ========================================================= */

.portfolio-item,
.application-item,
.message-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.portfolio-item:last-child,
.application-item:last-child,
.message-row:last-child {
    border-bottom: none;
}

.portfolio-item img {
    width: 80px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
}

.application-item img,
.message-row img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
}

.portfolio-content,
.application-content,
.message-content {
    flex: 1;
}

.portfolio-content h6,
.application-content h6,
.message-content h6 {
    margin-bottom: 3px;
    font-weight: 600;
}

.portfolio-content span,
.application-content span,
.message-content p {
    color: var(--accent);
    font-size: 13px;
}

.portfolio-actions {
    display: flex;
    gap: 12px;
    color: #888;
}

.portfolio-stats {
    margin-top: 5px;
    display: flex;
    gap: 15px;
    font-size: 13px;
}

/* Status Badges */
.pending {
    background: #fff3e8;
    color: #f2994a;
}

.viewed {
    background: #eef3ff;
    color: #4a6cf7;
}

.shortlist {
    background: #e8fff0;
    color: #27ae60;
}

/* =========================================================
   REVIEWS
   ========================================================= */

.review-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.review-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.review-content2 h6 {
    font-size: 15px;
    margin-bottom: 2px;
    font-weight: 700;
}

.review-content2 span {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
}

.review-content2 p {
    font-size: 15px;
    color: var(--accent);
    margin-top: 4px;
}

.rating {
    font-size: 13px;
    margin-top: 4px;
}

/* =========================================================
   CIRCLE PROGRESS
   ========================================================= */

.circle-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient(#356AE6 0% 35%,
            #7EA3F5 35% 55%,
            #4CC38A 55% 75%,
            #F5B23D 75% 90%,
            #F28C28 90% 100%);
}

.circle-progress::before {
    content: "";
    position: absolute;
    width: 98px;
    height: 98px;
    background: #fff;
    border-radius: 50%;
}

.circle-progress span,
.circle-progress small {
    position: relative;
    z-index: 2;
}

.circle-progress span {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.circle-progress small {
    color: #777;
    font-size: 13px;
}

.circle-progress.green {
    background: conic-gradient(#16a34a 0% 90%, #e5e7eb 90% 100%);
}

/* =========================================================
   SKILL LISTS
   ========================================================= */

.skill-list,
.profile-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list2 li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: var(--accent);
}

.skill-list2 li div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.skill-dot.web {
    background: #356AE6;
}

.skill-dot.uiux {
    background: #7EA3F5;
}

.skill-dot.mobile {
    background: #4CC38A;
}

.skill-dot.seo {
    background: #F5B23D;
}

.skill-dot.content-skill {
    background: #F28C28;
}

/* =========================================================
   PROFILE CHECK LIST
   ========================================================= */

.profile-check-list li {
    margin-bottom: 12px;
    color: var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.profile-check-list i {
    color: #16a34a;
    margin-right: 8px;
}

.profile-check-list li:last-child {
    border-bottom: none;
}

.check-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.progress-right {
    width: 180px;
    text-align: right;
}

.progress-text {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.mini-progress {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, .12);
    border-radius: 20px;
    overflow: hidden;
}

.mini-progress-bar {
    height: 100%;
    border-radius: 20px;
    background: #0F2B96;
}

/* =========================================================
   DEADLINES
   ========================================================= */

.deadline-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.deadline-content {
    flex: 1;
}

.deadline-content h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.deadline-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.deadline-right span {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 4px;
}

.deadline-right small {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.deadline-item i {
    font-size: 20px;
    color: var(--accent);
}

.view-calendar {
    color: #BF4F26;
    font-weight: 600;
}

/* =========================================================
   FIND PROJECTS / JOB CARD
   ========================================================= */

.project-job-card {
    background: var(--bg-sidebar);
    /* border: 1px solid var(--border-light); */
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.project-job-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.project-job-header img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.project-job-info {
    flex: 1;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.title-row h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.new-badge {
    background: #DFF7E6;
    color: #34A853;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.location {
    color: var(--accent);
    font-size: 14px;
    margin: 4px 0 8px;
}

.location i {
    font-size: 12px;
}

.project-job-info p {
    margin: 0;
    color: var(--accent);
    font-size: 14px;
    line-height: 1.5;
}

.project-job-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.project-job-footer small {
    display: block;
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 2px;
}

.project-job-footer h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.apply-btn-wrap {
    text-align: center;
    margin-top: 20px;
}



/* =========================================================
   PROJECT CARD - COMPACT & PREMIUM UI
   ========================================================= */

.project-card-custom {
    position: relative;
    width: 100%;
    height: 100%;

    background: var(--bg-sidebar);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); */
    transition: all 0.3s ease;
}

/* =========================================================
   TOP IMAGE SECTION (SMALLER HEIGHT)
   ========================================================= */
.project-card-header {
    position: relative;
    width: 100%;
    height: 160px;
    /* Image ki height chhoti ki */
    min-height: 160px;
    background: #f3f3f3;
    overflow: hidden;
}

.project-image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-sidebar);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-bottom: 1px solid var(--border-light);
}

.project-card-custom:hover .project-image-placeholder img {
    transform: scale(1.05);
}

.project-image-placeholder i {
    font-size: 40px;
    color: #b8b8b8;
}

/* =========================================================
   HEADER ACTIONS (Proposals & Save Fixed at Top)
   ========================================================= */
.header-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    /* Ek ke neeche ek */
    align-items: flex-end;
    gap: 8px;
    z-index: 10;
}

/* Proposals Badge */
.proposals-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.proposals-badge i {
    font-size: 12px;
    color: #555;
}

/* Save Button */
.save-btn-custom {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

/* .save-btn-custom:hover {
    background: #f8f8f8;
    color: #111;
    transform: scale(1.05);
} */

.save-btn-custom.saved {
    background: var(--bg-card);
    color: var(--accent);
}

/* =========================================================
   BODY (Compact Padding)
   ========================================================= */
.project-card-body {
    position: relative;
    padding: 16px 16px 16px;
    background: var(--bg-sidebar);
}

/* Title */
.project-card-title {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* min-height: 44px; */
}

/* Skills */
.project-skills-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 32px;
    margin-bottom: 16px;
}

.project-skills-wrapper span,
.project-skills-wrapper .skill-tag,
.project-skills-wrapper .badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    /* background: #f1f1f1; */
    color: var(--accent);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* =========================================================
   BUDGET & DURATION (Compact Box)
   ========================================================= */
.project-stats-row {
    width: 100%;
    padding: 12px 14px;
    background: var(--project-recommended);
    border-radius: 12px;
    gap: 8px;
}

.stat-box {
    flex: 1;
    min-width: 0;
}

.stat-content {
    /* display: flex; */
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    color: #777;
    font-size: 15px;
    font-weight: 500;
}

.stat-value {
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Duration Box - Clock + Days Perfect Alignment */
.duration-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1e1e1e);
    white-space: nowrap;
}

.duration-box i.fa-clock {
    font-size: 15px;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
    top: 1px;
    /* Clock icon ko text ke saath vertically align karne ke liye */
}

.duration-box .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1e1e1e);
    line-height: 1.2;
}



/* =========================================================
   APPLY BUTTON (Full Width)
   ========================================================= */
.project-actions {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 14px !important;
}



/* =========================================================
   SWIPER / BOOTSTRAP FIXES
   ========================================================= */
.swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

.swiper-slide>.col-md-6,
.swiper-slide>.col-lg-6,
.swiper-slide>.col-xl-3 {
    width: 100%;
    max-width: 100%;
    display: flex;
}

/* =========================================================
   RESPONSIVE (Chhote screens ke liye aur compact)
   ========================================================= */
@media (max-width: 1399px) {
    .project-card-header {
        height: 150px;
        min-height: 150px;
    }

    .project-card-title {
        font-size: 16px;
    }
}

@media (max-width: 1199px) {
    .project-card-custom {
        /* min-height: 440px; */
    }

    .project-card-header {
        height: 140px;
        min-height: 140px;
    }
}

@media (max-width: 767px) {
    .project-card-custom {
        /* min-height: 420px; */
        border-radius: 16px;
    }

    .project-card-header {
        height: 140px;
        min-height: 140px;
    }

    .project-card-body {
        padding: 14px;
    }

    .project-card-title {
        font-size: 15px;
        min-height: 40px;
    }

    .save-btn-custom {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .proposals-badge {
        padding: 4px 8px;
        font-size: 10px;
    }

    .btn-primary-custom {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .project-card-header {
        height: 130px;
        min-height: 130px;
    }

    .project-stats-row {
        padding: 10px;
    }

    .stat-value {
        font-size: 14px;
    }
}



/* Recommended Freelancer Slider Fix */
.recommended-freelancer-slider {
    width: 100%;
    overflow: hidden;
    padding-bottom: 10px;
}

.recommended-freelancer-slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.recommended-freelancer-slider .swiper-slide {
    height: auto;
    display: flex;
    flex-shrink: 0;
    box-sizing: border-box;
}

.recommended-freelancer-slider .swiper-slide .freelance-widget {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
} 


/* ============================================
   MOBILE FIX FOR RANK PROGRESS CARD
   ============================================ */
@media (max-width: 576px) {
    /* 1. Progress Bar ke labels (0, 70, 80, 92, 100) ko chhota karein */
    .rank-progress-labels {
        font-size: 10px !important; /* Font size chhota */
        top: -20px !important;
    }

    /* 2. Tier Labels (Bronze, Silver, etc.) ko mobile par stack/wrap karein */
    .rank-tier-labels {
        display: flex !important;
        flex-wrap: wrap !important; /* Wrap hone dein */
        justify-content: center !important;
        gap: 5px 10px !important; /* Thoda gap */
        height: auto !important; /* Fixed height hata dein */
        margin-top: 12px !important;
        position: relative !important;
    }

    /* 3. Har tier label ko absolute position se hata kar normal flow mein layein */
    .rank-tier-labels span {
        position: relative !important; /* Absolute se relative */
        left: auto !important;
        right: auto !important;
        transform: none !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        padding: 2px 6px !important;
        background: #f8f8f8; /* Optional: background taaki clear dikhe */
        border-radius: 4px;
        white-space: nowrap;
    }

    /* 4. Specific labels ke liye extra spacing ya hide (agar zaroorat ho) */
    .tier-bronze-label,
    .tier-silver-label,
    .tier-gold-label,
    .tier-platinum-label {
        /* Sabko normal flow mein le aayein */
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    /* 5. Tooltip (White Circle) ko thoda chhota karein */
    .rank-tooltip {
        min-width: 18px !important;
        height: 18px !important;
        font-size: 9px !important;
        line-height: 1 !important;
    }

    /* 6. Rank Card ka padding thoda kam karein */
    .rank-card {
        padding: 15px 12px 15px !important;
    }

    /* 7. Rank Card Title font size */
    .rank-card-title {
        font-size: 15px !important;
    }
    
    /* 8. Rank Pill (Rank 60) */
    .rank-pill {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
}