
@import url('https://fonts.googleapis.com/css2?family=Bona+Nova:ital,wght@0,400;0,700;1,400&display=swap');

:root{
    --font: 'Bona Nova', sans-serif;
    --heading-color: #CC9600;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
    font-style: normal;
    line-height: normal;
    scroll-behavior: smooth;
}
header{
    height: 7.4rem;
    width: 100%;
    background: url("./assets/navbar.png") lightgray 50% / cover no-repeat;
}
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    padding-top: 1rem;
    width:100%;
}
.logo-container{
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo{
    height: 50px;
    width: auto;
}

.site-title{
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
}
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 0.1875rem;
    width: 1.5625rem;
    background: white;
    margin: 0.25rem 0;
    transition: 0.4s;
}

a{
    margin-top:2.3rem;
    text-align: center;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.025rem;
}
a:hover{
    color: #CC9600;
    transition: ease-in-out 0.5s;
}

.home-animate{
    background: url("./assets/open-book.gif") lightgray 50% / cover no-repeat;
    height: 50rem;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#home-animate-heading1{
    text-align: center;
    color: var(--heading-color);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    margin-top:-21rem;
    margin-block-end: 2.18rem;
}
#home-animate-heading2{
    color: #FFF;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.025rem;
    margin-block-end: 2.18rem;
}
#home-animate-search{
    width: 24.6rem;
    height: 3.18rem;
    border-radius: 0.625rem;
    border: 0.063rem solid var(--heading-color);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
#home-animate-search:hover{
    border: 0.125rem solid var(--heading-color);
}
#home-animate-search input{
    color: #A59F9F;
    border: none;
    background: none;
    font-size: 0.938rem;
    font-weight: 400;
}
#home-animate-search button{
    width: 8.68rem;
    height: 2.25rem;
    border-radius: 0.313rem;
    background: #4B330B;
    box-shadow: 0rem 0.25rem 0.25rem 0rem rgba(0, 0, 0, 0.25);
    border: none;
    color: #FFF;
    font-size: 1.125rem;
    font-weight: 400;
    margin-right: -7%;
}
#home-animate-search button:hover{
    background: #CC9600;
    transition: ease-in-out 1s;
}
.custom-heading1{
    font-size: 3rem; 
    font-weight: 700; 
    letter-spacing: 0.06rem; 
    text-align: center;
    margin-bottom: 2rem;
}
/* Slideshow container */
.slideshow-container {
  max-width: 62.5rem;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}
.mySlides img{
    height: 25rem;
    width: 20.6rem;
    object-fit: cover;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -1.375rem;
  padding: 1rem;
  color: white;
  font-weight: bold;
  font-size: 1.125rem;
  transition: 0.6s ease;
  border-radius: 0 0.18rem 0.18rem 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.text {
    color: #f2f2f2;
    font-size: 0.9375rem;
    padding: 0.5rem 0.75rem;
    position: absolute;
    bottom: 0.5rem;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
color: #f2f2f2;
font-size: 0.75rem;
padding: 0.5rem 0.75rem;
position: absolute;
top: 0;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 0.9375rem;
    width: 0.9375rem;
    margin: 0 0.125rem;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}


.home-content{
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    margin-top: 2rem;  /*change later*/
    height: 45rem;
}
.home-content-img{
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% / 2);
}
.home-content-img img{
    width: auto;
    height: auto;
}

.home-content-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    padding: 1rem;
    gap: 2rem;
    width: calc(100% / 2);
}
heading1{
    color: #FFF;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 3.375rem;
    t{
        color: var(--heading-color);
    } 
}
p{
    margin-top: 0.375rem;
    margin-bottom: 0.375rem;
    color: #FFF;
    text-align: justify;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.375rem;
}
.home-content-heading{
    margin-top: 0.375rem;
    display: flex;
    gap: 5.688rem;
}
.home-content-heading2{
    color: #CA891D;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.875rem;
    x{
        font-size: 1rem;
        font-weight: 400;
    }
}
.home-content-button{
    display: flex;
    justify-content: left;
    align-items: left;
    margin-top: 1.5rem;
    button{
        width: 11.9375rem;
        height: 2.6875rem;
        border: 1px solid #CA891D;
        border-radius: 0.313rem;
        background: none;
        color: #FFF;
        font-size: 0.9375rem;
        font-weight: 400;
        letter-spacing: 0.3px;
    }
    button:hover{
        background: #CA891D;
        transition: ease-in-out 1s;
    }
}

.shop{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    /* height: 8rem; */
}

.shop-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
    color: var(--heading-color);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.96px;
}


.filter-options {
    display: flex;
    margin-top: 2rem;
    gap: 2rem;
    font-size: 1rem;
    font-weight: bold;
}

.custom-checkbox input {
    display: none;
}

/* Custom label styling */
.custom-checkbox {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Glow effect when checked */
.custom-checkbox input:checked + span {
    background-color: #ffcc00; /* Change to glowing yellow */
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
    border-radius: 6px;
    padding: 6px 10px;
}

.shop-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: center;
    width: 100%;
    gap: 1.5rem;
    padding: 1rem;
}

.shop-book-card {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out, transform 0.2s ease-in-out;
    padding: 1rem;
    font-weight: 400;
}
.tag {
    position: absolute;
    top: -30px; /* hidden */
    left: 10px;
    background: #ff4d00;
    color: white;
    padding: 5px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    transform: rotate(-10deg);
    transition: top 0.3s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.shop-book-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}
.shop-book-card:hover .tag{
    top: 10px;
}

.shop-book-card img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease-in-out;
}

.shop-book-card:hover img {
    transform: scale(1.05);
}

.shop-book-card h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.shop-book-card .author {
    color: #4b5563;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.shop-book-card .price {
    color: #1a1a1a;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.shop-book-card .availability {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.75rem;
    background: #ffcc00;
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.add-to-cart:hover {
    background: #ffb300;
}

.add-to-cart:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-book-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .shop-book-card img {
        height: 14rem;
    }
}
.about-class{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 2rem;
    width: 100%;
    position: relative;
    background-color: #000;
    .image-container{
        width: 99vw;
        height: 35.75rem;
        /* overflow: hidden; */
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

.container {
    width: 90%;
    margin: auto;
    padding: 2rem 0;
    column-gap: 2rem;
}
h1{
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.625rem; 
    letter-spacing: 0.6px;
    color: #CC9600;
}
h2{
    margin-top: 1rem;
    color: #CC9600;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.625rem; 
    letter-spacing: 0.48px;
}
.branches {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 2rem;
}
.branch{
    padding: 1rem;
    width: 30%;
    text-align: center;
}
.branch:hover{
    border-radius: 5%;
    background-color: #1a1a1a;
    transition: ease-in-out 1s;
}
.branch h3 {
    color: #FCEE59;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.625rem; 
    letter-spacing: 0.48px;
}
.branch p {
    color: #D6CE80;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.625rem;
    letter-spacing: 0.34px;
}
.commitment {
    margin-top: 3rem;
    color: #CC9600;
}
.commitment p {
    margin-top: 1rem;
    color: #FFF;
    text-align: justify;
}

.categories {
    text-align: center;
    margin: 2rem;
}

.scroller {
    max-width: 100%;
}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.scroller__inner img {
    /* width: 100%; */
    height: 300px; 
    object-fit: cover;
    border-radius: 0.25rem;
    transition: transform 0.3s ease-in-out;
}
.scroller__inner img:hover {
    /* width: 100%; */
    height: 300px; 
    object-fit: cover;
    border-radius: 0.25rem;
    transition: transform 0.3s ease-in-out;
    transform: scale(1.1);
}
.scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg,transparent,white 20%,white 80%,transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s)
        var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
    --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 60s;
}

@keyframes scroll { 
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

.category-container {
    display: flex;
    justify-content: space-around;
    margin-top: 5rem;
    margin-bottom: 3rem;
}
.category {
    width: 18%;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}
.category img {
    width: 100%;
    transition: transform 0.3s ease-in-out;
}
.category:hover img {
    transform: scale(1.1);
}
.category-title {
    position: absolute;
    bottom: 0.625rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #FCEE59;
    padding: 0.3125rem 0.625rem;
    border-radius: 5px;
}

.contact-us{
    display: flex;
    width: 100%;
    height: 80vh;
    background-color: #000;
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}
.contact-us-container{
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.iframe-container{
    /* position: relative; */
    width: 48%;
    height: 100%;
}
.iframe-container iframe{
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
}
.contact-us-details{
    width: 48%;
    height: auto;
    background: rgba(255, 255, 255,0.1);
    color: #FFF;
    font-size: large;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(255,215,0,0.2);
}
form{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}
form input,textarea{
    padding: 1rem;
    border: 1px solid #CC9600;
    border-radius: 5px;
    background: none;
    color: #fff;
    font-size: large;
    resize: none;
    width: 100%;
}
form input:focus, textarea:focus{
    outline: 2px solid gold;
}
form button{
    width: 50%;
    border: 1px solid #CC9600;
    border-radius: 5px;
    padding: 0.7rem;
    background: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: auto;
    transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
}
form button:hover{
    background: #CC9600;
    color: #fff;
}
@media (max-width:768px){
    .contact-us-container{
        flex-direction: column;
        height: auto;
    }
    .iframe-container, .contact-us-details{
        width: 100%;
    }
}

.footer{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    justify-content: space-around;
    align-items: center;
    background-color: #000;
    color: #FFF;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.4px;
    padding-top: 1rem;
    padding-bottom: 15rem;
}
.footer-logo{
    display: flex;
    gap: 1rem;
    position: relative;
    right: -45px;
}
.footer-logo heading{
    position: relative;
    right:-163px;
}
.footer-links{
    background-color: #000;
    height: 6.5rem;
    display: flex;
    flex-direction: column;
    width:fit-content;
    gap: 2rem;
    list-style-type: none;
    heading{
        position: relative;
        right:-174px;
    }
}
.blogs-links{
    position: relative;
    height: 6.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    list-style-type: none;
    li{
        gap: 1rem;
        cursor: pointer;
        position: relative;
        left:-11rem;
    }
}
.content{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 3rem;
}
.content li:hover{
    border-radius: 5%;
    background-color: #1a1a1a;
    transition: ease-in-out 1s;
    padding: 1rem;
}
.blog-img{
    object-fit: cover;
    border: none;
    img{
        max-width: 50%;
        max-height: 70%;
    }
}
.footer-social{
    padding-top: 5%;
    padding-left: 10%;
    list-style-type: none;
    display: flex;
    gap: 1rem;
}


@media (max-width: 1024px) {
    .book-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #333;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1;
    }

    .nav-links a {
        padding: 0.9375rem;
        text-align: center;
        color: black;
        width: 100%;
        display: block;
    }

    .hamburger {
        top: 2rem;
        display: flex;
    }
    heading{
        position: relative;
    }

    .nav-active {
        display: block;
        left: 0;
        top: 0;
        height: 100vh;
        width: 40%;
        background-color: white;
        color: black;
    }
}


@media (max-width: 640px) {
    .book-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}