@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,900,300italic");

:root {
  --background-dark: #252122;
  --background-light: #f7f7f7;
  --primary-color: #d52349;
  --primary-color-hover: #e53359;
  --primary-color-active: #c51349;
  --alt-color: #252122;
  --alt-color-hover: #353132;
  --alt-color-active: #151112;
  --text-color: #5d5d5d;
  --heading-color: #252122;
  --link-hover-bg: #f3f3f3;
  /* --banner-bg: #202a4efa; */
  --banner-text: #202a4efa;
  /* --banner-text: #a69d6e; */
  /* --banner-bg: #a69d6e; */
  --banner-bg: #cec593;
  /* --banner-subtitle-color: #d52349; */
  --banner-subtitle-color: white;
  --footer-text: #858484;
  --footer-link: #c5c4c4;
  --footer-bg: #2c2929;
}

/* Basic Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Georgia", "Source Sans Pro", sans-serif;
  font-weight: 300;
  color: var(--text-color);
  font-size: 14pt;
  line-height: 1.75em;
  display: flex;
  margin: 0;
  background: #f7f7f7;
}

.banner-school-name {
  font-family: "Georgia", "Source Sans Pro", sans-serif;
  font-size: 60px;
  color: var(--banner-text);
  display: block;
  padding-bottom: 0.3em;
  line-height: 0.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-weight: 700;
}

a {
  color: var(--primary-color);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* Layout */
.container {
  margin: 0 auto;
  max-width: 100%;
  width: 70em;
}

.register-row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#main {
  padding-top: 2em;
}

/* Banner */
#banner {
  background-size: auto 100%;
  text-align: center;
  padding: 3em 0;
  margin: 2em 0 0 0;
}

#banner header {
  background: var(--banner-header-bg);
  display: inline-block;
  padding: 2.5em 5em;
  border-radius: 5px;
}

#banner header h2 {
  color: #fff;
  font-weight: 700;
  font-size: 2.5em;
}

.banner-subtitle {
  color: var(--banner-subtitle-color);
  font-size: 1.5em;
  margin: 0;
}

/* Intro Section */
#intro {
  text-align: center;
}

#intro section {
  margin: 3em 0;
  padding: 2.5em 0;
}

#intro h2 {
  font-size: 1.75em;
}

#intro p {
  margin: 0;
}

/* Button Styles */
.button {
  display: inline-block;
  border: none;
  border-radius: 5px;
  background: var(--primary-color);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1em;
  padding: 0.65em 1.5em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s ease-in-out;
}

.button:hover {
  background: var(--primary-color-hover);
}

.button:active {
  background: var(--primary-color-active);
}

.button.alt {
  background: var(--alt-color);
}

.button.alt:hover {
  background: var(--alt-color-hover);
}

.button.alt:active {
  background: var(--alt-color-active);
}

.button.large {
  font-size: 1.5em;
  padding: 0.75em 1.5em;
}

/* Footer */
#footer {
  color: var(--footer-text);
  background: var(--background-dark);
  padding: 1em 0;
  text-align: center;
}

#footer a {
  color: var(--footer-link);
}

#copyright ul.links {
  display: inline-block;
  background: var(--footer-bg);
  border-radius: 5px;
  padding: 0.85em 2.25em;
}

ul.links {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.links li {
  display: inline-block;
  padding: 0 1em;
  border-left: solid 1px rgba(255, 255, 255, 0.05);
}

ul.links li:first-child {
  border-left: none;
}

#banner {
  display: flex;
  justify-content: center;
}

#header {
  background: var(--banner-bg);
}

#header h1 {
  color: var(--heading-color);
  font-weight: 900;
  font-size: 2.5em;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.no-decoration {
  text-decoration: none;
}

.no-decoration a {
  text-decoration: none;
}

#main {
  display: flex;
}

.register-form {
  width: 85%;
}

.discimination-text {
  margin-bottom: 1em;
}

nav {
  background-color: var(--banner-header-bg);
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

nav ul {
  list-style: none;
  /* remove bullets */
  padding: 0;
  margin: 0;
}

nav li {
  margin-bottom: 10px;
}

nav a {
  display: block;
  /* makes the whole line clickable */
  padding: 8px;
  color: var(--banner-text);
  text-decoration: none;
  border-radius: 4px;
}

nav a:hover {
  background-color: #ddd;
}

#page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 1rem;
  align-items: center;
}

ol {
  margin-left: 0;
  padding-left: 1.5em;
}

section {
  padding-left: 10px;
  width: 85%;
}

.homepage {
  display: flex;
  flex-direction: column;
}

.operations {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

footer {
  display: flex;
  justify-content: center;
}

.contact {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  color: white;
}

.founding-principles {
  margin-top: 10px;
}

#pdf-container {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 80vh;
  margin: 1rem 0 1rem 0;
  padding: 1rem;
}

/* Small phones */
@media (max-width: 500px) {
  /* Styles for small mobile */
  .banner-school-name {
    font-size: 1rem;
  }

  .banner-subtitle {
    font-size: 0.75rem;
  }

  .header-content {
    flex-direction: row;
  }

  .photo-text {
    flex-direction: column;
    align-items: center !important;
  }
}

/* Hide the checkbox input */
#nav-toggle {
  display: none;
}

/* Hamburger menu container */
.hamburger-menu {
  position: relative; /* Fix for nav positioning */
  z-index: 1000;
}

/* Hamburger icon styling */
.hamburger {
  display: none;
  /* hidden by default, shown only on mobile */
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  margin-left: 10px;
  z-index: 1; /* below nav */
}

.hamburger span {
  background-color: var(--banner-text);
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 11px;
}

.hamburger span:nth-child(3) {
  top: 22px;
}

.pdf-download {
  display: none; /* hidden by default */
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.5rem;
  background: var(--banner-bg);
  color: white;
  border-radius: 6px;
  height: 70px;
  min-width: 310px;
  margin-bottom: 10px;
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Show hamburger on mobile */
  .hamburger {
    display: inline-block;
  }

  /* Hide nav by default */
  nav {
    display: none;
    flex-direction: column;
    background: #f7f7f7;
    position: absolute;
    top: 40px; /* lowered so it doesn't overlap hamburger */
    right: 0; /* aligned right with container */
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10; /* above hamburger */
  }

  /* Show nav when checkbox is checked */
  #nav-toggle:checked + .hamburger + nav {
    display: flex;
  }

  .banner-text-area {
    display: flex;
    align-items: center;
  }

  #pdf-container {
    flex-direction: column;
  }

  .pdf-download {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  nav {
    display: flex !important;
    position: static;
    background: transparent;
    flex-direction: row;
    box-shadow: none;
    padding: 0;
  }
}

nav a.active {
  font-weight: bold;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Book card styles */
.book-card {
  perspective: 1000px;
  width: 200px;
  margin: 1em;
}

.book-cover {
  display: block;
  background: var(--banner-bg);
  color: var(--banner-text);
  padding: 1em;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}

.book-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background: white;
  padding: 0 1em;
  border-radius: 0 0 8px 8px;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked + label + .book-content {
  max-height: 200px;
  /* adjust as needed */
  padding: 1em;
}

.major {
  position: relative;
  border-top: solid 5px #e7eae8;
  font-size: 1.65em;
  text-align: center;
  top: 0.775em;
  margin: 0 0 1.5em 0;
  text-transform: uppercase;
}

.major span {
  position: relative;
  display: inline-block;
  top: -0.775em;
  padding: 0 1.25em 0 1.25em;
  background: #f2f5f3;
}

.mission-statement,
.founding-principles {
  margin-bottom: 2rem;
}

.operations ul {
  list-style-type: none; /* remove default bullets */
  padding-left: 1em;
}

.operations ul li::marker {
  content: "\25B9 "; /* black right-pointing triangle */
  font-weight: bold;
}

.operations ul li {
  padding-left: 1rem;
}

.has-photo {
  display: flex;
  flex-direction: column;
}

.photo-text {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.photo-text img {
  max-width: 200px;
  display: block;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 12px;
}

.photo-text p {
  flex: 1;
  margin: 0;
}
