﻿/* GWM Inner Pages System V1 */

.gwm-page-system {
    background: #fffaf0;
    color: #13231d;
}

.gwm-page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 8vw, 126px) 24px;
    background:
        radial-gradient(circle at 12% 20%, rgba(214, 177, 87, 0.20), transparent 34%),
        linear-gradient(135deg, #fffaf0 0%, #f7ecd2 100%);
}

.gwm-page-hero__inner,
.gwm-page-shell__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.gwm-page-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.gwm-page-hero--has-image .gwm-page-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
}

.gwm-page-kicker {
    margin: 0 0 12px;
    color: #a67c18;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.gwm-page-title {
    margin: 0;
    color: #062d1d;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.gwm-page-intro {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(19, 35, 29, 0.78);
    font-size: clamp(1.05rem, 1.7vw, 1.22rem);
    line-height: 1.8;
}

.gwm-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.gwm-page-btn,
.gwm-page-content .wp-block-button__link,
.gwm-page-sidebar .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 2.3rem;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    border-radius: 0;
    text-decoration: none;
    font-weight: 800;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.gwm-page-btn--gold,
.gwm-page-content .wp-block-button__link,
.gwm-page-sidebar .wp-block-button__link {
    background: #d6b157;
    color: #111;
    border: 1px solid #d6b157;
}

.gwm-page-btn--outline {
    background: transparent;
    color: #062d1d;
    border: 1px solid rgba(6, 45, 29, 0.28);
}

.gwm-page-btn:hover,
.gwm-page-btn:focus,
.gwm-page-content .wp-block-button__link:hover,
.gwm-page-content .wp-block-button__link:focus,
.gwm-page-sidebar .wp-block-button__link:hover,
.gwm-page-sidebar .wp-block-button__link:focus {
    background: #050505;
    border-color: #050505;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.gwm-page-hero__media {
    margin: 0;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(214, 177, 87, 0.28);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.20);
}

.gwm-page-hero__image {
    display: block;
    width: 100%;
    height: clamp(300px, 38vw, 520px);
    object-fit: cover;
}

.gwm-page-shell {
    padding: clamp(70px, 8vw, 120px) 24px;
}

.gwm-page-shell__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: clamp(34px, 5vw, 70px);
    align-items: start;
}

.gwm-page-main {
    min-width: 0;
}

.gwm-page-content {
    display: grid;
    gap: clamp(28px, 4vw, 54px);
}

.gwm-page-content > * {
    margin-top: 0;
    margin-bottom: 0;
}

.gwm-page-content h2,
.gwm-page-content h3 {
    color: #062d1d;
    letter-spacing: -0.035em;
}

.gwm-page-content h2 {
    font-size: clamp(1.85rem, 3.5vw, 3rem);
    line-height: 1.05;
}

.gwm-page-content p,
.gwm-page-content li {
    color: rgba(19, 35, 29, 0.78);
    font-size: 1.02rem;
    line-height: 1.78;
}

.gwm-page-content .wp-block-group,
.gwm-page-content .wp-block-columns,
.gwm-page-content .wp-block-media-text,
.gwm-page-content .wp-block-cover,
.gwm-page-content .wp-block-quote,
.gwm-page-content .wp-block-table {
    border-radius: 15px;
}

.gwm-page-content .wp-block-group {
    padding: clamp(26px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(214, 177, 87, 0.18);
    box-shadow: 0 18px 50px rgba(6, 45, 29, 0.08);
}

.gwm-page-content .is-style-gwm-feature-card {
    position: relative;
    padding: clamp(34px, 5vw, 64px);
    color: #fffaf0;
    background: linear-gradient(135deg, #062d1d, #111827);
    border: 1px solid rgba(214, 177, 87, 0.30);
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
    border-radius: 0;
}

.gwm-page-content .is-style-gwm-feature-card h2,
.gwm-page-content .is-style-gwm-feature-card h3,
.gwm-page-content .is-style-gwm-feature-card p,
.gwm-page-content .is-style-gwm-feature-card li {
    color: inherit;
}

.gwm-page-sidebar {
    position: sticky;
    top: 110px;
}

.gwm-page-sidebar__inner {
    display: grid;
    gap: 18px;
}

.gwm-page-sidebar .widget,
.gwm-page-sidebar .wp-block-group,
.gwm-page-sidebar section {
    position: relative;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(214, 177, 87, 0.22);
    border-radius: 15px;
    box-shadow: 0 18px 45px rgba(6, 45, 29, 0.08);
    overflow: hidden;
}

.gwm-page-sidebar .widget::before,
.gwm-page-sidebar .wp-block-group::before,
.gwm-page-sidebar section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #d6b157, #062d1d);
}

.gwm-page-sidebar .widget-title,
.gwm-page-sidebar h2,
.gwm-page-sidebar h3 {
    margin: 0 0 10px;
    color: #062d1d;
    font-size: 1.12rem;
    line-height: 1.2;
}

.gwm-page-sidebar p,
.gwm-page-sidebar li {
    color: rgba(19, 35, 29, 0.72);
    line-height: 1.65;
}

.gwm-page-sidebar a {
    color: #062d1d;
    font-weight: 700;
}

.gwm-page-sidebar .wp-block-button__link {
    margin-top: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 1.4rem;
}

@media (max-width: 1023px) {
    .gwm-page-hero--has-image .gwm-page-hero__inner,
    .gwm-page-shell__inner {
        grid-template-columns: 1fr;
    }

    .gwm-page-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .gwm-page-hero,
    .gwm-page-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .gwm-page-btn,
    .gwm-page-content .wp-block-button__link,
    .gwm-page-sidebar .wp-block-button__link {
        width: 100%;
        padding-left: 1.7rem;
        padding-right: 1.7rem;
    }

    .gwm-page-content .is-style-gwm-feature-card {
        clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    }
}

/* GWM Page Sidebar Right Placement Fix V1
   Purpose: keep sidebar on the right side on desktop and below content on smaller screens.
*/

.gwm-institutional-page .gwm-page-shell__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) !important;
    gap: clamp(34px, 5vw, 70px) !important;
    align-items: start !important;
}

.gwm-institutional-page .gwm-page-main {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
}

.gwm-institutional-page .gwm-page-sidebar {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    align-self: start !important;
    position: sticky !important;
    top: 110px !important;
}

@media (max-width: 1023px) {
    .gwm-institutional-page .gwm-page-shell__inner {
        grid-template-columns: 1fr !important;
    }

    .gwm-institutional-page .gwm-page-main {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .gwm-institutional-page .gwm-page-sidebar {
        grid-column: 1 !important;
        grid-row: 2 !important;
        position: static !important;
        top: auto !important;
        margin-top: 34px !important;
    }
}


/* GWM Latest Update Sidebar Widget V1
   Content source: WordPress posts from News category.
   Theme owns display only.
*/

.gwm-page-sidebar .gwm-latest-update-widget {
    position: relative;
    padding: 0;
    background: #ffffff;
    border: 1px solid rgba(214, 177, 87, 0.28);
    border-radius: 15px;
    box-shadow: 0 22px 55px rgba(6, 45, 29, 0.12);
    overflow: hidden;
}

.gwm-page-sidebar .gwm-latest-update-widget::before {
    display: none;
}

.gwm-latest-update-widget__head {
    padding: 22px 22px 16px;
    background:
        radial-gradient(circle at 12% 18%, rgba(214, 177, 87, 0.22), transparent 34%),
        linear-gradient(135deg, #062d1d, #111827);
    color: #fffaf0;
}

.gwm-latest-update-widget__label {
    margin: 0 0 8px;
    color: #d6b157;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gwm-latest-update-widget__title {
    margin: 0;
    color: #fffaf0;
    font-size: 1.18rem;
    line-height: 1.18;
}

.gwm-latest-update-widget__viewport {
    overflow: hidden;
}

.gwm-latest-update-widget__track {
    display: flex;
    transition: transform 420ms ease;
    will-change: transform;
}

.gwm-latest-update-slide {
    min-width: 100%;
    background: #ffffff;
}

.gwm-latest-update-slide__media {
    display: block;
    height: 180px;
    overflow: hidden;
    background: rgba(6, 45, 29, 0.08);
}

.gwm-latest-update-slide__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gwm-latest-update-slide__body {
    padding: 20px 22px 22px;
}

.gwm-latest-update-slide__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #a67c18;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gwm-latest-update-slide__title {
    margin: 0 0 8px;
    font-size: 1.12rem;
    line-height: 1.24;
}

.gwm-latest-update-slide__title a {
    color: #062d1d;
    text-decoration: none;
}

.gwm-latest-update-slide__title a:hover,
.gwm-latest-update-slide__title a:focus {
    color: #a67c18;
}

.gwm-latest-update-slide__byline {
    margin: 0 0 10px;
    color: rgba(19, 35, 29, 0.62);
    font-size: 0.84rem;
    line-height: 1.45;
}

.gwm-latest-update-slide__excerpt {
    margin: 0 0 16px;
    color: rgba(19, 35, 29, 0.74);
    font-size: 0.94rem;
    line-height: 1.65;
}

.gwm-latest-update-slide__button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    background: #d6b157;
    color: #111111;
    font-weight: 900;
    text-decoration: none;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.gwm-latest-update-slide__button:hover,
.gwm-latest-update-slide__button:focus {
    background: #050505;
    color: #ffffff;
}

.gwm-latest-update-widget__controls {
    display: flex;
    gap: 1px;
    border-top: 1px solid rgba(214, 177, 87, 0.18);
}

.gwm-latest-update-widget__control {
    width: 50%;
    min-height: 42px;
    border: 0;
    background: #fffaf0;
    color: #062d1d;
    font-weight: 900;
    cursor: pointer;
}

.gwm-latest-update-widget__control:hover,
.gwm-latest-update-widget__control:focus {
    background: #062d1d;
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .gwm-latest-update-widget__track {
        transition: none;
    }
}


/* GWM Sidebar Same Height Final Fix V1
   Purpose: right sidebar starts at exactly the same vertical height as main content.
*/

.gwm-institutional-page .gwm-page-shell {
    padding-top: clamp(70px, 8vw, 120px) !important;
}

.gwm-institutional-page .gwm-page-shell__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) !important;
    gap: clamp(34px, 5vw, 70px) !important;
    align-items: start !important;
}

.gwm-institutional-page .gwm-page-main {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.gwm-institutional-page .gwm-page-sidebar {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

/* Sticky should not create visual top offset. */
@media (min-width: 1024px) {
    .gwm-institutional-page .gwm-page-sidebar {
        position: sticky !important;
        top: 96px !important;
    }
}

/* Remove top push from inner wrappers and first widgets/content blocks */
.gwm-institutional-page .gwm-page-content,
.gwm-institutional-page .gwm-page-sidebar__inner {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.gwm-institutional-page .gwm-page-content > :first-child,
.gwm-institutional-page .gwm-page-sidebar__inner > :first-child,
.gwm-institutional-page .gwm-page-sidebar .widget:first-child,
.gwm-institutional-page .gwm-page-sidebar .gwm-latest-update-widget:first-child {
    margin-top: 0 !important;
}

/* Prevent widget CSS from adding top offset */
.gwm-institutional-page .gwm-page-sidebar .widget,
.gwm-institutional-page .gwm-page-sidebar .wp-block-group,
.gwm-institutional-page .gwm-page-sidebar section,
.gwm-institutional-page .gwm-page-sidebar .gwm-latest-update-widget {
    margin-top: 0 !important;
}

/* On tablet/mobile, sidebar intentionally moves below main content */
@media (max-width: 1023px) {
    .gwm-institutional-page .gwm-page-shell__inner {
        grid-template-columns: 1fr !important;
    }

    .gwm-institutional-page .gwm-page-main {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .gwm-institutional-page .gwm-page-sidebar {
        grid-column: 1 !important;
        grid-row: 2 !important;
        position: static !important;
        top: auto !important;
        margin-top: 34px !important;
    }
}


/* GWM Simple Creative Inner Page Refinement V1
   Purpose:
   - Remove gold-heavy sidebar design.
   - Make widget cards cleaner and more elegant.
   - Improve hero readability with calm background contrast.
   - Keep WordPress content ownership untouched.
*/

/* Hero readability refinement */
.gwm-page-hero {
    background:
        linear-gradient(135deg, #f7f1e5 0%, #eef3ee 52%, #f9f6ef 100%) !important;
    color: #10231d !important;
}

.gwm-page-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background:
        radial-gradient(circle at 8% 18%, rgba(16, 35, 29, 0.055), transparent 30%),
        radial-gradient(circle at 92% 82%, rgba(16, 35, 29, 0.045), transparent 34%) !important;
}

.gwm-page-hero__inner {
    position: relative !important;
    z-index: 2 !important;
}

.gwm-page-kicker {
    color: #52645b !important;
    letter-spacing: 0.13em !important;
}

.gwm-page-title {
    color: #10231d !important;
    text-shadow: none !important;
}

.gwm-page-intro {
    color: rgba(16, 35, 29, 0.78) !important;
}

/* Remove gold-heavy button default on inner pages */
.gwm-page-btn--gold,
.gwm-page-content .wp-block-button__link,
.gwm-page-sidebar .wp-block-button__link,
.gwm-latest-update-slide__button {
    background: #10231d !important;
    border-color: #10231d !important;
    color: #ffffff !important;
}

.gwm-page-btn--gold:hover,
.gwm-page-content .wp-block-button__link:hover,
.gwm-page-sidebar .wp-block-button__link:hover,
.gwm-latest-update-slide__button:hover {
    background: #050706 !important;
    border-color: #050706 !important;
    color: #ffffff !important;
}

/* Sidebar container */
.gwm-page-sidebar__inner {
    gap: 18px !important;
}

/* Clean widget card design */
.gwm-page-sidebar .widget,
.gwm-page-sidebar .wp-block-group,
.gwm-page-sidebar section,
.gwm-page-sidebar .gwm-latest-update-widget {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(16, 35, 29, 0.10) !important;
    border-radius: 15px !important;
    box-shadow: 0 14px 36px rgba(16, 35, 29, 0.075) !important;
    padding: 22px !important;
    overflow: hidden !important;
}

/* Remove left gold stripe */
.gwm-page-sidebar .widget::before,
.gwm-page-sidebar .wp-block-group::before,
.gwm-page-sidebar section::before,
.gwm-page-sidebar .gwm-latest-update-widget::before {
    display: none !important;
    content: none !important;
}

/* Add subtle top texture instead of gold stripe */
.gwm-page-sidebar .widget::after,
.gwm-page-sidebar .wp-block-group::after,
.gwm-page-sidebar section::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, rgba(16, 35, 29, 0.20), rgba(16, 35, 29, 0.04)) !important;
    pointer-events: none !important;
}

/* Sidebar widget typography */
.gwm-page-sidebar .widget-title,
.gwm-page-sidebar h2,
.gwm-page-sidebar h3 {
    color: #10231d !important;
    font-size: 1.04rem !important;
    line-height: 1.22 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 10px !important;
}

.gwm-page-sidebar p,
.gwm-page-sidebar li {
    color: rgba(16, 35, 29, 0.70) !important;
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
}

.gwm-page-sidebar a {
    color: #10231d !important;
}

/* Sidebar buttons: calm, solid, readable */
.gwm-page-sidebar .wp-block-button__link {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 5px !important;
    clip-path: none !important;
    background: #10231d !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.gwm-page-sidebar .wp-block-button__link:hover,
.gwm-page-sidebar .wp-block-button__link:focus {
    background: #050706 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Latest update widget: make it simple and beautiful */
.gwm-page-sidebar .gwm-latest-update-widget {
    padding: 0 !important;
}

.gwm-latest-update-widget__head {
    background: #10231d !important;
    color: #ffffff !important;
    padding: 20px 22px 16px !important;
}

.gwm-latest-update-widget__label {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.14em !important;
}

.gwm-latest-update-widget__title {
    color: #ffffff !important;
    font-size: 1.08rem !important;
}

.gwm-latest-update-slide__meta {
    color: #52645b !important;
}

.gwm-latest-update-slide__title a {
    color: #10231d !important;
}

.gwm-latest-update-slide__title a:hover,
.gwm-latest-update-slide__title a:focus {
    color: #050706 !important;
}

.gwm-latest-update-slide__button {
    border-radius: 5px !important;
    clip-path: none !important;
    background: #10231d !important;
    color: #ffffff !important;
}

.gwm-latest-update-widget__control {
    background: #f4f1eb !important;
    color: #10231d !important;
}

.gwm-latest-update-widget__control:hover,
.gwm-latest-update-widget__control:focus {
    background: #10231d !important;
    color: #ffffff !important;
}

/* Main content blocks: simple creativity */
.gwm-page-content .wp-block-group {
    background: rgba(255, 255, 255, 0.74) !important;
    border: 1px solid rgba(16, 35, 29, 0.09) !important;
    box-shadow: 0 14px 42px rgba(16, 35, 29, 0.065) !important;
}

.gwm-page-content .is-style-gwm-feature-card {
    background: linear-gradient(135deg, #10231d 0%, #182f28 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 15px !important;
    clip-path: none !important;
}

.gwm-page-content .is-style-gwm-feature-card h2,
.gwm-page-content .is-style-gwm-feature-card h3,
.gwm-page-content .is-style-gwm-feature-card p,
.gwm-page-content .is-style-gwm-feature-card li {
    color: #ffffff !important;
}

/* Keep page buttons parallelogram in main content, but sidebar buttons simple */
.gwm-page-content .wp-block-button__link,
.gwm-page-btn {
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%) !important;
    border-radius: 0 !important;
}


/* GWM About Readable Hero + News Widget Fix V1
   Fixes:
   - Latest Update dark text on dark bg
   - News button black text on black bg
   - dull hero background
   - excess space above hero after breadcrumb
*/

/* Remove space above hero after breadcrumb */
.gwm-institutional-page .gwm-page-hero,
.gwm-page-system .gwm-page-hero {
    margin-top: 0 !important;
    padding-top: clamp(42px, 5vw, 76px) !important;
    padding-bottom: clamp(54px, 6vw, 90px) !important;
}

/* If theme wrapper adds top spacing before page hero */
.gwm-institutional-page,
.gwm-page-system,
.site-main.gwm-page-system,
main.gwm-page-system {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero background: brighter, readable, still elegant */
.gwm-page-hero {
    background:
        linear-gradient(135deg, #fffaf0 0%, #f6efe0 46%, #edf5ef 100%) !important;
    color: #10231d !important;
}

.gwm-page-hero::before {
    background:
        radial-gradient(circle at 8% 12%, rgba(16, 35, 29, 0.045), transparent 30%),
        radial-gradient(circle at 88% 75%, rgba(16, 35, 29, 0.035), transparent 34%) !important;
}

.gwm-page-title {
    color: #071a14 !important;
}

.gwm-page-intro {
    color: rgba(7, 26, 20, 0.82) !important;
}

.gwm-page-kicker {
    color: #405247 !important;
}

/* Latest Update header: readable light text on dark bg */
.gwm-page-sidebar .gwm-latest-update-widget .gwm-latest-update-widget__head,
.gwm-latest-update-widget__head {
    background: linear-gradient(135deg, #071a14 0%, #10231d 100%) !important;
    color: #ffffff !important;
}

.gwm-page-sidebar .gwm-latest-update-widget .gwm-latest-update-widget__label,
.gwm-latest-update-widget__label {
    color: rgba(255, 255, 255, 0.72) !important;
}

.gwm-page-sidebar .gwm-latest-update-widget .gwm-latest-update-widget__title,
.gwm-latest-update-widget__title {
    color: #ffffff !important;
}

/* Make sure no generic sidebar heading rule overrides the Latest Update title */
.gwm-page-sidebar .gwm-latest-update-widget__head h2,
.gwm-page-sidebar .gwm-latest-update-widget__head h3,
.gwm-page-sidebar .gwm-latest-update-widget__head p,
.gwm-latest-update-widget__head h2,
.gwm-latest-update-widget__head h3,
.gwm-latest-update-widget__head p {
    color: #ffffff !important;
}

/* Latest Update body text remains readable */
.gwm-latest-update-slide__title,
.gwm-latest-update-slide__title a {
    color: #071a14 !important;
}

.gwm-latest-update-slide__byline,
.gwm-latest-update-slide__excerpt {
    color: rgba(7, 26, 20, 0.72) !important;
}

.gwm-latest-update-slide__meta {
    color: #405247 !important;
}

/* Fix black text on black news button */
.gwm-latest-update-slide__button,
.gwm-page-sidebar .gwm-latest-update-slide__button,
.gwm-page-sidebar a.gwm-latest-update-slide__button {
    background: #10231d !important;
    border-color: #10231d !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    clip-path: none !important;
}

.gwm-latest-update-slide__button:hover,
.gwm-latest-update-slide__button:focus,
.gwm-page-sidebar .gwm-latest-update-slide__button:hover,
.gwm-page-sidebar .gwm-latest-update-slide__button:focus {
    background: #050706 !important;
    border-color: #050706 !important;
    color: #ffffff !important;
}

/* Ensure nested text/icons inside buttons also stay white */
.gwm-latest-update-slide__button *,
.gwm-page-sidebar .gwm-latest-update-slide__button * {
    color: #ffffff !important;
}

/* Latest update controls: readable */
.gwm-latest-update-widget__control {
    background: #f4f1eb !important;
    color: #071a14 !important;
}

.gwm-latest-update-widget__control:hover,
.gwm-latest-update-widget__control:focus {
    background: #10231d !important;
    color: #ffffff !important;
}


/* GWM All Inner Page Buttons Parallelogram V1
   Scope: GWM institutional inner pages.
   Purpose: all buttons use parallelogram shape, including sidebar and Latest Update widget.
*/

.gwm-page-system a.gwm-page-btn,
.gwm-page-system .gwm-page-btn,
.gwm-page-system .wp-block-button__link,
.gwm-page-system button,
.gwm-page-system input[type="submit"],
.gwm-page-system input[type="button"],
.gwm-page-system .gwm-latest-update-slide__button,
.gwm-page-system .gwm-latest-update-widget__control,
.gwm-page-sidebar .wp-block-button__link,
.gwm-page-sidebar a.gwm-latest-update-slide__button,
.gwm-page-sidebar button {
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%) !important;
    border-radius: 0 !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    padding-left: 1.8rem !important;
    padding-right: 1.8rem !important;
}

/* Sidebar buttons can still be full width while remaining parallelogram */
.gwm-page-sidebar .wp-block-button__link,
.gwm-page-sidebar a.gwm-latest-update-slide__button,
.gwm-page-sidebar button {
    width: 100% !important;
}

/* Dark button readability */
.gwm-page-system .wp-block-button__link,
.gwm-page-system .gwm-page-btn--gold,
.gwm-page-system .gwm-latest-update-slide__button,
.gwm-page-sidebar .wp-block-button__link,
.gwm-page-sidebar a.gwm-latest-update-slide__button {
    background: #10231d !important;
    border: 1px solid #10231d !important;
    color: #ffffff !important;
}

/* Hover/focus */
.gwm-page-system .wp-block-button__link:hover,
.gwm-page-system .wp-block-button__link:focus,
.gwm-page-system .gwm-page-btn:hover,
.gwm-page-system .gwm-page-btn:focus,
.gwm-page-system .gwm-latest-update-slide__button:hover,
.gwm-page-system .gwm-latest-update-slide__button:focus,
.gwm-page-sidebar .wp-block-button__link:hover,
.gwm-page-sidebar .wp-block-button__link:focus,
.gwm-page-sidebar a.gwm-latest-update-slide__button:hover,
.gwm-page-sidebar a.gwm-latest-update-slide__button:focus {
    background: #050706 !important;
    border-color: #050706 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Make sure child text/icons inside buttons remain readable */
.gwm-page-system .wp-block-button__link *,
.gwm-page-system .gwm-page-btn *,
.gwm-page-system .gwm-latest-update-slide__button *,
.gwm-page-sidebar .wp-block-button__link *,
.gwm-page-sidebar a.gwm-latest-update-slide__button * {
    color: inherit !important;
}

/* Latest update Prev / Next controls */
.gwm-page-system .gwm-latest-update-widget__controls {
    gap: 8px !important;
    padding: 12px !important;
    border-top: 1px solid rgba(16, 35, 29, 0.08) !important;
}

.gwm-page-system .gwm-latest-update-widget__control {
    background: #eef3ee !important;
    border: 1px solid rgba(16, 35, 29, 0.12) !important;
    color: #10231d !important;
}

.gwm-page-system .gwm-latest-update-widget__control:hover,
.gwm-page-system .gwm-latest-update-widget__control:focus {
    background: #10231d !important;
    color: #ffffff !important;
}

/* Mobile: softer slant so text has room */
@media (max-width: 767px) {
    .gwm-page-system a.gwm-page-btn,
    .gwm-page-system .gwm-page-btn,
    .gwm-page-system .wp-block-button__link,
    .gwm-page-system button,
    .gwm-page-system input[type="submit"],
    .gwm-page-system input[type="button"],
    .gwm-page-system .gwm-latest-update-slide__button,
    .gwm-page-system .gwm-latest-update-widget__control,
    .gwm-page-sidebar .wp-block-button__link,
    .gwm-page-sidebar a.gwm-latest-update-slide__button,
    .gwm-page-sidebar button {
        clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%) !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

