/* Restyle the existing JNews header and menu; their markup and controls stay intact. */
.agrores-site-chrome .jeg_topbar .agrores-faculty-label {
    font: 600 11px/1.25 Arial, sans-serif;
    letter-spacing: .015em;
    margin-right: 24px;
    padding-right: 24px;
}
.agrores-site-chrome .jeg_header .jeg_midbar,.agrores-site-chrome .jeg_navbar_mobile .jeg_mobile_midbar,.agrores-site-chrome .jeg_header_sticky .jeg_stickybar{background:#fbfaf4!important}
.agrores-site-chrome .jeg_header .jeg_midbar{border-bottom:1px solid #e3e7da}
.agrores-site-chrome .jeg_header .jeg_midbar .container,.agrores-site-chrome .jeg_header .jeg_topbar .container{max-width:1350px;width:calc(100% - 88px)}
.agrores-site-chrome .jeg_header .jeg_desktop_logo img{max-width:205px;width:100%;height:auto}
.agrores-site-chrome .jeg_header .jeg_main_menu>li>a,.agrores-site-chrome .jeg_header_sticky .jeg_main_menu>li>a{color:#183b2d!important;font-family:Arial,sans-serif;font-size:13px;font-weight:600;padding-left:13px;padding-right:13px}
.agrores-site-chrome .jeg_header .jeg_main_menu>li:is(.current-menu-item,.current-menu-ancestor)>a,.agrores-site-chrome .jeg_header_sticky .jeg_main_menu>li:is(.current-menu-item,.current-menu-ancestor)>a{color:#fff!important;background:#124d35}
.agrores-site-chrome .jeg_header .jeg_main_menu>li>a:before,.agrores-site-chrome .jeg_header_sticky .jeg_main_menu>li>a:before{display:none!important}
.agrores-site-chrome .jeg_header .jeg_main_menu>li>a:hover,.agrores-site-chrome .jeg_header_sticky .jeg_main_menu>li>a:hover{color:#287451!important}
.agrores-site-chrome .jeg_header .jeg_main_menu>li:is(.current-menu-item,.current-menu-ancestor)>a:hover,.agrores-site-chrome .jeg_header_sticky .jeg_main_menu>li:is(.current-menu-item,.current-menu-ancestor)>a:hover{color:#fff!important}
.agrores-site-chrome .jeg_main_menu .sub-menu{background:#fff!important;border-top:3px solid #3b7854;box-shadow:0 8px 24px rgba(18,54,37,.12)}
.agrores-site-chrome .jeg_main_menu .sub-menu a{color:#234333!important}
.agrores-site-chrome .jeg_main_menu .sub-menu a:hover,.agrores-site-chrome .jeg_main_menu .sub-menu li.sfHover>a{color:#267049!important;background:#f2f5ec!important}
.agrores-site-chrome .jeg_navbar_mobile .toggle_btn,.agrores-site-chrome .jeg_navbar_mobile .jeg_search_toggle{color:#124d35!important}
.agrores-site-chrome .jeg_header_wrapper a:focus-visible,.agrores-site-chrome .jeg_header_sticky a:focus-visible,.agrores-site-chrome .jeg_navbar_mobile_wrapper a:focus-visible,.agrores-site-chrome .jeg_mobile_wrapper a:focus-visible{outline:3px solid #e88936;outline-offset:2px}
@media(max-width:1200px){.agrores-site-chrome .jeg_header .jeg_midbar .container,.agrores-site-chrome .jeg_header .jeg_topbar .container{width:calc(100% - 48px)}.agrores-site-chrome .jeg_header .jeg_main_menu>li>a{padding-left:8px;padding-right:8px;font-size:12px}}

/* Style the native Header Builder buttons and keep their settings editable. */
.agrores-site-chrome .jeg_button_1 {
    flex: 0 0 auto;
}

.agrores-site-chrome .jeg_stickybar .jeg_nav_left > .item_wrap:has(> .jeg_button_1) {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 12px;
}

.agrores-site-chrome .jeg_stickybar .jeg_nav_left > .item_wrap:has(> .jeg_button_1) > .jeg_main_menu_wrapper {
    flex: 1;
    min-width: 0;
}

.agrores-site-chrome .jeg_button_1 > a.btn,
.agrores-site-chrome .jeg_button_drawer > a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 19px;
    height: auto;
    line-height: 1.2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
    white-space: nowrap;
}

.agrores-site-chrome .jeg_header .jeg_main_menu > li:is(.current-menu-item, .current-menu-ancestor) > a,
.agrores-site-chrome .jeg_header_sticky .jeg_main_menu > li:is(.current-menu-item, .current-menu-ancestor) > a,
.agrores-site-chrome .jeg_button_1 > a.btn.round {
    border-radius: 4px;
}

.agrores-site-chrome .jeg_button_drawer > a.btn.round {
    border-radius: 999px;
}

.agrores-site-chrome .jeg_button_drawer > a.btn {
    margin: 12px 0 0 18px;
    padding: 14px 18px;
}

.agrores-site-chrome .jeg_button_1 .fa-paper-plane,
.agrores-site-chrome .jeg_button_drawer .fa-paper-plane {
    display: inline-block;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin: 0;
    background: url('../images/submit-paper-plane.svg') center / contain no-repeat;
}

.agrores-site-chrome .jeg_button_1 .fa-paper-plane::before,
.agrores-site-chrome .jeg_button_drawer .fa-paper-plane::before {
    content: none;
}

@media (max-width: 1200px) {
    .agrores-site-chrome .jeg_button_1 > a.btn { padding-inline: 14px; }
}

/* A more compact desktop header, keeping the existing JNews navigation. */
.agrores-site-chrome .jeg_header .jeg_midbar .jeg_nav_row{height:86px!important}
.agrores-site-chrome .jeg_header .jeg_main_menu>li>a{height:42px;line-height:42px}
.agrores-site-chrome .jeg_header .jeg_desktop_logo img{max-width:190px}
.agrores-site-chrome .jeg_header .jeg_midbar{height:86px!important}

.agrores-site-chrome .jeg_header .jeg_main_menu > li:is(.current-menu-item,.current-menu-ancestor) > a,
.agrores-site-chrome .jeg_header_sticky .jeg_main_menu > li:is(.current-menu-item,.current-menu-ancestor) > a{height:34px!important;line-height:34px!important}
/* Center the shorter active background within the menu's 42px row. */
.agrores-site-chrome .jeg_header .jeg_main_menu > li:is(.current-menu-item,.current-menu-ancestor) > a{margin-top:4px}

/* Keep the footer at the viewport bottom when the page content is short. */
.agrores-site-chrome .jeg_viewport:has(> .footer-holder) {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

.agrores-site-chrome .jeg_viewport > .footer-holder {
    margin-block-start: auto;
}

/* Footer Builder rows for the waves and copyright. */
.agrores-site-chrome .footer-holder .vc_row.agro-footer-waves {
    margin-block: 0;
    padding: 0;
    border: 0;
    background: #fff;
}

.agrores-site-chrome .footer-holder .agro-footer-waves > .jeg-vc-wrapper {
    width: 100%;
    max-width: none;
}

.agrores-site-chrome .footer-holder .agro-footer-waves .vc_column_container {
    padding: 0;
}

.agrores-site-chrome .footer-holder .agro-landscape {
    height: 76px;
    overflow: hidden;
    line-height: 0;
}

.agrores-site-chrome .footer-holder .agro-landscape svg {
    display: block;
    width: 100%;
    height: 100%;
}

.agrores-site-chrome .footer-holder .vc_row.agro-footer-copyright {
    /* Overlap the SVG edge to prevent a hairline at fractional zoom levels. */
    margin-block: -1px 0;
    padding-block: 10px;
    border: 0;
    background: #104a32;
}

.agrores-site-chrome .footer-holder .agro-footer-copyright .wpb_text_column,
.agrores-site-chrome .footer-holder .agro-footer-copyright p {
    margin: 0;
    color: #e5efe3;
    font: 12px/1.6 Arial, sans-serif;
}

.agrores-site-chrome .footer-holder .agro-footer-copyright a {
    color: inherit;
    text-decoration: underline;
}

.agrores-site-chrome .footer-holder .agro-footer-copyright a:focus-visible {
    outline: 3px solid #f4b96c;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .agrores-site-chrome .footer-holder .agro-landscape {
        height: 47px;
    }
}

/* WPBakery rows on the Organizers page. */
.agro-organizers-lead,
.agro-organizers-grid {
    margin-inline: 0;
}

.agro-organizers-lead > .jeg-vc-wrapper,
.agro-organizers-grid > .jeg-vc-wrapper {
    display: grid;
    gap: 16px;
    justify-items: stretch;
}

.agro-organizers-lead > .jeg-vc-wrapper::before,
.agro-organizers-lead > .jeg-vc-wrapper::after,
.agro-organizers-grid > .jeg-vc-wrapper::before,
.agro-organizers-grid > .jeg-vc-wrapper::after {
    content: none;
}

.agro-organizers-lead > .jeg-vc-wrapper {
    grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
    align-items: center;
    padding: 24px;
    border-radius: 10px;
    background: #edf3e6;
}

.agro-organizers-grid > .jeg-vc-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agro-organizers-lead > .jeg-vc-wrapper > .vc_column_container,
.agro-organizers-grid > .jeg-vc-wrapper > .vc_column_container {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 0;
}

.agro-organizers-grid > .jeg-vc-wrapper > .agro-organizer-card {
    padding: 18px;
    border: 1px solid #e1e8df;
    border-radius: 8px;
    background: #fff;
}

.agro-organizers-lead .wpb_single_image,
.agro-organizers-lead .wpb_text_column,
.agro-organizer-card .wpb_single_image,
.agro-organizer-card .wpb_text_column,
.agro-organizer-card .wpb_text_column p,
.agro-organizers-lead .wpb_text_column p {
    margin: 0;
}

.agro-organizer-card .wpb_single_image {
    display: grid;
    place-items: center;
    min-height: 80px;
    margin-bottom: 12px;
}

.agro-organizer-card img {
    width: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.agro-organizer-card .wpb_text_column {
    text-align: center;
    color: #173e2e;
    font-size: 15px;
    line-height: 1.5;
}

.agro-organizer-card .wpb_text_column p + p {
    margin-top: 4px;
}

.agro-organizers-lead .wpb_text_column h2 {
    margin: 6px 0 12px;
    color: #173e2e;
    font-size: clamp(20px, 3.2vw, 29px);
    line-height: 1.22;
}

.agro-organizer-card .wpb_text_column a,
.agro-organizers-lead .wpb_text_column a {
    color: #175d40;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 991px) {
    .agro-organizers-grid > .jeg-vc-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .agro-organizers-grid > .jeg-vc-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    .agro-organizers-lead > .jeg-vc-wrapper,
    .agro-organizer-card > .jeg_wrapper {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
    }

    .agro-organizer-card .wpb_single_image {
        min-height: 0;
        margin-bottom: 0;
    }

    .agro-organizer-card .wpb_text_column {
        text-align: left;
    }
}
