/* Estils propis de la landing (no coberts per base_public.css):
   secció de notícies, bloc estudiant/empresa i botons centrals. */

/* ===== SECCIÓ NOTÍCIES ===== */
.noticies-section {
    background: #ffffff;
    padding: 2.5rem 0 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.noticies-wrapper {
    position: relative;
}

.noticies-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0.25rem 1.5rem 0.25rem;
    scrollbar-width: thin;
}

.noticies-scroll::-webkit-scrollbar {
    height: 8px;
}

.noticies-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.noticia-card {
    flex: 0 0 320px;
    max-width: 320px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.noticia-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.noticia-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.noticia-img-placeholder {
    width: 100%;
    height: 170px;
    background: linear-gradient(135deg, #7DA0FA, #4B49AC);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.5rem;
}

.noticia-body {
    padding: 1.25rem 1.25rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-data {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.noticia-titol {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.noticia-descripcio {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-style: italic;
}

/* Cos truncat: mostra el text complet en un popover en passar el
   ratolí per sobre (o en rebre el focus), igual que a index.html. */
.noticia-cos-preview {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    cursor: pointer;
}

.noticia-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.noticia-link {
    display: inline-flex;
    align-items: center;
    color: #4B49AC;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.noticia-link:hover {
    color: #34317c;
}

.noticia-link i {
    margin-right: 0.35rem;
}

/* Fletxes de navegació */
.noticies-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

.noticies-nav:hover {
    background: #4B49AC;
    color: #ffffff;
}

.noticies-nav.prev {
    left: -10px;
}

.noticies-nav.next {
    right: -10px;
}

.noticies-empty {
    color: #94a3b8;
    font-size: 1rem;
}

/* ===== BLOC ESTUDIANT / EMPRESA ===== */
.user-section {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
}

.user-card {
    background: #ffffff;
    border: none;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.user-card .btn-principal {
    align-self: center;
}

.user-card:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

/* Imatges quadrades per a fons transparent */
.user-avatar {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.6s ease;
}

.user-avatar.is-fading {
    opacity: 0;
}

.user-title {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.user-description {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Connector visual: estudiant -> borsa de treball -> empresa */
.flow-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    text-align: center;
}

.flow-quote {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
}

.flow-description {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0.75rem auto 0 auto;
}

/* Botó central del tauler */
.central-buttons {
    text-align: center;
    padding: 3rem 0;
}

.info-section {
    background: #ffffff;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.info-title {
    color: gray;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-description {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .user-card {
        padding: 2rem 1rem;
    }

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

    .user-title {
        font-size: 1.5rem;
    }

    .user-description {
        font-size: 1rem;
    }

    .flow-description {
        font-size: 1rem;
    }

    .noticia-card {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .noticies-nav.prev { left: 0; }
    .noticies-nav.next { right: 0; }
}
