/* Contact page specific styles */
.about-icond{
    display: flex;
    align-items: baseline;
}
.about-icond img{
    width: 10px;
    height: 100%;
    margin-right: 20px;
}
.content-wrap{
    padding-bottom: 0;
}

.media-header-section .text-stranga { display: grid;}
/* Background image for contact footer top */

/* Brought from home.css as requested */
.box-culoare-fundal-text{
    background: var(--text);
    color: #fff;
}


.box-culoare-fundal-text a{ color:#fff; }

/* Partners section styles (copied from home.css) */
/* Background image box with parallax and subtle zoom */
.box-bg-img{
    position: relative;
    background-image: url('../img/bloc-mare.jpg');
    background-size: 110%; /* slight zoom feel */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* parallax */
    overflow: hidden; /* keep overlay within */
}
.box-bg-img::before{
    content: '';
    position: absolute; inset: 0;
    background: var(--text);
    opacity: 0.5; /* transparent overlay using the same --text color */
    pointer-events: none;
}
/* ensure content above overlay */
.box-bg-img > *{ position: relative; z-index: 1; }

/* Partners row */
.parteneri{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 30px; /* horizontal 30, vertical 20; we also add bottom margin per item */
    margin-top: 20px;
}
.parteneri-item{ display: inline-flex; align-items: center; justify-content: center; margin-bottom: 30px; max-width: 150px; }
.parteneri-item img{ display:block; max-height: 60px; width: auto; height: auto; object-fit: contain; }

.img-forme-center{
    max-width: 280px;
    margin: 30px auto;
}

/* Button under partners */
.btn-parteneri{
    display: inline-block;
    padding: 10px 18px;
    background: var(--text);
    color: #fff;
    border: 1px solid var(--accent-soft);
    border-radius: 10px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; /* smooth effect */
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn-parteneri:hover{
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    text-decoration: none;
}
.btn-parteneri:active{
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0,0,0,.16);
}

/* === About hero (like home hero, but w/o before/after, white text, accent overlay) === */
.hero-about{
    background-image: url('../img/about-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 60px;
    position: relative;
    min-height: 300px;
    margin-bottom: 30px;
}
.hero-about .overlay-shape{
    position: absolute;
    top: 0;
    right: 0; /* default: shape on the right side */
    left: auto;
    width: calc(100%);
    height: calc(100%);
    background: rgba(15, 23, 42, 0.7); /* footer bg transparent */
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 60% 101%); /* right-side angled shape */
}
.hero-about .hero-about-content h2{
    font-size:40px;
}
.hero-about .hero-about-content{ position: relative; z-index: 10;width: 100%; }
.hero-about .hero-about-content h2,
.hero-about .hero-about-content p{ color: #fff; }

/* Reverse: shape on the left, opposite angle + different background image */
.hero-about.reverse{
    background-image: url('../img/about-hero-reverse.jpg');
}
.hero-about.reverse .overlay-shape{
    left: 0;
    right: auto;
    clip-path: polygon(0 0, 60% 0, 50% 101%, 0% 100%); /* opposite angle vs home */
}

/* Small screens: keep spacing pleasant */
@media (max-width: 767px){
    .hero-about{ padding: 20px; min-height: 240px; }
    .hero-about .overlay-shape{ top: 20px; height: calc(100% - 40px); width: calc(100% - 20px); }
}

.media-float {
    margin-left: 15px;
    min-height: 380px;
}

/* Mobile adjustments to ensure no leftover margins override global */
@media (max-width: 991px){
    .media-float{ margin: 0 !important; min-height: 240px; }
    .hero-about .overlay-shape{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
    .hero-about.reverse .overlay-shape{
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
}
