/* ===============================================
 * Fix page layout
 * ===============================================
 */
.body-container{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  border-right: 1px solid hsla(var(--color), var(--alpha, 0.1));
  border-left: 1px solid hsla(var(--color),var(--alpha,.1));

  max-width: var(--page-width);
  min-height: 100vh;

  padding: var(--page-margin);
  margin: 0 auto;
}

.master-container{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  width: 100%;
}

.header-container{

}

.content-container{

}



.container {
  border-right: 1px solid hsla(var(--color), var(--alpha, 0.1));
  display: flex;
  flex-direction: column;
  padding: var(--page-margin);
  max-width: var(--page-width);
  min-height: 100vh;
}

.container--center {
}

/* ===============================================
 * Fix header
 * ===============================================
 *
 * We will unset all properties of header, since
 * we will use it only as container
 */
#web-page-header{
  display: unset;
  width: 100%
}

/* ===============================================
 * Main area with header stripe, menu & logo
 */
.top-header-box{
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Pushes nav to left, img to right */
  margin-bottom: calc(var(--baseline) * 2.5);
}

#top-menu{
  display: none;
}

.bottom-header-box{
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Pushes nav to left, img to right */
  align-items: center;
  margin-bottom: calc(var(--baseline) * 2.5);
}

#bottom-menu{
  display: block;
}

.navbar .navbar__menu>li {
    margin: 0 1rem 0 0;
}

.logo {
    background: unset  !important;
}

.logo       .hover-img { display: none; }
.logo:hover .link-img  { display: none; }
.logo:hover .hover-img { display: block; }


.header__logo {
  margin-bottom: 0;
}

/* ===============================================
 * Optional header areda with logo image
 */
.optional-header-box{
  display: none;
  position: relative;
}

.optional-logo-box{
  position: absolute;
  margin-top: calc(var(--baseline) * 2.5);
  margin-right: calc(var(--baseline) * 2.5);
  right: 0;
}

.optional-logo-img{
  max-height: 40px;   /* Your height limit */
  max-width: 150px;   /* Your width limit */
  height: auto;       /* Maintains aspect ratio */
  width: auto;        /* Maintains aspect ratio */
  display: block;
  /* margin-left: 20px;  /* Space between menu and image */
}

.optional-logo-link       .hover-img { display: none; }
.optional-logo-link:hover .link-img  { display: none; }
.optional-logo-link:hover .hover-img { display: block; }


/* ===============================================
 * Fix navigation bar
 */
.header-container {
  display: flex;
  justify-content: space-between !important; /* Pushes nav to left, img to right */
  align-items: flex-end !important;          /* Aligns both nav and img to the bottom */
  height: auto;                   /* Let the container's height be determined by content (image) */
  margin-bottom: calc(var(--baseline) * 5) !important; /* Remove margin to avoid extra space below */
}

.navbar {
    margin-bottom: 0 !important; /* Remove margin to avoid extra space below */
}

.navbar__menu a {
  color: #95a5a6 !important;             /* Force link color */
  text-decoration: none !important;      /* Force no underline */
  font-weight: 700 !important;           /* Optional: bold text */
  padding: 0.1em 0.2em !important;       /* Prevents layout shift */
  transition: all 0.3s ease !important;  
  text-shadow: 0.6px 0 0 currentColor;   /* Micro shadow mimics bold */
}

.navbar__menu a:hover {
  /* color: #e67e23 !important; */
  color: var(--highlight-color) !important;
  font-weight: bold !important;  
  background-color: #2a6496 !important;
  border-radius: 0.2em !important;
}

/* ===============================================
 * Fix footer
 * ===============================================
 */
.footer-container{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  margin-top: 20px;
  width: 100%;
}

.main-footer{
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Pushes nav to left, img to right */
  align-items: center;

  margin: 0;
  gap: 20px;
}

.optional-footer{
  display: none;
  flex-direction: row;
  justify-content: space-between; /* Pushes nav to left, img to right */
  align-items: center;

  margin: 0;
  gap: 20px;
}


#footerOptionalLogo{
  display: block;
}


.footer_bar{
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Pushes nav to left, img to right */
  align-items: center;
  margin: 0;
  gap: 20px;
  /* width: 100%; /* Ensure it spans the whole width */
  /* padding: 10px 20px; /* Add some padding for better aesthetics */
  /* box-sizing: border-box; /* Include padding in the width */
}

.footer_logos_area{
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-shrink: 0;         /* Prevent logos from shrinking if you want */
}

.footer_logo_img{
    height: 55px;        /* Your predefined height */
    width: auto;         /* Maintains aspect ratio */
    /* margin-right: 20px;  /* Space between next image*/
}

.footer_copyright {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  flex-wrap: wrap;
  justify-content: center; /* Pushes nav to left, img to right */
}

.footer_copyright p {
    font-size: clamp(0.625rem, 1.5vw, 0.875rem); /* Slightly more accessible than 0.5rem */
    line-height: 1.3;                            /* Improves readability at small sizes */
    /* margin: 0.5rem 0;                            /* Controls paragraph spacing */
    margin: 0;                            /* Controls paragraph spacing */
    opacity: 0.8;                                /* Makes text lighter while maintaining readability */
    color: #999;                                 /* Optional: Light gray for subtlety */
}

.footer_copyright a{
  color: #e67e23 !important;
}

.footer_copyright a:hover{
  color: #FFFFFF !important;
  text-decoration: none;
}




/* Mobile responsiveness
@media (max-width: 768px) {
 */

@media (max-width: 42.75em) {
  .header-container {
      flex-direction: column;
  }

  .header-custom-image {
      margin: 10px 0 0 0;
  }

  .footer_logos_area{
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
}

/* Mobile responsiveness */
@media (max-width: 42.75em) {
  .optional-footer{
    display: flex;
  }

  .main-footer{
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  #top-menu{
    display: block;
  }

  .top-header-box{
    margin-bottom: calc(var(--baseline) * 5);
  }

  .bottom-header-box{
    display: none;
  }

  .optional-header-box{
    display: block;
  }
}



/*
* {
  border: 1px solid red !important;
}
*/

