/* Resetting basic margins and paddings */
body, h4, p, form {
    margin: 0;
    padding: 0;
}

body {
    background-color: #1c1c1c; /* Dark background */
    font-family: Arial, sans-serif;
    color: #ccc; /* Light text for contrast */
}

.resume-section {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #1c1c1c;
    box-shadow: none; /* No shadow since it blends with the dark background */
    margin: 20px auto;
    width: 80%;
    max-width: 1200px;
}

#search-query {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #444;
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: #2e2e2e; /* Darker input field background */
    color: #ccc;
}

#search-results {
    margin-top: 20px;
}

h3 {
    font-size: 24px;
    color: #fff; /* White for headings */
    margin-bottom: 20px;
}

#search-result-template {
    display: none;
}

#search-results .search-result-item {
    display: flex;
    background-color: #2e2e2e; /* Dark grey card background */
    padding: 1px;
    margin-bottom: 15px;
    border: 1px solid #333; /* Dark border to separate the cards */
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

#search-results .search-result-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

#search-results h4 a {
    color: #49a6e9; /* Light blue links */
    text-decoration: none;
    font-size: 18px;
    transition: color 0.2s;
}

#search-results h4 a:hover {
    color: #66c3ff;
}

#search-results p {
    margin-top: 1px;
    font-size: 14px;
    color: #aaa;
}

#search-results .tags, 
#search-results .categories {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.search-result-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* .search-result-details p {
    margin: 1px 0;
} */

.metadata {
    color: #888; /* Lighter color for metadata */
    font-size: 13px;
}

/* Layout adjustments for search result images */
.search-result-item {
    display: flex;
    background-color: #2e2e2e; /* Dark grey card background */
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #333; /* Dark border */
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
    align-items: flex-start;
}

.search-result-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Image styling to match homepage */
.search-result-img {
    max-width: 100px; /* 控制最大宽度 */
    max-height: 100px; /* 控制最大高度 */
    width: auto; /* 根据原始大小调整宽度 */
    height: 80px; /* 根据原始大小调整高度 */
    display: block; /* 确保图片显示为块元素 */
    border-radius: 5px; /* 圆角处理 */
    object-fit: cover; /* 确保图片适应容器，并保持宽高比 */
    margin-right: 20px; /* 添加右边距，控制图片与文字之间的间距 */
}






.search-result-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.search-result-details p {
    margin: 5px 0;
}

.metadata {
    color: #888; /* Lighter color for metadata */
    font-size: 13px;
}

h4 a {
    color: #49a6e9; /* Light blue link color */
    text-decoration: none;
}

h4 a:hover {
    color: #66c3ff;
}
