* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    background-color:  rgba(102,178,178);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color:  #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed; /* Make the header fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Ensure it stays on top */
    backdrop-filter: blur(10px); /* Add blur effect */
    margin-bottom: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: black;
}

.nav-actions span {
    margin-left: 20px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}



.giving-section {
    padding: 500px 550px;
    background-color: #f9f9f9;
    animation: fadeIn 1s ease;
}

.giving-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
}

.left-image .qr-code {
    margin-right: 50px;
    animation: fadeIn 1s ease;
}

.right-image .qr-code {
    margin-left: 50px;
    animation: fadeIn 1s ease;
}

.qr-code img {
    max-width: 700px;
    height: auto;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.qr-code img:hover {
    transform: scale(1.03);
}

.text-content {
    flex: 1;
}

.text-content h2 {
    font-size: 30px;
    margin-bottom: 20px;
    transition: color 0.3s, border-bottom 0.3s;
}

.text-content h2:hover {
    color: hsl(137, 69%, 50%);
    border-bottom: 2px solid hsl(137, 69%, 50%);
}

.text-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
    font-style: italic;
}

.support-button {
    background-color: hsl(137, 69%, 50%);
    color: #000;
    border: none;
    padding: 10px 15px;
    font-size: 10px;
    cursor: pointer;
    border-radius: 40px;
    transition: background-color 0.3s;
}




footer {
    background-color: #135D66;
    color: white;
    padding: 60px 20px;
    animation: fadeIn 1s ease;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-family: "Times New Roman", serif;
    font-size: 32px;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    color: white;
    font-size: 24px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: normal;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.footer-column a:hover {
    text-decoration: underline;
}

.be-first-circle {
    width: 120px;
    height: 120px;
    background-color: #003C43;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .newsletter-section {
        flex-direction: column;
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .email-input {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 150px;
}


/* Featured Books Section */
.featured-books {
    padding: 100px 0;
    background-color: white;
}
/* Newsletter Section */
.newsletter {
    background-color: #f8f3ef;
    padding: 80px 0;
    text-align: center;
}
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}
/* Responsive Design */
/* Base Animation Properties */
* {
    transition: all 0.3s ease-in-out;
}
/* Header Animations */
.header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px #ebeaea1a;
}
.logo {
    position: relative;
    overflow: hidden;
}
.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color:rgb(80, 75, 56);
    transition: width 0.3s ease;
}
.logo:hover::after {
    width: 100%;
}
/* Menu Animations */
.menu li a {
    position: relative;
    transition: color 0.3s ease;
}
.menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: rgb(80, 75, 56);
    transition: width 0.3s ease;
}
.menu li a:hover::after {
    width: 100%;
}
/* Promo Banner Animation */
.promo {
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}
@keyframes slideIn {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
/* Hero Section Animations */
.hero img {
    transition: transform 0.5s ease;
}
.hero:hover img {
    transform: scale(1.02);
}
.buy-now {
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.buy-now:hover {
    transform: translateY(-2px);
    background-color: rgb(235, 229, 194);
}
/* Giving Section Animations */
.giving-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.qr-code img {
    transition: transform 0.5s ease;
}
.qr-code img:hover {
    transform: scale(1.03);
}
.support-button {
    position: relative;
    overflow: hidden;
}
.support-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background:rgb(235, 229, 194);
    transition: transform 0.5s ease;
}
.support-button:hover {
    transform: scale(1.03);
}
/* Newsletter Section Animations */
.newsletter-section {
    position: relative;
    overflow: hidden;
}
.newsletter-content svg {
    transition: transform 0.3s ease;
}
.newsletter-content:hover svg {
    transform: translateY(-5px);
}
.email-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.email-input:focus {
    border-color: rgb(80, 75, 56);
    box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.2);
}
/* Footer Animations */
.social-icons a {
    transition: transform 0.3s ease, color 0.3s ease;
}
.social-icons a:hover {
    transform: translateY(-3px);
    color: rgb(80, 75, 56);
}
.be-first-circle {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
/* Book Grid Animations */
.book-item {
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}
.book-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
/* Page Load Animations */
.fade-in {
    opacity: 4;
    animation: fadeIn 0.1s ease forwards;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Mobile Menu Animations */
@media (max-width: 768px) {
    .menu {
        transition: transform 0.3s ease-in-out;
    }
    .menu.active {
        transform: translateX(0);
    }
    .menu-toggle {
        transition: transform 0.3s ease;
    }
    .menu-toggle.active {
        transform: rotate(90deg);
    }
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent background */
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: backdrop-filter 0.3s ease;
}

.navbar.blur {
    backdrop-filter: blur(10px); /* Apply blur effect */
    background-color: rgba(255, 255, 255, 0.3); /* Adjust opacity for visibility */
}
/* Prevent horizontal scroll and ensure full-width fit on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Optional: Also handle containers that might cause overflow */
  .background, .form-container {
    box-sizing: border-box;
    max-width: 100%;
  }
  