/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Site Wrapper */
.site-wrapper {
	width: 100%;
    margin-inline: auto;
} 
.comments-area {
    max-width: 840px;
    margin: 80px auto;
    margin-bottom: 4rem;
}
@media (max-width: 768px) {
	.comments-area {
		margin: 0 auto;
		padding: 20px;
		margin-bottom: 2rem;
    }
}
.mm-mm-list,
.mm-list {
    list-style-type: none;
    margin: 0 0 10px;
}
.primary-content-width {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.gb-accordion-toggle-mega-menu {
    background-color: transparent !important;
    padding: 0;   
}
.panel-1-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    column-gap: 16px;
}
.mm-panel-1-col-4 {font-size: 14px;}

/* Accordion content: initially hidden and placed above */
.navigation-overlay {
    position: fixed;
    top: 80px;
    /* left: 50%; /* Start positioning from the center */
    /* transform: translateX(-50%); /* Move left by 50% of the width to center it */
    height: 402px;
    max-width: 1200px;
    /* width: 100%; /* Make sure it doesn’t exceed viewport width */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
}
.navigation-overlay > div {
    box-shadow: rgba(0, 0, 0, 0.2) 0 8px 24px;
    /* width: 100%; */
    height: 100%;
}

/* Additional styles for the Site and Block editor */
.is-root-container .gb-accordion__item:not(.has-child-selected) > .gb-container:not(.gb-accordion__toggle) {
    display: none;
}
.is-root-container .gb-accordion__item.has-child-selected > .gb-container:not(.gb-accordion__toggle) {
    display: block;
    padding-left: 0;
    padding-right: 0;
}
.editor-styles-wrapper .is-root-container .navigation-overlay {
    top: 50px !important;
}
.editor-styles-wrapper .navigation-overlay > div {
    max-width: none;
    left: 50%;
    top: 50px;
    translate: -50%;
}

/* ****** */
.no-bottom-margin {margin-bottom: 0;}
.course-form-sidebar #field_1_23 {
    color: #fff;
    font-style: italic;
    font-size: smaller;
}
.course-form-sidebar #field_1_19 h3 {
    margin-bottom: 0;
    color: #fff;
    border-bottom: 2px solid #fff;
}
.course-form-sidebar .gfield_required.gfield_required_text {color: #fff;}
.course-form-sidebar .gform_button {
    width: 100% !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}
.course-form-sidebar .gform_button:hover,
.course-form-sidebar .gform_button:focus {
    color: #fff !important;
}
.ar-16-9 {aspect-ratio: 16/9;}
.ar-9-16 {aspect-ratio: 9/16;}
.ar-4-3 {aspect-ratio: 4/3;}
.ar-1-1 {aspect-ratio: 1/1;}
.ar-3-4 {aspect-ratio: 3/4;}

/* Visually Hidden */
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
.read-more-a11y-links {
  display: block;
  margin-top: 20px;
}

.ul, .ul a {text-decoration: underline !important;}

/* No Underline */
.no-ul, .no-ul a {text-decoration: none !important;}

/* Remove bottom margin on last paragraph */
.gb-container p:last-child:last-of-type {margin-bottom: 0px;}
.block-editor-block-list__layout .gb-container p:nth-last-child(2) {margin-bottom: 0px;}

/* Global focus styles for links, buttons, and inputs */
a:focus, 
button:focus, 
input:focus, 
textarea:focus,
.uabb-adv-accordion-button:focus {
    outline: 3px solid #03746e; 
    outline-offset: 4px; /* Adds space between the element and the outline */
    box-shadow: 0 0 10px rgba(3, 116, 110, 0.5); /* Adds a glowing shadow effect */
    position: relative;
    z-index: 99999;
}
.uabb-creative-button-wrap a:focus {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* Optional: Style for links to add additional visual feedback */
/* a:focus {background-color: rgba(255, 140, 0, 0.1); /* Slight background change for focused links} */

/* Adjust focus styles for all elements */
button:focus, 
input:focus {border-radius: 4px; /* Slightly round corners to enhance the outline visibility */}