/*
 * File: use-cases.css
 * This file EXTENDS the global style.css, using its variables and base styles.
 * It only contains styles unique to the use-cases page.
*/

/* --- 1. Main Page Layout --- */
.use-cases-container {
    /* The global .container class handles max-width and horizontal padding.
       We just add vertical padding here. */
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* --- 2. Page Header --- */
.use-cases-container h1 {
    font-size: 2.8rem;
    text-align: center;
}

.use-cases-subtitle {
    /* This class is unique to this page, so we style it fully here,
       using variables from the global style.css. */
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 1rem auto 4rem auto; /* Top, horizontal, bottom */
    text-align: center;
}

/* --- 3. Use Case Card Styling --- */
/* This is the main custom component for this page. */
.use-case-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    
    /* --- CHANGE HERE --- */
    /* Set a max-width and use auto margins to center the card. */
    max-width: 720px;
    margin: 0 auto 2.5rem auto; /* Top, Horizontal, Bottom */
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.use-case-card h2 {
    font-size: 1.75rem;
    margin-top: 0; /* Remove default margin */
}

.use-case-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Ensure code blocks inside cards have appropriate margins */
.use-case-card .code-block-container {
    margin: 1.5rem 0; /* Override the global auto horizontal margin */
    max-width: 100%; /* Ensure it fits the card */
}

/* --- 4. Final Call-to-Action Section --- */
.final-cta {
    padding: 4rem 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.final-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Spacing between the CTA buttons */
.final-cta .btn {
    margin: 0.5rem;
}

/* --- 5. Responsive Adjustments --- */
@media (max-width: 768px) {
    .use-cases-container h1 {
        font-size: 2.2rem;
    }
    .use-case-card {
        padding: 1.5rem;
    }
}