/* ================= RESET & BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f8f6f8;
  color: #333;
  line-height: 1.6;
}

/* 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: 25px;
  color: #333;
  font-size: 24px;
  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, box-shadow 0.3s;
  cursor: pointer;
}
.library-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.library-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.library-info {
  padding: 15px;
  text-align: left;
}

.library-info h3 {
  margin-bottom: 5px;
  color: #4a148c;
  font-size: 18px;
}
.library-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.rating {
  background: #4caf50;
  color: #fff;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 14px;
  margin: 8px 0;
}

/* ================= BUTTONS ================= */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
button {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s, transform 0.2s;
}
button:hover {
  transform: scale(1.03);
}
button.show {
  background: #43a047;
  color: #fff;
}
button.whatsapp {
  background: #25d366;
  color: #fff;
}
button.enquiry {
  background: #2196f3;
  color: #fff;
}

/* ================= 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 DESIGN ================= */

/* Medium Devices (Tablets) */
@media (max-width: 992px) {


  .library-card img {
    height: 180px;
  }
}

/* Small Devices (Mobile) */
@media (max-width: 768px) {
 

  .library-grid {
    grid-template-columns: 1fr;
  }

  .library-card img {
    height: 160px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .logo span {
    font-size: 18px;
  }

  .library-info h3 {
    font-size: 16px;
  }

  button {
    font-size: 12px;
    padding: 6px;
  }

  .footer-brand img {
    width: 45px;
  }

  .footer-brand h2 {
    font-size: 18px;
  }
}


@media (max-width: 900px) {
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }
  .search-box {
    width: 80%;
  }}