@charset "utf-8";
/**
 * Knowledge Base & Resources Center Page Styles
 * Modularized from style.css
 */
/* lejunbo 2025.07.18 update new resources css style */
/* Base styles and reset */
.container {
    max-width: 1200px;
    /* Increased max width for more cards */
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero section and search area */
.hero-section {
    padding: 80px 0;
    text-align: center;
    color: #2c3e50;
}

.hero-section .page-title {
    font-size: 52px;
    /* Larger title */
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.hero-section .subtitle {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar-container {
    display: flex;
    justify-content: center;
    max-width: 700px;
    /* Wider search area */
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    /* Larger border radius */
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    /* More prominent shadow */
    border: 1px solid #e0e0e0;
    /* Added border */
}

#search-input {
    flex-grow: 1;
    border: none;
    padding: 18px 25px;
    /* Larger input */
    font-size: 18px;
    outline: none;
}

#search-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 18px 35px;
    /* Larger button */
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#search-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    /* Hover micro animation */
}

/* Main content area - card grid layout */
.main-content {
    padding: 60px 0;
}

.card-grid {
    display: grid;
    /* Use CSS Grid layout */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Auto-fit columns, min 300px each */
    gap: 30px;
    /* Gap between cards */
}

.resource-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Card shadow */
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    /* Hover lift effect */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* Deeper shadow on hover */
}

.card-icon {
    font-size: 48px;
    /* Icon size */
    color: #007bff;
    /* Icon color */
    margin-bottom: 20px;
    text-align: center;
    /* Center icon */
}

.card-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    /* Center title */
}

.card-subtitle {
    font-size: 16px;
    color: #777;
    margin-bottom: 25px;
    text-align: center;
    /* Center subtitle */
}

.card-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
    /* Let link list take available space, align "view all" to bottom */
}

.card-links li {
    margin-bottom: 12px;
}

.card-links li:last-child {
    margin-bottom: 0;
}

.card-links a {
    text-decoration: none;
    color: #007bff;
    font-size: 16px;
    transition: color 0.3s ease;
    display: block;
    /* Make link clickable area larger */
    white-space: nowrap;
    /* Force text not to wrap */
    overflow: hidden;
    /* Hide content that exceeds container */
    text-overflow: ellipsis;
    /* Show ellipsis when content is clipped */
}

.card-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.view-all {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    /* Separator line */
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #0056b3;
}
