:root {
    --red: #e4002b;
    --sans: 'Montserrat', Arial, sans-serif;
    --serif: 'Playfair Display', Georgia, serif;
}

/* MAST shared header and sidebar styles */
.site-header.container-wide { 
	max-width: 1400px !important;
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 20px;
    font: 600 11px var(--sans);
    color: #101827;
}

.site-header a {
    color: inherit;
    font-size: 11px;
}

.brand {
    width: 120px;
    display: flex;
    align-items: center;
    gap: 22px;
    font: 700 19px var(--sans);
}

.brand img {
    width: 100%;
}

.brand .uws {
    font-family: Georgia, serif;
    font-size: 32px;
    letter-spacing: -3px;
}

.brand small {
    font: 600 9px/1.1 var(--sans);
    letter-spacing: 0;
    display: inline-block;
}

.brand .mast {
    font: 800 42px var(--sans);
    color: var(--red);
    letter-spacing: -5px;
}

.brand-divider {
    height: 42px;
    width: 2px;
    background: var(--red);
}

.nav-links {
    display: flex;
    gap: 24px;
    font: 600 11px var(--sans);
    letter-spacing: 0.08em;
}

.menu-toggle {
    background: none;
    border: 0;
    color: var(--red);
    font-size: 32px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    z-index: 30;
    right: 4%;
    top: 82px;
    background: #fff;
    box-shadow: 0 10px 35px #0002;
    padding: 24px;
    border-radius: 14px;
}

.mobile-menu.open {
    display: grid;
    gap: 18px;
}


/* ================================
   MAST HAMBURGER BUTTON
================================ */

.site-header .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.site-header .menu-toggle span {
    display: block;
    width: 29px;
    height: 3px;
    background: #ed0035;
    transition: 0.3s ease;
}

/* ================================
   OVERLAY
================================ */

.mast-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mast-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================================
   SIDEBAR
================================ */

.mast-sidebar {
    font: 600 11px var(--sans);
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease,
                visibility 0.35s ease;
    overflow-y: auto;
    padding: 30px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.08);
}

.mast-sidebar.active {
    transform: translateX(0);
    visibility: visible;
}

body.mast-menu-open {
    overflow: hidden;
}

/* ================================
   SIDEBAR HEADER
================================ */

.mast-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.mast-sidebar-header img {
    width: 125px;
    height: auto;
}

.mast-sidebar-close {
    background: transparent;
    border: none;
    color: #ed0035;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

/* ================================
   SIDEBAR NAVIGATION
================================ */

.mast-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mast-sidebar-nav > a,
.mast-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 17px 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #07112d;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #eee;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}

.mast-sidebar-nav .mast-dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    padding: 17px 10px !important;
    font-family: inherit;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #07112d !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #eee !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
}

.mast-sidebar-nav > a:hover,
.mast-dropdown-toggle:hover {
    color: #ed0035;
}

/* ================================
   DROPDOWN
================================ */

.mast-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-right: 5px;
}

.mast-menu-dropdown.open .mast-chevron {
    transform: rotate(225deg);
}

.mast-dropdown-content {
    display: none;
    background: #fafafa;
    padding: 8px 0;
}

.mast-menu-dropdown.open .mast-dropdown-content {
    display: block;
}

.mast-dropdown-content a {
    display: block;
    padding: 12px 22px;
    font-size: 14px;
    color: #101827;
    text-decoration: none;
}

.mast-dropdown-content a:hover {
    color: #ed0035;
}

/* Events button */
.mast-events > .mast-dropdown-toggle {
    border: 1px solid #ed0035;
    color: #ed0035;
    padding: 12px 14px;
}

.mast-events .mast-dropdown-content {
    position: absolute;
    right: 30px;
    z-index: 1000;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 991px) {
    .site-header .nav-links {
        display: none;
    }

    .mast-sidebar {
        width: min(360px, 100%);
        padding: 24px 20px;
    }

    .mast-sidebar-nav > a,
    .mast-dropdown-toggle {
        font-size: 14px;
        padding: 16px 8px;
    }
}

@media (max-width: 480px) {
    .mast-sidebar {
        width: 100%;
    }

    .mast-sidebar-header img {
        width: 110px;
    }
}

/* Mobile Header */
@media (max-width: 991px) {

    .site-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Logo */
    .site-header .brand {
        order: 1;
    }

    /* Hamburger button */
    .site-header .menu-toggle {
        order: 2;
        display: flex;
    }

    /* Navigation below logo and menu */
    .site-header .nav-links {
        order: 3;
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 20px;
        width: 100%;
        margin-top: 15px;
    }

    /* Navigation links */
    .site-header .nav-links a {
        display: inline-block;
        font-size: 15px;
        font-weight: 500;
        text-decoration: underline;
        text-underline-offset: 4px;
        white-space: nowrap;
    }

    .site-header .nav-links a:hover {
        opacity: 0.8;
    }
    
    .menu-cont {
    	order: 2;
     }
     
     .mast-events .mast-dropdown-content {
        right: 15px;
    }
}
@media (max-width:991px) {
 .nav-links {display:none;}
}
@media (max-width:600px) {
 .site-header {padding:12px 0;}
 .brand {width:100px;gap:10px;}
 .brand .uws {font-size:24px;}
 .brand .mast {font-size:34px;}
 .brand-divider {height:35px;}
}