 /* Global Styles */
 body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

/* Header Styles */
header {
    background-color: #fff;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 2em;
    text-align: center;
    flex: 1 1 100%;
}

header img {
    height: 60px;
    width: auto;
}

/* Navbar Styles */
nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 0px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #a71a30;
    color:#fff;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger div {
    width: 30px;
    height: 4px;
    background-color: #a61b30;
    border-radius: 4px;
}

/* Banner Styles */
.banner {
    background: url('new_banner.jpg') no-repeat center center/cover;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.5em;
    font-weight: bold;
}

/* About Section Styles */
#about {
    background-color: #fff;
    padding: 40px 20px;
    text-align: center;
    color: #333;
    border-top: 5px solid #a61b30;
}

#about h2 {
    font-size: 2em;
    color: #a61b30;
    margin-bottom: 20px;
}
.head_tittle{

    font-size: 2em;
    padding:5px;
    color: #a61b30;
    margin-bottom: 20px;
    text-align:center;
}

#about p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Book Section Styles */
.book-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
}

.book {
    text-align: center;
    width: 230px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.book:hover {
    transform: scale(1.05);
}

.book img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.book-title {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #847336;
}

.view-btn {
    margin: 15px 0px;
    padding: 10px 15px;
    background-color: #a61b30;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.view-btn:hover {
    background-color: #9a7e3e;
}

/* Overlay and PDF Viewer */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.pdf-viewer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 95%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-radius: 10px;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 18px;
}

/* Footer Styles */
footer {
    background-color: #a61b30;
    color: white;
    padding: 20px;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 1em;
}

/* Footer Styles */
footer {
background-color: #a61b30;
color: white;
padding: 30px 20px;
text-align: center;
}

footer .footer-content {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 20px;
}

footer .contact-info {
margin-bottom: 20px;
}

footer .contact-info p {
font-size: 1em;
line-height: 1.6;
margin: 5px 0;
}

footer .contact-info a {
color: #fff;
text-decoration: none;
}

footer .contact-info a:hover {
text-decoration: underline;
}

footer .social-links a {
margin: 0 10px;
}

footer .social-links img {
width: 30px;
height: 30px;
margin-top: 10px;
transition: transform 0.3s;
}

footer .social-links img:hover {
transform: scale(1.1);
}

footer p {
font-size: 1em;
margin-top: 20px;
}


/* Responsive Styles */
@media (max-width: 768px) {
    header {
        padding: 15px;
        flex-direction: column;
        align-items: left!important;
        text-align: left!important;
    }

    header img {
        height: 40px;
    }

    header h1 {
        font-size: 1.8em;
        margin-top: 10px;
    }

    nav {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        align-items: center;
        width: 100%;
    }

    nav.active {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .banner {
        font-size: 2em;
        height: 250px;
    }

    .book-container {
        padding: 20px;
    }

    .book {
        width: 150px;
    }

    .view-btn {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

    header img {
        height: 35px;
    }

    nav {
        flex-direction: column;
        gap: 8px;
        font-size: 1em;
    }

    .banner {
        font-size: 1.8em;
        height: 200px;
        padding: 15px;
    }

    .book-container {
        padding: 15px;
    }

    .book {
        width: 160px;
        font-size: 14px;
    }

    .view-btn {
        font-size: 12px;
    }
    .book-title {
     margin-top: 0px; 
    padding: 8px;
}
}
 /* new header */
 @media (max-width: 768px) {
/* Align logo on the left and burger menu on the right */
header {
    flex-direction: row-reverse; /* Align the burger menu to the right */
    justify-content: space-between;
    padding: 15px 20px;
}

/* Flex container for burger menu and nav */
.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.burger {
    display: flex; /* Show burger menu */
}

nav {
    display: none; /* Hide navbar by default */
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

@media (max-width: 768px) {
    nav.active {
        position: absolute;
        display: flex;
        max-width: 200px;
        /* color: white; */
        background: #a58d50;
        z-index: 999;
    }
}

nav a {
    padding: 20px 15px;
    font-size: 1.2em;
    text-align: center;
}
}

/* Basic styling */
nav a {
/* padding: 10px; */
text-decoration: none;
color: #333;
}

.dropdown {
position: relative;
display: inline-block;
}

.dropdown-btn {
/* padding: 10px;
background-color: #fff; */
color: #333;
cursor: pointer;
}

/* Hide the dropdown content by default */
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
z-index: 1;
}

.dropdown-content a {
padding: 12px 16px;
text-decoration: none;
display: block;
color: #333;
}

/* Show the dropdown when hovering over the button */
.dropdown:hover .dropdown-content {
display: block;
}

/* Add hover effect for links inside the dropdown */
.dropdown-content a:hover {
background-color: #a71a30;
}
/* Content styling */
.content {
    padding: 20px;
    text-align: center;
}

/* WhatsApp-style sticky visitor counter */
.visitor-counter {
    position: fixed;
    bottom: 20px;  /* Adjusted for more spacing from the bottom */
    right: 20px;   /* Position to the bottom-right corner */
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-direction: column;  /* Stack the counter and text vertically */
}

.visitor-icon {
    background-color: #25D366;  /* WhatsApp green */
    color: white;
    font-size: 16px;
    padding: 8px;
    border-radius: 50%;  /* Rounded shape */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);  /* Soft shadow for 3D effect */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 8px; /* Adds spacing between the counter and text */
}

/* Hover effect for a more interactive feel */
.visitor-icon:hover {
    transform: scale(1.1);  /* Slightly enlarge on hover */
}

/* Counter text styling */
#counter {
    font-size: 16px;
    font-weight: bold;
    padding: 4px;
}

/* Text below the counter */
.visitor-text {
    font-size: 14px;
    color: #333;  /* Dark text for good contrast */
    font-weight: normal;
    text-align: center;  /* Center the text */
}

/* Pop-up animation */
@keyframes pop-up {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.visitor-icon {
    animation: pop-up 0.5s ease-out forwards;
}
