
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #f2f2f2;
  background-color: #0d0d0d;
}

a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: #b22222; /* red on hover */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.hero {
  background: url('assets/library_hero.png') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}
.overlay {
  background-color: rgba(0, 0, 0, 0.75);
  padding: 40px;
  max-width: 800px;
}
.hero img {
  max-width: 100%;
  height: auto;
}
.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.buttons .btn {
  padding: 12px 20px;
  margin: 5px;
  border: none;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}
.btn.primary {
  background-color: #b22222;
  color: white;
}
.btn.secondary {
  background-color: #333;
  color: white;
  border: 1px solid #fff;
}
.btn:hover {
  opacity: 0.8;
  cursor: pointer;
}


.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px; /* spacing between text and image */
  align-items: flex-start;
  justify-content: space-between;
}

.about .text {
  flex: 1 1 55%;
}

.about .image {
  flex: 1 1 40%;
}

.about .image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.about h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
}
.about p {
  margin: 20px 0;
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background-color: #1c1c1c;
  padding: 5px;
  border-left: 4px solid #b22222;
  font-weight: bold;
  font-size: 1.4rem;
}

/* Responsive YouTube Embed with Glow */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 100%;
  box-shadow: 0 0 20px #b22222; /* red glow */
  border: 2px solid #b22222;
  border-radius: 10px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.updates {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 60px 10%;
  background-color: #151515;
}
.updates .column {
  flex: 1;
  min-width: 250px;
  margin: 10px;
}
.updates h2 {
  font-family: 'Oswald', sans-serif;
  margin-bottom: 20px;
}
.updates ul {
  list-style: none;
  padding-left: 0;
}
.updates li {
  margin-bottom: 10px;
}
.updates li a {
  color: #fff;
  text-decoration: underline;
}
.updates li a:hover {
  color: #b22222;
}


footer {
  text-align: center;
  padding: 20px;
  background-color: #0a0a0a;
  font-size: 0.9rem;
  color: #999;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 1000px;
  height: 70vh;
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.social-icons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.social-icons .icon {
  font-size: 2rem;
  color: white;
  transition: color 0.3s ease;
}

.social-icons .icon:hover {
  color: #b22222;
}


@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .buttons .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }

  .about,
  .updates {
    flex-direction: column;
    padding: 30px 5%;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
