/* Hero Section */
.hero {
    background-image: url('/assets/img/democrify-hero-majestic-scenery.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative; /* Needed for the overlay */
}

/* Add a dark overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Adjust the alpha (0.5) for desired darkness */
    background-color: rgba(
        0,
        0,
        0,
        0.5
    );
    /* Place the overlay behind the content */
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative; /* Allows the text to sit above the before */
    z-index: 2; /* Place the content above the overlay */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.8em;
    margin-bottom: 32px;
}

.hero a {
    background-color: #6759c3;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}

.tagline {
    font-size: 1.5em;
    text-align: center;
    padding: 30px 20px;
    font-style: italic;
    color: #555;
}

/* Shared section styles */
.content-section {
    padding: 40px 15px;
    text-align: center;
}

.content-section-container {
    max-width: 900px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.content-section p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.content-section p.list-intro-tagline {
    font-size: 1.5em;
    margin-bottom: 25px;
    font-style: italic;
}

/* Overview Section - updated to use shared styles */
.overview {
    /* Remove existing padding and max-width as they're now in shared styles */
}

/* Why It Matters Section - updated to use shared styles */
.why-it-matters {
    background-color: #f8f8f8;
}

.why-it-matters-container {
    /* Remove max-width and margin as they're now in shared styles */
}

.why-it-matters h2 {
    /* Remove duplicated styles as they're now in shared styles */
}

.why-it-matters p {
    /* Remove duplicated styles as they're now in shared styles */
}

.reasons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.reason {
    width: calc(50% - 30px);
    padding: 20px;
    margin: 1rem;
    border-radius: 8px;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Style for the header row */
.reason-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.reason .icon {
    font-size: 1.2em;
    margin-right: 8px;
    /* Remove margin-top since we're using center alignment */
}

.reason h3 {
    font-size: 1.1em;
    margin: 0; /* Remove all margins */
    color: #333;
    line-height: 1.2;
}

.reason p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2px;
}

.reason-bad {
    border-top: 3px solid #e74c3c;
}

.reason-good {
    border-top: 3px solid #2ecc71;
}

@media (max-width: 768px) {
    .reasons {
        flex-direction: column;
        align-items: center;
    }

    .reason {
        width: 90%;
        margin: 15px 0;
    }
}

/* How It Works Section */
.how-it-works {
    background-color: white;
    padding: 60px 15px;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 1.5rem;
    text-align: left;
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #6759c3;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.step-number {
    font-size: 1.5rem;
    line-height: 1;
}

.step h3 {
    font-size: 1.1em;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.step p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #666;
    margin: 0;
    max-width: 280px;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 90%;
        max-width: none;
        margin: 0.5rem 0;
    }

    .step p {
        max-width: none;
    }
}

/* In the How It Works Section */
.content-section p.steps-cta {
    margin-top: 2rem;
    font-size: 2em;
    font-weight: 500;
    color: #6759c3;
    font-style: italic;
}

/* Bottom CTA Section */
.bottom-cta {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.bottom-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.bottom-cta h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #333;
}

.bottom-cta p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.bottom-cta .button {
    background-color: #6759c3;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    display: inline-block;
}

.bottom-cta .button:hover {
    background-color: #524799;
}
