/* Simple Tweaks */

/* Simnple Cards Normal State Class Style */
.e-con:has(> .simple-card-static) {
    display: flex !important;
    align-items: stretch !important;
}

.simple-card-static {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; 
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--Outer-radius-sm);
    background: rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

/* Simple Cards A(Href Link Class Style) */
.e-con:has(> .simple-card-a),
.e-con:has(> .simple-card) {
    display: flex !important;
    align-items: stretch !important;
}

.simple-card,
.simple-card-a {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; 
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--Outer-radius-sm);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, background-color 0.3s ease-in-out !important;
    box-sizing: border-box;
}

.simple-card-a:hover,
.simple-card-a:focus-within,
div.elementor-element.simple-card-a:hover {
    transform: translateY(-6px) !important;
    border-color: var(--Tertiary) !important;
}

.white-text{
    color: var(--Light);
    font-weight: 600;
}

/* Background - Service Rings */
.service-category-card,
.has-rings {
    position: relative !important;
    overflow: hidden !important;
}
.service-rings {
    --ring-size: clamp(300px, 42vw, 600px);
    --ring-offset: calc(var(--ring-size) * -0.3);
    overflow: hidden !important;
    position: absolute !important;
    right: var(--ring-offset) !important;
    bottom: var(--ring-offset) !important;
    width: var(--ring-size) !important;
    height: var(--ring-size) !important;
    border: 1px solid rgba(56, 189, 248, .35) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 45px rgba(56, 189, 248, .05), 
                0 0 0 90px rgba(56, 189, 248, .04), 
                0 0 0 135px rgba(56, 189, 248, .03) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}


/* Footer Base Styles */
.site-footer {
    background-color: var(--Background-Card) !important;
}

.site-footer .site-footer__description,
.site-footer .site-footer__column h5,
.site-footer .site-footer__column a,
.site-footer .footer-bottom,
.site-footer .footer-bottom a {
    color: var(--White);
}

.site-footer .site-footer__column h5 {
    margin-bottom: 1rem;
}

.site-footer .site-footer__column a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .site-footer__column a:hover,
.site-footer .footer-bottom a:hover {
    color: var(--Tertiary);
}

/* DIV 1: Grid-ul principal pentru primele 4 coloane */
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--Gap-4);
    align-items: start;
}

/* DIV 2: Rândul secundar (Program & ANPC) cu space-between */
.site-footer__secondary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Program de lucru */
.site-footer__column--schedule .footer-schedule p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--White);
    margin: 0 0 0.5rem 0;
    font-size: 0.925rem;
}

.site-footer__column--schedule .i-clock {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Structura ANPC (SAL & SOL) în coloana din dreapta */
.site-footer__column--anpc {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.anpc-badges {
    display: flex;
    flex-direction: column;
    gap: var(--Gap-1, 0.75rem);
    align-items: flex-end;
}

.anpc-badge-link {
    display: block;
}

.anpc-badge-link img {
    max-width: 180px;
    height: auto;
    display: block;
    margin-left: auto;
    border-radius: 6px;
    transition: opacity 0.2s ease;
}

.anpc-badge-link:hover img {
    opacity: 0.85;
}

/* Footer Bottom */
.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* Responsive (Tabletă & Mobil) */
@media (max-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__secondary {
        flex-direction: column;
        gap: 1.5rem;
        justify-content: flex-start;
    }

    .site-footer__column--anpc,
    .anpc-badges {
        align-items: flex-start;
    }

    .anpc-badge-link img {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

button.e-filter-item{
    transition: all 0.3s ease-in-out;
}

.elementor-toc__body{
    color: var(--Text-muted) !important;
}

.elementor-toc__list-wrapper a.elementor-toc__list-item-text{
    transition: all 0.3s ease-in-out !important;
}

.internal-gutenberg-link{
    color: var(--White) !important;
    font-weight: 600 !important;
    font-style: italic !important;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}

.internal-gutenberg-link:hover{
    color: var(--Tertiary) !important;
}
