/*! base.css v1.2 - 2026 Standards Update */
/* ======================================================================================================
 *			-- FILE STRUCTURE --
 *
 *	[ 1] Core Definitions		__core
 *	[ 2] noJS					__noJS
 *	[ 3] Header					__header
 *	[ 4] Navigation				__navigation
 *	[ 5] Page Content			__page-content
 *	[ 6] Login System			__login-system
 *	[ 7] Register System		__register-system
 *	[ 8] Footer					__footer
 *	[ 9] Page Errors			__page-errors
 *	[10] Media Queries			__media-queries
====================================================================================================== */

/* ======================================================================================================
 *	[ 1] Core Definitions		__core
====================================================================================================== */
html, body {
  height: 100%; /* Critical for Sticky Footer */
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  overflow-x: hidden;
  position: relative;
}

body {
  display: flex;
  flex-direction: column; /* Sets up vertical stacking */
  background: linear-gradient(rgba(52,73,94,0.3)), url(../image/icon/bg.png) repeat 0 0;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: lighter;
  cursor: default;
}

p {
  cursor: default;
  line-height: 1.6;
}

a {
  border: none;
  outline: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.clr, .clear:after {
  content: "";
  display: table;
  clear: both;
}

/* ======================================================================================================
 *	[ 2] noJS					__noJS
====================================================================================================== */
noscript {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #2c3e50;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  overflow: hidden;
}

noscript .img {
  width: 60px;
  height: 60px;
  padding: 0;
  margin: 0 auto;
  background: url(../image/icon/logo-60x59.png) no-repeat center center;
  background-size: contain;
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
}

noscript .nojs {
  width: 80%;
  max-width: 600px;
  padding: 20px 0;
  margin: 0 auto;
  background: #EDEDED;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  border-top: 3px solid #d35400;
  position: absolute;
  top: 130px;
  left: 0;
  right: 0;
  text-align: center;
}

noscript .nojs h3 {
  width: 96%;
  padding: 0 10px 5px 10px;
  margin: 0 2%;
  border-bottom: 1px dotted #000;
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
}

noscript .nojs p {
  width: 100%;
  padding: 0 20px;
  margin: 10px 0 0 0;
  color: #555;
}

noscript .nojs p:first-of-type {
  margin: 20px 0 0 0;
}

noscript .nojs p a {
  color: #E67E22;
  font-weight: bold;
}

noscript .nojs p a:hover {
  text-decoration: underline;
}

/* ======================================================================================================
 *	[ 3] Header					__header
====================================================================================================== */
header {
  width: 100%;
  flex-shrink: 0; /* Prevents header from collapsing */
}

/* ======================================================================================================
 *	[ 4] Navigation				__navigation
====================================================================================================== */
nav {
  width: 100%;
  height: 60px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
}
.nav-logo img {
  height: 60px;
  width: auto;
  margin-right: 15px;
}
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  color: #E67E22;
  text-decoration: none;
  font-weight: 500;
  line-height: 60px;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #d35400;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #E67E22;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* ======================================================================================================
 *	[ 5] Page Content			__page-content
====================================================================================================== */
main {
  flex: 1 0 auto; /* Expands to fill available space, pushing footer to bottom */
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 0 auto;
  padding: 40px 20px;
  display: block; /* Standard semantic block behavior */
}

/* ==========================================================================
 *	[ 8] Footer					__footer
 * ========================================================================== */
footer {
  flex-shrink: 0; /* Ensures footer maintains its size */
  width: 100%;
  padding: 40px 20px;
  background: rgba(0,0,0,0.8);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.policy-links a {
  color: #E67E22;
}
.policy-links a:hover {
  color: #d35400;
}

/* ==========================================================================
 *	[10] Media Queries			__media-queries
 * ========================================================================== */
@media screen and (max-width: 1200px) {
  main {
    width: 95%;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%); 
    visibility: hidden;
    transition: transform 0.4s ease-in-out, visibility 0.4s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links a {
    line-height: normal;
    font-size: 1.3rem;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-logo img {
    height: 35px !important;
    margin-right: 8px !important;
  }

  .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  main {
    padding: 20px 10px;
  }
}
