/* =========================================================
   HERO
========================================================= */

.page-hero {
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/assets/images/spital-hero.jpg') center/cover no-repeat;
    filter: blur(4px);
    transform: scale(1.05);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,58,138,0.75), rgba(37,99,235,0.75));
}

.page-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 700;
}

.page-hero .hero-subtitle {
    margin-top: 10px;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

.page-hero .breadcrumb {
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.page-hero .separator {
    margin: 0 6px;
    opacity: 0.7;
}


/* =========================================================
   CONCURSURI LIST
========================================================= */

.concursuri-section {
    padding: 20px 0 60px;
}

.grid-concursuri {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.concurs-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #fff;
    border-radius: 14px;
    padding: 20px;

    border: 1px solid #e5e7eb;
    transition: 0.25s;
}

.concurs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* LEFT */
.card-left h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #64748b;
}

.card-meta span {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
}

/* RIGHT */
.card-right {
    text-align: right;
}

/* STATUS */
.status {
    display: inline-block;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    font-weight: 600;
}

.concurs-card.active .status {
    background: #dcfce7;
    color: #166534;
}

.concurs-card.ended .status {
    background: #fee2e2;
    color: #991b1b;
}

.concurs-card.inactive .status {
    background: #e5e7eb;
    color: #374151;
}

/* BUTTON */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary:hover {
    background: #1e40af;
}

/* EMPTY */
.empty-state {
    text-align: center;
    padding: 40px;
    border: 1px dashed #cbd5f5;
    border-radius: 10px;
    color: #64748b;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .concurs-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-right {
        text-align: left;
        margin-top: 10px;
    }
}

.concurs-card.active {
    border-left: 4px solid #22c55e;
}

.concurs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* BANNER HOME */

.home-concursuri-banner {
    margin: 20px auto;
    max-width: 900px;
}

.banner-full-link {
    display: block;
    text-align: center;

    padding: 12px 18px;
    border-radius: 10px;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    background: #eff6ff;
    color: #1e40af;

    border: 1px solid #bfdbfe;

    transition: all 0.25s ease;
}

/* hover elegant */
.banner-full-link:hover {
    background: #dbeafe;
    color: #1e3a8a;
}

/* =========================================
   STICKY BANNER
========================================= */

.sticky-concursuri {
    position: sticky;
    top: 0;
    z-index: 999;

    width: 100%;
    text-align: center;

    padding: 10px 15px;

    background: #eff6ff;
    color: #1e40af;

    border-bottom: 1px solid #bfdbfe;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.3s ease;
}

/* link */
.sticky-concursuri a {
    color: inherit;
    text-decoration: none;
}

/* hover */
.sticky-concursuri:hover {
    background: #dbeafe;
}

/* =========================================
   URGENT MODE
========================================= */

.sticky-concursuri.urgent {
    background: #fffbeb;
    color: #92400e;
    border-bottom: 1px solid #fde68a;
}

/* =========================================
   ICON ANIMATION (SUBTIL)
========================================= */

.sticky-concursuri .icon {
    margin-right: 6px;
    display: inline-block;
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(1.08); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* CTA */
.sticky-concursuri .cta {
    margin-left: 8px;
    font-weight: 500;
    opacity: 0.9;
}

/* LAYOUT */
.concurs-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* CARDURI */
.info-card,
.content-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
}

/* TITLURI */
.info-card h3,
.content-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1e293b;
}

/* INFO LIST */
.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #475569;
}

/* DESCRIERE */
.descriere {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #334155;
}

/* DOCUMENTE */
.doc-group {
    margin-bottom: 20px;
}

.doc-group h4 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #1e293b;
}

.documente-list {
    list-style: none;
    padding: 0;
}

.documente-list li {
    margin-bottom: 8px;
}

.documente-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    text-decoration: none;
    color: #1e293b;
    transition: 0.2s;
}

.documente-list a:hover {
    background: #e2e8f0;
}

/* BACK */
.back-link {
    margin-top: 30px;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #e5e7eb;
    color: #1e293b;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .concurs-layout {
        grid-template-columns: 1fr;
    }
}

/* INFO LIST – mai aerisit */
.info-list li {
    margin-bottom: 14px; /* era ~10px */
    line-height: 1.6;
}

/* DESCRIERE */
.descriere {
    margin-bottom: 30px;
    line-height: 1.7; /* mai lizibil */
}

/* TITLURI SECȚIUNI */
.info-card h3,
.content-card h3 {
    margin-bottom: 20px;
}

/* DOCUMENTE – spațiere mai mare */
.doc-group {
    margin-bottom: 25px;
}

.documente-list li {
    margin-bottom: 10px;
}

/* LINK DOCUMENT */
.documente-list a {
    padding: 10px 12px; /* mai „buton” */
}

/* spațiu între secțiuni mari */
.concurs-layout {
    margin-top: 50px;
}

/* spațiu între carduri */
.info-card,
.content-card {
    padding: 24px;
}

/* =========================================================
   DEADLINE HIGHLIGHT (URGENT)
========================================================= */

/* rând evidențiat */
.deadline-urgent {
    background: #fffbeb; /* galben foarte subtil */
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 4px solid #facc15; /* accent */
}

/* badge zile rămase */
.deadline-badge {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;

    background: #facc15;
    color: #92400e;

    padding: 3px 8px;
    border-radius: 6px;
}

/* hover mai fin */
.deadline-urgent:hover {
    background: #fef3c7;
}