/* Base color palette */
:root {
    --main-width: 75vw;
    --primary: #27c2d6;         /* Main accent color (buttons, highlights) */
    --secondary: #f8f4ef;       /* Light background */
    --text-dark: #5693a5;       /* Heading and button text */
    --fourth-color: #FFDDAE;      /* Subtext and labels */

    --custom-black: #191818; /* Custom black color */

    
  --bs-primary: var(--primary);
  --bs-secondary: var(--secondary);
  --bs-light: var(--secondary);
  --bs-dark: var(--text-dark);
  --bs-body-color: var(--text-dark);
  --bs-body-bg: var(--secondary);
  --bs-font-sans-serif: 'Open Sans', sans-serif;
}

  
  body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
  }
  
  .navbar {
    background-color: var(--primary);
    padding-top: 1rem;
    padding-bottom: 1rem;
    max-height: 87px; /* Thicker navbar */
    
  }
  
  .navbar-brand, .nav-link {
    color: #fff !important;
    font-size: 0.8rem;
  }

  /* 💠 Split name on small screens */
@media (max-width: 992px) {
  .navbar-brand span {
    display: block;
    line-height: 1.2;
    font-size: 0.9rem;
  }
}

/* 💠 Ensure navbar and brand stay clean on all screen sizes */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.navbar-brand span {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 36px;
  }

  .navbar-toggler {
    font-size: 0.8rem;
  }

  .navbar-nav {
    text-align: center;
    background-color: var(--primary);
    padding-bottom: 1rem;
  }

  .navbar-collapse {
    background-color: var(--primary);
  }
}

@media (max-width: 1383px) {
  .navbar-brand span {
    display: block;
    line-height: 1.2;
  }
}


  
  .carousel-item {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  
  .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
  }


  .about_lern_btn{
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    background: transparent;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .bg-light-section {
    background-color: #f8f9fa;
  }
  
  .logo-grid img {
    max-width: 100px;
    margin: 15px;
  }
  
  footer {
    background-color: var(--primary);
    color: white;
    padding: 40px 0;
  }
  
  .icon-box img {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
  }
  
  .container {
    max-width: var(--main-width);
  }
  
  .book-hero {
    background-color: var(--secondary);
    padding: 5rem 0;
  }
  
  .book-hero .row {
    align-items: center;
  }
  
  .book-hero .category {
    display: inline-block;
    background: var(--fourth-color);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .book-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
  }
  
  .book-hero p {
    font-size: 1.125rem;
    color: var(--fourth-color);
  }
  
  .book-hero .author {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  
  .book-hero .btn-primary {
    background-color: var(--primary);
    border: 2px solid var(--primary);
    color: #fff;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
  }
  
  .book-hero .btn-outline {
    
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    background: transparent;
  }
  
  .book-hero .book-img {
    text-align: center;
    animation: floatBook 4s ease-in-out infinite;
  }
  
  @keyframes floatBook {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  @media (max-width: 576px) {
    .carousel-caption {
      padding: 1rem;
      font-size: 0.9rem;
    }
    
  }
  
  @media (max-width: 768px) {
    
    .carousel-caption h1 {
      font-size: 1.5rem;
    }
    .book-hero h1 {
      font-size: 2rem;
    }
    .book-hero p {
      font-size: 1rem;
    }
  }
  


  /* 📘 FIX: About Book Section Layout Matching Design */
  .book-about {
    background-color: var(--secondary);
    padding: 4rem 0;
  }
  
  .book-about .book-image {
    max-width: 500px;
    margin: 0 auto;
    display: block;
  }
  
  .book-about .book-info-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    width: 90%;
    max-width: 420px;
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }
  
  .book-about .book-info-card .info-block {
    flex: 0 0 48%;
    text-align: left;
    margin-bottom: 1rem;
  }
  
  .book-about .book-info-card i {
    color: var(--accent);
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }
  
  .book-about .book-info-card .fw-bold {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
  }
  
  .book-about .book-meta span {
    margin-right: 1rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
  }
  
  .book-about h2 {
    font-weight: 700;
    font-size: 2.25rem;
    color: var(--text-dark);
  }
  
  .book-about ul li {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
  }
  
  .book-about ul li i {
    color: var(--accent);
    margin-right: 0.5rem;
  }
  
  .book-about .btn {
    background-color: var(--accent);
    color: white;
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
  }
  
  /* 🔁 Responsive Adjustments */
  @media (max-width: 768px) {
    .book-about .book-info-card {
      position: relative;
      bottom: 0;
      transform: none;
      margin-top: 1.5rem;
    }
    .book-about .book-image {
      max-width: 100%;
    }
  }

  .list-unstyled-btn {
    color: var(--text-dark);
  }
  
/* books slider */

  .top-books-slider img {
    border-radius: 10px;
    height: 220px;
    object-fit: cover;
  }
  
  .top-books-slider h5 {
    font-size: 1rem;
    color: var(--text-dark);
  }
  
  .swiper-pagination {
    margin-top: 1rem;
  }
  
  .top-books-slider .swiper {
    padding-bottom: 3rem;
  }
  


  .txt_class {
    width: 100vw;
    text-align: justify;
    padding: 1rem;
  
  }
  

  .d-1383-block{
    font-weight: 600;
    font-size: 1rem;
    text-shadow: -1px 3px 2px rgba(0, 0, 0, 0.74), 2px 1px 3px rgba(0, 0, 0, 0.43);
  }