/* Reset and Base Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

h2, h3 {
  text-align: center;
}

/* Header */
.header-bar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #d6a9f5;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  width: 50px;
  border-radius: 10px;
  margin-right: 10px;
}

.site-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}
/* Center the search container */
.search-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  width: 100%;
}

/* Keep your existing search container style */
.search-container { 
  position: relative;
  display: flex;
  align-items: center;
  max-width: 300px;
  width: 100%;
}

/* Input field */
.search-bar {
  flex: 1;
  padding: 8px 36px 8px 10px;
  border: 1px solid rgb(73, 73, 255);
  border-radius: 6px;
  transition: all 0.3s ease;
  max-width: 300px;
  width: 100%;
}

/* Icon inside input */
.search-icon {
  position: absolute;
  right: 10px;
  width: 23px;
  height: 23px;
  pointer-events: none;
}

.search-bar:hover,
.search-bar:focus {
  border-color: #0015ff;
  box-shadow: 0 0 8px rgba(0, 21, 255, 0.627);
  outline: none;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-link {
  padding: 8px 16px;
  background-color: #3c00ff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  border: 2px solid #3c00ff;
}

.nav-link:hover {
  background-color: white;
  color: #3c00ff;
}
.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background-color: rgb(255, 0, 0);
  color: white;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 100%;
  font-weight: bold;
  display: none;
}

/* Product List */
.page-content {
  max-width: 1000px;
  margin: 60px auto 20px;
  padding: 0 0px;
  font-size: 16px;
  line-height: 1.7;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background-color: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.product-img {
  width: 100%;
  border-radius: 6px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.552);
}

.product-title {
  margin: 15px 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.product-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s ease;
  font-size: 13px;
  line-height: 1.4;
}

.product-card:hover .product-desc {
  max-height: 450px;
}

.price {
  font-weight: bold;
  margin: 10px 0;
}
.buy-now-container {
  text-align: center;
  margin-top: 30px;
}

.buy-now-container .buy-btn {
  background-color: #3c00ff;
  color: white;
  padding: 12px 20;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  width: 180px;        /* Decreased width */
  max-width: 100%;
}

.buy-btn {
  background-color: #3c00ff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: 0.3s;
  font-size: 18px;
  text-align: center;
}

.buy-btn:hover {
  background-color: #00cb0e;
}
/* Cart Items */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
  padding: 10px;
  border-radius: 12px;
  background-color: #f5f5f5;
  gap: 15px;
}

.cart-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.573);
}

.cart-details {
  flex: 1;
}

.title-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cart-title {
  font-weight: 600;
  font-size: 16px;
  color: #222;
}

.cart-price {
  font-weight: 500;
  font-size: 15px;
  color: #555;
  margin-left: 20px;
}

.remove-btn {
  background-color: #ff3c3c;
  border: none;
  color: white;
  font-size: 18px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.remove-btn:hover {
  background-color: #c60000;
}
.cart-item button:hover {
  background-color: #d32f2f;
  cursor: pointer;
}

.checkout-summary {
  text-align: center;
  font-size: 18px;
  margin-top: 30px;
}

/* Checkout Page */
.checkout-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.billing-form, .cart-summary {
  flex: 1 1 300px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.billing-form label {
  display: block;
  margin-bottom: 15px;
}

.billing-form input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 10px 20px;
  margin-bottom: 8px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.168);
  gap: 20px;
}

.cart-item img.product-image {
  width: 60px; /* Adjust the size of the image */
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.662);
}

/* Footer */
.footer {
  background-color: #f0f0f0;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
  width: 100%;  /* Ensure full width */
  box-sizing: border-box;  /* Prevent any overflow */
}

.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100px;
}

.feature-item img {
  width: 40px;
  margin-bottom: 10px;
}

.useful-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  font-weight: bold;
  font-size: 13px;
}

.useful-links a {
  text-decoration: none;
  color: #3c00ff;
}

.footer-bar {
  background-color: #d6a9f5;
  padding: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  position: fixed;  /* Make sure it's at the bottom */
  bottom: 0;  /* Stick to the bottom */
  left: 0;
  width: 100%;  /* Ensure it's full width */
  text-align: center;
  z-index: 1000;
}

a {
  text-decoration: none;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .nav-link, .search-bar {
    font-size: 14px;
    padding: 6px 12px;
  }
  .buy-btn {
    font-size: 14px;
    padding: 10px;
  }
  .product-card {
    padding: 15px;
  }
  .product-title {
    font-size: 16px;
  }
  .product-desc {
    font-size: 12px;
  }
  .page-content {
    font-size: 14px;
    padding: 15px;
  }
  .billing-form, .cart-summary {
    padding: 20px;
  }
}

/* About & Help Page Enhancements */
.page-content ul {
  padding-left: 20px;
  margin-top: 10px;
}

.page-content li {
  margin-bottom: 8px;
}

.page-content p {
  margin: 15px 0;
}

.page-content strong {
  font-weight: 600;
}
.page-content .faq-question {
  font-weight: bold;
  margin-top: 20px;
  text-align: center;
  font-size: 15px;
}

.checkout-btn {
  background-color: #3c00ff;
  color: white !important;  /* Ensures the text is visible */
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 200px;
  text-align: center;
  display: inline-block;
  text-decoration: none;   /* Prevent underline */
  transition: background-color 0.3s ease;
}

.checkout-btn:hover {
  background-color: #03c600;
  color: rgb(255, 255, 255);  /* Maintains white text on hover */
}
.info-card {
  background-color: white;
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-size: 16px;
  line-height: 1.8;
}

.info-card h2, .info-card h3 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 20px;
}

.info-card ul {
  padding-left: 20px;
  margin-top: 10px;
}

.info-card li {
  margin-bottom: 8px;
}
/* Force vertical scrollbar to always appear */
html {
  height: 100%; /* Full height */
  overflow-y: scroll !important; /* Force vertical scrollbar */
}

/* For Webkit browsers (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
  width: 8px !important; /* Slightly wider for better visibility */
}

::-webkit-scrollbar-track {
  background: #ffffff; /* Light track color */
}

::-webkit-scrollbar-thumb {
  background-color: violet !important; /* Violet color for thumb */
  border-radius: 10px; /* Rounded edges */
  border: 2px solid transparent; /* Transparent border */
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #ba55d3 !important; /* Darker violet on hover */
}

@media (max-width: 767px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .product-title {
    font-size: 12px; /* or 13px as needed */
  }
}
@media (max-width: 767px) {
  .product-list {
    gap: 5px;        /* Adjust spacing between cards */
    padding: 0px 0px; /* Reduce padding on mobile if needed */
  }
}
@media (max-width: 767px) {
  .product-desc {
    font-size: 11px; /* You can also try 12px or 11px */
    line-height: 1.4; /* Optional: makes it more compact */
  }
}
@media (max-width: 767px) {
  .header-inner {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
  }

  .logo-section {
    flex: 1 1 auto;
    margin-bottom: 5px;
     margin-left: -11px;
  }

  .search-bar {
    flex: 1 1 100%;
    order: 2;
    margin: 8px 0;
    max-width: 100%;
  }

  .nav-links {
    position: absolute;
    top: 20px;
    right: 15px;
    flex-direction: row;
    gap: 6px;
  }

  .nav-link {
    font-size: 11px;
    padding: 6px 10px;
  }
  /* ==== DONATION PAGE STYLES ==== */

}

/* Main content layout */
.main-content {
  padding: 20px;
  max-width: 700px;
  margin: auto;
}

/* Donate Card */
.donate-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  margin-bottom: 40px;
}

.donate-card h2 {
  color: #9000ff;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.donate-card img {
  max-width: 300px;
  width: 100%;
  border-radius: 8px;
}

/* Description Box */
.donate-description {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .main-content {
    padding: 15px;
  }

  .donate-card h2 {
    font-size: 1.4rem;
  }

  .donate-description {
    font-size: 0.95rem;
  }
}
.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.floating-hearts .heart {
  position: absolute;
  width: 20px;
  height: 20px;
  background: red;
  left: 50%;
  animation: floatHearts 6s linear infinite;
  transform: rotate(45deg);
}

.floating-hearts .heart::before,
.floating-hearts .heart::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: red;
  border-radius: 50%;
}

.floating-hearts .heart::before {
  top: -10px;
  left: 0;
}

.floating-hearts .heart::after {
  left: -10px;
  top: 0;
}

@keyframes floatHearts {
  0% {
    transform: translateY(100vh) rotate(45deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(45deg);
    opacity: 0;
  }
}

/* Random delay and positions */
.floating-hearts .heart:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.floating-hearts .heart:nth-child(2) {
  left: 25%;
  animation-delay: 2s;
  animation-duration: 7s;
}

.floating-hearts .heart:nth-child(3) {
  left: 40%;
  animation-delay: 4s;
  animation-duration: 5s;
}

.floating-hearts .heart:nth-child(4) {
  left: 60%;
  animation-delay: 1s;
  animation-duration: 6.5s;
}

.floating-hearts .heart:nth-child(5) {
  left: 75%;
  animation-delay: 3s;
  animation-duration: 7.5s;
}

.floating-hearts .heart:nth-child(6) {
  left: 90%;
  animation-delay: 5s;
  animation-duration: 6s;
}
/* Free Files Section */
#free-files {
  padding: 2rem 1rem;
  background-color: #f8f8f8;
}

#free-files .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.file-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s;
}

.file-card:hover {
  transform: translateY(-5px);
}

.file-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.525);
}

.file-card h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.download-btn {
  display: inline-block;
  background-color: rgb(9, 21, 255);
  color: white;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #e775fb;
}

/* Responsive Grid Columns */
@media (min-width: 1024px) {
  .file-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1023px) and (min-width: 600px) {
  .file-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .file-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.search-bar-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 2rem 0 1rem;
}

#searchFreeFiles {
  padding: 0.75rem 1.25rem;
  width: 100%;
  max-width: 300px;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* 🔵 Blue shadow on focus or hover */
#searchFreeFiles:focus,
#searchFreeFiles:hover {
  border-color: rgb(41, 41, 246);
  box-shadow: 0 0 10px rgba(41, 41, 246, 0.6);
}
