/* LAST UPDATED: 2026-02-26 */

/* =========================================
   1. DESIGN TOKENS (CSS VARIABLES)
   ========================================= */
:root {
  --primary: #104547;
  --primary-light: #4F8586;
  --primary-dark: #082b2c;

  --secondary-a: #DCE9DF; /* Mist Sage */
  --secondary-b: #F6F8ED; /* Soft Linen */

  --accent: #6A0136;
  --accent-light: #B34A73;
  --accent-dark: #430024;

  --link: var(--accent-light);
  --link-hover: var(--accent);

  --nav-bg: #2F3A3B;
  --nav-text: var(--secondary-b);
}

/* =========================================
   2. GLOBAL LAYOUT
   ========================================= */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--primary);
  color: var(--secondary-b);
  font-family: Inter, Arial, sans-serif;
  font-size: 1em;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

main {
  padding: 0;
  padding-top: 10px;
  margin-left: 100px;
  margin-right: 100px;
}

/* =========================================
   3. TYPOGRAPHY SYSTEM
   ========================================= */
h1, h2, h3, h4 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  text-align: center;
  line-height: 1.25;
  color: var(--secondary-a);
  text-shadow: 1px 1px 4px var(--accent-dark);
}

h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2.4em;
  font-weight: 700;
  letter-spacing: 0.75px;
}

h2 {
  font-family: Inter, Arial, sans-serif;
  font-size: 1.75em;
  font-weight: 600;
  letter-spacing: 0.5px;
}

h3 {
  font-family: Inter, Arial, sans-serif;
  font-size: 1.4em;
  font-weight: 500;
  letter-spacing: 0.4px;
}

h4 {
  font-family: Inter, Arial, sans-serif;
  font-size: 1.2em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.3px;
}

/* Slide-specific heading overrides */
#slide h1, #slide h2, #slide h3, #slide h4 {
  font-size: revert;
  line-height: 1.2;
  color: var(--primary);
  text-align: left;
  text-shadow: none;
}

#slide h2 { font-size: 1.45em; }
#slide h3 { font-size: 1.25em; }
#slide h4 { font-size: 1.1em; }

/* =========================================
   4. LINK STYLING
   ========================================= */
a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

#slide a {
  color: var(--link);
}

#slide a:hover {
  color: var(--link-hover);
}

/* =========================================
   5. HEADER & MAIN NAVIGATION
   ========================================= */
header, footer {
  text-align: center;
  padding: 0px 0;
  font-size: 1em;
  color: var(--secondary-a);
  font-family: Inter, Arial, sans-serif;
}

header {
  display: flex;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  position: relative;
  width: 100%;
  background-color: var(--nav-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  white-space: nowrap;
  text-align: center;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.85em;
  letter-spacing: 0.2px;
}

header nav a {
  color: var(--nav-text);
  padding: 2px 2px;
  margin: 0 2px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

header nav a:hover {
  background-color: rgba(255,255,255,0.08);
  color: var(--secondary-b);
}

/* --- Dropdown Integration (NEW) --- */
.dropdown {
  display: inline-block;
  position: relative;
}

.dropbtn {
  color: var(--nav-text);
  padding: 1px 1px;
  margin: auto;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.dropbtn:hover {
  background-color: rgba(255,255,255,0.08);
  color: var(--secondary-b);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--secondary-b);
  min-width: 100px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 4px;
  z-index: 20;
}

.dropdown-content a {
  display: block;
  padding: 2px 2px;
  color: var(--primary);
  background: var(--secondary-b);
  border-radius: 0;
  margin: 0;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: var(--secondary-a);
  color: var(--primary-dark);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* =========================================
   6. SUBNAV (WEEK SLIDE NAVIGATION)
   ========================================= */
.subnav {
  position: relative;
  margin: 10px auto;
  text-align: center;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.85em;
  letter-spacing: 0.2px;
  white-space: nowrap;
  z-index: 1;
}

.subnav a {
  color: var(--secondary-b);
  background-color: var(--primary-dark);
  padding: 10px;
  margin: 0 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.subnav a:hover {
  background-color: var(--accent);
  color: var(--secondary-b);
}

/* =========================================
   7. SLIDE SECTION (CONTENT CARD)
   ========================================= */
#slide {
  max-width: auto;
  margin: 10px 10px;
  text-align: justify;
  font-size: 1.5em;
  font-family: Inter, Arial, sans-serif;
  color: var(--primary);
  background-color: var(--secondary-b);
  padding: 5px 40px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

#slide li {
  font-size: 0.95em;
  line-height: 1.5;
}

#slide img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* =========================================
   8. CODE BLOCK STYLING
   ========================================= */
#code {
  background-color: #1E1E1E;
  color: #C3E88D;
  border-radius: 6px;
  font-family: "Source Code Pro", "Courier New", monospace;
  font-size: 0.95em;
  padding: 5px 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  white-space: pre-wrap;
  word-break: break-word;
}

#code pre {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
}

#code code {
  display: block;
  white-space: pre-wrap;
}

/* =========================================
   9. LOGO & BRANDING
   ========================================= */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-b);
  color: var(--primary);
  width: 60px;
  padding: 2px 0;
  border-radius: 2px;
  font-family: "Libre Baskerville", Georgia, serif;
  text-decoration: none;
  margin-right: 5px;
  margin-left: 5px;
}

.logo-top {
  font-weight: 700;
  font-size: 1em;
  text-decoration: underline;
  line-height: 1;
}

.logo-bottom {
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1.1;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.footer-brand p {
  margin: 2px 0;
}

.footer-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--secondary-a);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* =========================================
   10. FOOTER
   ========================================= */
/* (Footer text already included in header/footer block above) */

/* =========================================
   11. RUBRIC COMPONENT
   ========================================= */
.rubric {
  max-width: auto;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: var(--secondary-b);
  color: var(--primary);
  border: 2px solid var(--primary-dark);
  border-radius: 10px;
  font-family: Inter, Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.rubric h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--primary-dark);
  text-shadow: none;
}

.rubric table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1rem;
}

.rubric th,
.rubric td {
  border: 1px solid var(--primary-light);
  padding: 0.75rem;
}

/* Center Category + Points columns */
.rubric td:first-child,
.rubric th:first-child,
.rubric td:last-child,
.rubric th:last-child {
  text-align: center;
  vertical-align: middle;
}

/* Keep the description column left-aligned */
.rubric td:nth-child(2) {
  text-align: left;
}

.rubric th {
  background: var(--secondary-a);
  color: var(--primary-dark);
  font-weight: 600;
}

.rubric tbody tr:nth-child(even) {
  background: rgba(16, 69, 71, 0.08);
}

.rubric ul {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
}

.rubric code {
  background: var(--secondary-a);
  color: var(--primary-dark);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* =========================================
   12. MEDIA QUERIES
   ========================================= */
@media (max-width: 600px) {
  .rubric table,
  .rubric thead,
  .rubric tbody,
  .rubric th,
  .rubric td,
  .rubric tr {
    display: block;
  }

  .rubric tr {
    margin-bottom: 1rem;
    border: 1px solid var(--primary-light);
    border-radius: 6px;
    padding: 0.5rem;
    background: var(--secondary-b);
  }

  .rubric th {
    display: none;
  }

  .rubric td {
    border: none;
    padding: 0.4rem 0;
  }

  .rubric td:last-child {
    font-weight: bold;
    margin-top: 0.5rem;
    color: var(--accent-dark);
  }
}

.blooket-container {
  text-align: center;
  margin: 10px 0 10px 0;
}

.blooket-btn {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--primary-dark);
  color: var(--secondary-b);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.90em;
  font-weight: 800;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.blooket-btn a {
  color: var(--secondary-b);
  text-decoration: none;
}

.blooket-btn:hover {
  background-color: var(--accent-dark);
  color: var(--primary-light);
}

.blooket-btn:active {
  transform: translateY(0);
}

.network-table { 
  width: 100%; 
  border-collapse: collapse; 
  margin-top: 1rem; 
  font-size: 1.05rem; 
} 

.network-table th { 
  text-align: left; 
  padding: 8px; 
  background-color: #f2f2f2; 
  border-bottom: 2px solid #ccc; 
} 

.network-table td { 
  padding: 8px; 
  border-bottom: 1px solid #ddd; 
  vertical-align: top; 
} 

.network-table tr:nth-child(even) { 
  background-color: #fafafa; 
}

iframe {
  margin: 20px auto;
  align-self: center;
  display: block;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#wicked-link:hover{
  background-color: #100c14;
  color: #9BCA47;
}

#telecom-link:hover{
  background-color: #8f0b0b;
  color: #87c8db;
}