/* css/style.css */

body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    background-color: #fefefe;
    color: #1a1a1a;
    padding: 2rem;
    line-height: 1.6;
}

.container {
    max-width: 880px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.mission-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.mission-desc {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.8;
}

/* --- Carousel styles --- */
.carousel-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
    margin-bottom: 3rem;
    border-radius: 8px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: grab;
    width: 100%; /* Ensures it takes full width of its parent (.container) */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.carousel-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.carousel-content {
    display: flex;
    gap: 1.5rem; /* Fixed gap of 24px */
    user-select: none;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap; /* Keep cards in single row */

    /* CSS variables dynamically set by JS */
    --carousel-gap: 1.5rem;
    --cards-to-show: 1;
}

/* --- Card Container --- */
.use-case-card {
    scroll-snap-align: start;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    user-select: none;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    box-sizing: border-box;

    width: calc(
        (100% - (var(--carousel-gap) * (var(--cards-to-show) - 1))) /
            var(--cards-to-show)
    );
    flex-shrink: 0;
    flex-grow: 0;
    max-width: none;
    margin: 0;
    position: relative;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Card Title */
.use-case-card h4 {
    font-size: 1.3rem;
    margin-top: 0;
    color: #0070f3;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

/* Card Description */
.use-case-card p {
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
    margin-bottom: 1rem;
    min-height: 5rem;

    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    white-space: normal;
    text-align: center;
}

/* Call to Action Button inside card */
.use-case-card .cta-button {
    margin-top: auto;
    font-size: 0.95rem;
    padding: 0.9rem 1.6rem;

    background: transparent;
    color: #555555;
    border: 1px solid #777777;

    border-radius: 25px;

    text-decoration: none;
    align-self: center;
    flex-shrink: 0;
    cursor: pointer;

    pointer-events: auto; /* Ensure button remains clickable */

    transition: all 0.3s ease;
    user-select: none;
}

.use-case-card .cta-button:hover,
.use-case-card .cta-button:focus-visible {
    background: #cad8e4;
    color: #222222;
    border-color: #aabccd;

    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

    font-weight: 600;
    outline: none;
}

.use-case-card .cta-button:focus-visible {
    outline: 2px solid #0070f3;
    outline-offset: 2px;
}

/* --- Engagement Section --- */
.engagement-section {
    background-color: #e6f2ff;
    padding: 2.5rem;
    border-radius: 8px;
    margin-top: 3rem;
    text-align: center;
}

.engagement-section h3 {
    font-size: 1.7rem;
    color: #004080;
    margin-bottom: 1rem;
}

.engagement-section p {
    font-size: 1.1rem;
    color: #0059b3;
    margin-bottom: 1.5rem;
}

.engagement-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: 400px;
    margin: 0 auto;
}

.engagement-form input[type="email"],
.engagement-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #0070f3;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.engagement-form button {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: #0070f3;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.engagement-form button:hover {
    background: #005bb5;
}

.branding {
    font-style: italic;
    margin-top: 3.5rem;
    font-size: 1rem;
    text-align: center;
    color: #444;
}

footer {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #aaa;
    text-align: center;
}
