/* 1) RESET / BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* Prevents horizontal scrolling */
    max-width: 100vw; 
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}/* Stops elements from overflowing the viewport */

p, h1, h2, h3, li {
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.bold-effect {
  font-weight: bold;
  display: inline; /* Prevent weird spacing */
}

/* Apply only to specific sections without breaking links/lists */
.typewriter-text {
  font-family: "Lekton", monospace;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* FONTS */
.lekton-regular {
  font-family: "Lekton", monospace;
  font-weight: 400;
  font-style: normal;
}
.lekton-bold {
  font-family: "Lekton", monospace;
  font-weight: 700;
  font-style: normal;
}
.lekton-regular-italic {
  font-family: "Lekton", monospace;
  font-weight: 400;
  font-style: italic;
}

.faded-text {
  opacity: 0.8;
  filter: blur(0.3px);
}

/* GLOBAL LINK STYLES */
a, a:visited {
  color: #000;  
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #444;
}
a:active {
  color: #666;
}
/* BODY */

html {
  background: url('/images/folded-paper-bg.webp') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  padding: 20px;
  /*filter: contrast(80%) brightness(98%);*/
}
body {
  font-family: 'Lekton', monospace; 
}
/* MAIN WRAPPER */
.main-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
  padding-top:100px;
}
/* CROW + TITLE SECTION */
.crow-container {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px; /* Space between crow and text */
  height: 100%;
}

.crow-image {
  width: 200px;
  height: auto;
  opacity: 0.8;
}

/* TITLE TEXT (keeps department aligned properly) */
.title-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Ensures text stays aligned with crow */
}

.title-text{
  transform: rotate(-0.5deg);
}

.title-text h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 4px;
}
.title-text h2 {
  font-size: 2rem;
  letter-spacing: 2px;
}
.title-text h3 {
  font-size: 2rem;
  letter-spacing: 9.5px;
}
.title-text p {
  font-size: 1.2rem;
  padding-top: 30px;
}

/* CONTENT SECTION */
.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  row-gap: 0px;  /* Reduce space between row 1 (crow) and row 2 (list) */
  align-items: start;
}
.left-column{
  transform: rotate(-0.5deg);
}
/* LEFT COLUMN (Items #1 and #2) */
.left-column {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-top: 0;
  padding-top: 0;
}
.right-column{
  transform: rotate(0.5deg);
}
/* RIGHT COLUMN (Item #3) */
.right-column {
  grid-column: 2;
  grid-row: 1; 
}

/* LOWER RIGHT COLUMN (Items #4, #5, #6) */
.lower-right-column {
  grid-column: 2;
  grid-row: 2;
}

/* TABLE OF CONTENTS LISTS */
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Standardized list styles */
ol {
  padding-left: 20px;  /* Ensures correct indentation */
  margin-left: 0;
}

/* Top-level items */
.toc-list > li {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: normal;
}

/* Nested list (sub-items) */
.toc-list ul {
  list-style: none;
  margin-top: 10px;
  margin-left: 20px;
  padding: 0;
}

.toc-list ul li {
  margin-bottom: 2px;
  font-weight: normal;
  font-size: 1rem;
}

/* SPACING FOR LIST ITEMS */
.left-column li,
.right-column li,
.lower-right-column li {
  margin-bottom: 10px;
  padding-left: 10px;  /* Keep consistent indent */
  font-size: 1.1rem;
}

/* ============================= */
/* ✅ RESPONSIVE STYLES (MOBILE) */
/* ============================= */
@media (max-width: 768px) {
  .content-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "crow"
      "left"
      "right"
      "lower-right";
  }

  .crow-container {
    grid-area: crow;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom:60px;
  }

  .left-column {
    grid-area: left;
  }

  .right-column {
    grid-area: right;
  }

  .lower-right-column {
    grid-area: lower-right;
  }
}