/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #333;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 15vh; /* Reserve space for fixed header */
}

/* ===== Banner Styles ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 15vh;
  overflow: hidden;
  z-index: 100;
}

header .banner-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}

/* ===== Sidebar Styles ===== */
.sidebar {
  position: fixed;
  top: 15vh;
  left: 0;
  background-color: rgba(51, 51, 51, 0.7);
  width: 250px;
  height: calc(100vh - 15vh);
  padding-top: 20px;
  backdrop-filter: blur(10px);
  overflow-y: auto;
  z-index: 10;
}

.sidebar ul {
  list-style-type: none;
  padding-left: 20px;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  display: block;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.sidebar ul li a:hover {
  color: #f39c12;
}

/* ===== Content Styles ===== */
.content {
  position: absolute;
  top: 15vh;
  left: 270px;
  right: 20px;
  padding: 20px;
  background-color: rgba(224, 224, 224, 0.8);
  border-radius: 8px;
  min-height: calc(100vh - 15vh - 40px);
  margin-bottom: 20px;
  overflow-y: auto;
}

.content-box {
  background-color: white;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.title-image {
  max-height: 80px;
  width: auto;
  display: block;
  margin: 0 auto 15px;
  object-fit: contain;
  max-width: 100%;
}

/* ===== Content Organization Styles ===== */
.section {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.section:last-child {
  border-bottom: none;
}

.section h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #f39c12;
}

.section-content {
  padding: 0 10px;
}

.resource-category {
  margin-bottom: 20px;
}

.resource-category h3 {
  color: #34495e;
  margin: 15px 0 10px;
}

.resource-list, .tips-list {
  margin-left: 20px;
  margin-bottom: 15px;
}

.resource-list li, .tips-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  color: #34495e;
  margin-bottom: 8px;
}

.status-closed {
  color: #e74c3c;
  font-weight: bold;
}

.tagline {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 25px;
  font-style: italic;
}

.server-footer {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9em;
}

.server-footer p {
  margin-bottom: 5px;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
  body {
    padding-top: 0;
    overflow-y: auto;
  }


header {
  position: relative;
  }

  .sidebar {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    max-height: none;
    backdrop-filter: none;
  }

  .content {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin: 20px;
    width: calc(100% - 40px);
    min-height: auto;
    overflow-y: visible;
  }

  .sidebar ul li {
    font-size: 16px;
  }

  .content-box {
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  .title-image {
    max-height: 60px;
  }
  
  .content {
    margin: 10px;
    width: calc(100% - 20px);
    padding: 15px;
  }
  
  .content-box {
    padding: 15px;
  }
}
