/* Modernized solution.css with Glassmorphism & Smooth Effects */

:root {
    --primary-color: #001f3f;
    --secondary-color: #007bff;
    --accent-color: #ffcc00;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* Main Container */
.solution-container {
    display: flex;
    margin-top: 80px;
    flex-direction: column; /* Stack sidebar and content vertically on mobile */
}

/* Sidebar Navigation */
.solution-sidebar {
    width: 100%; /* Full width on mobile */
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    margin-bottom: 2rem; /* Add space between sidebar and content on mobile */
    overflow-y: auto; /* Make sidebar scrollable if content overflows */
    max-height: 300px; /* Limit height for mobile */
}

.sidebar-box h3 {
    font-size: 1.7rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    text-align: center;
}

.solution-sidebar ul {
    list-style: none;
    padding: 0;
}

    .solution-sidebar ul li a {
        color: var(--text-light);
        text-decoration: none;
        font-size: 1.1rem;
        display: block;
        padding: 0.7rem 1rem;
        border-radius: 8px;
        transition: 0.3s;
    }

        .solution-sidebar ul li a:hover {
            background: var(--accent-color);
            color: var(--primary-color);
            font-weight: bold;
        }

/* Content Sections */
.solution-content {
    flex: 1;
    padding: 1rem; /* Reduced padding for mobile */
}

.solution-section {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 3rem 1rem; /* Adjusted padding for mobile */
    text-align: center;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

    .solution-section:target {
        display: block;
        opacity: 1;
    }

/* Text and Image Container */
.text-image-container {
    display: flex;
    flex-direction: column; /* Stack text and image vertically on mobile */
    align-items: center;
    gap: 2rem; /* Reduced gap for mobile */
}

    /* Ensure all text inside <p> tags is white */
    .text-image-container p {
        color: var(--text-light);
    }

        /* Ensure <strong> tags inside <p> are also white */
        .text-image-container p strong {
            color: var(--text-light);
        }

/* Text Box */
.feature-item {
    background: var(--glass-bg);
    padding: 1.5rem; /* Reduced padding for mobile */
    border-radius: 10px;
    transition: 0.3s ease-in-out;
    max-width: 100%; /* Full width on mobile */
}

    .feature-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

/* Image */
.image-content img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

    .image-content img:hover {
        transform: scale(1.05);
    }

/* Responsive Design */
@media (min-width: 768px) {
    .solution-container {
        flex-direction: row; /* Sidebar and content side by side on larger screens */
    }

    .solution-sidebar {
        width: 250px; /* Fixed width for sidebar on larger screens */
        position: fixed;
        height: calc(100vh - 80px);
        margin-bottom: 0; /* Remove margin on larger screens */
        max-height: none; /* Remove max-height for larger screens */
    }

    .solution-content {
        margin-left: 260px; /* Add margin to avoid overlap with sidebar */
        padding: 3rem; /* Restore padding for larger screens */
    }

    .solution-section {
        padding: 5rem 2rem; /* Restore padding for larger screens */
    }

    .text-image-container {
        flex-direction: row; /* Text and image side by side on larger screens */
        gap: 5rem; /* Restore gap for larger screens */
    }

    .feature-item {
        max-width: 60%; /* Restore max-width for larger screens */
    }
}

/* Change color for all section headings */
.solution-section h3 {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

    /* Hover effect for section headings */
    .solution-section h3:hover {
        color: var(--secondary-color);
        transition: color 0.3s ease-in-out;
    }
