     @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
    /* 1. Prevent the whole page from leaking out */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Playfair Display', serif;
} 
    .red4{
      background-color: rgb(200, 7, 7);
      color: #e7e6e6;
      padding: 35px 50px;
      font-size: 16px;
      font-family: 'Playfair Display', serif;
      font-weight: 100;
      margin-top: 60px;
      text-align: center;
    }
    .body{
    margin-left: 0;
    margin-right: 0;
    margin-top: 0px;
    padding: 0;
    top: 0;
    left: 0;
    font-family: "Playfair Display", serif;
    }
.nav-holder{
    display: flex;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-left: 50px;
    margin-right: 50px;
    top: 0;
    background-color: transparent;
    z-index: 100;
    transition: background-color 0.3s ease;
}
.nav-holder a{
    text-decoration: none;
    color: #000;
    font-family: 'Playfair Display', serif;
}
.nav-holder a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    animation: slideUnderline 0.3s ease-out;
}
.Owner{
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
}
.Owner a:hover{
    color: rgb(200, 7, 7);
}
.work{
    font-size: 15px;
    font-weight: 100;
    font-style: italic;
    color: #000;
    margin: 0 0 15px 0;
    text-align: left;
}
.middle-links{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    margin-right: 20px;
    font-family: 'Playfair Display', serif;
  font-size: 20px;
    font-weight: 500;
}
.middle-links a:hover{
      text-decoration: underline;
      color: rgb(200, 7, 7);
      text-decoration-thickness: 2px;
      text-underline-offset: 5px;
      animation: slideUnderline 0.3s ease-out;
    }
    @keyframes slideUnderline {
      from { text-underline-offset: 0; }
      to { text-underline-offset: 5px; }
    }
    
    @media (min-width: 997px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0px;
        border-radius: 0;
        margin-right: 20px;
    }
    }
.dropdown-menu a{
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}
.dropdown-menu a:hover{
    color: rgb(200, 7, 7);
    text-decoration: underline;
        }


.dropdown-item {
    color: #000; 
    text-decoration: none;
    display: block;
    font-family: 'Playfair Display', serif;
    padding: 10px;
    width: 20px;
    gap: -40px;
    margin-right: 30px;
}

.dropdown-item:hover {
    color: rgb(200, 7, 7);
    text-decoration: underline;
    background: none;
}
.social-links {
    display: flex;
    align-items: center;
}
.social-links a{
    margin-left: 15px;
    margin-right: 15px;
}
.social-links a svg{
    color: #000;
    width: 24px;
    height: 24px;
    fill: #000;
}
.social-links a:hover svg path{
    fill: rgb(200, 7, 7);
}
.footer-social {
    display: flex;
    justify-content: center;
}
.page-holder{
    margin: 30px 0;
    padding: 20px 50px;
}
.page-holder p{
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}
@media only screen and (max-width: 768px) {
    .page-holder {
        padding: 20px 15px;
        margin: 15px 0;
    }
}
.topic{
    margin-top: 50px;
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 100;
    color: rgb(200, 7, 7);
}
.subtopic{
    margin-top: 30px;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    font-weight: 400;
    color: #000000;
}
.books{
    margin-top: 30px;
    margin-bottom: 50px;
    grid-row: 3;
    column-gap: 20px;
    gap: 10px;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.books img{
    width: 100%;
    max-width: 300px;
    border: 2px solid black;
    transition: transform 0.3s ease;
}
.books img:hover{
    transform: scale(1.05);
}

/* --- HAMBURGER STYLING --- */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;   
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #000;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}
.hamburger span:hover{
  background-color: rgb(200, 7, 7);
}

.searchbar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.searchbar form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.searchbar input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-family: 'Playfair Display', serif;
}

.searchbar button {
    padding: 10px 20px;
    background-color: rgba(0,0,0,0.2);
    color: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
}

.searchbar button:hover {
    background-color: rgba(255,255,255,0.2);
}

.copyright {
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
    color: #c6c5c5;
}

.location {
    text-align: center;
    font-size: 14px;
    margin: 10px 0;
    color: #c6c5c5;
}

  .social-links2 svg{ display: none;}
  .middle-links3{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #fff;
    margin-bottom: 20px;
  }
  .middle-links3 a{
    color: #fff;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
  }
  .middle-links3 a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
  }
  .middle-links3 .dropdown-item{
    color: #000;
  }
  .copyright{
    text-align: center;
    font-size: 16px;
    font-family: 'Playfair Display', serif;
    font-weight: 100;
    color: #c6c5c5;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .location{
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: #c6c5c5;
    margin-top: 10px;
    text-align: center;
  }
  .policies {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: #c6c5c5;
    margin-top: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
  }
  .policies a{
    color: #c6c5c5;
    text-decoration: none;
  }
  .policies a:hover{
    color: rgb(255, 255, 255);
    text-decoration: underline;
  }
  .policies hr {
    display: none;
  }
  .footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }
  .footer-social a svg {
    fill: #fff;
  }
  .footer-social a:hover svg {
    fill: #c6c5c5;
  }
  .with{
    display: block;
  }

@media only screen and (max-width: 768px) {
  .body{
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-holder{
    margin: 15px 5px;
    padding: 10px;
  }
  .topic{
    font-size: 24px;
    margin-top: 20px;
  }
  .subtopic{
    font-size: 18px;
  }
  .books{
    gap: 15px;
  }
}

@media only screen and (max-width: 996px) {
  body{
    width: 100%;

  }
  .body{
    align-items: center;
    padding: 0;
    top: 0;
    left: 0;
    font-family: "Playfair Display", serif;
  }
      .Owner{
      line-height: 20px;
      font-size: 16px;
      font-weight: 400;
      color: #000;
    }

    .hamburger { 
      display: block;
      position: relative;
      padding: 0;
      margin-top: 25px;
      width: 30px;
      font-weight: 900;
      line-height: 10px;
      align-items: end;
      text-align: end;
      justify-items: end;
      justify-content: end;
    }
    .hamburger span{
      background-color: #000;

    }
    .hamburger span:hover{
      background-color:  rgb(200, 7, 7);

    }
    /* Top bar: rotate 45 degrees */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    /* Middle bar: fade out */
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    /* Bottom bar: rotate -45 degrees */
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .middle-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        color: #000;
        line-break: strict;
        background: #fff;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 0;
        z-index: 999;
    }
    .middle-links a{
      text-decoration: none;
      color: #000000;
      font-family: 'Playfair Display', serif;
      font-size: 20px;
    }
    .middle-links.active { display: flex; }
    .middle-links .dropdown-menu,
    .middle-links3 .dropdown-menu {
      position: static;
      float: none;
      transform: none;
      border: none;
      background: transparent;
      box-shadow: none;
      margin: 5px 0 0;
      padding: 0;
    }
    .middle-links .dropdown-menu.show,
    .middle-links3 .dropdown-menu.show {
      display: block;
    }
    .middle-links3 {
      flex-direction: column;
      align-items: center;
      gap: 10px;
      width: 100%;
      text-align: center;
    }
    .middle-links3 hr {
      display: none;
    }
    .middle-links3 .nav-item {
      width: 100%;
      text-align: center;
    }
    .dropdown-item a{
      color: #000;
    }
.dropdown-menu a{
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}
.dropdown-menu a:hover{
    color: rgb(200, 7, 7);
    text-decoration: underline;
        }

.dropdown-item {
    color: #000; 
    text-decoration: none;
    display: block;
    font-family: 'Playfair Display', serif;
    padding: 10px;
    width: 20px;
    margin-right: 30px;
}

.dropdown-item:hover {
    color: rgb(200, 7, 7);
    text-decoration: underline;
    background: none;
}


    .social-links{ display: flex; justify-content: center; flex-wrap: wrap; }
    .social-links a{ margin-left: 3px; margin-right: 3px; }
    .social-links svg{ display: inline-flex; width: 16px; height: 16px; }
    .social-links2{ display: flex; justify-content: center; flex-wrap: wrap; }
    .social-links2 a{ margin-left: 5px; margin-right: 5px; }
    .social-links2 svg{ display: inline-flex;
      top: 0;
      padding: 0;
      width: 30px;
      align-items:center;
      justify-content: center;
      margin-bottom: 20px;

    }
    .work{
      margin-left: 50px;
      margin-top: -10px;
    }
    .page-holder{
      margin: 20px 10px;
      padding: 15px;
    }
    .page-holder p{
      font-size: 14px;
      line-height: 1.6;
    }
    .topic{
      font-size: 28px;
      margin-top: 30px;
    }
    .subtopic{
      font-size: 20px;
      margin-top: 20px;
      margin-bottom: 25px;
    }
    .books{
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }
    .books img{
      max-width: 100%;
      height: auto;
      display: block;
      margin-bottom: 20px;
    }
    .middle-links3 a{
      gap: 10px;
      columns: 6;
      display: block;
      color: #fff;
      font-family: 'Playfair Display', serif
    }
    .dropdown-menu .dropdown-item a{
      color: #000;
      text-decoration: none;
      font-family: 'Playfair Display', serif
    
    }
    .red4{
      display: block;
      width: 100%;
      padding: 20px;
      margin: 0;
      background: rgb(200, 7, 7);
      min-height: auto;
    }
    .copyright, .location, .policy{
      margin-top: 10px;
      font-size: 12px;
    }
  }

/* Phone screens */
@media only screen and (max-width: 480px) {
    .body {
        margin-left: 10px;
        margin-right: 10px;
    }
    .nav-holder {
        margin-left: 10px;
        margin-right: 10px;
        width: calc(100% - 20px);
    }
    .topic {
        font-size: 24px;
    }
    .subtopic {
        font-size: 16px;
    }
    .page-holder {
        padding: 10px;
        margin: 10px 5px;
    }
    .page-holder p {
        font-size: 13px;
    }
    .books img {
        max-width: 200px;
    }
    .red4 {
        padding: 20px 15px;
    }
    .red4 .middle-links3 {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    .red4 .middle-links3 a {
        font-size: 14px;
        display: block;
        padding: 5px 0;
    }
    .red4 .middle-links3 hr {
        display: none;
    }
    .red4 .copyright {
        font-size: 12px;
        margin-top: 15px;
    }
    .red4 .location {
        font-size: 11px;
    }
    .red4 .policies {
        flex-direction: column;
        gap: 8px;
    }
    .red4 .policies hr {
        display: none;
    }
    .red4 .footer-social {
        gap: 12px;
        margin-top: 15px;
    }
    .searchbar input {
        max-width: 150px;
    }
}

/* Very Large Screens - keep desktop-like design */
@media only screen and (min-width: 1400px) {
    html, body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .body {
        max-width: 1400px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .nav-holder {
        max-width: 1400px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 50px;
        padding-right: 50px;
        box-sizing: border-box;
    }
    .page-holder {
        padding: 30px 50px;
        margin: 40px auto;
        max-width: 1400px;
    }
    .page-holder p {
        font-size: 17px;
    }
    .topic {
        font-size: 48px;
    }
    .subtopic {
        font-size: 26px;
    }
    .books {
        gap: 30px;
        justify-content: center;
    }
    .books img {
        max-width: 320px;
    }
    .red4 {
        width: 100%;
        max-width: none;
        padding: 45px 60px;
    }
    .middle-links3 {
        max-width: 1400px;
        margin: 0 auto 20px auto;
    }
}

/* Ultra Wide Screens (1800px+) - same as desktop */
@media only screen and (min-width: 1800px) {
    .body {
        max-width: 1400px;
    }
    .nav-holder {
        max-width: 1400px;
    }
    .page-holder {
        max-width: 1400px;
    }
    .middle-links3 {
        max-width: 1400px;
    }
}