/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
  }
  
  body {
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }
  h2 {
    line-height: 40px;
  }
  
/* ==============================
   NAVBAR
============================== */

.navbar {
    background: white;
    padding: 13px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  
  /* Logo */
  .logo img {
    height: 55px;
  }
  
  .logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #111;
  }
  
  /* Desktop Menu */
  .nav-menu {
    display: flex;
    gap: 30px;
  }
  
  .nav-link {
    color: #222;
    font-weight: 500;
    transition: 0.3s ease;
  }
  
  .nav-link:hover {
    color: #d90429;
  }
  
  .nav-link.active {
    color: #d90429;
  }
  
  /* Hamburger */
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
  }
  
  .hamburger span {
    width: 25px;
    height: 3px;
    background: #222;
    transition: 0.3s ease;
  }
  
  /* ==============================
     MOBILE
  ============================== */
  
  @media (max-width: 768px) {
  
    .hamburger {
      display: flex;
    }
  
    .nav-menu {
      position: absolute;
      top: 70px;
      right: 0;
      width: 220px;
      background: white;
      flex-direction: column;
      align-items: flex-start;
      padding: 20px;
      gap: 20px;
      border: 1px solid #eee;
      border-radius: 8px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  
      display: none; /* hidden by default */
    }
  
    .nav-menu.active {
      display: flex; /* show only when active */
    }
  
  }
  
  /* ===== HERO ===== */
 /* =========================
   HERO SECTION
========================= */

/* Default hero (for other pages) */
.hero {
    width: 100%;
    height: 45vh; /* smaller for other pages */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
  }
  
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
  }
  
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 50px;
  }
  
  .hero p {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  /* Home page hero (full screen) */
  .hero-home {
    height: 100vh;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .hero {
      height: 40vh;
    }
  
    .hero-home {
      height: 80vh;
    }
  
    .hero h1 {
      font-size: 2rem;
    }
  }

  /* =========================
   EXPLORE BUTTON (HOME)
========================= */

.btn-explore {
    margin-top: 15px;
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, #d90429, #ef233c);
    color: white;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(217, 4, 41, 0.25);
  }
  
  .btn-explore:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(217, 4, 41, 0.35);
    background: linear-gradient(135deg, #ef233c, #d90429);
  }
  
  .btn-explore:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(217, 4, 41, 0.25);
  }
  
  
  /* ===== SECTION ===== */
  .section {
    padding: 60px 0;
  }
  
  .section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #e60000;
  }
  
  /* ===== BOOK GRID ===== */
  .book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .book-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
  }
  
  .book-card:hover {
    transform: translateY(-5px);
  }
  
  .book-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
  
  .book-card-content {
    padding: 20px;
  }
  
  .book-card-content h3 {
    margin-bottom: 10px;
  }
  
  .book-card-content p {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .btn {
    display: inline-block;
    padding: 10px 18px;
    background: #e60000;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s;
  }
  
  .btn:hover {
    background: #cc0000;
  }
  
  /* ===== BOOK DETAIL ===== */
  .book-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
  }
  
  .book-detail img {
    width: 100%;
    border-radius: 10px;
  }
  
  .book-info h2 {
    margin-bottom: 15px;
  }
  
  .book-info p {
    margin-bottom: 15px;
  }
  
  /* ===== ABOUT ===== */
  .about-content {
    max-width: 800px;
    margin: auto;
    text-align: center;
  }
  
  /* ===== CONTACT ===== */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .contact-info p {
    margin-bottom: 15px;
  }
  
  iframe {
    width: 100%;
    border-radius: 10px;
  }
  
  /* ===== FOOTER ===== */
  footer {
    background: #111;
    color: #ddd;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
  }
  
  footer p {
    font-size: 14px;
  }
  
  /* ===== RESPONSIVE ===== */
  @media(max-width: 768px) {
  
    nav ul {
      gap: 15px;
    }
  
    .hero h1 {
      font-size: 28px;
    }
  
    .book-detail {
      grid-template-columns: 1fr;
    }
  
    .contact-grid {
      grid-template-columns: 1fr;
    }
  
  }

  /* ===== CONTACT ENHANCED ===== */

.contact-info h3 {
    margin-top: 20px;
    color: #e60000;
  }
  
  .contact-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  .contact-form button {
    width: 100%;
  }
  
  .social-links a {
    display: inline-block;
    margin-right: 15px;
    color: #e60000;
    font-weight: 500;
  }
  
  /* ===== BOOK DETAIL ENHANCED ===== */
  
  .book-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .book-gallery img {
    width: 100%;
    border-radius: 10px;
  }
  
  .book-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  
  .book-thumbnails img {
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
  }
  
  .book-thumbnails img:hover {
    transform: scale(1.05);
  }
  
  .book-meta {
    margin: 20px 0;
  }
  
  .book-meta p {
    margin-bottom: 8px;
    font-size: 14px;
  }
  
  @media(max-width:768px){
    .book-thumbnails {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* NAVBAR */

.navbar{
    background:white;
    padding:15px 0;
    border-bottom:1px solid #eee;
  }
  
  .nav-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:relative;
  }
  
  .logo img{
    height:45px;
  }
  
  /* Desktop Menu */
  
  .nav-menu{
    display:flex;
    gap:30px;
  }
  
  .nav-menu a{
    text-decoration:none;
    color:#222;
    font-weight:500;
  }
  
  .nav-menu a:hover{
    color:#d90429;
  }
  
  /* Hamburger */
  
  .hamburger{
    display:none;
    font-size:28px;
    cursor:pointer;
  }
  
  /* MOBILE */
  
  @media (max-width:768px){
  
    .hamburger{
      display:block;
    }
  
    .nav-menu{
      position:absolute;
      top:70px;
      right:0;
      background:white;
      width:220px;
      flex-direction:column;
      gap:20px;
      padding:20px;
      border:1px solid #eee;
      box-shadow:0 8px 20px rgba(0,0,0,0.08);
  
      display:none;
    }
  
    .nav-menu.show{
      display:flex;
    }
  
  }