/* ======================================================= */
/* ====== EXACT SOLUTION SECTION CSS ===================== */
/* ======================================================= */

.solution-section {
    background-color: white;
    padding-top: 5rem; /* py-20 */
    padding-bottom: 5rem;
}

@media (min-width: 1024px) { /* lg:py-24 */
    .solution-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.solution-container {
    /* width: 100%; */
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem;
    text-align: center;
}

.solution-main-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: #1e293b; /* text-slate-800 */
}

@media (min-width: 640px) { /* sm:text-4xl */
    .solution-main-title {
        font-size: 2.25rem;
    }
}

/* --- Search Bar --- */
.solution-search-wrapper {
    margin-top: 2rem; /* mt-8 */
    margin-bottom: 4rem; /* mb-16 */
    max-width: 32rem; /* max-w-lg */
    margin-left: auto;
    margin-right: auto;
}

.solution-search-box {
    position: relative;
}

.solution-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1.25rem; /* py-3 px-5 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    color: black;
    padding-left:3rem;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
    transition: all 0.3s ease-in-out;
}

.solution-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6; /* focus:ring-2 focus:ring-blue-500 */
}

.solution-search-box .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af; /* text-gray-400 */
}

/* --- Suggestions List --- */
.solution-suggestions-list {
    position: absolute; left: 0; right: 0; background-color: white; margin-top: 0.5rem; border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    max-height: 15rem; overflow-y: auto; z-index: 50; text-align: left; list-style: none; padding: 1rem;
    display: none;
}
.solution-suggestions-list.visible { display: block; }
.suggestion-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; border-radius: 0.125rem; cursor: pointer; transition: background-color 0.2s; }
.suggestion-item:hover { background-color: #f3f4f6; }
.suggestion-item img { width: 2.5rem; height: 2.5rem; border-radius: 0.375rem; object-fit: cover; }
.suggestion-item p { font-size: 0.875rem; color: #6b7280; margin: 0; }

/* --- Main Content Area --- */
.solution-content-area {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    background-color: #f9fafb; /* bg-gray-50 */
    border-radius: 1rem; /* rounded-2xl */
    padding: 2rem; /* p-8 */
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

@media (min-width: 640px) { /* sm:p-12 */
    .solution-content-area {
        padding: 3rem;
    }
}

.deco-square {
    position: absolute;
    width: 7rem; /* w-28 */
    height: 7rem; /* h-28 */
    background-color: #4f46e5; /* bg-indigo-600 */
    z-index: 0;
}

.deco-square.top-left {
    top: 0;
    left: 0;
    transform: translate(-25%, -25%);
}

.deco-square.bottom-right {
    bottom: 0;
    right: 0;
    transform: translate(25%, 25%);
}

@media (min-width: 640px) { /* sm:w-40 sm:h-40 */
    .deco-square {
        width: 10rem;
        height: 10rem;
    }
}

/* --- Displayed Solution --- */
.solution-display-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 3rem; /* gap-12 */
    align-items: center;
}

@media (min-width: 1024px) { /* lg:grid-cols-2 */
    .solution-display-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.solution-text-content {
    text-align: center;
    max-width: 42rem; /* max-w-prose */
    margin-left: auto;
    margin-right: auto;
}

.solution-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: #1e293b; /* text-slate-800 */
    margin-bottom: 1rem; /* mb-4 */
}

.solution-description {
    color: #4b5563; /* text-gray-600 */
    line-height: 1.75; /* leading-relaxed */
}

.solution-image-container {
    margin-left: auto;
    margin-right: auto;
}

.solution-image {
    width: 100%;
    height: 100%;
    max-width: 24rem; /* max-w-sm */
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
}

/* --- No Solution Message --- */
.no-solution-message {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
}

.no-solution-message h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
    color: #374151; /* text-gray-700 */
}

.no-solution-message p {
    color: #6b7280; /* text-gray-500 */
    margin-top: 0.5rem; /* mt-2 */
}