/* Reset and body styles */
body {
  margin: 0;
  background-color: #F8F6ED;
  font-family: Arial, sans-serif;
  overflow: auto; /* Allow scrolling */
}

/* Navigation bar styles */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFE000; /* Original yellow color */
  color: black;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1rem 0; /* Adjust padding for better spacing */
  font-weight: bold;
  font-style: italic; /* Italics added back */
  z-index: 1000; /* Ensure it stays above other elements */

  /* Subtle glowing effect */
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 0 10px rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.3s ease;
}

/* Hover effect: Increase glow on hover */
nav:hover {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
}

nav a {
  color: black;
  text-decoration: none;
  font-size: 18px;
  text-transform: lowercase;
  font-style: italic; /* Italics added back */
  transition: text-decoration 0.2s ease;
}

/* Hover underline on all links */
nav a:hover {
  text-decoration: underline;
}

/* Highlight current page */
nav a.current-page {
  text-decoration: underline;
}

/* Define the Neue Haas Display Thin font */
@font-face {
  font-family: 'NeueHaasDisplayRoman';
  src: url('./fonts/NeueHaasDisplayRoman.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Define the Neue Haas Display Black font */
@font-face {
  font-family: 'NeueHaasDisplayMedium';
  src: url('./fonts/NeueHaasDisplayMedium.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* Main content styles */
.main-content {
  margin-top: 100px; /* To avoid overlap with fixed nav */
  text-align: center; /* Center the text within the container */
  color: black;
  padding: 20px;

  /* Center the main-content container with a max width */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}


.main-content h1 {
  font-family: 'NeueHaasDisplayMedium', Arial, sans-serif;
  font-size: 50px;
  margin-bottom: 20px;
  color: black;
  text-align: left;
}


.main-content section {
  margin-bottom: 0px;
}


.main-content section h2 {
  font-family: 'NeueHaasDisplayMedium', Arial, sans-serif;
  font-size: 1.75em;
  line-height: 1.6;
  text-align: left;
  max-width: 1500px;
  text-transform: lowercase;
}


.main-content p {
  font-family: 'NeueHaasDisplayRoman', Arial, sans-serif;
  font-size: 0.95em;
  line-height: 1.6;
  text-align: left;
  max-width: 1500px;
  margin: 0 auto 20px auto;
}


.mission-statement,
.mission-statement h2,
.mission-statement p {
  color: #F8F6ED;
}



/* Responsive Adjustments */
@media (max-width: 768px) {
  .main-content p {
    font-size: 0.97em;
    padding: 0 10px;
    margin: 0 auto 15px auto;
  }

  .main-content h1 {
    font-size: 2em;
  }

  .main-content section h2 {
    font-size: 1.5em;
  }
  
}

/* Work in Progress styles */
.work-in-progress {
  border: 1px solid #00AEEF;
  padding: 40px;
  margin: 40px auto;
  max-width: 600px;
  background-image: url('under_construction_sand.png');
  background-repeat: repeat;
  background-position: center;
  background-size: contain;
  background-color: #F8F6ED;
}

.work-in-progress h2 {
  font-family: 'NeueHaasDisplayMedium', Arial, sans-serif;
  margin-top: 0;
  font-size: 2em;
  color: #00AEEF;
}

.work-in-progress p {
  font-size: 1.2em;
  color: #00afefd9;
  text-align: center;
}

/* Grid overlay styles */
.grid-overlay {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100vw;
  padding: 100px 0;
}

.pyramids-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Yellow Pyramid Styles */
.yellow-pyramid {
  width: 0;
  height: 0;
  border-top: 200px solid transparent;
  border-bottom: 200px solid transparent;
  border-left: 200px solid rgb(255, 247, 0);
  transform: rotate(180deg);
  position: absolute;
  opacity: 0.3;
  z-index: -1;
}

.pyramid1 {
  opacity: 0.3;
  top: 30%;
  left: 10%;
}

.pyramid2 {
  opacity: 0.6;
  top: 30%;
  left: 30%;
}

.pyramid3 {
  opacity: 0.9;
  top: 30%;
  left: 50%;
}

/* Each grid square styles */
.grid-square {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 0.5px solid #00AEEF;
  box-sizing: border-box;
  text-align: center;
  line-height: 50px;
  font-size: 18px;
  position: relative;
  z-index: 0;
}

.grid-square.hidden {
  display: none;
}

/* Grid container styles */
.grid-container {
  position: relative;
  display: grid;
  width: 80%;
  grid-auto-rows: 50px;
  margin-bottom: 0;
  z-index: 0;
}

/* The "image" portion (top 5x5) */
.article-image {
  background-image: url("https://via.placeholder.com/400x400");
  background-size: cover;
  background-position: center;
  z-index: 2;
}

/* The bottom 3×2 region for the article text */
.article-text {
  font-size: large;
  grid-column: 1 / 4;
  grid-row: 6 / 8;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  z-index: 3;
}

/* Blank space underneath the grid */
.blank-space {
  height: 50px;
  background-color: #F8F6ED;
}

/* Placeholder image styles */
.placeholder-image {
  background-image: url("https://via.placeholder.com/300x200");
  background-size: cover;
  background-position: center;
  z-index: 2;
}

/* The anchor that wraps each article bounding box */
.article-link {
  box-sizing: border-box;
  display: block;
  position: relative;
  background-color: #F8F6ED;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  z-index: 600;
}

.article-link:hover {
  transform: scale(1.1);
}

/* Parent container for the two-column layout */
.two-column-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Individual column styles */
.column {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  padding: 30px;
}

/* NEW: Background color on left column to contrast white text */
.column:first-child {
  background-color: black;
  margin-right: 0px; /* Increase right margin on left column */
}

.column:last-child {
  border: 1px solid black;
  margin-left: 0px;  /* Increase left margin on right column */
}

@media (max-width: 1200px) {
  .column:first-child {
    margin-right: 0px; /* Smaller margin */
  }
}

/* When the screen is 768px or narrower, reduce further */
@media (max-width: 768px) {
  .column:first-child {
    margin-right: 0px; /* Even smaller margin */
  }
}

/* OPTIONAL: If you want a special style for your link section */
.contact-links p {
  margin-bottom: 10px;
}

.contact-links a {
  color: #00AEEF;
  text-decoration: underline;
}

/* Main content wrapper */
.main-content {
  margin: 100px auto;
  max-width: 1200px;
  padding: 20px;
  color: black;
}

/* Main Heading Styling */
.main-content h1 {
  font-size: 50px;
  margin-bottom: 20px;
  color: black;
  text-align: left;
}

/* Container to place square + sub-heading side by side */
.title-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

/* Sub-heading in the title-container */
.title-container h1 {
  margin: 0;
  line-height: 1;
  font-size: 2.5em;
}

/* The square: sized in em to scale with the sub-heading */
.square {
  margin-left: 0px;
  position: relative;
  width: 2.3em;
  height: 2.3em;
  border: 1px solid black;
  background-image: url("black_sand.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Diagonal black region from top-left to bottom-right */
.square::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  background-color: black;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
}

/* Bottom section container */
.bottom-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 100px;
  color: black;
}

/* Left column text in the footer */
.left-column p {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.right-column a {
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
}

.right-column img {
  width: 24px;
  height: auto;
  display: inline-block;
}

.audience {
  margin-bottom: 60px;
}


.submissions p {
  color: black;
}

.call-for-submissions {
  padding: 30px;
  border: 1px solid black;
  margin-bottom: -100px;
  background-color: #F8F6ED;
  color: black;
  text-align: left;
  font-family: 'NeueHaasDisplayRoman', Arial, sans-serif;
}

/* Style the heading in the new section */
.call-for-submissions p,
.call-for-submissions ul,
.call-for-submissions li {
  color: black;
}

.call-for-submissions h2 {
  padding: 0 10px;
}

.call-for-submissions p {
  padding: 0 10px;
}


.categories {
  margin-top: 0;
}


/* Categories Section */
.categories {
  padding: 30px;
  background-color: black;
  color: white;
  margin-bottom: 40px;
  text-align: left;
  font-family: 'NeueHaasDisplayRoman', Arial, sans-serif;
}

.categories ul,
.categories li {
  padding: 0 10px;
  color: white;
}

.categories h2 {
  padding: 0 10px;
}

.categories p {
  padding: 0 20px;
}

.categories-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.category-item {
  padding: 20px;
  background-color: #000000;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}


.category-item p,
.category-item ul {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 15px;
}

.category-item ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .categories-container {
    grid-template-columns: 1fr;
  }

  .main-content h1 {
    font-size: 2em;
  }

  .main-content p {
    font-size: 1em;
  }

  .call-for-submissions p {
    padding: 0 14px;
  }
}


.mission-statement h2 {
  margin: 0 auto 20px auto;
}

.audience h2 {
  margin: 0 auto 20px auto;
}

.interfaces h2 {
  margin: 0 auto 20px auto;
}

.categories h2 {
  margin: 0 auto 5px 0px;
}

.submissions p {
  margin-top: 20px;
}