
/* =========================
   GLOBAL LIBRARY PAGE STYLE
========================= */

body {
  background: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background: linear-gradient(45deg, #e00dd5, #2ce7c8);
}


.gradient-library {
color:white;
}


.discover-text{
  color: white;
  font-size: 16px;
  font-weight: 900;
}





/* =========================
   PAGE CONTAINER SPACING
========================= */

.container {
  max-width: 1200px;
}

/* =========================
   PAGE TITLE AREA
========================= */

h2 {
  font-weight: 800;
  margin-bottom: 5px;
  color: #1a1a1a;
}





/* =========================
   SEARCH BAR
========================= */

#searchInput {
  width: 100%;
  max-width: 500px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
  transition: 0.2s ease;
}

#searchInput:focus {
  border-color: #10b361;
  box-shadow: 0 0 0 3px rgba(16,179,97,0.15);
}

/* =========================
   FEATURED SECTION TITLE
========================= */

h5 {
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 10px;
  color:white;
}

/* =========================
   CATEGORY BAR (FILTERS)
========================= */

.category-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  background: #e9ecef;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.2s ease;
}

.cat-btn:hover {
  background: #dcdfe3;
}

.cat-btn.active {
  background: #10b361;
  color: white;
  font-weight: 600;
}

/* =========================
   BOOK GRID (MAIN LAYOUT)
========================= */

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 15px;
}

/* =========================
   BOOK CARD DESIGN
========================= */

.book-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  text-align: center;

  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  transition: 0.25s ease;

  position: relative;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* COVER IMAGE */
.book-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* TITLE */
.book-card h6 {
  font-size: 15px;
  font-weight: 700;
  margin: 5px 0;
}

/* AUTHOR */
.book-card small {
  color: #666;
  display: block;
}

/* CATEGORY TEXT */
.book-card p {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

/* =========================
   DOWNLOAD BUTTON
========================= */

.book-card .download-btn {
  display: block;
  margin: 8px auto 0;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.book-card .download-btn:hover {
  transform: scale(1.05);
}

/* =========================
   FEATURED BOOK STYLE
========================= */

.book-card.featured {
  border: 2px solid #ffd700;
}

.book-card.featured::before {
  content: "⭐ Featured";
  position: absolute;
  top: 10px;
  left: 10px;

  background: #ffd700;
  color: #000;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 12px;
  font-weight: bold;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablets */
@media (max-width: 768px) {
  .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #searchInput {
    width: 100%;
  }
}

/* Phones */
@media (max-width: 480px) {
  .library-grid {
    grid-template-columns: 1fr;
  }

  .category-bar {
    gap: 8px;
  }
}


.footer {
  background: #111;
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

/* FOOTER BACKGROUND */
.fort {
  background: linear-gradient(45deg, rgb(140, 0, 255), #0da6ff);
   background-attachment: fixed;
  padding-top: 20px;
  padding-bottom: 20px;
  
}

/* PREVENT COLUMN STRETCHING */
.fort .row {
  align-items: flex-start;
}

/* COLUMN TEXT */
.fort .col {
  font-weight: 500;
  font-size: 15px;
  color: white;
}

/* HEADINGS */
.fort h3 {
    color: white;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

/* PARAGRAPH */
.parAbout {
  
  font-size: 20px;
  line-height: 1.6;
  max-width: 250px;
  margin-bottom: 8px;
  color: white;
}

/* LIST STYLE (SCOPED TO FOOTER ONLY) */
.fort ul {
  margin: 0;
  padding: 0;
}

.fort ul li {
  list-style: none;
  color: white;
  margin-bottom: 6px;
  transition: 0.3s;
}

/* LINK STYLE */
.opts a {
  color: white;
  text-decoration: none;
}

/* LINK HOVER */
.opts ul li:hover {
  text-decoration: underline;
  transform: translateX(5px);
}

/* SMALL ICONS */
.fa-arrow-right {
  font-size: 14px;
  margin-right: 5px;
}

/* SOCIAL CONTAINER */
.social {
  display: flex;
  gap: 12px;
  padding-left: 10px;
}

/* SOCIAL ICONS */
.social i {
  font-size: 22px;
  transition: 0.3s ease;
  display: inline-block;
  color: white;
}

/* HOVER EFFECT */
.social i:hover {
  transform: scale(1.2);
}

/* INDIVIDUAL COLORS */
.fa-x-twitter:hover {
  color: #000;
}

.fa-facebook:hover {
  color: #1877f2;
}

.fa-instagram:hover {
  background: linear-gradient(
    45deg,
    #f58529,
    #dd2a7b,
    #8134af,
    #515bd4
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fa-youtube:hover {
  color: #ff0000;
}

.fa-tiktok:hover {
  color: #25f4ee;
}

/* ACTIVE CLICK EFFECT */
.social i:active {
  color: rgb(53, 245, 28);
}

.fa-square-phone{
  font-size: 28px;
}

/* DIVIDER LINE */
.footerhr {
  border: none;
  height: 1px;
  background:white;
  margin: 20px 0;
}

/* COPYRIGHT */
.copyright {
  text-align: center;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

/* COPYRIGHT ICONS */
.fa-heart {
  color: red;
  font-size: 14px;
}

.fa-circle {
  font-size: 10px;
}

.fa-circle-dot{
  font-size: 7px;
}

.icon-circle {
  width: 30px;              /* circle size */
  height: 30px;
  border-radius: 50%;       /* makes it a circle */
  background-color: orange; /* your background color */
  
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  
  font-size: 20px;          /* emoji size */
  color: white;             /* optional */
  
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* optional glow */
}

.fa-link{
    width: 30px;              /* circle size */
  height: 30px;
  border-radius: 50%;       /* makes it a circle */
  background-color: rgb(0, 140, 255); /* your background color */
  
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  
  font-size: 20px;          /* emoji size */
  color: white;             /* optional */
  
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* optional glow */
}

.fa-briefcase{
    width: 30px;              /* circle size */
  height: 30px;
  border-radius: 50%;       /* makes it a circle */
  background-color: rgb(223, 37, 213); /* your background color */
  
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  
  font-size: 20px;          /* emoji size */
  color: white;             /* optional */
  
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* optional glow */
}

.fa-globe{
   width: 30px;              /* circle size */
  height: 30px;
  border-radius: 50%;       /* makes it a circle */
  background-color: rgb(37, 223, 121); /* your background color */
  
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  
  font-size: 20px;          /* emoji size */
  color: white;             /* optional */
  
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* optional glow */

}

.phone{
    width: 30px;              /* circle size */
  height: 30px;
  border-radius: 50%;       /* makes it a circle */
  background-color: rgb(255, 255, 255); /* your background color */
  
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  
  font-size: 20px;          /* emoji size */
  color: white;             /* optional */
  
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* optional glow */
}

.style-phone{
    display: flex;
    gap: 0.5rem;
}

