/* assistant.css */

/* --- General Page Layout --- */
/* This main element ensures content is centered and has consistent padding */
.assistant-main-content {
    max-width: 1200px; /* Adjust to match your overall content width */
    margin: 3rem auto; /* Top/bottom margin, auto left/right for centering */
    padding: 0 2rem; /* Horizontal padding for responsiveness */
    animation: fadeIn 1s ease-out; /* Smooth entrance for the page content */
    box-sizing: border-box; /* Include padding in element's total width/height */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero Section Styling */
.assistant-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem; /* Increased padding for better visual separation */
    background-color: var(--white-color); /* Use a light background */
    border-radius: 12px; /* Soft rounded corners */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Subtle shadow */
}

.assistant-hero h1 {
    font-size: 2.8em; /* Large heading */
    color: var(--dark-color); /* Dark text for contrast */
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.assistant-hero p {
    font-size: 1.2em;
    color: var(--text-color);
    line-height: 1.6;
    max-width: 800px; /* Limit paragraph width for readability */
    margin: 0 auto; /* Center the paragraph */
}

/* --- Two Side-by-Side Blocks Container --- */
.blocks-container {
    display: flex;
    flex-wrap: wrap; /* Allows blocks to wrap to the next line on smaller screens */
    gap: 2.5rem; /* Space between the blocks */
    margin-bottom: 4rem; /* Space below the blocks */
    justify-content: center; /* Centers blocks horizontally if there's extra space */
    align-items: stretch; /* Makes blocks have equal height based on content */
}

.feature-block {
    flex: 1; /* Allows blocks to grow and shrink to fill space */
    min-width: 320px; /* Minimum width before they wrap to a new line */
    background-color: var(--white-color);
    border-radius: 15px; /* More pronounced rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); /* Stronger, softer shadow */
    overflow: hidden; /* Ensures image corners are also rounded */
    display: flex;
    flex-direction: column; /* Stacks image on top of content */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

.feature-block:hover {
    transform: translateY(-10px); /* Lifts the block on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.block-image {
    width: 100%;
    height: 280px; /* Fixed height for consistent image size */
    object-fit: cover; /* Ensures image covers the area, cropping if necessary */
    display: block; /* Removes extra space below image */
    border-bottom: 1px solid var(--light-bg); /* Subtle separator */
}

.block-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content area to fill remaining vertical space */
    justify-content: space-between; /* Pushes button to bottom if content varies */
}

.block-content h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.block-content p {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.8rem;
    flex-grow: 1; /* Allows paragraph to take up available vertical space */
}

.block-button {
    display: inline-block;
    background-color: var(--secondary-color); /* Using a secondary color for distinction */
    color: var(--white-color);
    padding: 0.9rem 2rem;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start; /* Align button to the left within the block */
    letter-spacing: 0.03em;
}

.block-button:hover {
    background-color: #218838; /* Darker secondary */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}

/* --- Call to Action Button at the End --- */
.explore-more-section {
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 5rem; /* Ample spacing from bottom */
    padding: 3rem;
    background-image: linear-gradient(to right, #e0f2f7, #f0f7f8); /* Subtle gradient background */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.explore-more-section h3 {
    font-size: 2.5em;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.explore-more-section p {
    font-size: 1.15em;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.primary-action-button {
    display: inline-block;
    /* Use a vibrant gradient for the main call to action */
    background-image: linear-gradient(to right, var(--primary-color) 0%, #6f42c1 100%); /* Blue to Purple */
    color: var(--white-color);
    padding: 1.3rem 3rem;
    border-radius: 35px; /* More rounded */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3em;
    letter-spacing: 0.08em; /* Slightly spaced out text */
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3); /* Stronger shadow */
    transition: all 0.3s ease;
    overflow: hidden; /* For the pseudo-element hover effect */
    position: relative; /* For the pseudo-element */
    z-index: 1; /* To keep text above pseudo-element */
    min-width: 250px; /* Ensure button isn't too small */
}

/* Subtle overlay on hover for the main button */
.primary-action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2); /* White translucent overlay */
    transition: all 0.4s ease;
    z-index: -1;
}

.primary-action-button:hover {
    transform: translateY(-5px); /* Larger lift effect */
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.45); /* More prominent shadow */
}

.primary-action-button:hover::before {
    left: 0; /* Slide in the overlay */
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .assistant-hero h1 {
        font-size: 2.4em;
    }
    .assistant-hero p {
        font-size: 1.1em;
    }
    .feature-block {
        flex: 1 1 45%; /* Allow two items per row with slightly less flex growth */
    }
}

@media (max-width: 768px) {
    .assistant-main-content {
        padding: 0 1.5rem;
        margin: 2rem auto;
    }

    .assistant-hero {
        padding: 2rem;
    }

    .assistant-hero h1 {
        font-size: 2em;
    }

    .assistant-hero p {
        font-size: 1em;
    }

    .blocks-container {
        flex-direction: column; /* Stack blocks vertically on smaller screens */
        gap: 1.8rem;
    }

    .feature-block {
        min-width: unset; /* Remove min-width when stacked */
        width: 100%;
    }

    .block-image {
        height: 220px; /* Adjust image height for smaller screens */
    }

    .block-content {
        padding: 1.5rem;
    }

    .block-content h2 {
        font-size: 1.7em;
    }

    .block-content p {
        font-size: 0.95rem;
    }

    .block-button {
        padding: 0.8rem 1.6rem;
        font-size: 0.9rem;
    }

    .explore-more-section {
        padding: 2.5rem;
        margin-top: 3.5rem;
        margin-bottom: 3.5rem;
    }

    .explore-more-section h3 {
        font-size: 2em;
    }

    .explore-more-section p {
        font-size: 1em;
    }

    .primary-action-button {
        padding: 1rem 2.2rem;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .assistant-main-content {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }
    .assistant-hero h1 {
        font-size: 1.6em;
    }
    .assistant-hero p {
        font-size: 0.9em;
    }
    .block-image {
        height: 180px;
    }
    .block-content h2 {
        font-size: 1.5em;
    }
    .block-content p {
        font-size: 0.85rem;
    }
    .block-button {
        padding: 0.7rem 1.4rem;
        font-size: 0.8rem;
    }
    .explore-more-section h3 {
        font-size: 1.8em;
    }
    .explore-more-section p {
        font-size: 0.9em;
    }
    .primary-action-button {
        padding: 0.9rem 1.8rem;
        font-size: 1em;
    }
}