/* ================== GLOBAL ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f8f6f8;
  color: #333;
  overflow-x: hidden;
}


/* Category Bar */
.category-bar {
  background: linear-gradient(90deg, #ffffff, #f7f7f7);
  color: #333;
  border-top: 1px solid #e5e5e5;
}
.category-bar ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 10px 0;
  gap: 25px;
}
.category-bar a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s;
}
.category-bar a:hover {
  color: #193153;
  font-weight: 600;
}
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ================= Library Section ================= */
.library-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
  text-align: center;
}

.library-section h2 {
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.library-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

.library-card:hover {
  transform: translateY(-5px);
}

.library-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.library-info {
  padding: 15px;
}

.library-info h3 {
  margin-bottom: 5px;
  color: #4a148c;
}

.library-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.ratings {
  background: #4caf50;
  color: #fff;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 14px;
  margin: 8px 0;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button {
  flex: 1;
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s;
}

button.show {
  background: #43a047;
  color: #fff;
}

button.whatsapp {
  background: #25d366;
  color: #fff;
}

button.enquiry {
  background: #2196f3;
  color: #fff;
}

button:hover {
  opacity: 0.9;
}

/* ================= Footer ================= */
.new-footer {
  background: linear-gradient(135deg, #8c2f70, #d94f9c);
  color: #fff;
  padding: 60px 8% 30px;
  font-family: "Poppins", sans-serif;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 30px;
}

.footer-brand img {
  width: 60px;
  margin-bottom: 10px;
}

.footer-brand h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffd54f;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #fce4ec;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #ffd54f;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin: 8px 0;
}

.footer-links a {
  text-decoration: none;
  color: #fce4ec;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #ffd54f;
  padding-left: 5px;
}

.footer-contact li {
  font-size: 14px;
  color: #fce4ec;
}

.footer-social {
  margin-top: 12px;
}

.footer-social a {
  display: inline-block;
  margin-right: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px;
  border-radius: 50%;
  font-size: 15px;
  transition: 0.3s;
}

.footer-social a:hover {
  background: #ffd54f;
  color: #8c2f70;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #fce4ec;
}

.footer-bottom span {
  color: #ffd54f;
  font-weight: 600;
}

/* ================= Responsive ================= */

/* Tablets */
@media (max-width: 992px) {


  .library-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .library-card img {
    height: 160px;
  }
}

/* Mobiles */
@media (max-width: 768px) {

 
  .library-card img {
    height: 150px;
  }

  .footer-top {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .logo span {
    font-size: 18px;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .library-info h3 {
    font-size: 16px;
  }

  .buttons button {
    font-size: 12px;
    padding: 6px;
  }

  .footer-brand h2 {
    font-size: 18px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }
  .search-box {
    width: 80%;
  }}