/*================================================================
  1. Top-Level Navigation
================================================================*/
.main-navigation-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    position: relative; /* This is key to creating a new stacking context */
    z-index: 10; /* Make it higher than the submenu's -1 z-index */
    background: #ffffff;
}

.main-navigation-menu li {
    position: relative;
    flex-grow: 1;
    text-align: center;
}

.main-navigation-menu a {
    display: block;
    padding: 12px 5px;
    font-weight: bold;
    text-decoration: none;
}


.main-navigation-menu > li > a:hover {
    color: #E62B27;
}

.sub-menu-column a:hover,
.grandchild-column a:hover {
    color: #FFFFFF;
    text-decoration: underline !important; /* Add !important here */
    font-weight: 800;
}

/*================================================================
  2. Main Mega Menu Container
================================================================*/
.sub-menu-container {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9;
    background: #000;
    color: #fff;
    min-height: 350px;
    border-top: 2px solid #E62B27;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
    overflow: hidden;
    max-height: 80vh;
    overflow-y: auto; 
}

.sub-menu-container.is-visible {
    transform: translateY(0) translateZ(-1px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.sub-menu-container.is-closing {
    /* This transition is for when the menu CLOSES */
    transition: none;
}

.sub-menu-container .menu-container {
    padding: 0px 25px;
    max-width: 1400px;
    margin: 0 auto;
}


/*================================================================
  3. Animation & Sliding Wrappers
================================================================*/
.mega-menu-wrapper {
    position: relative;
    overflow: hidden; 
    display: flex;
    padding: 40px 0px;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-content-wrapper {
    display: flex;
    width: 100%;
    flex-shrink: 0;
    transition: transform 0.8s cubic-bezier(0.1, 0.1, 0.02, 1);
}

.mega-menu-content-wrapper.is-shifting-left {
    transform: translateX(-100%);
}


/*================================================================
  4. Deeper Level Panels (Grandchild & Great-Grandchild)
================================================================*/
.grandchild-menu-panel,
.great-grandchild-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 0px;
    z-index: 5;
    background-color: #000;
    display: flex;
    gap: 40px;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.1, 0.1, 0.02, 1), visibility 0.8s
}

.great-grandchild-menu-panel {
    z-index: 6;
}

.grandchild-menu-panel.is-active,
.great-grandchild-menu-panel.is-active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.grandchild-menu-panel.is-shifting-left,
.great-grandchild-menu-panel.is-shifting-left {
    transform: translateX(-100%);
}


/*================================================================
  5. Content & Sidebar Layout
================================================================*/
.mega-menu-links-area,
.grandchild-links-area {
    flex: 2;
    padding: 0 15px;
    box-sizing: border-box;
}

.grandchild-links-area.is-full-width {
    flex: 1;
}

.mega-menu-sidebar {
    flex: 1.2;
    text-align: left;
}


/*================================================================
  6. Shared Components (Titles, Columns, Lists)
================================================================*/
.sub-menu-title {
    position: relative;
    font-size: 18px;
    font-family: serif;
    text-align: left;
    margin: 0 0 20px 0;
    padding-left: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
}

.sub-menu-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background-color: #E62B27;
}

.sub-menu-title a {
    color: #fff;
    text-decoration: none;
}
.sub-menu-title a:hover {
    text-decoration: underline;
}

.breadcrumb-trail {
    position: absolute;
    top: 0;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
}

.breadcrumb-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-divider {
    color: #777;
}

.sub-menu-columns,
.grandchild-columns {
    display: flex;
    padding-left:15px;
    gap: 30px;
}

.sub-menu-column,
.grandchild-column {
    flex: 1;
    max-width: 50%;
}

.sub-menu-column ul,
.grandchild-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-menu-column li,
.grandchild-column li {
    display: flex;
    align-items: center;
}

.sub-menu-column a,
.grandchild-column a {
    color: #fff;
    font-weight: normal;
    text-align: left;
    line-height: 1.4;
    width: 100%;
    font-size: 16px;
}

.sub-menu-column a:hover,
.grandchild-column a:hover {
    text-decoration: underline !important;
}

.sub-menu-column li a,
.grandchild-column li a,
.great-grandchild-column li a {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sub-menu-arrow {
    color: #E62B27;
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    width: 15px;
    text-align: center;
    width: 0;
    left: -10px;
    position: relative;
}

.sub-menu-arrow.is-hidden {
    visibility: hidden;
}

.our-team-item {
    display: block !important;
    width: 100%;
}

/* Style for the 'Our Team' link itself */
.our-team-link {
    border-bottom: 2px solid #E62B27;
    width: 100%;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

/* New placeholder for pushing down items in other columns */
.menu-item-placeholder {
    display: block;
    height: 47px; /* Adjust this to match the height of your menu items */
    visibility: hidden;
}


/*================================================================
  7. Featured Documents
================================================================*/
.featured-documents {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.featured-documents ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex-direction: column;
}

.featured-documents li {
    margin: 0;
    display:flex;
}

.pdf-link-button {
    display: inline-block;
    background-color: #E62B27;
    color: #fff !important;
    font-weight: bold;
    text-decoration: none;
    padding: 30px 20px;
    transition: background-color 0.3s ease;
}

.pdf-link-button:hover {
    background-color: #990602;
    color: #fff;
    font-weight: 900;
}

.pdf-link-button:visited {
    color: #fff !important;
}

.main-navigation-menu a.menu-pdf-link {
    padding: 10px 20px;
}


/*================================================================
  8. Sidebar Content (Forms, Social Links)
================================================================*/
.widget-title {
    padding: 15px 5px;
    font-size: 18px;
}

.mega-menu-sidebar .wpcf7 p {
    margin: 0 0 15px 0;
}

.mega-menu-sidebar .wpcf7 input[type="text"],
.mega-menu-sidebar .wpcf7 input[type="email"] {
    background-color: #fff;
    border: none;
    color: #333;
    padding: 5px 15px;
    width: 100%;
    box-sizing: border-box;
}

.mega-menu-sidebar .wpcf7 input[type="submit"] {
    background-color: #E62B27;
    color: #fff;
    font-weight: bold;
    border: none;
    display: block;
    cursor: pointer;
    width: auto;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    padding: 5px 17px !important;
    font-size: 17px !important;
}

.mega-menu-sidebar .wpcf7 input[type="submit"]:hover {
    background-color: #990602;
}

.mega-menu-sidebar .social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-sidebar > p {
    font-size: 16px;
    line-height: 1.5; 
}

.social-link {
    padding: 0px 2px !important;   
}
.mega-menu-sidebar .social-links li {
    display: flex;
    align-items: center;
}

.mega-menu-sidebar .social-links img {
    height: 32px;
    width: auto;
    transition: opacity 0.3s ease;
}

.mega-menu-sidebar .social-links a:hover img {
    opacity: 0.8;
}

/*================================================================
  9. Mobile Menu Toggle (Burger) - CORRECTED
================================================================*/
.mobile-menu-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    /* --- Changed --- */
    width: 45px;
    height: 45px;
    background-color: #e62b27; /* Red Background */
    /* --- End Changed --- */
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    transition: all 0.3s ease-in-out;
    /* --- Changed --- */
    height: 3px;
    width: 25px; /* Line width */
    left: 10px;  /* Center the lines: (45px - 25px) / 2 */
    background-color: #fff; /* White lines */
    /* --- End Changed --- */
}

.mobile-menu-toggle span:nth-child(1) {
    /* Position for top line */
    top: 12px;
}

.mobile-menu-toggle span:nth-child(2) {
    /* Position for middle line */
    top: 21px;
}

.mobile-menu-toggle span:nth-child(3) {
    /* Position for bottom line */
    top: 30px;
}

/* Burger to 'X' animation */
.mobile-menu-toggle.is-active span:nth-child(1) {
    /* Move top line to center and rotate */
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
    /* Fade out middle line */
    opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
    /* Move bottom line to center and rotate */
    transform: translateY(-9px) rotate(-45deg);
}


/*================================================================
  10. Mobile & Responsive Styles (FINAL)
================================================================*/

/* --- Hide Mobile "Back" Button on Desktop --- */

.breadcrumb-link.is-back-link {
    display: none;
}

@media (max-width: 1023px) {

    .breadcrumb-link.is-back-link {
        display: inline;
    }
    
    /* --- Main Container & Burger --- */
    .mobile-menu-toggle {
        display: block;
    }
    
    .sub-menu-arrow{
        left: -13px;
        top: -2px;
    }
    
    .main-navigation-container {
        float: right;
        padding-top: 8px;
    }

    .main-navigation-container.mobile-menu-active .main-navigation-menu {
        display: block;
    }

    body.mobile-menu-no-scroll {
        overflow: hidden;
    }

    /* --- Mobile Menu Core Structure --- */
    .main-navigation-menu {
        display: none;
        position: fixed;
        left: 0;
        top: 165px;
        width: 100%;
        height: 100%; 
        background-color: #ffffff;
        z-index: 1000;
        overflow: hidden; 
    }
    
    .main-navigation-menu > li {
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
        position: static; 
    }
    
    .main-navigation-menu > li > a {
        padding: 18px 25px;
        color: #000;
        font-size: 1.1em;
    }

    /* --- Sub-Menu Panel Overrides --- */
    .sub-menu-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000;
        color: #fff;
        border-top: none;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        min-height: auto;
        max-height: none;
        overflow-y: auto;
    }

    .main-navigation-menu li.submenu-is-open > .sub-menu-container {
        transform: translateX(0);
    }
    
    /* --- Single Column Layout & Scrolling Fixes --- */

    .mega-menu-wrapper {
        height: calc(100vh - 165px);; 
        padding-bottom: 40px;
    }

    .mega-menu-wrapper,
    .mega-menu-content-wrapper,
    .sub-menu-columns,
    .grandchild-columns,
    .grandchild-menu-panel,
    .great-grandchild-menu-panel {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    .mega-menu-content-wrapper {
        overflow: auto;
        height: calc(100vh - 165px);
    }

    .mega-menu-links-area,
    .grandchild-links-area,
    .mega-menu-sidebar,
    .sub-menu-column,
    .grandchild-column {
        flex: 1 1;
        max-width: 100%;
        padding: 0px 25px;
    }

    /* --- Deeper Panels & Breadcrumbs --- */
    .grandchild-menu-panel,
    .great-grandchild-menu-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000;
        overflow-y: auto;
    }
    
    .breadcrumb-trail {
        position: relative;
        top: 0;
        left: 0;
        padding-top: 10px;
        font-size: 1em;
    }

    .sub-menu-title {
        padding: 20px 25px 0;
    }
    .sub-menu-title a,
    .sub-menu-column a, 
    .grandchild-column a {
        color: #fff;
        padding: 12px 0;
    }

    .menu-item-placeholder {
        display: none !important;
    }
    
    .sub-menu-title::before{
        top: 64%;
        height: 45%;
    }
    
    .header_bottom {
        background: white;
        height: 40px;
    }
    
    .mega-menu-sidebar{
        padding-bottom: 150px;
    }
    
    .widget-title{
        padding: 15px 0px
    }
    
    .mega-menu-links-area,
    .grandchild-links-area {
        flex-grow: 0;
    }
    
    .featured-documents li {
        width: 100%;
    }
}

/* Your 767px breakpoint */
@media (max-width: 767px) {
    .main-navigation-container {
        height: 0px;
        position: relative;
        top: -65px;
    }
    
    .main-navigation-menu {
        top: 125px;
    }
    
    .mega-menu-wrapper {
        height: calc(100vh - 125px);; 
    }
    
    .mega-menu-content-wrapper {
        height: calc(100vh - 125px);
    }
}/*

THIS FILE IS OVERWRITTEN EVERY TIME YOU UPDATE THE PLUGIN.
USE THE CUSTOM CSS OPTION IN THE SUBSCRIPTION SETTING PANEL FOR YOUR
CUSTOM CSS RULES.

*/

div.tnp-subscription,
form.tnp-subscription, form.tnp-profile {
    display: block;
    margin: 1em auto;
    max-width: 500px;
    width: 100%;
}

div.tnp-profile {
    display: block;
    margin: 1em 0;
    max-width: 500px;
    /*width: 100%;*/
}

/* Generic field wrapper */
.tnp-subscription div.tnp-field,
.tnp-profile div.tnp-field
{
    margin-bottom: .7em;
    border: 0;
    padding: 0;
}

.tnp-subscription label,
.tnp-profile label
{
    display: block;
    color: inherit;
    font-weight: normal;
    line-height: normal;
    padding: 0;
    margin: 0;
    margin-bottom: .25em;
    font-size: .9em;
}

.tnp-subscription .tnp-field-checkbox label,
.tnp-profile .tnp-field-checkbox label
{
    display: inline-block;
}

.tnp-subscription input[type=text],
.tnp-subscription input[type=email],
.tnp-subscription input[type=submit],
.tnp-subscription select,
.tnp-subscription textarea,
.tnp-profile input[type=text],
.tnp-profile input[type=email],
.tnp-profile input[type=submit],
.tnp-profile select,
.tnp-profile textarea
{
    width: 100%;
    padding: .7em;
    display: block;
    border: 1px;
    color: #444;
    border-color: #ddd;
    background-color: #f4f4f4;
    background-image: none;
    text-shadow: none;
    font-size: 1em;
    margin: 0;
    line-height: normal;
    box-sizing: border-box;
}

.tnp-subscription input[type=checkbox],
.tnp-widget input[type=radio],
.tnp-profile input[type=checkbox]
{
    /* Fixes some bad themes CSS */
    max-width: 1em;
    display: inline-block;
    margin-right: .5em;
}

/* Antireset - http://www.satollo.net/css-and-select-space-between-the-options-and-the-arrow */
.tnp-subscription select option,
.tnp-profile select option
{
    margin-right: .75em;
}

.tnp-subscription input.tnp-submit,
.tnp-profile input.tnp-submit,
.tnp-unsubscribe button.tnp-submit,
.tnp-reactivate button.tnp-submit
{
    background-color: #444;
    color: #fff;
    width: auto;
    height: auto;
    margin: 0;
    display: inline-block;
}

@media all and (max-width: 480px) {
    .tnp-subscription input[type=submit],
    .tnp-profile input[type=submit] {
        width: 100%;
    }
}

.tnp-widget {
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.tnp-widget .tnp-field {
    margin-bottom: 10px;
    border: 0;
    padding: 0;
}

.tnp-widget label {
    display: block;
    color: inherit;
    font-size: 14px;
}

.tnp-widget input[type=text], .tnp-widget input[type=email], .tnp-widget input[type=submit], .tnp-widget select {
    width: 100%;
    padding: 10px;
    display: block;
    border: 1px solid #ddd ;
    border-color: #ddd;
    background-color: #f4f4f4;
    background-image: none;
    text-shadow: none;
    color: #444;
    font-size: 14px;
    line-height: normal;
    box-sizing: border-box;
    height: auto;
}

.tnp-widget input[type=checkbox], .tnp-widget input[type=radio] {
    width: auto;
    display: inline-block;
}

/* Antireset - http://www.satollo.net/css-and-select-space-between-the-options-and-the-arrow */
.tnp-widget select option {
    margin-right: 10px;
}

.tnp-widget input.tnp-submit {
    background-color: #444;
    background-image: none;
    text-shadow: none;
    color: #fff;
    margin: 0;
}

.tnp-field input[type="submit"] {
    position: inherit;
}

.tnp-field label {

}

/* Newsletter Widget Minimal */

.tnp-widget-minimal {
    width: 100%;
}

.tnp-widget-minimal form {
    margin: 0;
    padding: 0;
    border: 0;
}

.tnp-widget-minimal input.tnp-email {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    display: inline-block;
    border: 1px solid #ddd;
    background-color: #f4f4f4;
    color: #444;
    font-size: 14px;
}

.tnp-widget-minimal input.tnp-submit {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    display: inline-block;
    border: 1px;
    border-color: #ddd;
    background-color: #444;
    background-image: none;
    text-shadow: none;
    color: #fff;
    font-size: 14px;
    line-height: normal;
    border-radius: 0px;
    height: auto;
    margin: 0;
}

/* The minimal form */

.tnp-subscription-minimal {
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
}

.tnp-subscription-minimal form {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    white-space: nowrap;
}

.tnp-subscription-minimal input.tnp-email,
.tnp-subscription-minimal input.tnp-name
{
    width: 70%;
    max-width: 300px;
    box-sizing: border-box;
    padding: 10px;
    display: inline-block;
    border: 1px solid #ddd;
    background-color: #f4f4f4;
    color: #444;
    font-size: 14px;
    line-height: 20px;
    border-radius: 0px;
    margin-right: 10px;
}

.tnp-subscription-minimal.with-name input.tnp-email,
.tnp-subscription-minimal.with-name input.tnp-name
{
    width: 31%;
}

.tnp-subscription-minimal .tnp-privacy-field {
    margin-top: 10px;
}

/* Some of these styles are overridden by theme styles... */
.tnp-subscription-minimal input.tnp-submit {
    width: 29%;
    box-sizing: border-box;
    display: inline-block;
    padding: 10px;
    border: 1px;
    border-color: #ddd;
    background-color: #444;
    background-image: none;
    text-shadow: none;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    border-radius: 0px;
    margin: 0;
}

.tnp-subscription-posts {
    margin-top: 2em;
    margin-bottom: 2em;
    padding: 2rem;
}

.tnp-subscription-posts .tnp-subscription {
    max-width: auto;
    margin: 0;
}

@media all and (max-width: 525px) {
    .tnp-subscription-minimal.with-name input.tnp-email,
    .tnp-subscription-minimal.with-name input.tnp-name,
    .tnp-subscription-minimal input.tnp-submit
    {
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: block;
        margin-bottom: .5rem;
    }
}

/* Single button forms */
.tnp-button-form button.tnp-submit {
    box-sizing: border-box;
    padding: 10px;
    display: inline-block;
    border: 1px;
    border-color: #ddd;
    background-color: #444;
    background-image: none;
    text-shadow: none;
    color: #fff;
    font-size: 14px;
    line-height: normal;
    border-radius: 0px;
    height: auto;
    margin: 0;
}

/* Comments Extension */
.tnp-comments {
    clear: both;
    margin-top: 15px;
    margin-bottom: 15px;
}

.tnp-comments label {
    display: block;
}

.tnp-comments input[type=checkbox] {
    display: inline-block;
    width: auto!important;
}


/* Locked Content Extension */
.tnp-lock {
    clear: both;
    display: block;
    box-sizing: border-box;
    box-shadow: none;
    margin: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.tnp-nl-checkout {
    margin-bottom: 1em;
}/*
Default style for WP-PageNavi plugin

http://wordpress.org/extend/plugins/wp-pagenavi/
*/

.wp-pagenavi {
	clear: both;
}

.wp-pagenavi a, .wp-pagenavi span {
	text-decoration: none;
	border: 1px solid #BFBFBF;
	padding: 3px 5px;
	margin: 2px;
}

.wp-pagenavi a:hover, .wp-pagenavi span.current {
	border-color: #000;
}

.wp-pagenavi span.current {
	font-weight: bold;
}h1:where(.wp-block-heading).has-background,h2:where(.wp-block-heading).has-background,h3:where(.wp-block-heading).has-background,h4:where(.wp-block-heading).has-background,h5:where(.wp-block-heading).has-background,h6:where(.wp-block-heading).has-background{padding:1.25em 2.375em}h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]){rotate:180deg}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:left;font-size:8.4em;font-style:normal;font-weight:100;line-height:.68;margin:.05em .1em 0 0;text-transform:uppercase}body.rtl .has-drop-cap:not(:focus):first-letter{float:none;margin-left:.1em}p.has-drop-cap.has-background{overflow:hidden}:root :where(p.has-background){padding:1.25em 2.375em}:where(p.has-text-color:not(.has-link-color)) a{color:inherit}p.has-text-align-left[style*="writing-mode:vertical-lr"],p.has-text-align-right[style*="writing-mode:vertical-rl"]{rotate:180deg}