﻿/* GWM Page Layout Fixes */

/* Remove unwanted gap between hero and breadcrumb */
.gwm-hero,
.gwm-home-hero,
.gwm-page-hero,
.gwm-institution-hero,
.gwm-page-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.gwm-breadcrumb,
.gwm-breadcrumb-wrap,
.gwm-breadcrumbs,
.breadcrumb,
.rank-math-breadcrumb,
.yoast-breadcrumb {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* If breadcrumb appears immediately after hero */
.gwm-hero + .gwm-breadcrumb-wrap,
.gwm-home-hero + .gwm-breadcrumb-wrap,
.gwm-page-hero + .gwm-breadcrumb-wrap,
.gwm-institution-hero + .gwm-breadcrumb-wrap,
.gwm-page-header + .gwm-breadcrumb-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Keep main content and sidebar aligned */
.gwm-content-sidebar-layout,
.gwm-page-with-sidebar,
.gwm-main-sidebar-grid {
    align-items: start;
}

.gwm-page-sidebar,
.gwm-sidebar,
.widget-area {
    margin-top: 0 !important;
}

/* Improve hero readability */
.gwm-hero,
.gwm-home-hero,
.gwm-page-hero,
.gwm-institution-hero,
.gwm-page-header {
    background-color: #f6f0e4;
    color: #182033;
}

.gwm-hero *,
.gwm-home-hero *,
.gwm-page-hero *,
.gwm-institution-hero *,
.gwm-page-header * {
    color: inherit;
}

/* Parallelogram button base */
.gwm-button,
.gwm-btn,
.wp-block-button__link,
button,
input[type="submit"] {
    border-radius: 5px;
    transform: skewX(-10deg);
}

.gwm-button > *,
.gwm-btn > *,
.wp-block-button__link > *,
button > *,
input[type="submit"] {
    transform: skewX(10deg);
}

/* Avoid mobile overflow from skewed buttons */
@media (max-width: 767px) {
    .gwm-button,
    .gwm-btn,
    .wp-block-button__link,
    button,
    input[type="submit"] {
        max-width: 100%;
    }
}

/* ==========================================================
   GWM Breadcrumb Gap Audit Fix V2
   Contact template only.
   ========================================================== */

body.page-template-template-contact-page .gwm-breadcrumbs,
body.page-template-template-contact-page nav.gwm-breadcrumbs,
body.page-template-template-contact-page .gwm-breadcrumb-wrap,
body.page-template-template-contact-page .gwm-breadcrumb-area,
body.page-template-template-contact-page .site-breadcrumbs {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.page-template-template-contact-page .gwm-breadcrumbs + main,
body.page-template-template-contact-page .gwm-breadcrumb-wrap + main,
body.page-template-template-contact-page .gwm-breadcrumb-area + main,
body.page-template-template-contact-page header + main#content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page-template-template-contact-page main#content > .gwm-contact-hero:first-child,
body.page-template-template-contact-page .gwm-site-main > .gwm-contact-hero:first-child {
    margin-top: 0 !important;
}
