/* Homepage geometry from ACT Final, with Comments 2 labels and current content. */
body.home #page-container .et-l--post :is(#about,#learn,#in-media,#services-and-partners),
body.home #page-container .et-l--footer .et_pb_section { background-color:#fff!important; }
body.home #page-container :is(.act-home-editorial-card,.act-home-promo-card):not(:hover):not(:focus-within) { background-color:#fff!important; }

/* An empty Article column must not own the Video card's closing rules. */
body.home #page-container :is(#learn,#in-media) .act-home-editorial-card { border-right-width:1px!important; border-bottom-width:1px!important; }
body.home #page-container :is(#learn,#in-media) > .et_pb_row > .et_pb_column:not(:has(> .et_pb_module)) { display:none!important; }

/* Keep current text inside the feature panel, including long Bulgarian words. */
body.home #page-container .act-home-feature-panel .et_pb_heading,
body.home #page-container .act-home-feature-panel .et_pb_heading_container { min-width:0!important; max-width:100%!important; }
body.home #page-container .act-home-feature-panel .et_pb_heading { width:100%!important; }
body.home #page-container .act-home-feature-panel :is(h2,h3) { overflow-wrap:anywhere; }

@media(min-width:768px) and (max-width:1599px) {
 body.home #page-container :is(#about,#services-and-partners,#partners) { padding-top:64px!important; padding-bottom:64px!important; }
 body.home #page-container #partners { gap:0!important; }
 body.home #page-container :is(#learn,#in-media) { padding-top:32px!important; padding-bottom:64px!important; gap:0!important; }
 body.home #page-container :is(.act-home-editorial-card,.act-home-promo-card) { padding-left:32px!important; padding-right:32px!important; }
 body.home #page-container :is(#learn,#in-media) > .act-comments2-learn-header { flex-flow:row nowrap!important; align-items:center!important; height:auto!important; min-height:0!important; margin-bottom:16px!important; gap:16px!important; }
 body.home #page-container :is(#learn,#in-media) > .act-comments2-learn-header > .et_pb_column { width:auto!important; min-height:0!important; height:auto!important; }
 body.home #page-container :is(#learn,#in-media) > .act-comments2-learn-header > .et_pb_column:first-child { flex:1 1 auto!important; min-width:0!important; }
 body.home #page-container :is(#learn,#in-media) > .act-comments2-learn-header > .et_pb_column:last-child { flex:0 0 auto!important; }
 body.home #page-container #partners > .act-comments2-partners-header { margin-bottom:24px!important; }
 body.home #page-container #partners > .et_pb_row:last-child { gap:0!important; }
 body.home #page-container #partners > .et_pb_row:last-child > .et_pb_column { min-height:0!important; }
 body.home #page-container #partners > .et_pb_row:last-child > .et_pb_column > .et_pb_group { min-height:100px!important; height:100px!important; padding:16px 24px!important; }
 body.home #page-container #partners .et_pb_image { max-width:100%!important; }
 body.home #page-container #partners img { width:auto!important; max-width:100%!important; max-height:64px!important; object-fit:contain; }
}

@media(min-width:768px) and (max-width:1279px) {
 body.home #page-container #about .act-about-inline-events,
 body.home #page-container #about .act-about-inline-events p { font-size:48px!important; line-height:56px!important; letter-spacing:-1.44px!important; font-weight:700!important; }
 body.home #page-container #home-hero,
 body.home #page-container #home-hero > .et_pb_row,
 body.home #page-container #home-hero .act-home-hero-carousel,
 body.home #page-container #home-hero [data-loop-item] { min-height:860px!important; height:860px!important; }
 body.home #page-container #home-hero .act-home-hero-panel { min-height:700px!important; height:700px!important; }
 body.home #page-container :is(#learn,#in-media) > .act-comments2-learn-header { margin-bottom:32px!important; }
 body.home #page-container #partners > .et_pb_row:last-child > .et_pb_column > .et_pb_group { min-height:120px!important; height:120px!important; }
}

@media(max-width:767px) {
 body.home #page-container #partners { gap:0!important; }
 body.home #page-container :is(.act-home-editorial-card,.act-home-promo-card) { padding-left:24px!important; padding-right:24px!important; }
 /* Flatten only the heading/action row so the existing action follows cards. */
 body.home #page-container :is(#learn,#in-media) { display:grid!important; grid-template-columns:minmax(0,1fr); padding:16px 24px 24px!important; gap:0!important; }
 body.home #page-container :is(#learn,#in-media) > .act-comments2-learn-header,
 body.home #page-container :is(#learn,#in-media) > .act-comments2-learn-header > .et_pb_column { display:contents!important; }
 body.home #page-container :is(#learn,#in-media) > .act-comments2-learn-header .et_pb_heading { order:1; margin:0 0 16px!important; }
 body.home #page-container :is(#learn,#in-media) > .et_pb_row:not(.act-comments2-learn-header) { order:2; width:100%!important; max-width:100%!important; margin:0 0 24px!important; gap:0!important; }
 body.home #page-container :is(#learn,#in-media) .act-home-learn-archive-cta { order:3; width:max-content!important; max-width:100%!important; margin:0!important; }
 body.home #page-container #partners > .act-comments2-partners-header { margin-bottom:24px!important; }
 body.home #page-container #partners > .et_pb_row:last-child { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0!important; }
 body.home #page-container #partners > .et_pb_row:last-child > .et_pb_column { width:100%!important; min-width:0!important; min-height:0!important; }
 body.home #page-container #partners > .et_pb_row:last-child > .et_pb_column > .et_pb_group { min-height:62px!important; height:62px!important; padding:10px 16px!important; }
 body.home #page-container #partners .et_pb_image { max-width:100%!important; }
 body.home #page-container #partners img { width:auto!important; max-width:100%!important; max-height:40px!important; object-fit:contain; }
}

/* Keep the native accessible trigger and menu behavior; change its artwork only. */
@media(max-width:1279px) {
 body.home #page-container .et-l--header [aria-label="Open menu"] { position:relative!important; width:40px!important; height:40px!important; min-width:40px; border:1px solid rgba(243,243,243,.2); border-radius:4px; background:rgba(243,243,243,.2); }
 body.home #page-container .et-l--header [aria-label="Open menu"] .et_pb_icon_wrap { visibility:hidden; }
 body.home #page-container .et-l--header [aria-label="Open menu"]::before,
 body.home #page-container .et-l--header [aria-label="Open menu"]::after { content:""; position:absolute; left:7px; width:24px; height:1px; background:#f3f3f3; }
 body.home #page-container .et-l--header [aria-label="Open menu"]::before { top:15px; }
 body.home #page-container .et-l--header [aria-label="Open menu"]::after { top:23px; }
 body.home.act-home-empty-upcoming #page-container .et-l--header [aria-label="Open menu"] { background:rgba(27,27,27,.08); border-color:rgba(27,27,27,.2); }
 body.home.act-home-empty-upcoming #page-container .et-l--header [aria-label="Open menu"]::before,
 body.home.act-home-empty-upcoming #page-container .et-l--header [aria-label="Open menu"]::after { background:#1b1b1b; }
}
