/* Resetting some default styles */
body, h1, h2, h3, p, ul, li, form, input, textarea, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
    color: #333;
}

body {
    background: #f7f7f7;
    line-height: 1.6;
}

/* Header Navigation */
header {
    background: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle img {
    width: 40px;
    height: 40px;   
    cursor: pointer;
}

nav.nav-collapsible {
    position: fixed;
    top: 0;
    left: -300px; /* Initially hidden */
    width: 200px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(153, 0, 0, 0.7), rgba(153, 0, 0, 0.3)); /* Softer red with gradient opacity */
    color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    z-index: 999;
    backdrop-filter: blur(5px); /* Keeps the elegant blur */
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
    padding: 0;
    margin: 0;
    height: 100%; /* Ensures it takes the full height of the nav bar */
}

nav li {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0; /* Add spacing between items */
}

nav a {
    text-decoration: none;
    color: #fff; /* White text for contrast */
    font-weight: bold;
    text-align: center;
    margin-top: 5px; /* Space between the icon and text */
    font-size: 1em; /* Base font size */
}

nav a:hover {
    color: #ffd9d9; /* Lighter red accent on hover */
}





nav.nav-collapsible.open {
    left: 0; /* Slide in */
}

/* Adjust text and icon spacing */
nav li svg {
    margin-right: 10px;
}


/* Hero Section */
#hero {
    height: 80vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('images/Background.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero-text {
    max-width: 600px;
    color: white;
    margin: 0 auto;
    animation: fadeIn 2s ease-in-out;
}

.hero-text h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    font-family: 'Merriweather', serif;
}

.hero-text p {
    font-size: 1.5rem;
    color: white;
}

/* Content Sections */
.content-section {
    padding: 50px 20px;
    background: #fff;
    margin: 20px 0;
    display: block;
    padding: 20px;
    
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    
}



.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Merriweather', serif;
    color: #b30000;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* New Section: The Dawn of the Sri Sarada Devi Ashram */
.about-dawn {
    margin-top: 40px;
}

.about-dawn h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #b30000;
}

.about-history h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 40px;
    color: #b30000;
}
.about-dawn-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.about-history-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.about-dawn-image img {
    width: 200px; /* Set width for uniformity */
    height: 200px; /* Set height to match the width */
    object-fit: contain; /* Ensures the image fits inside the box without being cut */
    border-radius: 8px;
    
}

.about-dawn-description {
    width: 100%; /* Make the description span the full container width */
    padding-bottom:50px;
    
}

.about-dawn-description h4 {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.about-dawn-description p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    width: 100%; /* Ensure paragraphs span the entire container */
}

/* Styling for the history images */
.history-images {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between the images */
    margin-top: 30px;
}

.history-image {
    text-align: center;
}

.history-image img {
    width: 200px; /* Set width for uniformity */
    height: 200px; /* Set height to match the width */
    object-fit: contain; /* Ensures the image fits inside the box without being cut */
    border-radius: 8px;
}

.history-image p {
    margin-top: 10px;
    font-size: 1rem;
    font-style: italic; /* Makes the names italic */
    word-wrap: break-word; /* Allows the text to wrap */
    max-width: 200px; /* Ensures the name wraps within the image width */
}

/* Activities Section */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 300px; /* Set a consistent height */
    object-fit: cover; /* Ensures images fill the space without distortion */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.event {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
}

.event img {
    width: 100%;
    height: auto;
    border-bottom: 3px solid #eaeaea;
}

/* Contact Section */
#map {
    height: auto-fit;
    background: #ddd;
    margin-top: 20px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

#contact-form input, #contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact-form button {
    background-color: #b30000; /* Similar color as the donate button */
    border: none;
    color: white;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form button:hover {
    background-color: #ffb300; /* Slightly darker yellow for hover effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Donate Section */
#donate button {
    background-color: #b30000; /* Similar color as the donate button */
    border: none;
    color: white;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#donate button:hover {
    background-color: #ffb300; /* Slightly darker yellow for hover effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Text */
@media (max-width: 768px) {
    nav a {
        font-size: 0.8em; /* Slightly smaller text for tablets */
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 0.7em; /* Smaller text for mobile devices */
    }
}

@media (max-width: 360px) {
    nav a {
        font-size: 0.6em; /* Even smaller text for very small screens */
    }
}

@media (max-width: 480px) {
    #contact-form input, #contact-form textarea {
        font-size: 12px;
    }
}

/* YouTube Section */
#youtube {
    background-color: #f8f8f8;
    padding: 40px 20px;
    text-align: center;
}

#youtube h2 {
    font-size: 2.5rem; /* Responsive font size */
    color: #b30000;
    margin-bottom: 20px;
}

.youtube {
    max-width: 100%;
    margin: 0 auto;
}

.youtube iframe {
    width: 100%;
    height: auto;
    max-width: 1000px; /* Limit the width for larger screens */
    aspect-ratio: 16 / 9; /* Maintain a 16:9 aspect ratio */
    border-radius: 10px; /* Adjust the radius as needed */
    overflow: hidden; /* Ensures content stays within rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: add a shadow for visual effect */
}

@media (max-width: 768px) {
    #youtube h2 {
        font-size: 2.5rem; /* Adjust font size for smaller screens */
    }

    .youtube iframe {
        width: 100%; /* Ensure the iframe takes full width on smaller screens */
    }
}


.map-container {
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically if needed */
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: auto;
    max-width: 1000px; /* Limit the width for larger screens */
    aspect-ratio: 16 / 9; /* Maintain a 16:9 aspect ratio */
    border: none; /* Remove default iframe border */
    border-radius: 10px; /* Adjust the radius as needed */
    overflow: hidden; /* Ensures content stays within rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: add a shadow for visual effect */
}

@media (max-width: 768px) {
    #contact-us h2 {
        font-size: 4vw; /* Adjust font size for smaller screens */
    }

    .map-container iframe {
        width: 100%; /* Ensure the iframe takes full width on smaller screens */
    }
}

.add-to-calendar {
    background-color: #b30000; /* Similar color as the donate button */
    border: none;
    color: white;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.add-to-calendar:hover {
    background-color: #ffb300; /* Slightly darker yellow for hover effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Footer Container */
.footer-container {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
}

/* Footer Links */
.footer-links ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
}

.footer-links ul li {
    margin: 0 15px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

/* Follow Us Header */
.follow-us-header {
    margin: 20px 0 10px;
    font-size: 18px;
    color: #ffcc00;
    font-weight: bold;
}

/* Social Icons Styling */
.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.social-icon {
    width: 30px;
    height: 30px;
    margin: 0 10px; /* Space between icons */
    transition: transform 0.2s, opacity 0.2s;
}

.social-icon:hover {
    transform: scale(1.1); /* Slight zoom on hover */
    opacity: 0.8;
}


/* Footer Rights */
.footer-rights {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #444; /* Adding a top border for separation */
    font-size: 14px;
    color: #ffcc00; /* Brighter yellow to stand out */
    font-weight: bold; /* Make the text more prominent */
}

.footer-rights p {
    margin: 0;
    color: #fff;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .footer-links ul {
        flex-direction: column;
        margin-top: 10px;
    }

    .footer-links ul li {
        margin: 10px 0;
    }

    .social-icons {
        flex-direction: row;
        gap: 20px;
    }

    .social-icon {
        margin: 5px 0; /* Adjust spacing for smaller screens */
    }

    .follow-us-header {
        font-size: 16px;
    }

    .footer-rights {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 15px;
    }

    .follow-us-header {
        font-size: 14px;
    }

    .footer-links ul li {
        margin: 5px 0;
    }

    .social-icon {
        width: 25px;
        height: 25px;
    }

    .footer-rights {
        font-size: 10px;
    }
}

/* Popup container */
.popup {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; /* Ensure it sits above other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with transparency */
}

/* Popup content */
.popup-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto; /* Center it vertically and horizontally */
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px; /* Limit the max width */
    text-align: center;
}

/* Close button */
.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Popup text */
#popup-text {
    font-size: 18px;
    color: #333;
    margin-top: 20px;
}


/* Basic styling for the petals container */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    overflow: hidden;
}

/* Styling for the individual petals */
.petal {
    position: absolute;
    width: 30px; /* Adjust the size as needed */
    height: 30px;
    background: url('images/petal.png') no-repeat center center; /* Use your rose petal image */
    background-size: cover;
    opacity: 0.8;
    pointer-events: none;
    animation: fall linear;
}

/* Animation for falling petals */
@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}


/* Activity Item Styles */
.activity-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background-color: #fff;
    padding: 30px; /* Increased padding */
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 80px; /* Increased width */
    height: 80px; /* Increased height */
    margin-right: 30px; /* Increased space between icon and text */
    object-fit: cover;
}

.activity-details {
    flex: 1;
}

.activity-details h3 {
    font-size: 1.8rem; /* Increased font size */
    margin-bottom: 15px; /* Increased space below heading */
    color: #b30000;
}

.activity-details p {
    font-size: 1.1rem; /* Increased font size */
    color: #000000;
    margin-bottom: 10px; /* Increased space below paragraph */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-icon {
        margin-bottom: 15px; /* Increased space below icon */
        margin-right: 0;
    }

    .activity-details h3 {
        font-size: 1.5rem; /* Adjusted font size for smaller screens */
    }

    .activity-details p {
        font-size: 1rem; /* Adjusted font size for smaller screens */
    }
}



/* Holy Trinity Section */
.trinity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Increased gap for better spacing */
    margin-top: 20px;
    padding: 0 20px; /* Add padding for extra space on mobile */
}

.trinity-item {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.trinity-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.trinity-item h3 {
    font-size: 1.5rem;
    color: #b30000;
    margin-bottom: 10px;
}

.short-description {
    font-size: 1rem;
    color: #333;
}

.read-more-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #b30000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.full-description {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    z-index: 1000; /* Ensures the overlay is on top */
}

.full-description p {
    font-size: 1rem;
    color: #333;
    margin-top: 10px;
}

.close-btn {
    position: absolute;
    top: 15px; /* Increased padding for easier clicking */
    right: 15px;
    font-size: 1.5rem;
    color: #b30000;
    cursor: pointer;
}

/* Responsive Styles for Holy Trinity Section */
@media (max-width: 768px) {
    .trinity-grid {
        grid-template-columns: 1fr;
    }

    .trinity-item {
        margin-bottom: 20px;
    }

    .trinity-item h3 {
        font-size: 1.3rem;
    }

    .short-description, .full-description p {
        font-size: 0.9rem;
    }
}

/* Responsive Design for Small Screens */
@media (max-width: 768px) {
    .about-history h3 {
        font-size: 1.5rem; /* Reduce font size on smaller screens */
    }

    .history-images {
        flex-direction: column; /* Stack images vertically on small screens */
        align-items: center; /* Center-align images */
    }

    .history-image {
        max-width: 100%; /* Makes images fill the container width */
        margin: 10px 0; /* Adds space between images when stacked */
    }

    .history-image p {
        font-size: 0.9rem; /* Reduce font size of the names for smaller screens */
    }
}

/* Responsive Design for Extra Small Screens (Phones in Portrait Mode) */
@media (max-width: 480px) {
    .about-history h3 {
        font-size: 1.2rem; /* Reduce font size further on extra small screens */
    }

    .history-images {
        gap: 15px; /* Reduces gap between images */
    }

    .history-image p {
        font-size: 0.8rem; /* Further reduce the font size of the names */
    }
}


/* Modal Container */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark overlay */
    align-items: center;
    justify-content: center;
}

/* Close Button for Modal */
.modal .close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover {
    color: #bbb;
}

/* Modal Content (Image) */
.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}



/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px; /* Distance from the bottom */
    right: 20px; /* Distance from the right */
    z-index: 1000;
    display: none; /* Hidden initially */
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: opacity 0.3s ease;

    
}

.back-to-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Show the button when scrolling down */
.back-to-top.show {
    display: block;
    opacity: 0.8;
}

.back-to-top:hover {
    opacity: 1; /* Slight opacity effect on hover */
}
