/* Support Section Styles */
.support-section {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.support-container {
    width: 100%;
    max-width: 1005px;
    margin: 0 auto;
}

.support-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 28px 37px;
    gap: 40px;
    background: #292929;
    border-radius: 15px;
    min-height: 150px;
}

.support-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    max-width: 382px;
}

.support-label {
    width: auto;
    height: auto;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: #b53418;
    margin-bottom: 6px;
}

.support-title {
    width: 100%;
    height: auto;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 22.7px;
    line-height: 27px;
    color: #ffffff;
    margin: 0;
}

.support-description {
    width: 100%;
    height: auto;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 11px;
    line-height: 13px;
    color: #d2d7d1;
    margin: 0;
}

.support-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.support-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    gap: 10px;
    width: 217px;
    height: 48px;
    background: #ff4c4b;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.support-button:hover {
    background: #7e7e81;
}

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

.support-button i {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .support-section {
        padding: 30px 15px;
    }

    .support-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 28px 20px;
        min-height: auto;
    }

    .support-text {
        max-width: 100%;
        align-items: center;
        gap: 8px;
    }

    .support-label {
        font-size: 14px;
        line-height: 18px;
        margin-bottom: 8px;
    }

    .support-title {
        text-align: center;
        font-size: 22px;
        line-height: 28px;
    }

    .support-description {
        text-align: center;
        font-size: 14px;
        line-height: 20px;
        max-width: 300px;
        margin: 0 auto;
    }

    .support-button {
        width: 220px;
        height: 50px;
        padding: 14px 28px;
    }

    .support-button span {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 480px) {
    .support-section {
        padding: 25px 12px;
    }

    .support-content {
        padding: 24px 16px;
        gap: 20px;
    }

    .support-text {
        gap: 6px;
    }

    .support-label {
        font-size: 13px;
        line-height: 16px;
        margin-bottom: 6px;
    }

    .support-title {
        font-size: 20px;
        line-height: 26px;
    }

    .support-description {
        font-size: 13px;
        line-height: 18px;
        max-width: 280px;
    }

    .support-button {
        width: 200px;
        height: 48px;
        padding: 12px 24px;
    }

    .support-button span {
        font-size: 15px;
        line-height: 22px;
    }
}

/* Project Home Section Styles */
.project-home-section {
    position: relative;
    width: 100%;
    padding: 40px 0;
}

.project-home-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 29px 0;
    gap: 12px;
    width: 100%;
}

.project-home-title {
    width: 100%;
    max-width: 558px;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 48px;
    line-height: 58px;
    text-align: center;
    color: #292929;
}

.project-home-divider {
    width: 466px;
    height: 9px;
    background: #ff4c4b;
    border-radius: 6px;
}

.project-cards-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: 0;
    gap: 35px;
    width: 100%;
    max-width: 1502px;
    margin: 0 auto;
}

/* Project Grid Container */
.project-grid-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* Dynamic grid layouts based on project count */
.project-grid-single-row {
    grid-template-rows: 1fr;
    justify-content: center;
    max-width: 1200px; /* Limit width for better centering */
    margin: 0 auto;
}

.project-grid-two-rows {
    grid-template-rows: repeat(2, 1fr);
}

.project-grid-default {
    grid-template-rows: repeat(2, 1fr);
}

/* New Project Card Styling */
.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 0;

    /* Dynamic sizing - no fixed width/height */
    width: 100%;
    height: 100%;

    background: #ffffff;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    border-radius: 18px;
    overflow: hidden;
}

.project-card-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 8px;
    gap: 12px;
    width: 100%;
    flex: 1;
}

/* Project Details Section */
.project-details-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 11px;
    width: 100%;
}

.project-posted-time {
    width: 100%;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: #969399;
}

.project-title {
    width: 100%;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #ff4c4b;
    margin: 0;
}

/* Project Price Section */
.project-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.price-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 10px;
    width: 100%;
    background: rgba(247, 246, 248, 0.82);
    border-radius: 4px;
    padding: 10px;
}

.price-label {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
    color: #888489;
}

.price-value {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 17px;
    line-height: 20px;
    color: #565559;
}

/* Project Description Section */
.project-description-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 11px;
    width: 100%;
}

.project-description {
    width: 100%;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    padding-left: 12px;
    line-height: 22px;
    color: #8a8488;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Project Tags Section */
.project-tags-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #f7f6f8;
    border-radius: 7px;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #7f7e84;
}

.more-skills {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #feffff;
    border-radius: 7px;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #898a90;
}

/* Project Card Footer */
.project-card-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 28px 27px;
    gap: 83px;
    width: 100%;
    background: #f7f8f9;
    border-radius: 0px 0px 18px 18px;
}

.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.user-avatar {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name-project {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #292929;
}

.user-name-project-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.user-name-project-link:hover {
    color: #007bff;
}

.user-name-project-link:hover .user-name-project {
    color: #007bff;
}

.know-more-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 5px 10px;
    gap: 8px;
    width: 135px;
    height: 36px;
    background: #1c2021;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.know-more-button:hover {
    background: #ff4c4b;
    color: white;
    text-decoration: none;
}
.know-more-button span {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
    text-wrap-mode: nowrap;
}

.know-more-button i {
    color: #ffffff;
    font-size: 14px;
}

.project-status-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
}

.project-status-badge .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.project-status-badge .badge.active {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.project-status-badge .badge.pending {
    background: #f59e0b;
    color: #ffffff;
    border-color: #d97706;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.project-status-badge .badge.active::before {
    content: "●";
    margin-right: 4px;
    animation: pulse 2s infinite;
}

.project-status-badge .badge.pending::before {
    content: "⏳";
    margin-right: 4px;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Removed old project card content styling - replaced with new design */

.view-more-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    gap: 10px;
    height: 48px;
    width: fit-content;
    background: #ff4c4b;
    border-radius: 10px;
    margin: 35px auto 0;
    text-decoration: none;
}

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

.view-more-button i {
    color: #ffffff;
}
.project-card {
    padding-top: 4px;
    padding-bottom: 4px;
}
/* Responsive Styles for Grid Layout */
@media (max-width: 1200px) {
    .project-grid {
        gap: 20px;
    }

    .project-grid-container {
        padding: 0 15px;
    }

    .project-card-footer {
        gap: 40px;
        padding: 20px 20px;
    }

    .know-more-button {
        width: 120px;
    }
}

@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* Adjust single row layout for tablet */
    .project-grid-single-row {
        grid-template-rows: 1fr;
        justify-content: center;
        max-width: 800px; /* Adjust max width for tablet */
    }

    /* Adjust two rows layout for tablet */
    .project-grid-two-rows {
        grid-template-rows: repeat(2, 1fr);
    }

    /* Default layout for tablet */
    .project-grid-default {
        grid-template-rows: repeat(3, 1fr);
    }

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

    .project-home-divider {
        width: 300px;
    }

    .project-card-main {
        padding: 18px 6px;
        gap: 10px;
    }

    .project-title {
        font-size: 22px;
        line-height: 27px;
    }

    .project-description {
        font-size: 14px;
        line-height: 25px;
    }

    .project-card-footer {
        gap: 30px;
        padding: 20px 15px;
    }

    .know-more-button {
        width: 110px;
        height: 32px;
    }

    .know-more-button span {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto;
    }

    /* All layouts become single column on mobile */
    .project-grid-single-row,
    .project-grid-two-rows,
    .project-grid-default {
        grid-template-rows: none; /* Let content determine height */
    }

    .project-grid-container {
        padding: 0 20px;
    }

    .project-card-main {
        padding: 15px 5px;
        gap: 8px;
    }

    .project-title {
        font-size: 20px;
        line-height: 24px;
    }

    .project-posted-time {
        font-size: 14px;
        line-height: 17px;
    }

    .project-description {
        font-size: 12px;
        line-height: 22px;
    }

    .skill-tag,
    .more-skills {
        font-size: 14px;
        padding: 6px 10px;
    }

    .project-card-footer {
        gap: 20px;
        padding: 15px 12px;
    }

    .user-name-project {
        font-size: 17px;
        line-height: 21px;
    }

    .user-name-project-link:hover {
        color: #007bff;
    }

    .user-name-project-link:hover .user-name-project {
        color: #007bff;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .know-more-button {
        width: 100px;
        height: 30px;
        padding: 4px 8px;
    }

    .know-more-button span {
        font-size: 14px;
        line-height: 20px;
    }

    .know-more-button i {
        font-size: 12px;
    }

    .price-label {
        font-size: 15px;
    }

    .price-value {
        font-size: 17px;
    }
}

@media (max-width: 576px) {
    .project-home-title {
        font-size: 29px;
        line-height: 38px;
        padding: 0 15px;
    }

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

    .project-grid-container {
        padding: 0 15px;
    }

    .project-grid {
        gap: 15px;
    }
}

.no-projects-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 39px 20px;
    text-align: center;
    width: 100%;
    background: #f8f9fa;
    border-radius: 24px;
    border: 2px dashed #e9ecef;
}

.no-projects-icon {
    margin-bottom: 24px;
}

.no-projects-icon i {
    font-size: 64px;
    color: #6c757d;
    opacity: 0.6;
}

.no-projects-title {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 28px;
    line-height: 36px;
    color: #495057;
    margin-bottom: 16px;
}

.no-projects-description {
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .no-projects-message {
        padding: 40px 20px;
        min-height: 250px;
        width: 100%;
    }

    .no-projects-icon i {
        font-size: 48px;
    }

    .no-projects-title {
        font-size: 24px;
        line-height: 32px;
    }

    .no-projects-description {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 576px) {
    .no-projects-message {
        padding: 30px 15px;
        min-height: 200px;
        width: 100%;
    }

    .no-projects-icon i {
        font-size: 40px;
    }

    .no-projects-title {
        font-size: 20px;
        line-height: 28px;
    }

    .no-projects-description {
        font-size: 13px;
        line-height: 18px;
    }
}
