/* General Styles */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background-color: #FFFFFF;
    color: #6B7B8C;
    font-family: 'HelveticaNowDisplayRegular', sans-serif;
    font-size: 16px; /* Base font size */
}

.main-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px; /* Mobile padding */
}

@media (min-width: 720px) {
    .main-container {
        padding: 0;
    }
}

/* Typography */
h1 {
    font-family: 'HelveticaNowDisplayMedium', sans-serif;
    font-size: 1.8rem; /* 28px / 18px */
    text-align: center;
    margin: 0;
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.5px;
}

h2 {
    font-family: 'HelveticaNowDisplayMedium', sans-serif;
    font-size: 1.5rem; /* 22px / 18px */
    margin: 0;
    font-weight: 500;
    font-style: normal;
}

.accent {
    font-family: 'LouizeItalic', serif;
    font-size: 2rem; /* 32px / 18px */
    font-weight: normal;
    font-style: italic;
}

.regular {
    font-family: 'HelveticaNowDisplay', sans-serif;
    font-size: 1.8rem; /* 28px / 18px */
    text-align: center;
    margin: 0;
    font-weight: normal;
    font-style: normal;
}

.medium {
    font-family: 'HelveticaNowDisplayMedium', sans-serif;
    font-weight: 500;
    font-style: normal;
}

p {
    font-size: 1.1rem; /* 18px / 18px */
}

.footer-text {
    color: #FFFFFF;
    font-size: 1rem;
}

/* Masthead */
.masthead {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.masthead p {
    text-align: center;
    margin: 0;
}

/* Added style for kv-image */
.kv-image {
    width: 100%;
    height: auto;
}

/* Hide line break on mobile */
.desktop-only {
    display: none;
}

@media (min-width: 720px) {
    .desktop-only {
        display: inline;
    }
}

/* How Does It Work */
.how-does-it-work {
    margin-top: 60px; /* Gap between sections */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.how-to-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 30px;
}

.how-to-section hr {
    width: 100%;
    height: 1px;
    background-color: #6B7B8C;
    border: none;
    margin: 0;
}

.how-to-section img {
    align-self: center;
}

.research-item {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Ensure vertical alignment */
    max-width: 680px;
    width: 100%;
}

.research-item p {
    flex: 1 1 auto; /* Allow the paragraph to grow and shrink */
    margin: 0;
    font-size: 1rem;
    max-width: 580px; /* Adjust based on the width of the image/link */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA Section */
.cta-section {
    margin-top: 60px; /* Gap between sections */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Footer */
footer {
    width: 100%;
    max-width: none;
    background-color: #6B7B8C;
    color: #FFFFFF;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    box-sizing: border-box;
}

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


.footer-text {
    color: #FFFFFF;
    font-size: 1rem;
}

/* Media Query for Mobile Devices */
@media (max-width: 720px) {
    body {
        font-size: 27px; /* Increase base font size by 1.5x (18px * 1.5) */
    }
    .main-container {
        padding: 0 20px;
    }
}
