/**
 * Styles for Our Solutions
 * Handles Parent Category Dashboard, Child Category Listing, and Single Post Content
 */

/* ========================================
   General Container Styles
   ======================================== */

.solution-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.solution-content {
    width: 100%;
}

/* ========================================
   Breadcrumb Styles
   ======================================== */

.solution-breadcrumb {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.solution-breadcrumb .breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.solution-breadcrumb .breadcrumb-item {
    margin-right: 10px;
    margin-bottom: 5px;
}

.solution-breadcrumb .breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: #666;
}

.solution-breadcrumb .breadcrumb-item a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.solution-breadcrumb .breadcrumb-item a:hover {
    color: #005a87;
    text-decoration: underline;
}

.solution-breadcrumb .breadcrumb-item.active {
    color: #333;
    font-weight: 600;
}

/* ========================================
   Page Header Styles
   ======================================== */

.solution-page-header {
    margin-bottom: 40px;
    text-align: center;
}

.solution-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.solution-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Parent Category Dashboard
   ======================================== */

.solution-child-categories {
    margin-top: 40px;
}

.solution-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.solution-child-category {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-child-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solution-category-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solution-category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.solution-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-child-category:hover .solution-category-image img {
    transform: scale(1.05);
}

.solution-category-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.solution-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.solution-category-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.solution-category-title a:hover {
    color: #0073aa;
}

.solution-category-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.solution-category-link {
    margin-top: auto;
}

/* ========================================
   Child Category Listing
   ======================================== */

.solution-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.solution-post-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solution-post-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solution-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.solution-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-post-card:hover .solution-post-image img {
    transform: scale(1.05);
}

.solution-post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.solution-post-header {
    margin-bottom: 15px;
}

.solution-post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.solution-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.solution-post-title a:hover {
    color: #0073aa;
}

.solution-post-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.solution-post-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.solution-post-link {
    margin-top: auto;
}

/* ========================================
   Single Post Content
   ======================================== */

.solution-single {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.solution-single-header {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

.solution-single-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.solution-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: #666;
}

.solution-single-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.solution-single-meta a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.solution-single-meta a:hover {
    color: #005a87;
    text-decoration: underline;
}

.solution-single-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.solution-single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-single-content {
    padding: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.solution-single-content h1,
.solution-single-content h2,
.solution-single-content h3,
.solution-single-content h4,
.solution-single-content h5,
.solution-single-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.solution-single-content h1 {
    font-size: 2rem;
}

.solution-single-content h2 {
    font-size: 1.8rem;
}

.solution-single-content h3 {
    font-size: 1.6rem;
}

.solution-single-content p {
    margin-bottom: 20px;
}

.solution-single-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.solution-single-footer {
    padding: 40px;
    border-top: 1px solid #eee;
}

.solution-single-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.solution-nav-prev,
.solution-nav-next {
    flex: 1;
    min-width: 200px;
}

/* ========================================
   Related Posts
   ======================================== */

.solution-related-posts {
    margin-top: 40px;
}

.solution-related-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.solution-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.solution-related-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.solution-related-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.solution-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-related-card:hover .solution-related-image img {
    transform: scale(1.05);
}

.solution-related-content {
    padding: 20px;
}

.solution-related-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.solution-related-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.solution-related-title a:hover {
    color: #0073aa;
}

.solution-related-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.solution-related-link {
    margin-top: 15px;
}

/* ========================================
   Button Styles
   ======================================== */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0073aa;
    color: #fff;
}

.btn-primary:hover {
    background-color: #005a87;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #545b62;
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.btn-outline:hover {
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* ========================================
   No Content Styles
   ======================================== */

.no-categories,
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-categories p,
.no-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .solution-container {
        padding: 20px 15px;
    }
    
    .solution-page-title,
    .solution-single-title {
        font-size: 2rem;
    }
    
    .solution-categories-grid,
    .solution-posts-grid,
    .solution-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .solution-single-header,
    .solution-single-content,
    .solution-single-footer {
        padding: 25px;
    }
    
    .solution-single-navigation {
        flex-direction: column;
    }
    
    .solution-nav-prev,
    .solution-nav-next {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .solution-page-title,
    .solution-single-title {
        font-size: 1.8rem;
    }
    
    .solution-single-header,
    .solution-single-content,
    .solution-single-footer {
        padding: 20px;
    }
    
    .solution-single-meta {
        flex-direction: column;
        gap: 10px;
    }
}