body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

:root {
  --primary-color: #821928;
  --primary-hover: #214150;
  --card-bg: #ffffff;
  --bg-color: #f5f5f7;
  --text-color: #333;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}




h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}


.filter-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  animation: slideDown 0.6s ease-in-out;
}

.filter-btn {
  background-color: white;
  border: 2px solid #ddd;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pdf-grid {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.pdf-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-in-out forwards;
}

.pdf-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.pdf-thumbnail {
  height: 180px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pdf-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pdf-card:hover .pdf-thumbnail img {
  transform: scale(1.05);
}

.pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(79, 70, 229, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-card:hover .pdf-overlay {
  opacity: 1;
}

.pdf-content {
  padding: 1.5rem;
}

.pdf-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.pdf-description {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pdf-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.download-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
}

.download-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn.clicked {
  transform: translateY(2px);
  opacity: 0.8;
}

.download-btn i {
  font-size: 1.1rem;
}

.category-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Progress Bar Styles */
.progress-container {
  width: 100%;
  height: 8px;
  background-color: #ddd;
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
  display: none;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 0.02s linear;
}

.progress-container.active {
  display: block;
}

.progress-percentage {
  font-size: 0.875rem;
  color: var(--primary-color);
  text-align: center;
  margin-top: 0.25rem;
  display: none;
}

.progress-percentage.active {
  display: block;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

@keyframes slideDown {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body {
      padding: 1rem;
  }
  
  .pdf-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 1rem;
  }
  
  h1 {
      font-size: 2rem;
  }
}

/* Animation delay for cards */
.pdf-card:nth-child(1) { animation-delay: 0.1s; }
.pdf-card:nth-child(2) { animation-delay: 0.2s; }
.pdf-card:nth-child(3) { animation-delay: 0.3s; }
.pdf-card:nth-child(4) { animation-delay: 0.4s; }
.pdf-card:nth-child(5) { animation-delay: 0.5s; }
.pdf-card:nth-child(6) { animation-delay: 0.6s; }
.pdf-card:nth-child(7) { animation-delay: 0.7s; }
.pdf-card:nth-child(8) { animation-delay: 0.8s; }
.pdf-card:nth-child(9) { animation-delay: 0.9s; }
.pdf-card:nth-child(10) { animation-delay: 1.0s; }
.pdf-card:nth-child(11) { animation-delay: 1.1s; }
.pdf-card:nth-child(12) { animation-delay: 1.2s; }
.pdf-card:nth-child(13) { animation-delay: 1.3s; }
.pdf-card:nth-child(14) { animation-delay: 1.4s; }
.pdf-card:nth-child(15) { animation-delay: 1.5s; }



/* Footer Section Starts */

.footer {
  
    padding: 60px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
  }
  
  .footer-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .logo {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
  }
  
  .logo img {
    height: 70px;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
  }
  
  .footer-column {
    margin-bottom: 30px;
  }
  
  .footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    color: #821928;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .footer-column ul {
    list-style: none;
  }
  
  .footer-column ul li {
    margin-bottom: 12px;
    position: relative;
  }
  
  .footer-column ul li a {
    color: #222;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s ease;
  }
  
  .footer-column ul li a:hover {
    color: #214150;
  }
  
  /* Dropdown Styles */
  .ddropdown {
    position: relative;
  }
  
  .ddropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    color: #222;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .ddropdown-toggle .fa {
    font-size: 10px;
    color: #555;
    transition: transform 0.3s ease, color 0.2s ease;
  }
  
  .ddropdown:hover .ddropdown-toggle {
    color: #214150;
  }
  
  .ddropdown:hover .ddropdown-toggle .fa {
    transform: rotate(180deg);
    color: #214150;
  }
  
  .ddropdown-menu {
    display: none;
    position: relative;
    left: 0;
    background-color: #fff;
    min-width: 100%;
    border-radius: 6px;
    z-index: 10;
    padding: 8px 0;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  
  .ddropdown:hover .ddropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  
  .ddropdown-menu li {
    margin-bottom: 0;
    padding: 0;
  }
  
  .ddropdown-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  
  .ddropdown-menu li a:hover {
    background-color: #f5f9ff;
    color: #214150;
  }
  
  .newsletter {
    max-width: 400px;
  }
  
  .newsletter h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .newsletter-form {
    display: flex;
    position: relative;
    margin-bottom: 30px;
  }
  
  .newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    background-color: #f5f9ff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 0 20px rgba(0, 0, 0, 0.05);
  }
  
  .newsletter-input:focus {
    outline: none;
  }
  
  .newsletter-button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 0 24px;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .newsletter-button:hover {
    background-color: #333;
  }
  
  .contact-info {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }
  
  .contact-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .contact-column p {
    font-size: 15px;
    font-weight: 500;
    color: #111;
    margin-right: 50px;
  }
  
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
  }
  
  .copyright {
    color: #555;
    font-size: 14px;
  }
  
  .social-icons {
    display: flex;
    gap: 20px;
  }
  
  .social-icons a {
    color: #111;
    font-size: 18px;
    transition: color 0.2s ease;
  }
  
  .social-icons a:hover {
    color: #555;
  }
  
  @media (max-width: 992px) {
    .footer-content {
        gap: 40px;
    }
    
    .footer-column {
        flex: 0 0 calc(50% - 20px);
    }
    
    .newsletter {
        flex: 0 0 100%;
        max-width: 100%;
    }
  }
  
  @media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        flex: 0 0 100%;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
  
    .ddropdown-menu {
        position: static;
        background-color: #fafafa;
        min-width: 100%;
        border-radius: 4px;
        margin-top: 0;
        padding: 8px 0;
        opacity: 1;
        transform: none;
    }
  
    .ddropdown:hover .ddropdown-menu {
        display: block;
    }
  }
  
  /* Footer Section End's */