/* ================================
   Background Container
=================================== */
.background-container {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background-image: url(../images/downloadables3.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;
}


/* ================================
   Downloadable Hero Section
=================================== */
.downloadable-hero {
  width: 100%;
  color: white;
  margin-top: 80px;
}

.downloadable-hero h1 {
  font-size: 32px;
  text-align: center;
  color: black;
  font-weight: bolder;
}

.downloadable-hero p {
  color: black;
  font-size: 20px;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 100px;
}

.highlight {
  color: #D02B2F;
}

/* ================================
   Search & Filters
=================================== */
.search-container {
  margin: 20px;
}

.search-container input {
  width: 30%;
  padding: 10px;
  margin-left: 100px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-container button {
  padding: 10px 20px;
  background-color: #D02B2F;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1em;
  border-radius: 5px;
  margin-bottom: 60px;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px;
}

.filter-btn {
  background-color: #ddd;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
}

.filter-btn.active {
  background-color: #D02B2F;
  color: white;
}

/* ================================
   Featured Downloads Section
=================================== */
.featured-download-section-container {
  background-color: rgb(240, 240, 240);
  padding-bottom: 40px;
}

.downloads {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  margin-bottom: 40px;
  align-items: center;
}

.downloads-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 40px;
  padding-bottom: 30px;
}

.red-dash {
  display: inline-block;
  width: 40px;
  height: 3px;
  background-color: #D02B2F;
}

.featured-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 40px;
}

/* Download Grid */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns */
  gap: 140px 30px; /* Space between items */
  margin-top: 30px;
}

/* Individual Download Card */
.download-card {
  position: relative;
  width: 100%; /* Adjust to fit in grid */
  height: 400px;
  overflow: visible;
}

/* Wraps the image & applies overflow hidden */
.download-card-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.download-card img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease-in-out; /* Smooth zoom effect */
}

/* Only the image swells on hover */
.download-card:hover .download-card-image img {
  transform: scale(1.1);
}

/* Overlapping Info Box */
.download-card-info {
  position: absolute;
  bottom: -80px;
  margin-left: -57px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  padding-bottom: 40px;
  border-radius: 0px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 10; /* Brings the text box in front */
}

.download-card-info h4 {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  gap: 20px; /* Space between the dash and text */
  padding-top: 10px;
  padding-left: 10px;
  margin-bottom: 20px;
  margin-left: 10px;
}

.download-card-info p {
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
  padding-left: 20px;
}

/* Download Button */
.download-btn {
  display: block;
  background: #D02B2F;
  color: white;
  padding: 10px 20px; /* Adjusted padding for smaller button */
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
  text-align: center;
  width: 150px; /* Smaller button width */
  margin-left: auto;
  margin-right: auto;
}

/* Hover effect for the download button */
.download-btn:hover {
  background-color: darkred;
}


/* Featured Downloadables Section */
/* Container Styling */
.downloads-section {
  margin-bottom: 100px;
}

.downloads-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Section Header */
.downloads-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 40px;
  padding-bottom: 30px;
}

.red-dash {
  display: inline-block;
  width: 40px;
  height: 3px;
  background-color: #D02B2F;
}

/* Featured Title */
.featured-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 80px;
}

/* Download Grid */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns */
  gap: 140px 30px; /* Space between items */
  margin-top: 30px;
}

/* Individual Download Item */
.download-item {
  position: relative;
  width: 100%; /* Adjust to fit two in a row */
  height: 400px;
  overflow: visible;
}

/* Wraps the image & applies overflow hidden */
.download-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.download-item img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease-in-out; /* Smooth zoom effect */
}

/* Only the image swells on hover */
.download-item:hover .download-image img {
  transform: scale(1.1);
}

/* Overlapping Info Box */
.download-info {
  position: absolute;
  bottom: -80px;
  margin-left: -57px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  padding-bottom: 40px;
  border-radius: 0px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 10; /* Brings the text box in front */
}

.download-info h4 {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  gap: 20px; /* Space between the dash and text */
  padding-top: 10px;
  padding-left: 10px;
  margin-bottom: 20px;
  margin-left: 10px;
}

.download-info p {
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
  padding-left: 20px;
}

/* Download Button */
.download-btn {
  display: block;
  background-color: #D02B2F;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  margin-top: 15px;
  margin-left: 100px;
  width: 50%;
}

.download-btn:hover {
  background-color: darkred;
}


/* ================================
   Call to Action Section
=================================== */
.cta {
  background: white;
  color: black;
  padding: 40px;
  margin: 120px 0;
  text-align: center;
}

.cta h2 {
  font-weight: bold;
  font-size: 32px;
  padding-bottom: 40px;
  color: black;
}

.cta p {
  font-size: 18px;
  padding-bottom: 40px;
}

.cta-btn {
  display: inline-block;
  background: #D02B2F;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  margin: 10px;
}

.cta-btn:hover {
  background: darkred;
}

/* ================================
   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) {
  .search-container input {
    width: 50%;
    margin-left: 50px;
  }

  .download-btn {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    height: 200px;
  }

  .breadcrumb {
    font-size: 0.9rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .search-container input {
    width: 80%;
    margin-left: 0;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .download-btn {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .downloadable-hero h1 {
    font-size: 24px;
  }

  .downloadable-hero p {
    font-size: 16px;
  }

  .download-card-info,
  .download-info {
    width: 90%;
  }

  .cta h2 {
    font-size: 24px;
  }

  .cta p {
    font-size: 16px;
  }
}