/* ----------------------------------------
   Background Container
----------------------------------------- */
.background-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background-image: url(../images/resource1.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 60vh;
}

/* ----------------------------------------
   Hero Banner Section
----------------------------------------- */
.hero-banner {
  position: relative;
  width: 100%;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: none;
}

.hero-overlay {
  position: absolute;
  top: 1px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
  z-index: 10;
}

.breadcrumb {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  opacity: 0.8;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: capitalize;
  margin: 0;
}

section.hero-banner + .about-us {
  margin-top: 20px;
}

.animate-left,
.animate-right {
  opacity: 0;
}

.animate-now.animate-left {
  animation: slideInLeft 1s ease-out forwards;
}

.animate-now.animate-right {
  animation: slideInRight 1s ease-out forwards;
}


/* ----------------------------------------
   Hero Resource Banner
----------------------------------------- */
.hero-resource-banner {
  width: 100%;
  margin-top: 100px;
  margin-bottom: 80px;
}

.hero-resource-banner h1 {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  padding-bottom: 40px;
}

.red-text {
  color: rgb(205, 21, 21);
}

.hero-resource-banner p {
  text-align: center;
  font-size: 20px;
}

/* ----------------------------------------
   Resources Grid
----------------------------------------- */
.resource-container {
  background-color: rgb(240, 240, 240);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  padding: 20px;
  gap: 40px;
  margin: 0 60px;
}

/* ----------------------------------------
   Individual Resource Section
----------------------------------------- */
.resource-section {
  background: white;
  padding: 20px;
  margin-left: 20px;
  width: 100%;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.resource-section h2 {
  font-size: 18px;
  font-weight: bold;
  padding: 20px;
  margin-left: 20px;
}

.resource-section p {
  padding: 40px;
  line-height: 1.6;
}

/* ----------------------------------------
   Resource Cards
----------------------------------------- */
.resource-cards {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.card {
  background: white;
  width: 100%;
  height: 400px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  transition: transform 0.3s ease;
}

.card h3 {
  padding: 20px;
  font-weight: bold;
}

.card.hover-effect {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.card img:hover {
  transform: scale(1.05);
}

/* ----------------------------------------
   Buttons
----------------------------------------- */
.btn {
  display: inline-block;
  padding: 10px 15px;
  margin-top: 10px;
  background: #D02B2F;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s ease;
}

.btn:hover {
  background: #7e1b1d;
}

/* ----------------------------------------
   Call to Action Section
----------------------------------------- */
.cta {
  background: white;
  color: black;
  padding: 30px 20px;
  margin: 80px 0;
  text-align: center;
}

.cta h2 {
  font-size: 32px;
  font-weight: bold;
  padding-top: 20px;
  padding-bottom: 40px;
}

.cta p {
  font-size: 20px;
  padding-bottom: 40px;
}

.cta-buttons {
  margin-top: 10px;
}

.cta .btn {
  background: #D02B2F;
  color: white;
  margin: 10px;
}

.cta .btn:hover {
  background: #7e1b1d;
}

/* ----------------------------------------
   Back to Top Button
----------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background-color: #c40000;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  display: none;
  z-index: 1000;
}

/* ----------------------------------------
   Responsive Design: Media Queries
----------------------------------------- */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-left {
  animation: slideInLeft 1s ease-out forwards;
}

.animate-right {
  animation: slideInRight 1s ease-out forwards;
}


@media (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: 1fr;
    margin: 0 30px;
  }

  .resource-section {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    height: 200px;
  }

  .breadcrumb {
    font-size: 0.9rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .hero-resource-banner h1 {
    font-size: 26px;
  }

  .hero-resource-banner p {
    font-size: 18px;
  }

  .resources-grid {
    gap: 20px;
    margin: 0 15px;
  }

  .resource-section h2 {
    font-size: 16px;
    padding: 10px;
    margin-left: 10px;
  }

  .resource-section p {
    padding: 20px;
  }

  .cta h2 {
    font-size: 26px;
  }

  .cta p {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero-resource-banner h1 {
    font-size: 22px;
  }

  .hero-resource-banner p {
    font-size: 16px;
  }

  .cta h2 {
    font-size: 22px;
  }

  .cta p {
    font-size: 16px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}