.col-md-6 {
    padding: 0 20px;
}

/* Contact page specific styles */

.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 .btn-circle{
    position: inherit;
    margin-left: auto;
    margin-right: auto;
    font-size: 40px;
    background-color: #7ff4f4;
}
.box-culoare-fundal-text .btn-circle.alb-bg{
    background-color: var(--bg-soft);
}
.iso {
    position: relative;
    display: inline-block;
    background:  var(--bg-soft); /* culoarea albastră */
    color: var(--text);
    font-weight: bold;
    padding: 0px 30px;
    font-family: sans-serif;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 25px;
    top: 10px;
}

    /* Varianta cu triunghi la început */
.iso-start::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 0 solid transparent;
    border-right: 20px solid var(--bg-soft);
}
.iso-start::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: 20px;
    height: 60px;
    background-color:var(--bg-soft);
}

/* Varianta cu triunghi la final */
.iso-end::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 0 solid transparent;
    border-left: 20px solid var(--bg-soft);
}

.iso-end::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 60px;
    background-color:var(--bg-soft);
}

.iso-blue {
    position: relative;
    display: inline-block;
    background:  #7ff4f4; /* culoarea albastră */
    color: var(--text);
    font-weight: bold;
    padding: 0px 30px;
    font-family: sans-serif;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 25px;
    top: 10px;
}

/* Varianta cu triunghi la început */
.iso-blue-start::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 0 solid transparent;
    border-right: 20px solid #7ff4f4;
}
.iso-blue-start::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: 20px;
    height: 60px;
    background-color:#7ff4f4;
}

/* Varianta cu triunghi la final */
.iso-blue-end::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 0 solid transparent;
    border-left: 20px solid #7ff4f4;
}
.iso-blue-end::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 60px;
    background-color:#7ff4f4;
}
.box-alb{
    background: var(--bg-soft);
    color: var(--text);
    padding: 30px;
}
.box-blue{
    background: #7ff4f4;
    color: var(--text);
    padding: 30px;
}
.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; }


.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 #7ff4f4;
    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);
}


/* 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: 63px;
    min-height: 380px;
}

/* Mobile adjustments */
@media (max-width: 991px){
    .media-float{ margin: 0 !important; min-height: 240px; }
}

/* Certification caption paragraphs */
.p-cert {
    padding: 30px;
    max-width: 305px;
}
.p-cert-float {
    padding: 30px;
    max-width: 305px;
    float: right;
}
/* On mobile remove float */
@media (max-width: 767px){
    .p-cert-float{ float: none; }
}

.col-md-6 {
    padding: 0 20px;
}

/* Contact page specific styles */

.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;
}

/* Hero section for Certifications */
.hero-certificari{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 400px; /* desktop height */
    background-image: url('../img/certificari.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 20px; /* ensure text breathing on small widths */
}
/* subtle overlay to ensure text readability on bright images */
.hero-certificari::before{
    content: '';
    position: absolute; inset: 0;
    background: rgba(255,255,255,.3);
}
.hero-certificari > *{ position: relative; z-index: 1; }

@media (max-width: 991px){
    .hero-certificari{ height: 300px; }
    .btn-circle{
        margin-bottom: 30px;
    }
}
@media (max-width: 575px){
    .hero-certificari{ height: 240px; }
    .hero-certificari h1{ font-size: 28px; }
    .hero-certificari p{ font-size: 18px; }
}
/* ensure no extra top offset from utility classes used in markup */
.hero-certificari .mt-60px{ margin-top: 0 !important; }
.hero-certificari .mb-30px{ margin-bottom: 10px; }

.box-culoare-fundal-text .btn-circle{
    position: inherit;
    margin-left: auto;
    margin-right: auto;
    font-size: 40px;
    background-color: #7ff4f4;
}
.box-culoare-fundal-text .btn-circle.alb-bg{
    background-color: var(--bg-soft);
}
.iso {
    position: relative;
    display: inline-block;
    background:  var(--bg-soft); /* culoarea albastră */
    color: var(--text);
    font-weight: bold;
    padding: 0px 30px;
    font-family: sans-serif;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 25px;
    top: 10px;
}

    /* Varianta cu triunghi la început */
.iso-start::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 0 solid transparent;
    border-right: 20px solid var(--bg-soft);
}
.iso-start::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: 20px;
    height: 60px;
    background-color:var(--bg-soft);
}

/* Varianta cu triunghi la final */
.iso-end::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 0 solid transparent;
    border-left: 20px solid var(--bg-soft);
}

.iso-end::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 60px;
    background-color:var(--bg-soft);
}

.iso-blue {
    position: relative;
    display: inline-block;
    background:  #7ff4f4; /* culoarea albastră */
    color: var(--text);
    font-weight: bold;
    padding: 0px 30px;
    font-family: sans-serif;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 25px;
    top: 10px;
}

/* Varianta cu triunghi la început */
.iso-blue-start::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 0 solid transparent;
    border-right: 20px solid #7ff4f4;
}
.iso-blue-start::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: 20px;
    height: 60px;
    background-color:#7ff4f4;
}

/* Varianta cu triunghi la final */
.iso-blue-end::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 60px solid transparent;
    border-bottom: 0 solid transparent;
    border-left: 20px solid #7ff4f4;
}
.iso-blue-end::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 60px;
    background-color:#7ff4f4;
}
.box-alb{
    background: var(--bg-soft);
    color: var(--text);
    padding: 30px;
}
.box-blue{
    background: #7ff4f4;
    color: var(--text);
    padding: 30px;
}
.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; }


.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 #7ff4f4;
    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);
}


/* 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: 63px;
    min-height: 380px;
}

/* Mobile adjustments */
@media (max-width: 991px){
    .media-float{ margin: 0 !important; min-height: 240px; }
}

/* Certification caption paragraphs */
.p-cert {
    padding: 30px;
    max-width: 305px;
}
.p-cert-float {
    padding: 30px;
    max-width: 305px;
    float: right;
}
/* On mobile remove float */
@media (max-width: 767px){
    .p-cert-float{ float: none; }
}
