/* ==========================================================
   HOME PAGE - LIBRARY SECTION (index.php)
   ========================================================== */

.lb-section {
  --lb-navy: #1d2a5b;
  --lb-navy-2: #253993;
  --lb-rose: #ff1f59;
  --lb-ink: #283034;
  --lb-muted: #6b7680;
  --lb-line: #e6e9ef;
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: #fff;
}

/* soft tinted shapes behind the section */
.lb-section::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 57, 147, .07) 0, rgba(37, 57, 147, 0) 70%);
  pointer-events: none;
}

/* ---------- Text ---------- */
.lb-txt {
  position: relative;
  padding-right: 30px;
}

.lb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lb-rose);
  border-radius: 30px;
  background: #fff0f4;
}

.lb-title {
  position: relative;
  margin: 14px 0 6px;
  padding-bottom: 14px;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--lb-ink);
}

.lb-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--lb-navy-2), var(--lb-rose));
}

.lb-intro {
  margin: 16px 0 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lb-ink);
}

.lb-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lb-point {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid var(--lb-line);
  border-radius: 16px;
  background: #fff;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

/* gradient bar that grows along the top on hover */
.lb-point::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -1px;
  width: 36px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--lb-navy-2), var(--lb-rose));
  transition: width .35s;
}

.lb-point:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 18px 34px -20px rgba(29, 42, 91, .5);
}

.lb-point:hover::before {
  width: calc(100% - 40px);
}

.lb-point-no {
  display: block;
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--lb-navy-2);
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}

.lb-point:hover .lb-point-no {
  color: var(--lb-navy-2);
}

.lb-point p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--lb-muted);
}

.lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--lb-navy-2), var(--lb-rose));
  box-shadow: 0 12px 24px -12px rgba(255, 31, 89, .7);
  transition: transform .25s, box-shadow .25s;
}

.lb-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(255, 31, 89, .8);
}

.lb-btn i {
  transition: transform .25s;
}

.lb-btn:hover i {
  transform: translateX(4px);
}

/* ---------- Image ---------- */
.lb-visual {
  position: relative;
  max-width: 440px;
  margin: 0 0 0 auto;
  padding: 0 0 30px 30px;
}

/* offset gradient block behind the photo */
.lb-visual::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 78%;
  height: 78%;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--lb-navy-2), var(--lb-rose));
}

/* dotted pattern top-right */
.lb-visual::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -22px;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(rgba(37, 57, 147, .35) 2px, transparent 2px);
  background-size: 14px 14px;
  pointer-events: none;
}

.lb-photo {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 24px;
  box-shadow: 0 26px 50px -24px rgba(29, 42, 91, .6);
}

.lb-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 670 / 850;
  object-fit: cover;
  transition: transform .6s;
}

.lb-visual:hover .lb-photo img {
  transform: scale(1.04);
}

.lb-badge {
  position: absolute;
  z-index: 2;
  left: -10px;
  top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  font-size: .92rem;
  color: var(--lb-muted);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 34px -16px rgba(29, 42, 91, .5);
  animation: lb-float 4s ease-in-out infinite;
}

.lb-badge strong {
  color: var(--lb-ink);
}

.lb-badge-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 10px;
  background: var(--lb-rose);
}

@keyframes lb-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .lb-badge { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .lb-section { padding: 60px 0; }
  .lb-txt { padding-right: 0; margin-bottom: 50px; }
  .lb-visual { margin: 0 auto; }
}

@media (max-width: 575px) {
  .lb-points { grid-template-columns: 1fr; }
  .lb-title { font-size: 2.1rem; }
  .lb-visual::after { display: none; }
}
