/* ==========================================================
   AERONAUT website CSS
   Theme: Twenty Twenty-One
   WordPress 5.5.3 / SiteOrigin CSS compatible
   ========================================================== */


/* ==========================================================
   1. Global background and text
   ========================================================== */

html,
body,
.site,
.site-main,
#page {
    background: #f7f8fb !important;
}

body {
    color: #1f2937;
}


/* ==========================================================
   2. Header: logo + AERONAUT left, menu right
   ========================================================== */

.site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 1rem 2.5rem !important;
    background: #f7f8fb !important;
    border-bottom: none !important;
}

/* Remove theme decorative lines */
.site-header:before,
.site-header:after,
.site-branding:before,
.site-branding:after {
    display: none !important;
    content: none !important;
}

/* Branding block */
.site-branding {
    display: block !important;
    width: auto !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
}

/* Hide original title and tagline because AERONAUT is added next to logo */
.site-title,
.site-description {
    display: none !important;
}

/* Logo container */
.site-logo {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.site-logo a,
.site-logo .custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.site-logo img,
.site-logo .custom-logo {
    display: inline-block !important;
    max-width: 38px !important;
    max-height: 38px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

/* AERONAUT text next to logo */
.site-logo:after {
    content: "AERONAUT";
    display: inline-block;
    margin-left: 0.75rem;
    color: #152973;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.22em;
    font-weight: 400;
    vertical-align: middle;
}

/* Remove possible generated underlines */
.site-logo a:before,
.site-logo a:after,
.site-logo .custom-logo-link:before,
.site-logo .custom-logo-link:after {
    display: none !important;
    content: none !important;
}


/* ==========================================================
   3. Main navigation
   ========================================================== */

.primary-navigation {
    margin-top: 0 !important;
    margin-left: auto !important;
    text-align: right !important;
}

.primary-navigation a {
    color: #152973 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
    color: #104598 !important;
    text-decoration: underline !important;
}

.primary-navigation .menu-wrapper,
.primary-navigation ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* ==========================================================
   4. Hide default Twenty Twenty-One page titles
   ========================================================== */

body.page .entry-header,
body.page header.entry-header,
body.page .entry-title,
body.page h1.entry-title {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ==========================================================
   5. Page spacing and width
   ========================================================== */

body.page .site-main,
body.page #main,
body.page .entry-content,
body.home .site-main,
body.home #main,
body.home .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.entry-content > *:first-child {
    margin-top: 0 !important;
}

.aero-hero,
.aero-section,
.aero-note {
    width: 90% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* ==========================================================
   6. Hero block
   ========================================================== */

.aero-hero {
    margin-top: 2rem !important;
    margin-bottom: 3.5rem !important;
    padding-top: 0 !important;
}

.aero-kicker {
    margin-bottom: 1rem;
    color: #152973 !important;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.aero-hero h1 {
    max-width: 980px;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #152973;
    font-size: 3.7rem !important;
    line-height: 1.12 !important;
    font-weight: 500;
}

.aero-lead {
    max-width: 980px !important;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    line-height: 1.45;
    font-weight: 600;
}

.aero-text {
    max-width: 1180px !important;
    line-height: 1.65;
}


/* ==========================================================
   7. Buttons
   ========================================================== */

.aero-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.aero-button {
    display: inline-block;
    margin: 0 0.9rem 0.9rem 0;
    padding: 0.85rem 1.3rem;
    border: 2px solid #152973 !important;
    background: #152973 !important;
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-decoration: none !important;
    text-transform: uppercase;
}

.aero-button.secondary {
    background: transparent !important;
    color: #152973 !important;
}

.aero-button:hover,
.aero-button:focus,
.aero-button.secondary:hover,
.aero-button.secondary:focus {
    background: #104598 !important;
    border-color: #104598 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}


/* ==========================================================
   8. Sections
   ========================================================== */

.aero-section {
    margin-top: 3.5rem !important;
    margin-bottom: 3.5rem !important;
}

.aero-section h2 {
    margin-top: 0;
    margin-bottom: 1.3rem;
    color: #152973;
    font-size: 2.35rem;
    line-height: 1.18;
}

.aero-section > p,
.aero-section > .aero-text {
    max-width: 1180px !important;
    line-height: 1.65;
}


/* ==========================================================
   9. Cards / grids
   Flexbox is used for compatibility with older parser
   ========================================================== */

.aero-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100% !important;
    margin-top: 1.8rem !important;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.aero-card {
    box-sizing: border-box;
    flex: 1 1 30%;
    min-width: 260px;
    margin: 0.75rem;
    padding: 1.6rem;
    border: 1px solid rgba(21, 41, 115, 0.24) !important;
    background: #ffffff !important;
}

.aero-card h2,
.aero-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #152973 !important;
    line-height: 1.2;
}

.aero-card h2 {
    font-size: 1.55rem;
}

.aero-card h3 {
    font-size: 1.35rem;
}

.aero-card p,
.aero-card li {
    font-size: 1rem;
    line-height: 1.6;
}

.aero-card p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   10. Highlight note blocks
   ========================================================== */

.aero-note {
    margin-top: 3.5rem !important;
    margin-bottom: 3.5rem !important;
    padding: 1.6rem 1.8rem;
    border-left: 5px solid #152973 !important;
    background: #ffffff !important;
}

.aero-note h2 {
    margin-top: 0;
    color: #152973;
}

.aero-note p,
.aero-note .aero-text {
    max-width: 1180px !important;
    line-height: 1.6;
}

.aero-small {
    color: #5b6472;
    font-size: 0.9rem;
    line-height: 1.5;
}


/* ==========================================================
   11. Links and separators
   ========================================================== */

.entry-content a {
    color: #104598;
}

.entry-content a:hover,
.entry-content a:focus {
    color: #152973;
}

.wp-block-separator {
    border-color: rgba(21, 41, 115, 0.24);
}


/* ==========================================================
   12. Clean footer and bottom of pages
   ========================================================== */

/* Hide default footer because it adds extra logo, lines and WordPress credit */
.site-footer,
footer.site-footer {
    display: none !important;
}

/* Hide admin edit links below pages */
.edit-link,
.post-edit-link {
    display: none !important;
}

/* Hide default widget area */
.widget-area {
    display: none !important;
}

/* Reduce remaining bottom spacing */
.site-main,
#main,
.entry-content,
.entry-content > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* ==========================================================
   13. Mobile layout
   ========================================================== */

@media (max-width: 900px) {

    .site-header {
        display: block !important;
        padding: 1rem 1.5rem !important;
        text-align: center !important;
    }

    .site-branding {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }

    .site-logo {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .site-logo img,
    .site-logo .custom-logo {
        max-width: 36px !important;
        max-height: 36px !important;
    }

    .site-logo:after {
        font-size: 0.9rem;
        letter-spacing: 0.16em;
    }

    .primary-navigation {
        margin-left: 0 !important;
        text-align: center !important;
    }

    .primary-navigation a {
        font-size: 0.95rem !important;
    }

    .aero-hero,
    .aero-section,
    .aero-note {
        width: 92% !important;
    }

    .aero-hero h1 {
        font-size: 2.5rem !important;
    }

    .aero-lead {
        font-size: 1.2rem;
    }

    .aero-grid {
        display: block;
        margin-left: 0;
        margin-right: 0;
    }

    .aero-card {
        width: 100%;
        margin: 0 0 1rem 0;
    }

    .aero-actions {
        display: block;
    }

    .aero-button {
        display: block;
        width: 100%;
        margin: 0 0 0.8rem 0;
        text-align: center;
    }
}
/* ==========================================================
   Final header alignment fix
   Logo + AERONAUT left, menu right, same horizontal row
   WP 5.5 / Twenty Twenty-One compatible
   ========================================================== */

@media (min-width: 900px) {

    .site-header {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 90% !important;
        max-width: 1180px !important;
        margin: 0 auto !important;
        padding: 1rem 0 !important;
        background: #f7f8fb !important;
        border-bottom: none !important;
    }

    .site-branding {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }

    .site-logo {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    .site-logo img,
    .site-logo .custom-logo {
        max-width: 38px !important;
        max-height: 38px !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
    }

    .site-logo:after {
        content: "AERONAUT";
        display: inline-block !important;
        margin-left: 0.75rem !important;
        color: #152973 !important;
        font-size: 0.95rem !important;
        line-height: 1 !important;
        letter-spacing: 0.22em !important;
        font-weight: 400 !important;
        white-space: nowrap !important;
    }

    .site-title,
    .site-description {
        display: none !important;
    }

    .primary-navigation {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        flex: 0 1 auto !important;
        text-align: right !important;
        align-self: center !important;
    }

    .primary-navigation > div,
    .primary-navigation .primary-menu-container,
    .primary-navigation .menu-wrapper,
    .primary-navigation ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .primary-navigation li {
        margin: 0 0 0 1.6rem !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .primary-navigation a {
        color: #152973 !important;
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    .primary-navigation a:hover,
    .primary-navigation .current-menu-item > a {
        color: #104598 !important;
        text-decoration: underline !important;
    }
}
/* ==========================================================
   Fix: hide Twenty Twenty-One mobile menu button on desktop
   ========================================================== */

@media (min-width: 900px) {

    .menu-button-container,
    button.primary-navigation-open,
    button.primary-navigation-close,
    .primary-navigation > button,
    .primary-navigation .button {
        display: none !important;
    }

    .primary-navigation {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
    }

    .primary-navigation .primary-menu-container,
    .primary-navigation .menu-wrapper,
    .primary-navigation ul {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .primary-navigation li {
        margin-left: 1.35rem !important;
        margin-right: 0 !important;
    }

    .primary-navigation li:first-child {
        margin-left: 0 !important;
    }
}
/* ==========================================================
   AERONAUT minimal shared footer
   ========================================================== */

.site-footer,
footer.site-footer {
    display: block !important;
    margin-top: 4rem !important;
    padding: 0 !important;
    background: #f7f8fb !important;
    border-top: none !important;
}

/* Footer widget area */
.widget-area {
    display: block !important;
    width: 90% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Hide default theme footer branding and credits */
.powered-by,
.site-info,
.site-footer .site-name,
.site-footer .site-title,
.site-footer .site-logo {
    display: none !important;
}

/* Main footer block */
.aero-footer {
    border-top: 1px solid rgba(21, 41, 115, 0.22);
    padding: 2rem 0 2rem 0;
    color: #1f2937;
}

/* Logo row */
.aero-footer-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.aero-footer-logo {
    display: block;
    height: auto;
    object-fit: contain;
}

.aero-footer-logo-project {
    max-width: 150px;
}

.aero-footer-logo-fsb {
    max-width: 230px;
}

.aero-footer-logo-eu {
    max-width: 330px;
}

/* Link row */
.aero-footer-links {
    display: block !important;
    margin-bottom: 1.5rem;
    padding-top: 0 !important;
    border-top: none !important;
}

.aero-footer-links a {
    color: #152973 !important;
    font-size: 0.95rem;
    text-decoration: none !important;
}

.aero-footer-links a:hover,
.aero-footer-links a:focus {
    color: #104598 !important;
    text-decoration: underline !important;
}

/* Funding text */
.aero-footer-funding {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(21, 41, 115, 0.14);
}

.aero-footer-funding p {
    max-width: 980px;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.aero-footer-funding .aero-small {
    color: #5b6472;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Mobile footer */
@media (max-width: 900px) {
    .aero-footer-logos {
        display: block;
    }

    .aero-footer-logo {
        max-width: 100%;
        margin-bottom: 1.25rem;
    }

    .aero-footer-logo-project {
        max-width: 150px;
    }

    .aero-footer-logo-fsb {
        max-width: 230px;
    }

    .aero-footer-logo-eu {
        max-width: 320px;
    }

    .aero-footer-links {
        display: block;
    }

    .aero-footer-links a {
        display: block;
        margin-bottom: 0.6rem;
    }
}
/* ==========================================================
   Footer logo image widgets correction
   ========================================================== */

/* Footer container */
.site-footer,
footer.site-footer {
    display: block !important;
    margin-top: 4rem !important;
    padding: 0 !important;
    background: #f7f8fb !important;
    border-top: none !important;
}

/* Footer widget area */
.site-footer .widget-area,
.widget-area {
    display: block !important;
    width: 90% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 2rem 0 !important;
    border-top: 1px solid rgba(21, 41, 115, 0.22);
}

/* Hide default WP footer credit */
.powered-by,
.site-info,
.site-footer .site-name,
.site-footer .site-title,
.site-footer .site-logo {
    display: none !important;
}

/* Remove widget default spacing */
.site-footer .widget,
.widget-area .widget {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Put the first three image widgets in one row */
.site-footer .widget_media_image,
.widget-area .widget_media_image {
    display: inline-block !important;
    width: 32% !important;
    margin: 0 1% 1.75rem 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    text-align: center !important;
}

/* General footer image size */
.site-footer .widget_media_image img,
.widget-area .widget_media_image img {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 80px !important;
    object-fit: contain !important;
}

/* Specific logo proportions */
.site-footer img[src*="aeronaut_logo_footer"],
.widget-area img[src*="aeronaut_logo_footer"] {
    max-width: 150px !important;
    max-height: 80px !important;
}

.site-footer img[src*="fsb_unizg_logo_footer"],
.widget-area img[src*="fsb_unizg_logo_footer"] {
    max-width: 230px !important;
    max-height: 80px !important;
}

.site-footer img[src*="eu_nextgeneration_logo_footer"],
.widget-area img[src*="eu_nextgeneration_logo_footer"] {
    max-width: 330px !important;
    max-height: 90px !important;
}

/* Custom HTML widgets below logo row */
.site-footer .widget_custom_html,
.widget-area .widget_custom_html {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer menu links */
.aero-footer-links {
    display: block !important;
    margin-bottom: 1.5rem;
    padding-top: 0 !important;
    border-top: none !important;
}

.aero-footer-links a {
    display: inline-block;
    margin-right: 1.25rem;
    margin-bottom: 0.5rem;
    color: #152973 !important;
    font-size: 0.95rem;
    text-decoration: none !important;
}

.aero-footer-links a:hover {
    color: #104598 !important;
    text-decoration: underline !important;
}

/* Footer disclaimer */
.aero-footer-funding {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(21, 41, 115, 0.14);
}

.aero-footer-funding p {
    max-width: 980px;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.aero-footer-funding .aero-small {
    color: #5b6472;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Mobile footer */
@media (max-width: 900px) {
    .site-footer .widget_media_image,
    .widget-area .widget_media_image {
        display: block !important;
        width: 100% !important;
        margin: 0 0 1.25rem 0 !important;
        text-align: left !important;
    }

    .site-footer .widget_media_image img,
    .widget-area .widget_media_image img {
        max-width: 100% !important;
        max-height: 80px !important;
    }

    .aero-footer-links a {
        display: block;
        margin-right: 0;
        margin-bottom: 0.6rem;
    }
}
/* ==========================================================
   Footer line correction
   Keep one line above footer and one line above disclaimer
   ========================================================== */

/* One clean line at the beginning of footer */
.site-footer .widget-area,
.widget-area {
    border-top: 1px solid rgba(21, 41, 115, 0.22) !important;
    padding-top: 1.6rem !important;
}

/* Remove extra line above footer menu */
.aero-footer-links {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
}

/* Keep menu first, clean and compact */
.aero-footer-links a {
    display: inline-block;
    margin-right: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Logo row spacing after menu */
.site-footer .widget_media_image,
.widget-area .widget_media_image {
    margin-top: 0.5rem !important;
    margin-bottom: 1.75rem !important;
}

/* One line only before disclaimer */
.aero-footer-funding {
    clear: both !important;
    border-top: 1px solid rgba(21, 41, 115, 0.16) !important;
    padding-top: 1.25rem !important;
    margin-top: 0.5rem !important;
}

/* Remove possible extra borders from widgets */
.site-footer .widget,
.widget-area .widget {
    border-top: none !important;
    border-bottom: none !important;
}
/* ==========================================================
   Footer final correction: FSB logo size + disclaimer line
   ========================================================== */

/* Increase FSB / UNIZG logo */
.site-footer img[src*="fsb_unizg_logo_footer"],
.widget-area img[src*="fsb_unizg_logo_footer"] {
    max-width: 380px !important;
    max-height: 105px !important;
}

/* Slightly reduce AERONAUT if needed */
.site-footer img[src*="aeronaut_logo_footer"],
.widget-area img[src*="aeronaut_logo_footer"] {
    max-width: 300px !important;
    max-height: 95px !important;
}

/* Keep EU logo prominent */
.site-footer img[src*="eu_nextgeneration_logo_footer"],
.widget-area img[src*="eu_nextgeneration_logo_footer"] {
    max-width: 340px !important;
    max-height: 105px !important;
}

/* Add separator before disclaimer, whether it is Text or Custom HTML */
.site-footer .widget_text,
.widget-area .widget_text,
.site-footer .aero-footer-funding,
.widget-area .aero-footer-funding {
    clear: both !important;
    display: block !important;
    width: 100% !important;
    margin-top: 1.25rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgba(21, 41, 115, 0.16) !important;
}

/* Disclaimer text size */
.site-footer .widget_text p,
.widget-area .widget_text p,
.site-footer .aero-footer-funding p,
.widget-area .aero-footer-funding p {
    max-width: 980px !important;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    color: #5b6472 !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}
/* Final footer line fix */

.aero-footer-links {
    border-top: none !important;
    padding-top: 0 !important;
}

.site-footer .widget-area,
.widget-area {
    border-top: 1px solid rgba(21, 41, 115, 0.22) !important;
}
.site-footer .widget,
.widget-area .widget {
    border-top: none !important;
}
/* Hide default title on single posts */

body.single .entry-header,
body.single .entry-title {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Category archive title styling */

body.category .page-header {
    width: 90% !important;
    max-width: 1180px !important;
    margin: 2rem auto 2rem auto !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(21, 41, 115, 0.22) !important;
}

body.category .page-title {
    color: #152973 !important;
    font-size: 2.6rem !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
    margin: 0 0 1.5rem 0 !important;
}