/* General Body and Font Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #1a1a2e;
    color: #ffffff;
    overflow-x: hidden;
}

/* Keyframes for the glowing text animation */
@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #00bcd4, 0 0 20px #00bcd4;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 15px #00bcd4, 0 0 20px #00bcd4, 0 0 25px #00bcd4;
    }
}

/* Particles.js Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header */
.site-header {
    display: flex;
    justify-content: flex-start; /* Pushes the logo and brand name to the left */
    align-items: center;
    padding: 15px 50px;
    background-color: rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none; /* Removes underline from the link */
}

.header-logo-link img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 2px solid #00bcd4;
    padding: 3px;
    background-color: #1a1a2e;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.4);
    transition: transform 0.3s;
}

.header-logo-link img:hover {
    transform: scale(1.1);
}

.brand-name {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-left: 15px; /* Space between logo and name */
    letter-spacing: 1px;
    /* Glowing text effect */
    animation: glow 1.5s ease-in-out infinite alternate;
}


/* Main Content Sections */
main {
    padding: 0 50px;
}

section {
    padding: 40px 0;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background-color: #00bcd4;
    bottom: -10px;
    left: 20%;
}

.welcome-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.welcome-section h1 {
    font-size: 3.5rem;
    margin: 0;
}

.welcome-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-top: 15px;
}

.introduction-section .intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

blockquote {
    font-style: italic;
    font-size: 1.1rem;
    color: #00bcd4;
    border-left: 3px solid #00bcd4;
    padding-left: 15px;
    margin: 20px auto;
    max-width: 600px;
}

.books-section .book-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.book-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.book-card img {
    width: 100%;
    border-radius: 5px;
}

.book-card h3 {
    margin-top: 15px;
    font-size: 1.5rem;
}

.book-card p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.btn {
    background-color: #00bcd4;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: inline-block;
}

.btn:hover {
    background-color: #0097a7;
}

.intro-buttons, .form-buttons {
    margin-top: 20px;
}

.intro-buttons .btn, .form-buttons .btn {
    margin: 10px;
}

.event-description {
    max-width: 800px; /* Constrains width for readability */
    margin: 0 auto 20px auto;   /* Centers the description block and adds bottom margin */
    text-align: left;  /* Aligns text to the left for easier reading */
}
.event-description ul {
    padding-left: 25px; /* Adds indentation to the list */
    list-style-type: disc; /* Ensures standard bullet points */
}
.event-description ul li {
    margin-bottom: 10px; /* Adds spacing between bullet points */
}
.event-description h4 {
    margin-top: 20px;
}

/* Video Section Styles */
.video-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.video-wrapper {
    position: relative;
    padding-bottom: 25.31%; /* 16:9 aspect ratio (9 / 16 = 0.5625) applied to a 45% width element */
    height: 0;
    overflow: hidden;
    width: 45%;
    min-width: 300px;
    border-radius: 10px;
    background-color: #000; /* Fallback background */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.donation-section {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    border-radius: 10px;
    margin: 40px 0;
}

.donation-section p {
    max-width: 800px;
    margin: 15px auto;
    line-height: 1.7;
}

.donation-button {
    margin-top: 25px;
}

/* Footer */
.site-footer {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px 50px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    border: 3px solid #00bcd4;
    padding: 5px;
    background-color: #1a1a2e;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}

.logo-credit {
    margin-top: 10px;
    font-size: 0.9rem;
    max-width: 150px;
}

.logo-credit a {
    color: #00bcd4;
    text-decoration: none;
}

.footer-links, .footer-connect {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links h4, .footer-connect h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #00bcd4;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00bcd4;
}

.social-icons {
    margin-bottom: 15px;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #00bcd4;
}

.footer-email-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-email-link:hover {
    color: #00bcd4;
}

.footer-email-link i {
    margin-right: 8px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 20px;
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
}

/* Other Pages (About, Terms, Privacy) */
.content-page-section {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content ul, .text-content {
    list-style-position: inside;
    text-align: left;
    display: inline-block;
}

.text-content p, .text-content h3 {
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    main {
        padding: 0 20px;
    }

    .welcome-section h1 {
        font-size: 2.5rem;
    }

    .welcome-section p {
        font-size: 1rem;
    }
    
    .video-wrapper {
        width: 90%;
        padding-bottom: 50.625%; /* 16:9 of 90% width */
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }
}
