* {
    box-sizing: border-box;
}

.cms-content {
    /* THIS WILL UNSET THE WRAPPER ON THE FULL PAGE IF USED. MUST IMPLEMENT A NEW WAY TO SHOW HEADER 
    width: unset !important;
    padding: unset !important; 
    */
}

.container {
    padding-right: 0;
    padding-left:  0;
}

.pageWrapper>img {
    max-width: 100%;
}

.pageWrapper {
    max-width: 1280px;
    padding: 0 14px;
    margin: 0 auto;
}

/* END TEMPLATE */

.hStrings__StudentNav__Wrap {
    background-color: #141832;
    padding: 14px 0;
    border-bottom: 4px solid white;
    position: sticky;
}

.hstrings__StudentNav {
    display: flex;
    align-items: center;
}

.studentNav__Links {
    list-style-type: none;
    color: white;
    font-weight: 600;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    line-height: 1.2;
    text-align: center;
    gap: 36px;
    margin: unset;
    margin-left: auto;
    margin-right: clamp(12px, 5dvw, 60px);
    padding: unset;
    font-size: 18px;
}

.studentNav__Links a:hover {
    text-decoration: none;
}

.studentNav__Link {
    color: white;
    margin: unset;
    border-radius: 10px;
    margin-bottom: 12px;
    height: 100%;
    display: grid;
    place-content: center;
    padding:8px 36px;
}

.studentNav__Link:focus,
.studentNav__Link:hover {
    background-color: #22155c;
    text-decoration: none;
    box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.438);
}

.hStrings_NavLogo {
    width: clamp(150px, 30dvw, 250px);
    margin-right: 24px;
}

/* Mobile Only */

@media only screen and (max-width: 580px) {

    .hstrings__StudentNav {
        flex-direction: column;
    }

    .studentNav__Links {
        padding: unset;
        gap: 14px;
        margin: unset;
        flex-wrap: wrap;
        margin-top: 12px;
        width: 100%;
        justify-content: center;
        flex-grow: 1;
    }
}

/* Phil Styling for form */


.form-label {
    font-weight: 500;
    margin-top: 1rem;
    display: block;
}

.instrument-tabs {
    display: flex;
    width: 100%; /* Ensure full width */
    flex-wrap: nowrap; /* Prevent wrapping to ensure full width */
    border-bottom: 2px solid #dee2e6;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    align-items: stretch; /* Ensure uniform height */
}

.instrument-tab-item {
    margin: 0;
    padding: 0;
    flex: 1; /* Distribute space evenly */
    display: flex; /* Ensure flex properties apply */
}

.instrument-tab {
    width: 100%; /* Take full width of the tab item */
    padding: 0.5rem 1rem;
    white-space: nowrap;
    border: 1px solid #ccc;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center; /* Center text for better appearance */
    min-height:50px;
}

.instrument-tab:hover {
    background-color: #dee2e6;
    color: #000;
}

.instrument-tab.active-tab {
    background-color: #2E3560 !important;
    color: #ffffff !important;
    border-color: #2E3560 !important;
}

.instrument-tab.active-tab:hover {
    border-color: #2E3560 !important;
}

.instrument-tab-content {
    border: 1px solid transparent;
    border-top: 0;
    border-radius: 0 0 0.25rem 0.25rem;
    width: unset;
    background-color: #fff;
}

.instrument-tab-pane {
    display: none;
}

.instrument-tab-pane.active-pane {
    display: block;
    border: 1px solid #ccc;
}

@media (max-width: 768px) {
    .instrument-tabs {
        overflow-x: auto;
        white-space: nowrap;
         flex-wrap: wrap;
    }
    .instrument-tab-item {
        flex: 0 0 calc(50% - 1rem); /* Two tabs per row */
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .instrument-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    .instrument-tab-item {
        flex: 0 0 calc(33.33% - 1rem); /* Three tabs per row */
    }
}

.container.mt-4 {
    width: unset;
}

.exercise-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exercise-row {
    display: flex;
    border: #000000;
    border-radius: 0.25rem;
    padding: .5rem;
}

.bg-white {
    background-color: #ffffff;
    border: #000000;
}

.bg-gray {
    background-color: #ebebeb;
}

.exercise-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.exercise-title {
    font-weight: 500;
    flex: 1;
}

.media-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.media-box {
    background: white;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
}

.media-header {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-title {
    margin: 0;
    font-size: 2.25rem;
}

.media-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.media-close:hover {
    color: #333;
}

.media-body {
    padding: 1rem;
}

.media-body iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 4px;
}

.media-box::-webkit-scrollbar {
    display: none;
}

.directory-header {
    text-align: center;
    padding: 2.5rem 1rem 1rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.directory-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}

.directory-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.instrument-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    padding: 2rem 0 3rem;
}

.instrument-directory-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.75rem 1.5rem;
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    gap: 0.75rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.instrument-directory-link:hover {
    border-color: #2E3560;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.dir-instrument-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.dir-instrument-meta {
    font-size: 0.875rem;
    color: #666;
}

.dir-instrument-arrow {
    font-size: 1.25rem;
    color: #0d6efd;
    align-self: flex-end;
    transition: transform 0.2s ease-in-out;
}

.instrument-directory-link:hover .dir-instrument-arrow {
    transform: translateX(4px);
}
.instrument-tab.active-tab:hover {
    background-color: #2E3560 !important;
}

.instrument-tab-content {
    border: 1px solid transparent;
    border-top: 0;
    border-radius: 0 0 0.25rem 0.25rem;
    background-color: #fff;
}

.instrument-tab-pane {
    display: none;
}

.selectedInstrumentName{
    text-align: center;
    font-size: clamp(18px, 5vw, 36px);
    color: #ffffff;
    font-weight: bold;
    background-color: #2E3560;
    padding: 2.5rem 1rem;
}