/* Modernized Responsive CSS – Kapil V. Panchal */
/* Last modified : 2025-07-07 */

/* ============ Global Reset and Base =========== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #383838;
  font-family: Verdana, "Trebuchet MS", Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============ Container =========== */
#TheContainer {
  width: 100%;
  max-width: 960px;
  margin: 10px auto;
  padding: 0;
  border: 1px solid #AAAAAA;
  background-color: #EEEEEE;
}

#Header {
  width: 100%;
  height: auto;
}

/* ============ Info Block =========== */
#infoblock1 {
  width: 100%;
  height: 18px;
  padding: 1px 10px;
  background-color: #D5D5D5;
  border-top: 1px solid #999;
  font-size: 11px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: #3F3F3F;
  text-align: left;
  line-height: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ============ Menu Bar =========== */
ul#Menubar,
ul#SubMenubar,
ul#SideMenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul#Menubar {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 32px;
  background-color: #D5D5D5;
  border-top: 1px solid #999;
  border-bottom: 1px solid #999;
  margin: 0;
  padding: 0 8px;
}

ul#Menubar li:first-child a {
  padding-left: 0;
}

ul#Menubar li a {
  display: inline-block;
  height: 32px;
  line-height: 32px;
  padding: 0 10px;
  font-size: 14px;
  color: #20272E;
  text-decoration: none;
}

ul#Menubar li a:hover {
  font-weight: bold;
}

ul#Menubar li a.login-btn {
  background-color: #4B4B4B;
  color: white !important;
  font-size: 14px;
  text-decoration: none;
  padding: 0 12px;
  height: 28px;
  line-height: 28px;
  display: inline-block;
  border-radius: 5px;
  margin-left: auto;
}

ul#Menubar li a.login-btn:hover {
  background-color: #303030;
  font-weight: bold;
}

/* ============ Content Area =========== */
#PageContent {
  width: 100%;
  background-color: #EEEEEE;
}

#ContentBlock {
  width: 100%;
  padding: 10px 0;
  background-color: #EEEEEE;
}

#ContentBlock p {
  margin: 0;
  padding: 0 15px 5px 15px;
  text-align: justify;
  font-size: 14px;
  line-height: 1.3;
  color: #20272E;
}

.fullwidth-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1536 / 458;
  object-fit: cover;
}

/* ============ Footer =========== */
#Footer {
  width: 100%;
  padding: 10px 0;
  background-color: #D5D5D5;
  color: #20272E;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-top: 1px solid #999;
  border-bottom: 1px solid #999;
}

.copyr {
  text-align: center;
  font-size: 12px;
  color: #20272E;
  padding: 5px 15px;
  width: 100%;
}

.tracker {
  text-align: left;
  font-size: 11px;
  color: #20272E;
  padding-left: 15px;
}

/* ===== Desktop Only: Maintain Login on Right ===== */
@media (min-width: 769px) {
  ul#Menubar li:last-child {
    margin-left: auto;
  }
}

/* ===== Responsive Menu and Layout Fixes (Updated for Consistent Mobile Styling) ===== */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  padding: 4px 10px;
  color: #20272E;
  cursor: pointer;
}

@media (max-width: 768px) {
  #menu-toggle {
    display: block;
    position: relative;
    z-index: 1001;
  }

  ul#Menubar {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 32px;
    left: 0;
    width: 100%;
    background-color: #D5D5D5;
    z-index: 1000;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
  }

  ul#Menubar.show {
    display: flex;
  }

  ul#Menubar li {
    border-top: 1px solid #999;
    width: 100%;
  }

  ul#Menubar li a {
    width: 100%;
    display: block;
    padding: 10px;
    font-size: 16px;
    color: #20272E !important;
    background-color: transparent !important;
    text-align: left;
    text-decoration: none;
    font-weight: normal;
    line-height: normal;
    height: auto;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  #infoblock1 {
    font-size: 16px;
    text-align: center;
  }

  #ContentBlock p {
    font-size: 16px;
  }

  #Footer {
    flex-direction: column;
    text-align: center;
  }

  #MainNav {
    position: relative;
    z-index: 1000;
  }
}

/* ===== Desktop Only: Maintain Login on Right ===== */
@media (min-width: 769px) {
  ul#Menubar li:last-child {
    margin-left: auto;
  }
}