/* Import Caveat Brush Font */
@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&display=swap');

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* About Section with Background Video */
.about-section {
    position: relative;
    color: #333; /* Dark text for readability on the white overlay */
    padding: 3rem; /* Increased padding for more space at the top */
    background: none; /* Remove default background */
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
}

.about-section .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.about-section .video-overlay {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.1)); /* Gradient from 100% white to 10% black */
    z-index: 1;
}

.about-section .container {
    position: relative;
    z-index: 2; /* Ensure content appears above the video and overlay */
}

/* Adjusted Container Width */
.container {
    max-width: 900px; /* Skinnier center column, adjust as needed */
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Heading Styles */
h2 {
    font-size: 3rem; /* Slightly smaller font size */
    color: #46ac8e; /* Ensure all section headings use this color */
    text-align: center; /* Centered text */
    margin-bottom: 2.5rem; /* Increased space below the heading */
    font-family: 'Caveat Brush', cursive; /* Ensure font consistency */
}

/* Specific padding for the Support section */
#support {
    padding-top: 1rem; /* Increase padding at the top */
    padding-bottom: 3rem; /* Increase padding at the bottom */
    padding-left: 3rem;
    padding-right: 3rem;
    margin-top: 2rem;  /* Adds additional space above the section */
}

/* Button Styles for All Links */
a.button {
    display: inline-block; /* Ensure button width matches content width */
    margin: 0.5rem auto; /* Center the button horizontally */
    padding: 0.7rem 1.5rem;
    background-color: #46ac8e; /* Button color */
    color: white;
    text-decoration: none;
    border-radius: 25px; /* Rounded buttons */
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
}

a.button:hover {
    background-color: #237262; /* Hover state color */
}

/* Centering Buttons in Their Sections */
.button-container {
    text-align: center; /* Center the button container */
    margin-top: 1.5rem; /* Add some spacing above the button */
}

/* Section-specific button style mimicking hero button */
.section-button {
    display: inline-block; /* Ensure button width matches content width */
    margin: 1rem auto;
    padding: 0.7rem 1.5rem;
    background-color: #46ac8e; /* Same color as hero button */
    color: white;
    text-decoration: none;
    border-radius: 25px; /* Rounded buttons */
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    width: auto; /* Ensure width is only as wide as the content */
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
}

.section-button:hover {
    background-color: #237262; /* Updated hover state color */
}

/* Paragraph Padding */
p {
    margin-bottom: 1.5rem; /* Add more space between paragraphs */
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
}

/* Hero Section */
.hero-section {
    background-image: url('hero.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); /* Gradient from solid at the top to transparent at the bottom */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Caveat Brush', cursive;
    font-size: 5.5rem; /* Default font size for larger screens */
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.hero-content p {
    font-size: 1.2rem;
    color: #FFFFFF;
    text-align: center;
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
}

/* Adjust h1 Font Size for Mobile Devices */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem; /* Adjusted size for small screens */
    }
}

.hero-buttons {
    margin-top: 1.5rem;
}

.hero-button {
    margin: 0 0.5rem;
    padding: 0.7rem 1.5rem;
    background-color: #46ac8e; /* Updated button color */
    color: white;
    text-decoration: none;
    border-radius: 25px; /* More rounded buttons */
    font-size: 1rem;
    display: inline-block;
    position: relative;
    overflow: visible;
    z-index: 1;
    transition: background-color 0.3s ease;
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
}

.hero-button:hover {
    background-color: #237262; /* Updated hover state color */
}

/* Countdown Timer */
.support-item h3 {
    text-align: left;
}

.countdown-timer {
    font-size: 2rem;
    color: #333;
    text-align: center;
    margin-top: 1rem;
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
}

/* Updates Section with Multiple Articles */
.updates-section {
    position: relative;
    color: #333; /* Dark text for readability */
    padding: 1rem; /* Increased padding for more space at the top */
    background-color: #f4f4f4; /* Add background color to replace video */
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
}

.updates-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Article Style */
.article {
    background-color: #fff; /* White background for articles */
    margin-bottom: 3rem; /* Increased spacing between articles */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
    overflow: hidden; /* Ensure the image and content are within the rounded corners */
}

.article:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Increased shadow on hover */
}

/* Article Header Image with Soft Curve */
.article-header {
    position: relative;
    height: 200px; /* Set a fixed height for the header image */
    width: 100%;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
    background-image: url('image1.jpg'); /* Replace with your image path */
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .7)); /* Gradient overlay */
    z-index: 1;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: white;
    border-top-left-radius: 50% 20px;
    border-top-right-radius: 10% 0px;
    z-index: 2;
}

/* Article Heading Text */
.article-header h3 {
    position: absolute;
    bottom: 30px;
    left: 20px;
    color: #FFFFFF;
    font-size: 1.75rem;
    z-index: 3;
    margin: 0;
    font-family: 'Caveat Brush', cursive; /* Ensure font consistency */
    word-wrap: break-word; /* Allow words to wrap */
    max-width: 70%; /* Adjust the width to prevent overlap with the date */
}

/* Article Date */
.article-header .article-date {
    position: absolute;
    bottom: 35px;
    right: 20px;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1rem;
    z-index: 3;
    margin: 0;
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
    white-space: nowrap; /* Prevent the date from wrapping */
}

/* Article Content */
.article-content {
    padding: 1.5rem; /* Padding within article content */
    width: 100%; /* Ensure content touches edges */
}

/* Article Text */
.article-content p {
    font-size: 1rem; /* Regular paragraph size */
    margin-bottom: 1.5rem; /* Space between paragraphs */
    color: #333; /* Ensure dark gray color for readability */
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
}

/* Image Container for Articles with Rounded Corners */
.article-image-container {
    float: left;
    width: 40%; /* Adjust the width as needed */
    margin-right: 1rem; /* Space between image and text */
    margin-bottom: 1rem; /* Space below the image */
    overflow: hidden; /* Ensure the image stays within bounds */
    border-top-left-radius: 10px; /* Rounded top-left corner */
    border-bottom-left-radius: 10px; /* Rounded bottom-left corner */
    border-top-right-radius: 0; /* Square top-right corner */
    border-bottom-right-radius: 0; /* Square bottom-right corner */
}

/* Responsive Image */
.responsive-image {
    width: 100%;
    height: auto;
    display: block; /* Removes bottom margin in some browsers */
}

/* Read More Button */
.article-content .read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #46ac8e;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
}

.article-content .read-more:hover {
    background-color: #237262; /* Hover state color */
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
    font-family: 'Quicksand', sans-serif; /* Ensure font consistency */
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem; /* Adjusted size for small screens */
    }

    .hero-content p {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    a.button {
        margin: 0.5rem 0;
    }

    .article-header h3 {
        font-size: 1.5rem;
        max-width: 60%; /* Further adjust the width to prevent overlap */
    }

    .article-header .article-date {
        font-size: 0.9rem;
    }

    .article-content p {
        font-size: 0.9rem;
    }

    .article-content {
        padding: 1rem;
    }

    /* Adjust image container on smaller screens */
    .article-image-container {
        width: 100%; /* Full width for smaller screens */
        float: none; /* Remove float on smaller screens */
        margin: 0 auto 1rem; /* Center the image with margin below */
        border-radius: 10px; /* Rounded corners for all sides on small screens */
    }

    /* Adjust gallery styling for mobile */
    .image-gallery {
        height: 300px; /* Reduced height for mobile view */
    }

    .card {
        transform: scale(0.85); /* Slightly smaller for better stacking on small screens */
    }

    .card.active {
        transform: scale(1); /* Normal size when active */
    }

    .card.next, .card.previous {
        transform: scale(0.9);
    }

    .card.next {
        right: -20px; /* Adjusted shift for better mobile appearance */
    }

    .card.previous {
        left: -20px; /* Adjusted shift for better mobile appearance */
    }
}

/* Gallery Section */
.gallery-section {
    padding: 2rem 0;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
}

.image-gallery {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
    height: 400px; /* Ensure all images have the same max height */
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, left 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    opacity: 0.5;
    z-index: 1;
    transform: scale(0.9); /* Default scaling for stack effect */
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px; /* Rounded corners for images */
}

.card.active {
    z-index: 3;
    transform: scale(1.05);
    opacity: 1;
    top: 0;
    left: 0;
}

.card.next, .card.previous {
    z-index: 2;
    transform: scale(0.95);
    opacity: 0.8;
}

.card.next {
    right: -40px; /* Increased shift to show the next card more clearly */
    transform: scale(0.95) rotate(3deg); /* Increased rotation for effect */
}

.card.previous {
    left: -40px; /* Increased shift to show the previous card more clearly */
    transform: scale(0.95) rotate(-3deg); /* Increased rotation for effect */
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Uplift shadow on hover */
}

/* Swipe Hint Animation */
.swipe-hint {
    animation: swipeHint 1.5s ease-in-out infinite; /* Infinite loop for the animation */
}

@keyframes swipeHint {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(0); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(0); }
    100% { transform: translateX(0); }
}
/* Subtitle prompt for mobile */
.long-press-prompt {
    display: none; /* Hidden by default */
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    margin-top: 1rem;
    font-family: 'Quicksand', sans-serif;
    font-style: italic; /* Italic text */
}

/* Show prompt only on screens smaller than 768px */
@media (max-width: 767px) { /* Adjusted from 768 to 767 to avoid overlap */
    .long-press-prompt {
        display: block; /* Show only on mobile devices */
    }
}

