/* ===== HERO ===== */
.plain-hero {
  background: linear-gradient(135deg,#0b2c3d,#14506b);
  padding:60px 20px;
  text-align:center;
  color:white;
}
.plain-hero h1 {
  font-size:42px;
  font-weight:800;
}


/* ===== MAIN LAYOUT ===== */
.library-layout {
  display:flex;
  gap:40px;
  max-width:1400px;
  margin:60px auto;
  padding:0 20px;
}


/* ===== LEFT SIDEBAR ===== */
.library-sidebar {
  width:280px;
  background:white;
  padding:20px;
  border-radius:14px;
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
  height: fit-content;
  position:sticky;
  top:90px;
}

.library-sidebar h3 {
  font-size:20px;
  margin-bottom:16px;
}

.library-sidebar ul {
  list-style:none;
  padding:0;
}

.library-sidebar li {
  padding:12px 14px;
  cursor:pointer;
  border-radius:8px;
  font-size:16px;
  margin-bottom:6px;
  transition:0.25s;
}

.library-sidebar li:hover {
  background:#eff4f8;
}

.library-sidebar li.active {
  background:#14506b;
  color:white;
}


/* ===== RIGHT CONTENT ===== */
.library-content {
  flex:1;
}

/* SEARCH */
.search-wrap input {
  width:100%;
  padding:14px;
  font-size:17px;
  border-radius:10px;
  border:1px solid #d6dce2;
  margin-bottom:28px;
}


/* ===== NEW BOOKS HORIZONTAL SCROLL ===== */
.new-books-scroll {
  display:flex;
  gap:20px;
  overflow-x:auto;
  padding-bottom:10px;
  scroll-snap-type:x mandatory;
}

.new-books-scroll::-webkit-scrollbar { height:7px; }
.new-books-scroll::-webkit-scrollbar-thumb {
  background:#14506b;
  border-radius:6px;
}

.new-book {
  min-width:180px;
  background:white;
  border-radius:10px;
  padding:10px;
  box-shadow:0 3px 10px rgba(0,0,0,0.1);
  scroll-snap-align:start;
}
.new-book img {
  width:100%;
  border-radius:8px;
}
.new-book p {
  margin-top:8px;
  font-weight:600;
  font-size:15px;
}


/* ===== GRID ===== */
.library-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:25px;
  margin-top:25px;
}

.library-item {
  background:white;
  padding:18px;
  border-radius:12px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  transition:0.25s;
}
.library-item:hover {
  transform:translateY(-6px);
}
.library-item img {
  width:100%;
  border-radius:10px;
}

.actions {
  margin-top:12px;
  display:flex;
  justify-content:space-between;
}
.actions a {
  padding:8px 12px;
  border-radius:6px;
  color:white;
  font-size:14px;
}
.actions .view { background:#14506b; }
.actions .download { background:#0b2c3d; }


/* ===== RESPONSIVE ===== */
@media (max-width:900px) {
  .library-layout {
    flex-direction:column;
  }
  .library-sidebar {
    width:100%;
    position:relative;
    top:0;
  }
}
