/* BASIC RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ───────── NAVBAR REDESIGN ───────── */
.navbar {
    width: 100%;
    height: 85px;
    background: #0d3255f8;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* NAVBAR SOCIAL ICONS (Left) */
.nav-social {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-social img {
    width: 42px;
    height: 42px;
    cursor: pointer;
    filter: drop-shadow(2px 3px 3px rgba(0,0,0,0.35)) saturate(2);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-social img:hover {
    transform: scale(1.12);
    filter: drop-shadow(3px 5px 5px rgba(0,0,0,0.45)) saturate(2);
}


/* ───── LOGO (Centered) ───── */
.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 62px;
    border-radius: 6px;
    transition: .3s ease;
    filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, 0.182)) brightness(1.1);
}
.nav-logo img:hover {
    transform: scale(1.1);
    transition: .3s ease;
    cursor: pointer;
}

.nav-logo span {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ───── RIGHT SECTION (Lang + Social Icons) ───── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* DROPDOWN */
.drop-btn {
    background: linear-gradient(
        -181deg,
        #0bb7d3 0%,
        #0d3255 100%
    );
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: .8px;
    width: 12rem;
    display: flex;
    justify-content: space-around;
}

.dropdown:hover .drop-btn {
    background: linear-gradient(
        135deg,
        #ffbf2a 0%,
        #ef5400 100%
    );
}

.lang-icon {
    width: 37px;
    height: 37px;
    object-fit: contain;
    filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.4)); /* x-offset, y-offset, blur, color */
    transition: filter 0.3s ease; /* smooth hover effect */
}

.lang-icon:hover {
    filter: drop-shadow(3px 6px 6px rgba(0, 0, 0, 0.574)); /* slightly stronger shadow on hover */
}


.arrow {
    margin-top: 4px;
    font-size: 20px;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    text-align: center;
    display: none;
    position: absolute;
    top: 101%;
    right: 0;
    background: #fff;
    min-width: 12rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    max-height: 15rem;
    overflow: auto;
}

.dropdown-content a {
    padding: 10px;
    color: #0d3255;
    display: block;
    text-decoration: none;
    font-weight: 500;
}

.dropdown-content a:hover {
    background: linear-gradient(
        135deg,
        #ffbf2a 0%,
        #ef5400 100%
    );
    color: #fff;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* HERO SECTION */
.hero {
    text-align: center;
    padding: 50px 20px;
    color: white; /* optional if image is dark */
    background-color: #0d3255f8;
    image-rendering: crisp-edges;   /* prevents smoothing */
    image-rendering: -webkit-optimize-contrast; /* Safari/WebKit enhancement */
    height: 13rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #444;
    color: white; /* optional if image is dark */
}


.btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}

.primary {
    background: #007bff;
    color: white;
}

.secondary {
    background: white;
    color: #007bff;
    border: 2px solid #007bff;
}

/* FEATURED BOOKS SECTION */
.books-feature {
    padding: 30px 20px;
    text-align: center;
    height: 8rem;
    background-color: #f8f9fa;
}

.books-feature h2 {
    font-size: 2rem;
    margin-top: -2px;
    margin-bottom: 15px;
}

/* Wrapper */
.books-dropdown {
    display: inline-block;
    position: relative;
}

/* Button */
.books-btn {
    background: #135397eb;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    width: 260px;
    text-align: center;
    transition: 0.2s;
    margin-top: 5px;
}

.books-btn:hover {
    background: #0f4885;
}

.books-btn span {
    font-size: 18px;
}

/* Dropdown menu */
.books-menu {
    display: none;
    position: absolute;
    top: 102%;
    left: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 20;
    max-height: 16rem;
    overflow: auto;
}

.books-menu a {
    display: block;
    padding: 12px;
    text-decoration: none;
    border-radius: 6px;
    color: #333;
}

.books-menu a:hover {
    background: #0f4885eb;
    color: white;
}

/* Show menu on hover */
.books-dropdown:hover .books-menu {
    display: block;
}

/* Slides */

.books-slide-section {
    width: 100%;
    margin: 0 auto;
    padding: 50px 0 50px 0;
    background-color: #f8f9fa;
}

.swiper {
    width: 54%;
    margin: 10px auto;
    overflow: visible;
}


/* CATEGORY GRID */
.categories {
    padding: 50px 8%;
    background-color: #0d3255;
}

.categories h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 20px;
}

.cat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}

.cat-card:hover {
    background: #0f4885eb;
    color: white;
    border: none;
    transition: 0.2s;
}


/* BACKGROUND OVERLAY */
.gp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    pointer-events: none;
    transition: background .55s ease;
    z-index: 999;
}

.gp-modal-overlay.show {
    background: rgba(0,0,0,0.55);
    pointer-events: auto;
}

/* BOTTOM SHEET */
.gp-modal {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -100%;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 2rem;
    height: 72vh;
    overflow-y: scroll;
    overflow-x: hidden;
    transform: translateY(0);
    transition: bottom .55s cubic-bezier(.24,.77,.38,1.25);
}

.gp-modal-overlay.show .gp-modal {
    bottom: 0;
}

/* HEADER */
.gp-modal-header {
    width: max-content;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    margin-top: -5px;
    margin-bottom: 1.2rem;
}

.gp-modal-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0;
    animation: slideFadeIn .6s .15s forwards;
}

.gp-close-btn {
    position: absolute;
    right: 2%;
    font-size: 1.3rem;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: .3s ease;
}

.gp-close-btn:hover {
    opacity: 0.8;
    font-weight: bold;
    transition: 0.2s ease;
}

/* GRID */
.gp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 40px;
    padding: 10px;
    width: 60%;
    margin: 0 auto;
}

/* TITLE ANIMATION */
@keyframes slideFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* FOOTER */
.footer {
    background: #0d3255;
    color: #fff;
    padding: 40px 8% 30px;
    margin-top: .5px;
}

.footer-container {
    gap: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 10px;
}

.footer-description {
    max-width: 380px;
}

.footer h3,
.footer h4 {
    margin-bottom: 15px;
    font-weight: 700;
}

.footer p {
    font-size: 0.95rem;
    line-height: 1.4rem;
    color: #dfe6ee;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer a {
    color: #dfe6ee;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer a:hover {
    color: #ff8d50;
}

/* FOOTER SOCIAL ICONS */
.footer-social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.footer-social-icons img {
    width: 47px;
    height: 47px;
    cursor: pointer;
    filter: drop-shadow(2px 3px 3px rgba(0,0,0,0.35)) saturate(2);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-social-icons img:hover {
    transform: scale(1.15);
    filter: drop-shadow(3px 5px 5px rgba(0,0,0,0.45)) saturate(2);
}

/* Bottom bar */
.footer-bottom {
    margin-top: 10px;
    border-top: 1px solid #224d73;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}




/* ################### */




/* IMPORTANT TO CHANGE ACCORDING TO THE IMAGES SIZES SO BUTTON HOVER WORKS PROPERLY */

.swiper-slide {
    background-color: #f8f9fa;
    background-position: center;
    background-size: cover;
    max-width: 260px;
    border-radius: 10px;
}

/* ########## */

.book-card {
    background: linear-gradient(
        135deg,
        #ffbf2a 0%,
        #ef5400 100%
        );
    text-align: center;
    border-radius: 10px;
    transition: 0.3s;
}
    
    
.book-card:hover {
    transform: scale(1.02);
    transition: 0.2s;
}

.book-card img {
    filter: brightness(1.05);
    width: 100%;
    height: 21.5rem;
    border-radius: 10px 10px 0px 0px;
}

.book-button {
    background: linear-gradient(
        105deg,
        #ffc02e 0%,
        #ff8543 60%,
        #ff9f6b 100%
    );
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 25px;
    text-decoration: none;
    margin: 14px 0px;
}

.book-button:hover {
    border: transparent;
    color: #fff;
    background: linear-gradient(
        -181deg,
        #098598 0%,
        #103c65 100%
    );
    cursor: pointer;
}


/* ###################### */


/* CARD */
.gp-card {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.gp-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.gp-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.gp-img {
    width: 100%;
    height: 100%;
    transition: transform .4s ease;
}

.gp-card:hover .gp-img {
    transform: scale(1.07);
}


