/* =========================================================
   ANUNTURI - PUBLIC
========================================================= */

.anunturi-page {
    background: #f5f8fc;
    min-height: 60vh;
}


/* =========================================================
   CONTAINER / SPACING
========================================================= */

.anunturi-page .section {
    padding-top: 42px;
    padding-bottom: 42px;
}

.anunturi-page .container {
    max-width: 1240px;
}


/* =========================================================
   TITLURI
========================================================= */

.anunturi-page .section-title {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.anunt-single .section-title {
    text-align: left;
    margin-top: 22px;
    margin-bottom: 28px;
    font-size: clamp(30px, 3vw, 44px);
}


/* =========================================================
   BUTON INAPOI
========================================================= */

.anunt-single > .btn,
.anunturi-page .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}


/* =========================================================
   PAGINA DETALIU
========================================================= */

.anunt-single {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 34px 38px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    margin-top: 18px;
}

.anunt-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 22px;
    color: #475569;
    font-size: 15px;
}

.anunt-single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.anunt-lead {
    font-size: 18px;
    line-height: 1.65;
    color: #334155;
    margin: 0 0 22px;
    font-weight: 500;
}

.anunt-content {
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
    margin-top: 10px;
    max-width: 1050px;
}


/* =========================================================
   DOCUMENTE ATASATE
========================================================= */

.anunt-documents {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.anunt-documents h2 {
    font-size: 24px;
    margin: 0 0 18px;
    color: #1e293b;
}

.anunt-documents-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.anunt-document {
    display: flex;
    align-items: center;
    min-height: 72px;
    padding: 16px 18px;

    background: #f8fafc;
    border: 1px solid #dbe3ed;
    border-radius: 10px;

    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.anunt-document:hover {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 5px 16px rgba(37, 99, 235, 0.10);
    transform: translateY(-2px);
}


/* =========================================================
   LISTA ANUNTURI
========================================================= */

.anunturi-page .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.anunt-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.anunt-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 14px;
}

.anunt-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf1fb;
    color: #1e4f8f;
    font-size: 13px;
    font-weight: 600;
}

.anunt-title {
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.3;
}

.anunt-title a {
    color: #172033;
    text-decoration: none;
}

.anunt-title a:hover {
    color: #2563eb;
}

.anunt-summary {
    margin: 0 0 18px;
    color: #475569;
    line-height: 1.65;
}

.anunt-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: auto;
    padding-top: 10px;
    color: #64748b;
    font-size: 14px;
}

.anunt-actions {
    margin-top: 20px;
}


/* =========================================================
   BADGES
========================================================= */

.badge-new,
.badge-expired {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-new {
    background: #dcfce7;
    color: #166534;
}

.badge-expired {
    background: #e2e8f0;
    color: #475569;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .anunt-documents-list,
    .anunturi-page .grid-cards {
        grid-template-columns: 1fr;
    }

    .anunt-single {
        padding: 26px;
    }
}


@media (max-width: 600px) {

    .anunturi-page .section {
        padding-top: 26px;
        padding-bottom: 28px;
    }

    .anunt-single {
        padding: 20px;
        border-radius: 10px;
    }

    .anunt-single .section-title {
        font-size: 28px;
        margin-top: 18px;
    }

    .anunt-single-meta {
        flex-direction: column;
        gap: 7px;
    }

    .anunt-lead {
        font-size: 17px;
    }

    .anunt-document {
        min-height: auto;
    }
}

/* =========================================================
   FINISAJE VIZUALE - 2026-10-06
========================================================= */

.anunturi-page .section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.anunturi-page .section.pt-0 {
    padding-top: 8px;
}

.anunt-single .section-title {
    font-size: clamp(30px, 2.6vw, 40px);
}

.anunt-document {
    cursor: pointer;
}

.anunt-document:hover {
    background: #eef4ff;
    border-color: #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}
