@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3e5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

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

h1 {
    font-size: 1.5em;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

h1 span {
    display: block;
    margin-top: 10px;
}

.subtext {
    text-align: center;
    font-size: 1em;
    color: #666;
    margin: 10px 0 20px;
}

.form-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.testimonials {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px 0;
    text-align: center;
}

.testimonial {
    width: 100%;
    background-color: #f3e5f5;
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.testimonial-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #e1bee7;
    margin-right: 15px;
    overflow: hidden;
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    flex: 1;
    font-size: 0.9em;
}

.features h2 {
    text-align: center;
    color: #6a1b9a;
    font-size: 1.3em;
}

.feature-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.feature-item {
    background-color: #f3e5f5;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.8em;
    text-align: center;
    flex: 1 1 100px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    background-color: #6a1b9a;
    height: 3px;
    width: 25px;
    margin: 3px 0;
    transition: 0.4s;
}

.nav-menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: #f3e5f5;
}

/* Newsletter styles */
.newsletter-content {
    margin-top: 40px;
}

.newsletter-content h2 {
    text-align: center;
    color: #6a1b9a;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.newsletter-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.newsletter-item-content {
    padding: 15px;
}

.newsletter-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.newsletter-item p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background-color: #6a1b9a;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #4a148c;
}

/* Media Queries */
@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
    }

    .newsletter-grid {
        grid-template-columns: 1fr;
    }

    .testimonial {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .newsletter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 30px;
    }

    h1 {
        font-size: 1.8em;
    }

    .subtext {
        font-size: 1.1em;
    }

    .testimonial {
        width: 30%;
    }

    .testimonial-photo {
        width: 80px;
        height: 80px;
    }

    .testimonial-text {
        font-size: 1em;
    }

    .features h2 {
        font-size: 1.5em;
    }

    .feature-item {
        font-size: 0.9em;
        flex: 1 1 150px;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        box-shadow: none;
    }

    .nav-menu a {
        padding: 10px 15px;
    }
}