/* --- FUNDAMENTALS --- */
.footer {
    position: relative;
    background: #f8f9fa;
    padding: 0;
    margin-top: 0;
}

.footer-box {
    position: relative;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eef1f6;
    padding: 0 0 40px 0;
    overflow: hidden;
}

/* --- LOGOS STRIP (ANIMATION) --- */
.logos-strip {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eef1f6;
    padding: 25px 0;
    margin-bottom: 40px;
    overflow: hidden;
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.logos-strip .logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logos-strip .logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logos-strip img[src*="ghiseul"] {
    height: 60px !important;
}

/* --- FOOTER MAIN LINKS (5 Columns Layout) --- */
.footer-links {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 800;
    color: #14213d;
    margin-bottom: 12px;
    /* Redus de la 18px pentru a apropia primul link de titlu */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links .mt-4 {
    margin-top: 25px !important;
    /* Ușor redus pentru secțiunea Social Media */
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px !important;
    /* AICI AM MICȘORAT: Redus de la 14px pentru a apropia rândurile */
}

.footer-links a {
    display: inline-block !important;
    /* Necesare pentru ca line-height să afecteze doar textul lung spart pe rânduri */
    color: #555;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.2 !important;
    /* Compactează spațiul dintre rândurile aceluiași link (ex: Conducere, organizare...) */
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ea0029;
    text-decoration: none;
}

/* --- NEW BOTTOM BAR (Copyright, Legal, Payments) --- */
.footer-bottom-bar {
    border-top: 1px solid #eef1f6;
    padding-top: 35px;
    /* Spațiu mărit sus */
    padding-bottom: 25px;
    /* Spațiu mărit jos */
}

.footer-bottom-bar .copyright {
    color: #14213d;
    font-size: 16px;
    /* Font mărit de la 14px */
    font-weight: 700;
    margin: 0 0 12px 0;
    /* Spațiu ușor mai mare sub titlu */
}

.hlist {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    /* Spațiere mărită între elemente */
    list-style: none;
    padding: 0;
    margin: 0;
}

.hlist li {
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
    /* Anulează margin-bottom de la li-urile de mai sus */
}

.hlist a {
    display: inline;
    /* Revine la comportamentul normal aici */
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    /* Font mărit pentru link-uri (de la 12px) */
    font-weight: 500;
    line-height: normal !important;
    transition: color 0.2s ease;
}

.hlist a:hover {
    color: #ea0029;
}

.sep {
    color: #cbd5e1;
    font-size: 12px;
    /* Bară despărțitoare mai mare */
    margin: 0 8px;
    /* Spațiu mărit pe lateralele barei */
}

/* --- PAYMENT LOGOS (BCR/EuPlatesc) --- */
.partners img {
    height: 24px;
    margin: 0 10px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.3s;
}

.partners img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.partners img[src*="ep-logo"] {
    height: 55px !important;
    /* Logo-uri mult mai mari (de la 40px) */
    width: auto !important;
    filter: none !important;
    opacity: 1 !important;
    margin: 0 !important;
}

/* --- SOCIAL MEDIA CIRCLES --- */
.footer .socials {
    display: flex;
    gap: 10px;
}

.footer .socials a {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: 0.3s;
    display: flex !important;
    /* Suprascrie display-ul setat anterior pe a-uri */
}

.footer .socials a:hover {
    background: #ea0029;
    color: #fff;
}

/* --- DECORATIVE LINE --- */
.footer-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #ea0029 0%, #ff0033 100%);
    z-index: 10;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1200px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-bottom-bar .text-lg-end {
        text-align: left !important;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}