.projects-page {

    max-width: 1200px;

    margin: 0 auto;

    padding: 50px 20px;
}

.projects-title {
    text-align: center;
    margin-bottom: 40px;
}

.project-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}

.project-card {

    background: #ffffff;

    border-radius: 18px;

    padding: 20px;

    height: 320px;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, .08);

    transition: .2s;

    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-card p {

    color: #64748b;

    line-height: 1.6;
}

.project-toolbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    width: 100%;

    box-sizing: border-box;

    margin-bottom: 40px;
}

.project-filter {

    display: flex;

    gap: 12px;
}

.filter-btn {

    height: 48px;

    border: none;

    padding: 0px 24px;

    border-radius: 12px;

    cursor: pointer;

    background: #e2e8f0;

    color: #0f172a;

    font-weight: 600;

    transition: .2s;
}

.filter-btn.active {

    background: #2563eb;

    color: #ffffff;
}

.filter-btn:hover {

    background: #1d4ed8;

    color: #ffffff;
}

.project-page {

    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    padding: 60px 20px;

    box-sizing: border-box;
}

.project-card-large {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, .08);
    text-align: center;
}

.project-card-large h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.project-card-large p {
    color: #64748b;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

#projectDescription {
    white-space: pre-line;
    text-align: left;
}

.download-btn {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
}

.download-btn:hover {
    background: #1d4ed8;
}

.project-comments {
    margin-top: 40px;
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, .08);
}

.project-comments h2 {
    margin-bottom: 20px;
}

#commentInput {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    resize: vertical;
}

#commentBtn {
    margin-top: 12px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.project-card-large {
    position: relative;
}

#backProjectBtn,
#editProjectBtn,
#deleteProjectBtn {

    background: none;

    border: none;

    padding: 0;

    cursor: pointer;

    font-size: 1.8rem;

    color: #64748b;
}

#backProjectBtn:hover {
    color: #0f172a;
}

#editProjectBtn:hover {
    color: #2563eb;
}

#deleteProjectBtn:hover {
    color: #ef4444;
}

#editProjectBtn,
#deleteProjectBtn {

    background: transparent;
    border: none;

    padding: 0;

    font-size: 1.4rem;

    cursor: pointer;

    color: #64748b;
}

#editProjectBtn:hover {
    color: #2563eb;
}

#deleteProjectBtn:hover {
    color: #ef4444;
}

.back-btn {

    margin-bottom: 20px;

    background: #2563eb;
    color: #fff;

    border: none;

    padding: 10px 16px;

    border-radius: 10px;

    cursor: pointer;
}

.back-btn:hover {
    background: #1d4ed8;
}

#uploadProjectBtn {

    height: 48px;

    padding: 0 24px;

    border: none;

    border-radius: 12px;

    background: #2563eb;

    color: #ffffff;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

#uploadProjectBtn:hover {

    background: #1d4ed8;
}

@media (max-width:768px) {

    .project-toolbar {

        justify-content: center;
    }

    .project-filter {

        justify-content: center;
    }

    #uploadProjectBtn {

        display: none;
    }
}

@media (max-width:768px) {

    .project-grid {

        grid-template-columns: 1fr;
    }

}

.project-card-large {

    position: relative;
}

.project-header-actions {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;
}

.project-manage-actions {

    display: flex;

    gap: 12px;
}

.upload-title {

    text-align: center;

    margin-bottom: 50px;

    font-size: 2rem;

    font-weight: 700;

    color: #0f172a;
}

.upload-card {

    max-width: 900px;

    margin: 0 auto;

    padding: 50px;
}

.upload-card label {

    display: block;

    margin-top: 18px;

    margin-bottom: 10px;

    font-weight: 700;

    font-size: 0.95rem;

    color: #0f172a;
}

.upload-card input,
.upload-card textarea,
.upload-card select {

    width: 100%;

    padding: 16px 18px;

    border: 1px solid #dbe3ee;

    border-radius: 12px;

    font-size: 1rem;

    box-sizing: border-box;
}

.upload-card textarea {

    min-height: 180px;

    resize: vertical;

    line-height: 1.7;
}

#saveProjectBtn {

    margin-top: 35px;

    width: 40%;

    height: 60px;

    display: block;

    margin-left: auto;
    margin-right: auto;

    border: none;

    border-radius: 12px;

    background: #2563eb;

    color: white;

    font-size: 1rem;

    font-weight: 700;

    cursor: pointer;
}

#saveProjectBtn:hover {

    background: #1d4ed8;
}

@media (max-width:768px) {

    .upload-card {

        padding: 25px;
    }

    .upload-title {

        font-size: 1.6rem;

        margin-bottom: 35px;
    }

    .upload-card label {

        margin-top: 14px;
    }

}

.project-card {

    min-width: 0;
}

.project-ad-section {

    margin-top: 40px;
    margin-bottom: 40px;
}

.community-ad-section {

    margin-bottom: 30px;
}

.ad-placeholder {

    min-height: 120px;

    border: 2px dashed #cbd5e1;

    border-radius: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f8fafc;

    color: #64748b;

    font-weight: 600;
}