/* Shared public-site layout rules. CMS content keeps the same components at every width. */
:root {
    --section-space: clamp(2.25rem, 5vw, 4.5rem);
    --content-gap: clamp(1.25rem, 3vw, 2.5rem);
    --heading-size: clamp(1.65rem, 3vw, 2.75rem);
}
html { scroll-padding-top: 100px; }
.widget-block-anchor, #stage-1 { scroll-margin-top: 0; }
body { line-height: 1.65; }
img, video, svg, iframe { max-width: 100%; }
img { height: auto; }
picture { display: contents; }
.row > *, .hero-copy, .recent-blog-content { min-width: 0; }
.main, footer { overflow-wrap: anywhere; }
.main section { padding-block: var(--section-space); }
.widget-block > section { margin-block: 0 !important; padding-block: var(--section-space) !important; }
.main :is(h2, h3, h4).display-4, .main :is(h2, h3, h4).display-5 { font-size: var(--heading-size); line-height: 1.22; }
.main h2, .main h3 { text-wrap: balance; }
.main p { text-wrap: pretty; }
.btn { min-height: 44px; white-space: normal; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-brand, .read-more-button { padding: .8rem 1.6rem; font-size: 1rem; line-height: 1.4; }
:is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--color-2); outline-offset: 3px; }
.main :is(.post-content, .widget-block) :is(ul, ol) { padding-left: 1.4rem; }
.main .widget-block .project-stages-list { padding: 0; }
.post-content img, .widget-block img { max-width: 100%; height: auto; }
.widget-block .fs-5 { font-size: clamp(1rem, 1.3vw, 1.125rem) !important; }
.widget-block .lh-lg { line-height: 1.75 !important; }
.post-content iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.post-content table { display: block; max-width: 100%; overflow-x: auto; }

/* Artwork participates in layout instead of sitting behind breadcrumbs and titles. */
.section-hero:not(.section-hero-post) { background: none; min-height: 0; color: var(--bs-body-color); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 1rem 3rem; }
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-art { grid-column: 2; grid-row: 1 / span 2; text-align: center; }
.hero-art img { width: 100%; max-width: 440px; aspect-ratio: 1; object-fit: contain; }
.hero-action { grid-column: 1; align-self: start; }
.hero-copy h1 { font-size: clamp(2rem, 4.3vw, 4rem); line-height: 1.12; margin: 0; text-shadow: none; text-wrap: balance; }
.home-hero .hero-copy h1 { font-size: clamp(2.2rem, 4.8vw, 4.75rem); margin-bottom: 1.75rem; }
.hero-eyebrow { margin-bottom: 1rem; color: #545263; font-size: 1.1rem; }
.breadcrumb { font-size: .8rem; line-height: 1.5; gap: .35rem 0; margin-bottom: 1.25rem; }
.section-hero-post { background-size: cover !important; }
.section-hero-post h1 { font-size: clamp(1.8rem, 3.6vw, 3.25rem); line-height: 1.2; }

/* Navigation stays usable when Romanian labels or system fonts need more room. */
.navbar-brand { max-width: calc(100% - 64px); margin-right: 0; }
.navbar-brand img { width: clamp(175px, 22vw, 245px); height: auto; }
.navbar-toggler { padding: .5rem; min-width: 44px; min-height: 44px; }
.dropdown-menu { max-width: min(360px, calc(100vw - 40px)); }
.dropdown-item { white-space: normal; padding-block: .65rem; }
.navbar .container-fluid { padding-inline: 0; }

/* Natural-height media and CMS cards; no empty background scaffolding. */
.about-image, .about-image-block { width: min(100%, 328px); height: auto; aspect-ratio: 1; }
.about-image-block img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.section-about .row { row-gap: var(--content-gap); }
.section-more-about { background: #f7f5fc; }
.section-more-about .cover-background { display: none; }
.section-more-about-content { margin-top: 0; padding-bottom: 0 !important; }
.section-more-about-content > .row { margin-inline: 0; border-radius: 12px; overflow: hidden; }
.section-more-about p { line-height: 1.7 !important; }
.columns-list-item { height: auto; min-height: 190px; padding-block: 1.5rem; }
.section-columns .row { row-gap: 1rem; }
.columns-list-item.bc-2, .columns-list-item.bc-4 { color: #172641; }
.section-potential img { display: block; width: 100%; object-fit: cover; }
.section-potential h3 { margin-bottom: 1.25rem !important; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.inspiring-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--content-gap); align-items: center; }
.inspiring-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.inspiring-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.section-two-columns img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.inspiring-copy { padding: clamp(1.25rem, 3vw, 2.5rem); background: white; border-radius: 10px; }
.section-inspiring { background: #f7f5fc; }
.section-find > .container { padding-block: 0 !important; }
.section-find:has(.section-find-img) { padding-top: 0; }
.section-find-img { width: 100%; max-height: 340px; object-fit: cover; aspect-ratio: 4 / 1; margin-bottom: var(--section-space); }
.feature-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid #ece8f5; }
.feature-item:last-child { border-bottom: 0; }
.feature-icon { display: flex; justify-content: center; align-items: center; width: 48px; height: 48px; border-radius: 12px; background: #edf8ff; color: #197fae; font-size: 1.75rem; }
.feature-item p { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65; }
.project-stages.container { padding-top: 1rem !important; }
.section-contact { margin-top: 0 !important; padding-bottom: 0 !important; }
.section-contact > .col-lg-6 { padding-inline: 1.25rem; max-width: 760px; }
.section-contact .section-find-img { margin-bottom: 0; }
.section-contact .bc-2, .section-contact .bc-2 :is(a, h4, i) { color: #45280b !important; }
.section-follow .row { row-gap: 1.5rem; }
.section-follow [class*="fs-"] { overflow-wrap: anywhere; }
.partner-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--content-gap); }
.partner-logo { display: flex; align-items: center; justify-content: center; padding: 1.25rem; border: 1px solid #ece8f5; border-radius: 10px; }
.partner-logo img { width: auto; height: 160px; max-width: 100%; object-fit: contain; }

/* Forms share one spacing rule and retain room for accessible feedback. */
.section-subscribe h2 { max-width: 800px; margin-inline: auto; }
.section-subscribe p.fs-4 { font-size: clamp(1rem, 1.7vw, 1.2rem) !important; max-width: 760px; margin-bottom: 2rem !important; }
.subscribe-fields { display: flex; gap: .75rem; }
.subscribe-fields input { flex: 1; min-width: 0; border-radius: 4px; min-height: 50px; padding: .8rem 1rem; font-size: 1rem; }
.subscribe-fields button { flex-shrink: 0; border-radius: 4px; }
.subscribe-feedback { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 4px; background: white; color: #342750; line-height: 1.5; }

/* News images reserve their space; the original remains available in the lightbox. */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.news-card { display: flex; flex-direction: column; }
.news-card-image { height: auto; aspect-ratio: 16 / 10; flex-shrink: 0; }
.news-card-image > a { display: block; height: 100%; }
.news-card-content { display: flex; flex-direction: column; flex: 1; }
.news-card-content > .btn { margin-top: auto; align-self: flex-start; }
.news-card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-section .left-side-wrapper { margin-right: 1.25rem; }
.blog-section .blog-style-2 .blog-img:not(.post-cover) img { aspect-ratio: 16 / 10; object-fit: cover; }
.blog-section .post-cover img { height: auto; max-height: 700px; object-fit: contain; }
.blog-section .single-blog .blog-content { padding: 0 0 1.5rem; }
.blog-section .single-blog .blog-content h4 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.35; }
.blog-meta { gap: 1rem; }
.sidebar-wrapper .sidebar-box { padding: 1.25rem; }
.recent-blog { gap: 1rem; }
.sidebar-wrapper .sidebar-box.recent-blog-box .recent-blog-items .recent-blog .recent-blog-img { flex: 0 0 64px; height: auto; }
.recent-blog-img img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.sidebar-wrapper .sidebar-box.recent-blog-box .recent-blog-items .recent-blog .recent-blog-content { margin-left: 0; }
.recent-blog-content h5 { font-size: 1rem; line-height: 1.4; }
.recent-blog-content .date { font-size: .8rem; }
.search-form input { padding-right: 3.5rem; }
.search-form button { top: 6px; right: 6px; min-width: 44px; min-height: 44px; }
.share-news { padding: 0 0 1.5rem; }
.share-news-actions { flex-wrap: wrap; }
.gallery-thumbnail { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
footer a { display: inline-block; padding-block: .2rem; }
footer .row { row-gap: 1.5rem; }
footer .pe-5 { padding-right: 1.25rem !important; }

@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-nav .nav-link.p-3 { padding: .75rem .5rem !important; font-size: .85rem; }
    .navbar-brand img { width: 185px; }
}
@media (max-width: 991.98px) {
    .navbar-collapse { max-height: calc(100dvh - 88px); overflow-y: auto; padding-block: .5rem; }
    .navbar-nav .nav-link.p-3 { padding: .7rem .5rem !important; }
    .navbar-nav .dropdown-menu { border: 0; border-left: 2px solid #e1d9f4; margin-left: .5rem; }
    .blog-section .left-side-wrapper { margin-right: 0; }
    .columns-list-item { min-height: 0; }
    .section-columns [class*="col-sm-"] { flex: 0 0 100%; width: 100%; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    :root { --section-space: 2.5rem; }
    .container { --bs-gutter-x: 2.5rem; }
    .hero-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .hero-copy, .hero-art, .hero-action { grid-column: 1; grid-row: auto; }
    .hero-art img { max-width: 200px; }
    .home-hero .hero-art { grid-row: 1; }
    .home-hero .hero-art img { max-width: 230px; }
    .home-hero .hero-copy { text-align: center; }
    .hero-copy h1 { font-size: clamp(1.9rem, 7.5vw, 2.75rem); }
    .home-hero .hero-copy h1 { font-size: clamp(2rem, 8.5vw, 3rem); }
    .hero-eyebrow { font-size: 1rem; margin-bottom: .75rem; }
    .section-hero-post .container.my-5 { margin-block: 2rem !important; }
    .section-more-about-content :is(.p-5, .p-4) { padding: 1.5rem !important; }
    .section-more-about-content img { height: auto !important; max-height: 280px; width: 100%; object-fit: cover; }
    .section-links .px-5, .section-two-columns .px-4 { padding-inline: .75rem !important; }
    .section-two-columns .mt-5 { margin-top: 1.5rem !important; }
    .section-potential img { height: auto !important; max-height: 420px; aspect-ratio: 4 / 3; }
    .stage5-results img { aspect-ratio: auto; }
    .section-about :is(.fs-5, .lh-lg), .section-potential :is(.fs-5, .lh-lg), .section-links :is(.fs-5, .lh-lg) { font-size: 1rem !important; line-height: 1.7 !important; }
    .inspiring-layout { grid-template-columns: 1fr; }
    .inspiring-photos img { height: auto !important; max-height: 260px; }
    .section-find-img { aspect-ratio: 3 / 1; max-height: 200px; }
    .feature-item { grid-template-columns: 40px minmax(0, 1fr); gap: .85rem; padding-block: 1rem; }
    .feature-icon { width: 40px; height: 40px; font-size: 1.5rem; border-radius: 8px; }
    .subscribe-fields { flex-direction: column; }
    .subscribe-fields input, .subscribe-fields button { width: 100%; }
    .section-follow .fs-4 { font-size: 1.1rem !important; }
    .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner-logo img { height: 110px; }
    .section-contact .fs-5 { font-size: 1rem !important; }
    .news-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding: .5rem .25rem 1.25rem; }
    .news-grid .news-card { flex: 0 0 88%; scroll-snap-align: start; }
    .news-card-content { padding: 1.25rem; }
    .blog-section .single-blog { margin-bottom: 2rem; }
    .share-news-actions a, .share-copy-button { width: 44px; height: 44px; }
    footer h5 { font-size: 1.05rem; }
}
@media (max-width: 374.98px) {
    .project-stages-list { grid-template-columns: 1fr; }
    .project-stages-list a { min-height: 60px; }
    .project-stages-list li:last-child { grid-column: auto; }
    .btn-brand, .read-more-button { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
