/* Apply Google Fonts */
body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400; /* Lighter weight for body text */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
}

.hero-content h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 400; /* Lighter weight for hero section paragraph */
    margin-bottom: 2rem;
}

.cta, .cta-alt, .cta-third {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* Semi-bold for subtitle */
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400; /* Lighter weight for body text */
    line-height: 1.6;
}

ul {
    font-family: 'Poppins', sans-serif;
    font-weight: 400; /* Lighter weight for list items */
}

/* Basic CSS for the layout */
body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #fff;
    min-height: 100vh; /* Ensures the body takes at least the full viewport height */
    background: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url('https://grayslakecubscouts.org/cdn-cgi/image/width=1920,format=auto/background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll; /* Ensure the background scrolls with content */
}

.overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.header {
    background: transparent;
    text-align: center;
    padding: 1rem 0;
}

.header img {
    max-width: 100%;
    height: auto;
}

.main {
    padding: 2rem;
    text-align: center;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cta {
    background: #007BFF;
    color: #fff;
    padding: 1rem;
    margin: 1rem 0;
    display: inline-block;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 0.5rem;
}

.cta:hover {
    background: #0056b3;
}

.cta-alt {
    background: #28a745;
    color: #fff;
    padding: 1rem;
    margin: 1rem 0;
    display: inline-block;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 0.5rem;
}

.cta-alt:hover {
    background: #218838;
}

.cta-third {
    background: #ff5733;
    color: #fff;
    padding: 1rem;
    margin: 1rem 0;
    display: block;
    text-decoration: none;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.cta-third:hover {
    background: #e64d27;
}

.footer {
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 1rem 0;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    color: #ddd;
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.5rem;
    text-decoration: none;
}

.social-icons a:hover {
    color: #ddd;
}

/* Responsive styles */
@media (max-width: 1200px) {
    body {
        /*		background-image: url('https://grayslakecubscouts.org/cdn-cgi/image/width=1200,format=auto/background.jpg'); */
    }
}

@media (max-width: 768px) {
    body {
        /*		background-image: url('https://grayslakecubscouts.org/cdn-cgi/image/width=768,format=auto/background.jpg'); */
    }
    .main {
        padding: 1rem;
    }
    .cta, .cta-alt {
        display: block;
        margin: 0.5rem auto;
    }
    .boxes {
        flex-direction: column;
    }
    .box {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        /*		background-image: url('https://grayslakecubscouts.org/cdn-cgi/image/width=480,format=auto/background.jpg'); */
    }
    .header, .footer {
        padding: 0.5rem 0;
    }
    .cta, .cta-alt {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }
    .columns {
        display: block;
    }
    .columns ul {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .boxes {
        display: block;
    }
    .box {
        margin-bottom: 1rem;
    }
}

/* Embedding YouTube video */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 1rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Embedding local video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 1rem 0;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Columns for "Why Scouting?" section */
.columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.columns ul {
    flex: 0 0 40%;
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
}

/* Boxes section */
.boxes {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.box {
    flex: 0 0 30%;
    border: 2px solid #fff;
    padding: 1rem;
    box-sizing: border-box;
    text-align: left;
    position: relative;
}

.box h3 {
    margin-top: 0;
}

/* Testimonials section */
#testimonials {
    padding: 2rem;
    text-align: center;
    overflow: hidden; /* Ensure overflow is hidden */
}

.swiper-container {
    width: 100%;
    height: auto;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.swiper-slide img {
    max-width: 100%;
    height: auto;
    border-radius: 5%;
    margin-bottom: 1rem;
}

.swiper-slide p {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0 1rem;
}

.swiper-slide h4 {
    margin-top: 0.5rem;
    font-weight: bold;
}

/* Responsive styling */
@media (max-width: 768px) {
    #testimonials {
        padding: 1rem;
    }
    .swiper-slide p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #testimonials {
        padding: 0.5rem;
    }
    .swiper-slide p {
        font-size: 0.9rem;
    }
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-content .cta {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Scroll Indicator Styling */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #fff;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: #fff;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.modal-content {
    position: relative;
    padding: 20px;
}

.modal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.modal p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin: 1rem 0;
}

#mc_embed_signup {
    background: #fff;
    font: 14px 'Poppins', sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

#mc_embed_signup .mc-field-group {
    margin-bottom: 1rem;
    text-align: left;
}

#mc_embed_signup label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#mc_embed_signup input[type="text"],
#mc_embed_signup input[type="email"],
#mc_embed_signup select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#mc_embed_signup .clear {
    text-align: center;
    margin-top: 1rem;
}

#mc_embed_signup .button {
    background: #007BFF;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
}

#mc_embed_signup .button:hover {
    background: #0056b3;
}

.privacy-note {
    font-size: 0.9rem;
    color: #777;
    margin-top: 10px;
}

.overlay-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.youtube-facade {
    position: relative;
    cursor: pointer;
    background-color: #000;
    display: inline-block;
}

.youtube-facade img {
    display: block;
    width: 100%;
    height: auto;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    background: url('https://img.icons8.com/ios-filled/50/ffffff/play.png') no-repeat;
    background-size: cover;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

.play-button:hover {
    opacity: 1;
}