/*
==================================================================
START: Pluton Service Page Styles
Version: 1.2
Date: 2025-09-26
------------------------------------------------------------------
- v1.2: Centered hero content vertically and adjusted font sizes for mobile view.
- v1.1: Adjusted desktop hero height and added mobile overlay for text legibility.
- This stylesheet contains styles for individual service pages
like Automation & AI, Cybersecurity, etc. It is loaded
after the main style.css file.
==================================================================
*/

/* --- 1. Hero Banner --- */
.automation-page .hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* ADDED: Ensures content is perfectly centered */
    color: var(--white);
    overflow: hidden;
    height: 400px; /* MODIFIED: Slightly increased height for better mobile spacing */
}

.automation-page .hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
    z-index: 1;
}

.automation-page .hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MODIFIED: Added a gradient overlay for better text legibility on all screen sizes */
.automation-page .hero-banner::after {
    content: '';
    position: absolute;
    inset: 0; /* top, right, bottom, left = 0 */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.automation-page .hero-caption {
    position: relative;
    z-index: 2;
    text-align: center; /* Mobile default */
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.automation-page .hero-caption h1 {
    color: var(--white);
    font-size: 2.5rem; /* MODIFIED: Base font size adjusted */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.2; /* ADDED: Tighter line height for large text */
}

.automation-page .hero-caption p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    max-width: 500px; /* ADDED: Constrains paragraph width for readability */
    margin-left: auto;
    margin-right: auto;
}

/* --- 2. Main Layout (Desktop First) --- */
.automation-page .main-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.automation-page .content-section {
    margin-bottom: 50px;
}
.automation-page .content-section.bg-light {
    padding: 40px;
    border-radius: 8px;
}

.automation-page .overview-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.automation-page .overview-image {
    flex-shrink: 0;
    text-align: center;
}
.automation-page .overview-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
}

/* --- 3. Side Panel --- */
.automation-page .side-panel-sticky-content {
    position: sticky;
    top: 120px; /* Header height (85px) + 35px spacing */
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border: 1px solid var(--border-color);
}

.automation-page .side-panel-title {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.automation-page .service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.automation-page .service-list a {
    display: block;
    padding: 12px 15px;
    margin: 0 -15px;
    color: var(--primary-dark-gray);
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.automation-page .service-list a:hover {
    background-color: var(--background-light-gray);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.automation-page .service-list a.active {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}
.automation-page .service-list a.active:hover {
    transform: none;
}

.automation-page .side-panel-toggle {
    display: none; /* Hidden on desktop */
}

/* --- 4. Benefits Section --- */
.automation-page .benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.automation-page .benefit-item {
    text-align: center;
}

.automation-page .benefit-icon {
    margin-bottom: 15px;
}

.automation-page .benefit-icon svg {
    width: 64px;
    height: 64px;
}

/* --- 5. Use Cases List --- */
.automation-page .content-section ul {
    list-style: none;
    padding-left: 0;
}
.automation-page .content-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}
.automation-page .content-section ul li::before {
    content: '\f058'; /* Font Awesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    top: 4px;
}

/* --- 6. Responsive Tablet & Desktop Styles --- */
@media (min-width: 768px) {
    .automation-page .hero-banner {
        height: 520px; /* Tablet height */
    }
    .automation-page .overview-content {
        flex-direction: row;
        align-items: center;
    }
    .automation-page .overview-text {
        flex: 1;
    }
    .automation-page .overview-image {
        flex-basis: 40%;
        max-width: 40%;
        margin-left: 30px;
    }
}

@media (min-width: 1000px) {
    .automation-page .hero-banner {
        height: 600px; /* MODIFIED: Desktop height as requested */
    }
    .automation-page .hero-caption {
        text-align: left;
        margin: 0;
        max-width: 50%;
        padding: 0;
    }
}

/* --- 7. Responsive Mobile & Small Tablet (< 1000px) --- */
@media (max-width: 999px) {
    .automation-page .main-layout {
        grid-template-columns: 1fr;
    }
    .automation-page .side-panel {
        margin-top: 40px;
    }
    .automation-page .side-panel-sticky-content {
        position: static;
    }
    .automation-page .benefits-grid {
        grid-template-columns: 1fr;
    }
    .automation-page .side-panel-title {
        display: none;
    }
    .automation-page .side-panel-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 15px 20px;
        background: var(--background-light-gray);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-family: var(--font-family);
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        color: var(--primary-dark-gray);
    }
    .automation-page #side-panel-list {
        display: none;
        margin-top: 15px;
    }
    .automation-page #side-panel-list.open {
        display: block;
    }
}

/* --- 8. Mobile Typography & Spacing Adjustments --- */
@media (max-width: 767px) {
    .automation-page .hero-caption h1 {
        font-size: 2.1rem; /* Reduced for smaller screens */
    }

    .automation-page .hero-caption p {
        font-size: 1.05rem; /* Reduced for smaller screens */
    }

    .automation-page .hero-caption {
        padding: 10px; /* Reduce padding on smallest screens */
    }
}