/* ==========================================================
   IB-S Project single v1.0.0 — one layout for every project
   ========================================================== */
/* Strip default Divi single-project chrome */
body.ibs-project-single #sidebar,
body.ibs-project-single .et_main_title,
body.ibs-project-single .et_project_meta,
body.ibs-project-single .nav-single,
body.ibs-project-single article.project > img,
body.ibs-project-single #main-content .container::before { display: none !important; }
body.ibs-project-single #main-content .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}
body.ibs-project-single #left-area { width: 100% !important; padding: 0 !important; float: none !important; }
body.ibs-project-single article.project { padding: 0 !important; margin: 0 !important; }
body.ibs-project-single .entry-content { padding: 0 !important; }

.ibs-proj ul, .ibs-proj li { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.ibs-proj li::marker { content: none; }

/* Hero */
.ibs-proj__hero {
    position: relative;
    overflow: hidden;
    background-color: #08160f;
    background-image: url('https://devix.maindomain.pt/wp-content/uploads/2021/07/parallax-background-2-clean.jpg');
    background-size: cover;
    background-position: center 40%;
}
.ibs-proj__hero-bg { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(8,22,15,.94) 0%, rgba(13,34,24,.85) 55%, rgba(8,22,15,.72) 100%); }
.ibs-proj__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1380px;
    margin: 0 auto;
    padding: 150px 5vw 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 4rem;
    align-items: center;
    box-sizing: border-box;
}
.ibs-proj__hero-inner--nologo { grid-template-columns: 1fr; }
.ibs-proj__back {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(210,245,225,.75) !important;
    text-decoration: none;
    transition: color .2s;
}
.ibs-proj__back:hover { color: #6fe8a2 !important; }
.ibs-proj__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.ibs-proj__tag {
    padding: .25rem .65rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #a8f5cf;
    border: 1px solid rgba(100,230,155,.35);
    border-radius: 4px;
}
.ibs-proj__title {
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    margin: 0 0 1rem !important;
    padding: 0 !important;
}
.ibs-proj__subtitle { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; color: rgba(210,245,225,.85) !important; max-width: 720px; margin: 0; padding: 0; }
.ibs-proj__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 200px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.ibs-proj__logo img { max-width: 100%; max-height: 180px; width: auto; height: auto; object-fit: contain; }

/* Facts strip */
.ibs-proj__facts { background: #0d2218; border-top: 1px solid rgba(100,230,155,.18); }
.ibs-proj__facts-inner {
    max-width: 1380px;
    margin: 0 auto !important;
    padding: 0 5vw !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    box-sizing: border-box;
}
.ibs-proj__fact { padding: 1.4rem 1.5rem 1.4rem 0; border-right: 1px solid rgba(100,230,155,.12); margin-right: 1.5rem; }
.ibs-proj__fact:last-child { border-right: none; }
.ibs-proj__fact dt { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(200,253,230,.6); margin-bottom: .35rem; }
.ibs-proj__fact dd { margin: 0; font-size: 1rem; font-weight: 700; color: #ffffff; }
.ibs-proj__fact dd a { color: #6fe8a2; text-decoration: none; }
.ibs-proj__fact dd a:hover { text-decoration: underline; }

/* Body */
.ibs-proj__body { background: #ffffff; padding: 5.5rem 5vw; }
.ibs-proj__body-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 4.5rem;
    align-items: start;
}
.ibs-proj__body-inner--single { grid-template-columns: minmax(0, 860px); }
.ibs-proj__h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important;
    font-weight: 800 !important;
    color: #0d2218 !important;
    margin: 0 0 1.75rem !important;
    padding: 0 !important;
}
.ibs-proj__h2::after { content: ''; display: block; width: 3rem; height: 3px; background: #3dba72; margin-top: .9rem; border-radius: 2px; }
.ibs-proj__content { font-size: 1.06rem; line-height: 1.8; color: #4a5a50; }
.ibs-proj__content p { margin: 0 0 1.25rem; padding: 0; text-align: left !important; }
.ibs-proj__content strong { color: #0d2218; font-weight: 700; }
.ibs-proj__content a { color: #1f7a47; }

.ibs-proj__aside { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 110px; }
.ibs-proj__box { padding: 1.75rem; background: #f7fdf9; border: 1px solid rgba(61,186,114,.15); border-radius: 8px; }
.ibs-proj__h3 { font-size: .74rem !important; font-weight: 700 !important; letter-spacing: .14em; text-transform: uppercase; color: #3dba72 !important; margin: 0 0 1rem !important; padding: 0 !important; }
.ibs-proj__list li { padding: .55rem 0 !important; font-size: .95rem; line-height: 1.45; color: #0d2218; border-bottom: 1px solid rgba(61,186,114,.12); }
.ibs-proj__list li:last-child { border-bottom: none; }
.ibs-proj__box--funder img { max-width: 100%; height: auto; max-height: 90px; width: auto; display: block; }

/* Related */
.ibs-proj__related { background: #f4f7f5; padding: 5.5rem 5vw; }
.ibs-proj__related-inner { max-width: 1380px; margin: 0 auto; }
.ibs-proj__related-title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important;
    font-weight: 800 !important;
    color: #0d2218 !important;
    margin: 0 0 2.25rem !important;
    padding: 0 !important;
}
.ibs-proj__related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ibs-proj__rcard { text-decoration: none; color: inherit; }
.ibs-proj__rlogo { display: flex; align-items: center; justify-content: center; height: 150px; padding: 1.5rem; background: #ffffff; border-bottom: 1px solid rgba(61,186,114,.12); }
.ibs-proj__rlogo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.ibs-proj__rbody { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.75rem 1.75rem; }
.ibs-proj__rtitle { font-size: 1.1rem; font-weight: 700; color: #0d2218; margin-bottom: .5rem; }
.ibs-proj__rsub { font-size: .9rem; line-height: 1.55; color: #4a5a50; margin-bottom: 1.1rem; }
.ibs-proj__rcta { margin-top: auto; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3dba72; }
.ibs-proj__related-foot { margin-top: 2.5rem; text-align: center; }
.ibs-proj__all {
    display: inline-block;
    padding: .8rem 1.8rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #3dba72;
    border: 2px solid #3dba72;
    border-radius: 4px;
    transition: background .2s, color .2s;
}
.ibs-proj__all:hover { background: #3dba72; color: #ffffff; }

@media (max-width: 1024px) {
    .ibs-proj__hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .ibs-proj__logo { max-width: 360px; }
    .ibs-proj__body-inner { grid-template-columns: 1fr; gap: 3rem; }
    .ibs-proj__aside { position: static; }
    .ibs-proj__related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ibs-proj__hero-inner { padding: 120px 6vw 48px; }
    .ibs-proj__fact { border-right: none; margin-right: 0; padding-right: 0; }
    .ibs-proj__body, .ibs-proj__related { padding: 3.5rem 5vw; }
    .ibs-proj__related-grid { grid-template-columns: 1fr; }
}