body {
    margin: 0;
}

.container {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1140px;
}

.site-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
}

/* Top Navigation - Above main navigation */

.top-nav-container {
    float: right;
}

.top-nav {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.top-nav li {
    margin-left: 10px;
}

.logo-container img {
    /* height: 50px; */
    width: 100%;
    height: auto;
    padding: 10px;
}

.navbar {
    width: 100%;
}

.social-and-nav {
    display: flex;
    flex-direction: column; /* Stack the social icons and nav vertically */
    justify-content: space-between; /* Spread the content vertically */
    align-items: center; /* Center-align the items horizontally */
    flex: 1; /* Allow this container to fill up the remaining space */
    height: 100%; /* This ensures it tries to fill the height of its parent */
}

.social-icons {
    display: flex;
    align-self: end;
}

.social-icons, .main-navigation {
    width: 100%; /* Ensures these elements take the full width of their parent */
}

.social-icon {
    margin-right: 10px;
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.main-navigation {
    display: flex;
}

.primary-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.menu-item {
    margin-left: 20px;
}

.menu-link, .sub-menu-link {
    text-decoration: none;
    color: #333;
    color: #6685B0;
    font-family: 'Roboto', 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
}

.sub-menu {
    display: none;
    position: absolute;
    list-style: none;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #e4e4e4;
}

.sub-menu > li {
	padding: 10px 0 8px 0px;
	border-bottom: 1px solid #f2f2f2;
}

.menu-item.has-children:hover .sub-menu {
    display: block;
}


nav ul li .arrow {
    background: #02518c;
    color: #fff;
    border-radius: 5px;
}

.menu-item {
    position: relative;
}

.menu-item a {
    transition: 0.3s;
}

.menu-item a:hover {
    color: #02518c;
    transition: 0.3s;
}

span.arrow {
    display: none;
    color: #000;
}
.arrow > .fa { 
    transition: .5s ease; 
    transform: rotate(0deg); 
}
.arrow.rotate > .fa { 
    transition: .5s ease; 
    transform: rotate(180deg); 
}
.rotate-180 {
    transform: rotate(180deg);
    transition-duration: 0.3s;
}
.dropdown-menu .has-children:after { 
    display: none; 
}
.dropdown-menu {
    --bs-dropdown-min-width: 15rem;
    --bs-dropdown-item-padding-x: 3rem;

}

.header-inner {
    display: flex;
    max-width: 1140px;
    align-items: center; /* Aligns items vertically center. If you want all items to stretch, use 'stretch' here */
    justify-content: space-between; /* This spreads the child elements across the full width */
    width: 100%; /* Ensure this takes the full width of its parent */
    height: 100%; /* Make sure the header-inner takes full height of its parent if needed */
}

.logo-container {
    flex: 0 1 12%; /* Do not grow, can shrink, starting with 12% of the flex container's width */
    /* No height is specified here to allow the image to define its own height */
}

.main-navigation {
    align-self: stretch; /* Makes the navigation stretch to fill the available horizontal space */
}

/* Page Layout */
.page-layout {
    margin: 25px 0;
    min-height: calc(100vh - 350px); 
    position: relative;
}

/*UNIVERSAL STYLES*/
.add-button{
    margin: 50px;
}



/* FILTER STYLES */
.filters-container{
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.filter-option{
    margin: 0 30px 0 5px;
}

.filter-submit {
    margin-right: 10px;
}

.keyword-filters-container{
    margin-bottom: 20px;
}

.dropdown-filters-container{
    width: fit-content;
}
/* END FILTER STYLES */



/* TABLE STYLES */

.add-button-container{
    margin: 20px;
}

.title-container{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 15px;
}

.table-title{
    margin: 50px;
}

.table-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 200px;
}

.results-table{
    max-width: 500px;
}

table {
    width: 100%;
    border-collapse: collapse;
    max-width: fit-content;
    text-align: start;
}

th {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    text-align: start;
    padding: 20px;
}

/* white background for every other table row*/
tr:nth-child(even) {
    background-color: white;
}

td {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 20px;
    text-align: start;
}

.admin-buttons-container{
    min-width: 200px;
    display: flex;
    justify-content: flex-start;
}

.admin-button{
    margin: 0 5px;
}

.category-column{
    max-width: 150px;
}

.classification-column{
    max-width: 150px;
}

.pagination-container{
    margin: 50px;
}

.pagination-information-text{
    margin-right: 20px;
}

/* END TABLE STYLES */



/* POY PAGE STYLES */
.poy-list-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

/* Title Header Component */
.poy-history-page-title-header,
.schedule-page-title-header,
.course-page-title-header,
.history-page-title-header,
.jr-history-page-title-header,
.schedule,
.jr-poy-page-title-header{
    position: relative;
    top: -25px;
}

.poy-history-page-title-header .title,
.schedule-page-title-header .title,
.course-page-title-header .title ,
.history-page-title-header .title,
.jr-history-page-title-header .title,
.jr-poy-page-title-header .title ,
.schedule .title  {
    position: relative;
    background: #05518C;
    /* COLOR SAME AS LIGHT GREY BACKGROUND BASE */
    color: #f8fafc;
    padding: 67px 0;

    /* FONT STYLES FOR HEADER */
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
}

.poy-history-page-title-header .title h1,
.schedule-page-title-header .title h1,
.course-page-title-header .title h1,
.history-page-title-header .title h1,
.jr-history-page-title-header .title h1,
.jr-poy-page-title-header .title h1,
.schedule .title h1 {
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;

    /* FONT STYLES FOR HEADER */
    font-size: 132px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
}

/* SUBHEADER BACKGROUND GREY ONLY FOR JR-POY PAGE */
.jr-poy-page-title-header .title,
.jr-history-page-title-header .title{
    background: #898585;
}

.schedule-page-title-header .desc,
.course-page-title-header .desc,
.history-page-title-header .desc,
.schedule .desc {
    color: #05518C;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 50px 0 25px 0;
}

.schedule-page-title-header .desc a,
.course-page-title-header .desc a,
.history-page-title-header .desc a,
.schedule .desc a {
    color: #05518C;
}

.schedule .bottom-info,
.bottom-info {
    background: #05518C;
    color: #fff;
    font-size: 1.2rem;
    padding: 15px 0;
}

/* Sub Menu Navigation */
.sub-menu {
    z-index: 99999999;
}

/* Input Styles */
input, button, select, optgroup, textarea {
    border: 1px solid #e4e4e4;
    border-radius: 5px;
    padding: 5px;
}

/* Footer Styles */
footer {
    position: relative;
    background: #02518c;
}
footer .gray-bg {
    position: absolute;
    width: 400px;
    top: -25px;
    bottom: 0;
    background: #F0F5FA;
    color: #02518c;
    padding: 25px;
}
footer .contact-info {
    color: #fff;
    padding: 15px 0;
}
footer .logo-container img {
    width: 10rem;
    padding: 10px;
}

.social {
    padding-left: 5px;
}

.social li {
    list-style: none;
    display: inline;
}

.social li svg {
    width: 2.5rem;
    fill: #fff;
    transition: 0.3s;
}

.social li svg:hover {
    opacity: 0.8;
    transition: 0.3s;
}

.social li a {
    margin-right: 15px;
}

.flex-item {
    display: flex;
}

.form-label {
    margin-top: 0.5rem;
}

.filter-option {
    margin: 10px 30px 0 5px;    
}


/* MEDIA QUERIES */
@media (max-width:991px) {
    #navbar {
        padding-bottom: 0;
    }
    .navbar-nav {
        width: 100%;
        text-align: center
    }
    .logo-container {
        padding-bottom: 10px;
    }
    .menu-item {
        padding: 10px 0;
        border-bottom: 1px solid #e4e4e4;
    }
    .menu-item a {
        display: block;
        width: 100%;
    }
    .menu-item.has-children:hover .sub-menu {
        display: none;
    }
    .sub-menu {
        padding-bottom: 0;
    }
    .sub-menu-link {
        display: block;
        width: 100%;
    }
    nav ul li ul li {
        border-bottom: 1px solid #e4e4e4;
        padding: 10px 0 !important;        
        text-align: center;
    }
    nav ul li ul li a {
        font-weight: 600;
    }
    .desc {
        padding: 15px;
    }
    table tr {
        margin-bottom: 25px;
    }
    .add-course-btn {
        margin: 15px !important;
    }
    footer .gray-bg {
        position: relative;
    }
}

@media (max-width:767px) {
    .logo-container img {
        padding: 0;
        width: 5rem;
    }

    .schedule-page-title-header .title h1, .course-page-title-header .title h1, .history-page-title-header .title h1, .schedule .title h1 {
        font-size: 4rem;
        top: 30px;
    }
    nav ul li .arrow { 
        position: absolute;
        display: block; 
        right: 5%;       
        width: 40px; 
        text-align: center; 
        top: 5px; 
        line-height : 30px; 
    }
    nav ul li ul { 
        position: relative !important; 
        float: none !important; 
    }
    nav ul li ul li { 
        width: 100%; 
        padding: 0; 
        margin-left: 0; 
        margin-right: 0; 
    }
    nav ul li ul li a { 
        padding: 5px 0 5px 0; 
    }
    nav ul li:hover > ul { 
        display: none; 
    }
    span.arrow { 
        display: block; 
    }
    nav ul li .arrow { 
        position: absolute; 
        display: block; 
        right: 5%; 
        color: #fff; 
        width: 40px; 
        text-align: center; 
        top: 15px; 
        line-height: 30px;
    }

    .history-page-title-header .title h1,
    .jr-poy-page-title-header .title h1,
    .poy-history-page-title-header .title h1 {
        max-width: 100% !important;
        font-size: 3rem !important;
        top: 50px;
    }

    .jr-poy-page-title-header .title h1 {
        min-width: initial !important;
    }    

    .table-title {
        margin: 0 15px 0 0;
    }

    .classification-column {
        max-width: 100%;
    }

    .filters-container,
    .filter-option {
        width: 100%;
    }
    
    .filter-option {
        margin-right: 0;
        margin-left: 0;
    }

    .filter-submit,
    .filter-reset {
        margin-top: 15px;
    }

    .last-filter {
        margin-bottom: 20px;
    }

    .schedule-row {
        margin-bottom: 25px;
    }

    .flex-item,
    .flex-item span {
        display: block;
    }

    .flex-item span {
        margin-bottom: 5px;
    }

    .flex-item span:last-child {
        margin-top: 15px;
    }
    
    table {
        border: 0;
    }
  
    table caption {
        font-size: 1.3em;
    }
    
    table thead {
        border: none;
        /* clip: rect(0 0 0 0); */
        height: 1px;
        margin: -1px;
        /* overflow: hidden; */
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .first-header-row {
        display: none;
    }
    
    table tr {
        border: 3px solid #ddd;
        border-radius: 5px;
        display: block;     
        width: 30rem;
    }

    table tr th {
        display: block;
    }
    
    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
    }

    .category-column {
        max-width: 100%;
    }
    
    table td::before {
        /*
        * aria-label has no advantage, it won't be read inside a table
        content: attr(aria-label);
        */
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;     
    }
    
    table td:last-child {
        border-bottom: 0;
    }

    /* Courses - Specfic Styles */
    .last-search-item {
        margin-bottom: 15px;
    }

    .bottom-info  {
        margin-bottom: 0 !important;
    }
    
    footer .gray-bg {
        width: 100%;
    }
}
/* JR-POY PAGE MEDIA QUERIES*/

/* @ 1507 WIDTH, MAKE FONT SMALLER AND MOVE TO BOTTOM OF BANNER */
@media (max-width:1507px) {
    .jr-poy-page-title-header .title h1{
        font-size: 4rem;
        top: 75px;
    }
}
/* @ 761 WIDTH, INCREASE BANNER HEIGHT BY INCREASING VERTICAL PADDING */
/* RELOCATE BASE OF TEXT BY ADJUSTING TOP*/
/* SET MIN WIDTH TO AVOID ADDING ADDITIONAL NEWLINE*/
@media (max-width:761px) {
    .jr-poy-page-title-header .title h1{
        top: 40px;
        max-width: 700px;
        min-width: 420px;
    }
    .jr-poy-page-title-header .title{
        padding: 88px 0;
    }
}
/* END JR-POY PAGE */

/* HISTORY PAGE MEDIA QUERIES*/
@media (max-width:1340px) {
    .history-page-title-header .title{
        padding: 146px 0;
    }
}

@media (max-width:840px) {
    .history-page-title-header .title h1{
        font-size: 69px;
        max-width: 700px;
    }
    .history-page-title-header .title{
        padding: 78px 0;
       
    }
}
/* END HISTORY PAGE */

/* JR HISTORY PAGE MEDIA QUERIES*/
@media (max-width:1120px) {
    .jr-history-page-title-header .title{
        padding: 146px 0;
    }
}

@media (max-width:840px) {
    .jr-history-page-title-header .title h1{
        font-size: 69px;
        max-width: 700px;
    }
    .jr-history-page-title-header .title{
        padding: 78px 0;
       
    }
}
/* END JR HISTORY PAGE */




@media screen and (max-width: 491px) {
    table tr {
        width: 25rem;
    }
}

@media screen and (max-width: 425px) {
    table tr {
        width: 20rem;
    }

}
