:root {
    --primary-color: #0a4abf;
    /* A trustworthy, professional blue */
    --secondary-color: #fca311;
    /* A bright, optimistic orange/gold for highlights */
    --dark-grey: #333333;
    --light-grey: #f4f4f4;
    --text-color: #555555;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Lato', sans-serif;
}

/* This prevents horizontal scrollbars caused by animations */
body {
    overflow-x: hidden;
}

/* General body styling for the page content area */
.clarus-story-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
}

/* --- 1. Hero Section --- */
.story-hero {
    position: relative;
    text-align: center;
    color: white;
    margin-bottom: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://placehold.co/1200x450/0a4abf/FFFFFF?text=Clarus+Horizon') no-repeat center center/cover;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-hero .hero-content {
    padding: 20px;
    animation: fadeInHero 1s ease-in-out;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-hero h1 {
    font-family: var(--heading-font);
    font-size: 3.2rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.story-hero .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 15px auto 0;
    opacity: 0.9;
}

/* --- 2. Story Content Sections --- */
.story-section {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

/* Alternating layout for visual interest */
.story-section:nth-child(even) {
    flex-direction: row-reverse;
}

.story-section .story-text {
    flex: 1;
}

.story-section h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--dark-grey);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Underline effect for headings */
.story-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.story-section:nth-child(even) h2::after {
    left: auto;
    right: 0;
}

.story-section p,
.story-section ul {
    font-size: 1.1rem;
}

.story-section ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.story-section ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

/* Custom checkmark for list items */
.story-section ul li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

.story-section .story-image {
    flex: 1;
}

.story-section .story-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.story-section .story-image img:hover {
    transform: scale(1.03);
}


/* --- 3. Call to Action Section --- */
.story-cta {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-grey);
    border-radius: 12px;
    margin-top: 60px;
}

.story-cta h2 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    color: var(--dark-grey);
}

.story-cta .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 20px;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.story-cta .cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--dark-grey);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- 4. Animation --- */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- 5. Responsive Design --- */
@media (max-width: 900px) {
    .story-hero h1 {
        font-size: 2.5rem;
    }

    .story-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .story-hero {
        height: 400px;
    }

    .story-hero h1 {
        font-size: 2.2rem;
    }

    .story-hero .subtitle {
        font-size: 1rem;
    }

    .story-section,
    .story-section:nth-child(even) {
        flex-direction: column-reverse;
        /* Image always on top on mobile */
        gap: 30px;
        text-align: center;
    }

    .story-section h2::after,
    .story-section:nth-child(even) h2::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}