/* sitewide styles */
:root {
    --nav-padding: 5rem;
    --button-color: #000280;
    --default-background-color: #f4f4f4;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    text-align: center;
    margin: 0;
    font-family: sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-padding);
    z-index: 1000;
    background-color: black;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    height: 100%;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

a.header-logo {
    height: 100%;
}
a.header-logo img{
    height: 100%;
    border-radius:1rem;
}
.header-wrapper img {
    height: 90%;
}

#header-logo {
    display: flex;
    align-items: center;
}

img.header-logo {
    height: calc(var(--nav-padding) - 1rem);
    width: auto;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
    flex-grow: 1;
    padding-left: 1rem;
}

.header-h1 {
    width: 100%;
}


main h2 {
    font-size: 1.4rem;
    }
    main h3 {
    font-size: 1.1rem;
    }

.section-content {
    border-radius: 0.5rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin: 1rem 0;
    position: relative; /* Needed for sticky header positioning */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}


.subsection.subsection-content {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 2px 4px 8px rgb(2, 38, 18);
    color: black;
    max-width: 90%;
}
.subsection.content-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.section-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    width: 100%;
}

section span {
    max-width: 90vw;
    margin-bottom: 1rem;
}

.section-content-card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    border: 1px solid #000280;
    border-radius: 10px;
    padding: 1rem;
    min-height: 250px;
    display: inline-block;
    min-width: 400px;
    max-width: 500px;
    vertical-align: top;
    white-space: normal;
    margin: 0px 1rem 0px 1rem;
    padding: 0.5rem;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 2px 4px 8px rgb(2, 38, 18);
    height: auto;
    min-height: 300px;
    box-sizing: border-box;
    color: black;
    flex: 1;
}
    
     
     

.clickable {
    cursor: pointer;
}

ul {
    list-style: none;
    padding-left: 0;
}

a {
    text-decoration: none;
    color:  rgb(23, 10, 175);
}

a:hover {
    text-decoration: underline;
}


#desktop-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

#desktop-nav .nav-item {
    color: #333;
    font-weight: 500;
}

#desktop-nav .nav-item:hover {
    color: #0056b3;
    text-decoration: none;
}

#mobile-nav {
  background:#0445AF;
  border-radius:50%;
  height: 3rem;
  align-content: center;
  width: 3rem;
}

#menu-icon {
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

#menu-icon:hover {
    color: yellow;
}


#menu-items {
    display: flex;
    flex-direction: column;
    text-align: left;
  }

#mobile-menu {
    background-color: white;
    overflow-x: hidden;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.mobile-menu a.nav-item {
    color: #333;
    font-weight: 400;
    text-transform: uppercase;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    display: block;
    border-bottom: 1px solid #eee;
}

.mobile-menu a.nav-item:last-child {
    border-bottom: none;
}

.mobile-menu a.nav-item:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

main {
    padding-top: var(--nav-padding);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* footer */
footer {
    background-color: black;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

footer ul li {
    margin: 0;
}

footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

footer ul li a:hover {
    text-decoration: underline;
}


.ytl-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: .8rem;
    padding: 10px 0px;
    color: darkred;
  }
  .footer-logo {
    width: 4rem;
  }

@media (max-width: 576px) {
    footer ul {
        flex-direction: column;
    }
}

.hidden {
    display: none !important;
}

.sticky-header {
    position: sticky;
    top: var(--nav-padding); /* Adjust based on header height */
    background:var(--default-background-color);
    z-index: 10; /* Ensure it stays above other content */
    color: black;
    width:100%;
}

.text-list {
    width: 80%;
    list-style: circle inside;
    text-align: left;
    margin: 0 auto;
    max-width: 100%;
    display: table; /* Use table layout to help center and control width */
 }
 .text-list li {
   margin-bottom: 0.5rem;
 }

 .header-search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
 }




 .sidenav.expanded {
    width: 250px;
  }
  .sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #333333;
    overflow-x: hidden;
    transition: 0.5s;
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
  }
  
  .sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 1.5rem;
    color: white;
    display: block;
    transition: 0.3s;
  }

  a.close-menu-btn {
    font-size: 2rem;
    background-color: var(--button-color);
    padding:5px;
  }
  
  .sidenav a:hover {
    text-decoration: underline;
  }
  
  .sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
  }
  
  @media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
  }
  

  #search div.section-content {
    background-color: rgba(0, 0, 0, 0.85);
  }


  /* sitewide tables */
.tables-container {
    display: flex;
    flex-direction: column;
    align-items: center;

}
table {
    max-width: 80%;
    margin: 2rem 0px;
    border-collapse: collapse;
}

caption {
    border: 1px solid #ccc;
    border-bottom: none;
    font-weight: bold;
}

table caption span {
    font-size: .8rem;
    font-weight: normal;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
}
th {
    background-color: #f2f2f2;
}

tbody {
    text-align: left;
    font-size: .85rem;
}
.sub-attribute {
    padding-left: 1rem;
}
.sub-attribute-2 {
    padding-left: 2rem;
}


.button-icon {
    background-color: var(--button-color);
    display: inline-block;
    width: 200px;
    color: white;
    padding:10px;
    border-radius: 10px;
  }
  
.button-icon a {
    color:white;
  }