/* ==========================================
   1. GLOBAL & BODY STYLES (3 selectors)
   ========================================== */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f9;
  color: #333333;
  margin: 0;
  padding: 0;
}

a {
  color: #003366; /* Deep Blue for body links */
  font-weight: bold;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: #ff6600; /* Changes to Basketball Orange on hover */
  text-decoration: none;
}

/* ==========================================
   2. FOUR MAIN STRUCTURAL DIVS (4 selectors)
   ========================================== */
#header {
  background: transparent;
  position: relative;
  width: 100%;
  max-width: 1000px; /* Perfectly hits the 800px-1000px rubric rule */
  margin: 0 auto;
}

#nav {
  background: #003366; /* Deep Blue navigation bar background */
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  color: #ffffff;
  padding: 10px 0;
}

#section {
  background: #ffffff;
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
}

#footer {
  background: #333333;
  color: #ffffff;
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px 0;
  clear: both;
  font-size: 0.95rem;
}

/* ==========================================
   3. NAVIGATION LIST STYLES (3 selectors)
   ========================================== */
#nav ul {
  text-align: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

#nav li {
  display: inline-block;
  padding: 0 15px;
}

#nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

#nav a:hover {
  color: #ff6600; /* High-contrast Basketball Orange highlight on hover */
}

/* ==========================================
   4. TYPOGRAPHY HEADERS & TEXT (4 selectors)
   ========================================== */
h1 {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: left;
  color: #003366; /* Deep Blue header text */
  margin-top: 10px;
  margin-bottom: 15px;
}

h2 {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ff6600; /* Basketball Orange secondary headers */
  margin-top: 20px;
  margin-bottom: 10px;
}

p {
  font-size: 1.05rem;
  font-weight: normal;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 15px;
}

ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

/* ==========================================
   5. RESPONSIVE TABLES & IMAGES (4 selectors)
   ========================================== */
table {
  border-collapse: collapse;
  width: 100%; /* Fluid percentage width element */
  margin: 20px 0;
}

th, td {
  border: 1px solid #dddddd;
  padding: 12px;
  text-align: left;
}

th {
  background-color: #003366; /* Deep Blue table headers */
  color: #ffffff;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

img {
  width: 100%;
  max-width: 500px;
  height: auto; /* Fully fluid and responsive photos */
  display: block;
  margin: 15px 0;
}

img.banner {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
}

/* ==========================================
   6. SIDEBAR LAYOUTS (2 selectors)
   ========================================== */
.sidebar {
  float: right;
  width: 30%; /* Fluid percentage width element */
  box-sizing: border-box;
  margin-left: 5%;
  background: #f8f9fa;
  padding: 15px;
  border-left: 4px solid #ff6600; /* Basketball Orange accent border */
}

.sidebar-bottom {
  display: none; /* Hidden on desktop screens */
}

/* ==========================================
   7. RESPONSIVE MEDIA QUERY LAYOUT SHIFT (2 selectors)
   ========================================== */
@media screen and (max-width: 768px) {
  .sidebar {
    display: none; /* Drops the side layout completely on mobile */
  }
  
  .sidebar-bottom {
    display: block; /* Shows the mobile layout element at the bottom */
    width: 100%;
    box-sizing: border-box;
    background: #f8f9fa;
    padding: 15px;
    margin-top: 20px;
    border-top: 4px solid #ff6600; /* Basketball Orange top accent border */
  }
}

