#home-knowledge {
}

#home-knowledge .header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 24px;
}

#home-knowledge .header > div {
    max-width: 800px;
}

#home-knowledge .header h2 {
    /*font-family: Georgia, serif;*/
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 16px;
    color: #1a1a1a;
}

@media (min-width: 768px) {
    #home-knowledge .header h2 {
        font-size: 2.25rem;
    }

    #home-knowledge .header {
        flex-direction: row;
        align-items: flex-end;
    }
}

#home-knowledge .header p {
    color: #666;
    font-size: 1rem;
}

/* Button Styles */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #d0d0d0;
    background-color: white;
    color: #333;
    padding: 8px 16px;
    min-height: 36px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.view-all-btn:hover {
    border-color: #999;
    background-color: #f5f5f5;
    transform: translateY(-1px);
}

.view-all-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* TODO: finish */

/* Cards Grid */
#home-knowledge .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

@media (min-width: 768px) {
    #home-knowledge .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Styles */
#home-knowledge .grid {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

#home-knowledge .grid:hover {
    border-color: rgba(50, 103, 81, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 24px 24px 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-icon-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.card-icon {
    padding: 8px;
    background-color: rgba(50, 103, 81, 0.1);
    border-radius: 8px;
    color: #326753;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
}

.card-title {
    /*font-family: Georgia, serif;*/
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.card-content {
    padding: 24px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
}

.card-download {
    font-size: 0.875rem;
    font-weight: 600;
    color: #326753;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.card-download .arrow {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.knowledge-card:hover .card-download .arrow {
    transform: translateX(4px);
}
