/* ==========================================================================
   SOLUTIONS & TIPS SECTION - BASIC THEME
   News/Blog Grid Section
   ========================================================================== */

/* Solutions Section Container */
.solutions-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 60px 0 60px;
    background: #FFFFFF;
}

.solutions-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Header */
.solutions-header {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    margin-bottom: 24px;
}

.solutions-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.solutions-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: #252525;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* View All Button - Bottom Centered with Lines */
.solutions-view-all-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 28px;
    position: relative;
}

.solutions-view-all-wrapper::before {
    margin-right: 24px;
}

.solutions-view-all-wrapper::after {
    margin-left: 24px;
}

.solutions-view-all-btn {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    color: #149443;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 8px 16px;
    border: 2px solid #40C706;
    border-radius: 12px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.solutions-view-all-btn:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Old view all link - kept for backwards compatibility */
.solutions-view-all {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: #4564ED;
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 24px;
    transition: all 0.3s ease;
}

.solutions-view-all:hover {
    text-decoration: underline;
    color: #3a52d4;
}

/* Solutions Content Grid */
.solutions-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

/* Solution Card */
.solution-card {
    border-radius: 12px;
    border: 1px solid #D1D5DB;
    overflow: hidden;
    background: #FFFFFF;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Solution Image */
.solution-image {
    width: 100%;
    height: 192px;
    position: relative;
    overflow: hidden;
    background: #F3F4F6;
}

.solution-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.solution-card:hover .solution-image img {
    transform: scale(1.08);
}

/* Solution Content */
.solution-content {
    background: #FFFFFF;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    border-top: 1px solid #F3F4F6;
}

.solution-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 410;
    font-size: 15px;
    line-height: 1.5;
    color: #111827;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.solution-title:hover {
    color: var(--color-primary-gradient) ;
}

.solution-link {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    color: #149443;
    text-decoration: none;
    margin: 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.solution-link:hover {
    color: #0d6b2f;
    text-decoration: none;
}

.solution-link::after {
    content: '→';
    font-size: 14px;
    transition: transform 0.3s ease;
}

.solution-link:hover::after {
    transform: translateX(3px);
}

/* Placeholder State */
.solution-card-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #64748B;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .solutions-container {
        max-width: 1440px;
    }
}

/* Medium Desktop (1280px - 1399px) */
@media (max-width: 1399px) {
    .solutions-container {
        padding: 0 32px; /* More padding for medium screens */
    }
}

/* Desktop to Large Tablet (992px - 1199px) */
@media (max-width: 1199px) {
    .solutions-section {
        padding: 60px 0 px;
        gap: 36px;
    }

    .solutions-container {
        padding: 0 20px;
    }

    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .solutions-title {
        font-size: 36px;
        line-height: 44px;
    }

    .solutions-subtitle {
        font-size: 18px;
        line-height: 26px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .solutions-section {
        padding: 60px 0 28px;
        gap: 32px;
    }

    .solutions-container {
        padding: 0 16px;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .solutions-title {
        font-size: 32px;
        line-height: 40px;
    }

    .solutions-subtitle {
        font-size: 16px;
        line-height: 24px;
        padding-bottom: 16px;
    }

    .solutions-view-all {
        font-size: 14px;
        padding-bottom: 16px;
    }

    .solutions-view-all-wrapper {
        margin-top: 28px;
    }

    .solutions-view-all-wrapper::before {
        margin-right: 16px;
    }

    .solutions-view-all-wrapper::after {
        margin-left: 16px;
    }

    .solutions-view-all-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .solution-image {
        height: 180px;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .solutions-section {
        padding: 60px 0 28px;
        gap: 24px;
    }

    .solutions-container {
        padding: 0 16px;
    }

    .solutions-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .solutions-title {
        font-size: 24px;
        line-height: 1.2;
        color: #3D3D3D;
        font-weight: 700;
    }

    .solutions-subtitle {
        font-size: 14px;
        line-height: 20px;
        padding-bottom: 8px;
    }

    .solutions-view-all {
        padding-bottom: 0;
        font-size: 14px;
    }

    .solutions-view-all-wrapper {
        margin-top: 32px;
    }

    .solutions-view-all-wrapper::before {
        margin-right: 12px;
    }

    .solutions-view-all-wrapper::after {
        margin-left: 12px;
    }

    .solutions-view-all-btn {
        font-size: 12px;
        padding: 10px 24px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .solution-image {
        height: 200px;
    }

    .solution-content {
        padding: 12px;
    }

    .solution-title {
        font-size: 14px;
    }

    .solution-link {
        font-size: 14px;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .solutions-section {
        padding: 60px 0 28px;
    }

    .solutions-container {
        padding: 0 12px;
    }

    .solutions-title {
        font-size: 24px;
        line-height: 1.2;
        color: #3D3D3D;
        font-weight: 700;
    }

    .solutions-subtitle {
        font-size: 13px;
    }

    .solution-image {
        height: 180px;
    }
}

/* ==========================================================================
   ACCESSIBILITY & FOCUS STATES
   ========================================================================== */

.solution-card:focus-within {
    outline: 2px solid #149443;
    outline-offset: 2px;
}

.solution-title:focus,
.solution-link:focus,
.solutions-view-all:focus {
    outline: 2px solid #149443;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .solutions-section {
        padding: 20px 0;
    }

    .solution-card:hover {
        transform: none;
        box-shadow: none;
    }

    .solutions-view-all {
        display: none;
    }
}
