/* General Styles */
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F7F6F3;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px; /* Base font size */
}

/* Header */
.main-header {
    text-align: center;
    background: linear-gradient(135deg, #2C7A7B, #48BB78);
    color: white;
    padding: 20px 20px;
    position: relative;
    width: 100%;
}

.main-header::before {
    content: "";
    background: url('header-background.jpg') no-repeat center center/cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 0;
}

.logo {
    width: 200px;
    height: auto; /* Ensures the logo maintains its aspect ratio */
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.main-header h1,
.main-header p {
    position: relative;
    z-index: 1;
    margin: 10px 0;
    text-align: center;
}

.main-header .app-store-badge {
    height: 40px;
    margin-top: 15px;
}

/* How It Works Section */
.how-it-works-section {
    padding: 40px;
    text-align: center;
    background-color: #FFFFFF;
}

.how-it-works-section h2 {
    color: #2C7A7B;
    margin-bottom: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    min-width: 200px; /* Prevents steps from getting too squished */
}

.steps-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step-icon {
    font-size: 3.5rem;
    color: #48BB78;
}

.step h3 {
    color: #2C7A7B;
    margin: 20px 0 10px;
}

/* Mission Section */
.mission-section {
    padding: 40px;
    text-align: center;
    background-color: #E8F5E9;
    margin-bottom: 20px;
}

.mission-section h2 {
    color: #2C7A7B;
    margin-bottom: 20px;
}

.mission-section p {
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Get the App Section */
.get-the-app-section {
    padding: 40px;
    text-align: center;
    background-color: #E8F5E9;
}

.get-the-app-section h2 {
    color: #2C7A7B;
    margin-bottom: 20px;
}

.app-store-badge-large {
    height: 55px;
    margin-top: 15px;
}

/* Features Section */
.features-section {
    padding: 40px;
    background-color: #FFFFFF;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.features-section h2 {
    text-align: center;
    color: #2C7A7B;
    margin-bottom: 20px;
    width: 100%;
}

.feature {
    flex: 1 1 300px;
    margin: 20px;
    padding: 20px;
    background: #FAFAFA;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 275px;
    height: 275px;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: 8px;
}

.feature h3 {
    color: #2C7A7B;
    margin: 15px 0;
}

/* Button Styles */
a.btn {
    display: inline-block;
    margin-top: 0.5em;
    padding: 0.6em 1.2em;
    background: #2C7A7B;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

a.btn:hover {
    background: #256268;
}

/* Content Section  - Used on privacy and support page*/
.content-section {
    padding: 40px 80px;
    text-align: left;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
    box-sizing: border-box;
}

.content-section h2,
.content-section h3,
.content-section p,
.content-section ul {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-section ul {
    padding-left: 40px;
    list-style-position: outside;
}

.content-section ul ul {
    margin: 10px 0 10px 20px;
}

.content-section li {
    margin-bottom: 8px;
    padding-left: 10px;
}

.content-section.text-center {
    text-align: center;
}

.content-section-alt {
    background-color: #E8F5E9; /* Light green from mission section */
}

.content-section-highlight {
    background-color: #FFFBEA;
    border: 1px solid #F6E05E;
}

.content-section h2 {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between icon and text */
    color: #2C7A7B;
}

.material-icons.heading-icon {
    font-size: 2.5rem;
    color: #2C7A7B;
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

/* Quick Tips - on the Support page */
.quick-tips {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.quick-tip {
    background-color: #F7F6F3;
    border-left: 5px solid #4CAF50;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.quick-tip h3 {
    margin-top: 0;
    color: #2C7A7B;
}

/* Thumbsup/down- on the Support page */
.thumb-up {
    color: green;
    font-size: 24px; /* Adjust size if needed */
}

.thumb-down {
    color: red;
    font-size: 24px; /* Adjust size if needed */
}


/* Navigation */
.main-nav {
    background-color: #2C7A7B;
    padding: 10px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line on smaller screens */
    justify-content: center;
    align-items: center;
}

.nav-links li {
    padding: 0 15px;
}

.nav-links li + li { /* Adds a separator to all but the first item */
    border-left: 1px solid white;
}

.nav-links a {
    text-decoration: none;
    color: white;
    display: block; /* Makes the entire area clickable */
    padding: 5px 0;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 20px;
    background-color: #2C7A7B;
    color: white;
    margin-top: auto;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 17px; /* Slightly larger font for mobile readability */
    }

    .main-header {
        padding: 15px 20px;
    }

    .logo {
        width: 150px;
        margin-bottom: 10px;
    }

    .main-header .app-store-badge {
        height: 35px;
    }

    .main-header h1 {
        font-size: 2rem; /* Reduce font size on smaller screens */
        line-height: 1.2;
    }

    /* Make all main sections full-width with consistent padding on mobile */
    .mission-section,
    .how-it-works-section,
    .features-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .steps-container {
        flex-direction: column;
    }

    .content-section {
        padding: 20px;
        width: 100%;
        margin: 10px 0;
        box-sizing: border-box;
    }
    
    .content-section ul {
        padding-left: 25px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-links li + li {
        border-left: none; /* Removes separators on mobile */
    }

    .nav-links li {
        padding: 5px 15px;
    }

    .feature {
        flex: 1 1 100%;
        margin: 10px 0;
    }
}