/* SGNA audit corrections — November 6, 2026.
   Scoped to the existing Studius redesign; native drawer behavior is retained. */

/************ THIRD-LEVEL DESKTOP MENUS ************/
@media only screen and (min-width: 50.99rem) {
    #g-navigation.sgna-navigation-section .sgna-menu .g-sublevel > .g-parent {
        position: relative;
    }
    #g-navigation.sgna-navigation-section .sgna-menu .g-sublevel > .g-parent > .g-dropdown {
        top: 0;
        left: 100%;
        right: auto;
        width: 260px;
        min-width: 260px;
        max-width: 320px;
        margin: 0;
        transform: none;
        z-index: 40;
    }
    #g-navigation.sgna-navigation-section .sgna-menu .g-sublevel > .g-parent > .g-menu-item-container {
        padding-right: 40px;
    }
    #g-navigation.sgna-navigation-section .sgna-menu .g-sublevel .g-menu-item-title {
        white-space: normal;
        overflow-wrap: break-word;
        font-size: 15px !important;
        line-height: 1.4;
        color: inherit !important;
    }
    #g-navigation.sgna-navigation-section .sgna-menu .g-dropdown.g-inactive {
        opacity: 0 !important;
        visibility: hidden;
        pointer-events: none;
    }
    #g-navigation.sgna-navigation-section .sgna-menu .g-dropdown.g-active {
        opacity: 1 !important;
        visibility: visible;
        pointer-events: auto;
        overflow: visible;
    }
    #g-navigation.sgna-navigation-section .sgna-menu .g-sublevel > .g-parent > .g-dropdown.g-dropdown-left {
        left: auto;
        right: 100%;
    }
    #g-navigation.sgna-navigation-section .sgna-menu .g-dropdown .g-menu-item.active > a,
    #g-navigation.sgna-navigation-section .sgna-menu .g-dropdown .g-menu-item:hover > a,
    #g-navigation.sgna-navigation-section .sgna-menu .g-dropdown .g-menu-item > a:focus-visible {
        background: var(--sgna-blush) !important;
        color: var(--sgna-ink) !important;
    }
}

/* Keep the original 1920 × 640 rotator proportions at every viewport. */
.site-home #g-slideshow.sgna-home-hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 1;
    --slideshow-height: calc(100vw / 3);
    --slideshow-height-mobile: calc(100vw / 3);
}

/* Unbox the native subpage hero, leaving its CMS image loader in place. */
.site-sub.outline-13 #g-header > .g-container {
    width: 100%;
    max-width: none;
    padding: 0 !important;
}
.site-sub.outline-13 #hero .g-content { margin: 0; padding: 0; }
.site-sub.outline-13 #hero-grab { width: 100%; height: 100%; }
.site-sub.outline-13 #hero #grid-hero { width: 100%; object-fit: cover; }
.site-sub.outline-13 #hero-grab.sgna-has-hero-title::after {
    content: '';
    position: absolute;
    inset: 30% 0 0;
    background: linear-gradient(transparent, rgba(0, 35, 102, .78));
    pointer-events: none;
}
.site-sub.outline-13 #hero-title-text.sgna-subpage-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    width: min(100%, 1200px);
    box-sizing: border-box;
    padding: 0 24px;
    margin: 0 auto;
    color: #fff;
    font: 500 clamp(28px, 3.2vw, 52px)/1.15 var(--title-font-family);
    text-align: left;
    visibility: visible !important;
    z-index: 2;
    overflow-wrap: break-word;
}
.site-sub.outline-13 .page-header:empty { display: none; }

/* Mockup footer: one centered row, logo left and contact/copyright right. */
#g-footer.sgna-footer-section { padding: 0 !important; background: #fff; }
#g-footer.sgna-footer-section > .g-container {
    width: 100%; max-width: 1200px; padding: 0 24px !important;
}
#g-footer.sgna-footer-section .sgna-footer-content {
    box-sizing: border-box;
    min-height: 239px;
    padding: 48px 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}
#g-footer.sgna-footer-section .sgna-footer-content > div { text-align: right; }

/* Category-backed education news, with space for future published articles. */
.sgna-education-news > .g-content { padding: 0; margin: 0; }
.sgna-education-news .g-content-array > .g-grid > .g-block > .g-content { padding: 0; margin: 0; height: 100%; }
.sgna-education-news .g-content-array > .g-grid { gap: 28px; flex-wrap: wrap; }
.sgna-education-news .g-content-array > .g-grid > .g-block {
    flex: 0 1 calc((100% - 56px) / 3);
    min-width: 0;
}
.sgna-education-news .g-array-item {
    margin: 0; padding: 0 0 24px; background: #fff;
    border-radius: 12px; overflow: hidden; height: 100%;
}
.sgna-education-news .g-array-item-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sgna-education-news .g-array-item-title,
.sgna-education-news .g-array-item-text,
.sgna-education-news .g-array-item-read-more { margin: 20px 24px 0; }
.sgna-education-news .g-item-title { font: 500 24px/1.25 var(--title-font-family); }
.sgna-education-news .g-item-title a { color: var(--sgna-ink); }
.sgna-education-news .g-item-title a:hover { text-decoration: underline; }

@media (max-width: 50.98rem) {
    .site-home .sgna-hero-caption { bottom: 8px; left: 12px; width: min(340px, calc(100% - 24px)); }
    .site-home .sgna-hero-copy { padding: 10px 14px; }
    .site-home .sgna-hero-copy h1 { font-size: clamp(16px, 3vw, 23px); }
    .site-sub.outline-13 #hero-title-text.sgna-subpage-title { bottom: 20px; padding: 0 20px; }
    #g-footer.sgna-footer-section .sgna-footer-content { min-height: 180px; padding: 32px 0; gap: 20px; }
    #g-footer.sgna-footer-section .sgna-footer-content img { width: min(42vw, 280px); }
    #g-footer.sgna-footer-section .sgna-footer-content p { text-align: right; font-size: 12px; }
    .sgna-education-news .g-content-array > .g-grid > .g-block { flex-basis: 100%; }
}
