/* ==== Base Styles ==== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('assets/hero-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}

a {
  color: #00acee;
  text-decoration: none;
}

ul, ol {
  list-style: none;
  padding-left: 0;
}

code {
  background: #1e1e1e;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* ==== Header and Navigation ==== */
header {
  text-align: center;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 2px solid #00acee;
}

.logo {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 10px 0 0;
}

nav a {
  padding: 10px 15px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 5px;
  transition: background 0.3s;
}

nav a:hover,
nav a.active {
  background: #00acee;
}

/* ==== Footer ==== */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.8);
  margin-top: 40px;
}

/* ==== Common Page Sections ==== */
.priority-section,
.app-section,
.guide-section,
.rules-section,
.gallery-section,
.staff-section {
  max-width: 1000px;
  margin: 40px auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 12px;
  color: #e0e0e0;
  text-align: center;
}

.priority-section h2,
.app-section h2,
.guide-section h2,
.rules-section h2,
.gallery-section h2,
.staff-section h2 {
  font-size: 2em;
  color: #00acee;
  margin-bottom: 20px;
}

/* ==== Priority Table ==== */
.priority-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.priority-table th,
.priority-table td {
  padding: 15px;
  border: 1px solid #ddd;
  text-align: center;
  background-color: rgba(255,255,255,0.05);
}

.priority-table th {
  background-color: rgba(0,172,238,0.2);
  color: #ffffff;
}

.priority-table tr:hover {
  background-color: rgba(0, 172, 238, 0.1);
}

/* ==== Applications ==== */
.app-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.app-card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  width: 220px;
  border-radius: 10px;
  text-align: center;
}

.app-card h3 {
  font-size: 1.2em;
  color: #ffffff;
}

.app-card p {
  font-size: 0.95em;
  color: #cccccc;
  margin: 10px 0;
}

.app-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #00acee;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.app-btn:hover {
  background: #008dd1;
}

/* ==== Guide ==== */
.guide-block {
  margin-bottom: 30px;
  text-align: left;
}

.guide-block h3 {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
}

.guide-block ul,
.guide-block ol {
  padding-left: 20px;
  line-height: 1.6;
}

/* ==== Rules ==== */
.rule-block {
  margin-bottom: 30px;
  text-align: left;
}

.rule-block h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.rule-block ul {
  padding-left: 20px;
  line-height: 1.6;
}

/* ==== Gallery ==== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 0 10px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 172, 238, 0.3);
}

/* ==== Staff ==== */
.staff-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.staff-card {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 20px;
  width: 220px;
  text-align: center;
}

.staff-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.staff-card h3 {
  color: white;
  font-size: 1.2em;
}

.staff-card p {
  font-size: 0.95em;
  color: #cccccc;
  margin: 5px 0;
}

.staff-card a {
  display: inline-block;
  margin-top: 8px;
  background: #00acee;
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9em;
}

.staff-card a:hover {
  background: #008dd1;
}

/* ==== Home Page Image Slider ==== */
.slider-box {
  width: 572px;
}

.slider-box img#slider {
  width: 572px;
  height: 368px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  .app-cards,
  .staff-grid {
    flex-direction: column;
    align-items: center;
  }
}
