/* === GLOBAL STYLES & RESETS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  color: #ccc;
  background-color: #222;
  font-family: Arial, sans-serif;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #ffffff;
}

a:active {
  color: #ffffff !important;
}

/* === HEADER & NAVIGATION === */
.kg-main {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-image: linear-gradient(#111, #444);
  display: flex;
  justify-content: center;
  min-height: 50px;
}

.kg-main ul {
  display: flex;
  align-items: center;
}

.kg-main li {
  display: block;
}

.kg-main li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 15px;
  font-size: medium;
  transition: background-image 0.3s;
}

.kg-main li a:hover {
  background-image: linear-gradient(#444, #111);
}

.menu-icon {
  margin-right: 10px;
  height: 40px;
  width: auto;
}

/* === MOBILE HAMBURGER MENU === */
#menu-button {
  display: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  top: 5px;
  left: 10px;
  z-index: 1001;
}

.hamburger, .hamburger-line2 {
  width: 28px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

.hamburger-line2 {
  margin: 6px 0;
}

/* Hamburger animation */
#menu-button.active .hamburger:first-child {
  transform: translateY(9px) rotate(45deg);
}
#menu-button.active .hamburger-line2 {
  opacity: 0;
}
#menu-button.active .hamburger:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

/* === PAGE SECTIONS & BACKGROUNDS === */
.parallaxone {
  background-image: url('parallaxone.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 50px;
}

.uplogo {
  max-width: 960px;
  margin: 0 auto;
}

.imgsit {
  width: 100%;
  height: auto;
}

.fills {
  margin: 0;
}

#head {
  font-size: 23px;
}

.cred {
  font-size: 14px !important;
  text-transform: uppercase;
  height: 75px;
  text-align: center;
  background-image: linear-gradient(#111, #444);
  width: 100%;
}

.credalign {
  line-height: 75px;
}

.fade {
  width: 100%;
  background: url("fade.png") no-repeat;
  padding: 20px;
  text-align: center;
}

.fade a {
  font-weight: bold;
}

/* === MAIN CONTENT & LAYOUT === */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 25px;
}

.setcolumnrow {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.setcolumn {
  width: 50%;
  padding: 15px;
  background-color: #222;
  color: #777;
}

.setcolumnrow ul li::before {
  content: '✦  ';
}

.clr {
  color: #DC1656;
  margin-bottom: 10px;
  font-size: 1.8em;
  font-weight: bold;
}

.color-border-container {
  height: 25px;
  width: 100%;
}

.color-border-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.whited {
  background-color: #333232 !important;
  color: #888;
  padding: 20px 0;
}

.fade-spacer {
  min-width: 100%;
  min-height: 10px;
}

.paraafter {
  font-size: 20px;
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  padding: 0 25px;
}

.paraafter p {
  flex: 1;
}

.blocks {
  width: 200px;
  height: 200px;
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

/* === FOOTER === */
.cleared {
  background-image: linear-gradient(#111, #444);
  width: 100%;
  padding: 20px;
  text-align: center;
}

.credtwo {
  font-size: 12px !important;
  text-transform: uppercase;
}

footer form {
  margin-top: 10px;
}

/* === RESPONSIVE STYLES FOR MOBILE === */
@media (max-width: 768px) {
  /* Navigation */
  .kg-main {
    justify-content: flex-start;
  }
  #menu-button {
    display: block;
  }
  .kg-main ul {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background-color: #222;
    width: 100%;
    flex-direction: column;
    padding: 10px 0;
  }
  .kg-main ul.active {
    display: flex;
  }
  .kg-main li {
    width: 100%;
    text-align: center;
  }
  .menu-icon {
    display: block;
    margin: 0 auto 10px auto; /* This now correctly centers the logo */
  }

  /* Parallax Fallback */
  .parallaxone {
    background-attachment: scroll;
  }

  /* Content Columns */
  .setcolumn {
    width: 100%;
    text-align: left;
  }

  /* Content Blocks */
  .paraafter {
    flex-direction: column;
    text-align: center;
  }
  .blocks {
    float: none;
    margin-right: 0;
    margin-bottom: 20px;
  }
}