/* ===== SEARCH PAGE STYLES ===== */
.search-main {
    margin-top: 140px;
    min-height: calc(100vh - 140px);
    background-color: #f5f5f5;
    padding: 40px 20px 60px;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section */
.search-header {
    background-color: white;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-header h1 {
    font-size: 36px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.search-header h1 i {
    margin-right: 10px;
    color: #042240;
}

.search-header p {
    font-size: 18px;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.search-header strong {
    color: #042240;
    font-weight: 600;
}

/* Search Form Section */
.search-form-section {
    background-color: white;
    padding: 40px;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.search-form {
    max-width: 800px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #042240;
    background-color: white;
}

.search-input-wrapper i.fa-search {
    color: #6c757d;
    font-size: 18px;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #2c3e50;
}

.search-input-wrapper input::placeholder {
    color: #6c757d;
}

.search-submit-btn {
    background-color: #042240;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background-color: #0080ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.search-submit-btn i {
    margin-right: 8px;
}

/* Empty State Section */
.empty-state-section,
.no-results-section {
    background-color: white;
    padding: 60px 40px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    width: 100px;
    height: 100px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.empty-icon i {
    font-size: 50px;
    color: #042240;
}

.empty-state-section h2,
.no-results-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-state-section p,
.no-results-section p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 40px;
}

.no-results-section strong {
    color: #042240;
}

/* Suggestions Section */
.suggestions-section {
    margin-top: 40px;
}

.suggestions-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.suggestion-tag {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.suggestion-tag:hover {
    background-color: #042240;
    color: white;
    border-color: #042240;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.2);
}

/* Tips Section */
.tips-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tips-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #495057;
    font-size: 14px;
}

.tips-list i {
    color: #042240;
    font-size: 16px;
}

/* Results Section */
.results-section {
    background-color: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.results-count {
    font-size: 14px;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

/* Result Card */
.result-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #042240;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.result-icon {
    width: 50px;
    height: 50px;
    background-color: #042240;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.result-category-badge {
    background-color: white;
    color: #042240;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #024f9c;
}

.result-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.result-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.result-title a:hover {
    color: #042240;
}

/* Highlight matched terms */
.result-title mark,
.result-description mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.result-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.result-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 13px;
    color: #6c757d;
}

.meta-item i {
    color: #042240;
    margin-right: 5px;
}

.result-link {
    display: inline-flex;
    align-items: center;
    color: #042240;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.result-link:hover {
    color: #0080ff;
    transform: translateX(5px);
}

.result-link i {
    margin-left: 8px;
    font-size: 12px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
    .search-main {
        margin-top: 120px;
        padding: 30px 15px 40px;
    }
    
    .search-header {
        padding: 40px 20px;
    }
    
    .search-header h1 {
        font-size: 28px;
    }
    
    .search-header p {
        font-size: 16px;
    }
    
    .search-form-section,
    .empty-state-section,
    .no-results-section,
    .results-section {
        padding: 30px 20px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .search-input-wrapper i.fa-search {
        display: none;
    }
    
    .search-submit-btn {
        width: 100%;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .suggestion-tags {
        flex-direction: column;
    }
    
    .suggestion-tag {
        text-align: center;
    }
    
    .empty-state-section h2,
    .no-results-section h2 {
        font-size: 24px;
    }
    
    .empty-state-section p,
    .no-results-section p {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .search-main {
        padding: 20px 10px 30px;
    }
    
    .search-header h1 {
        font-size: 24px;
    }
    
    .result-card {
        padding: 20px 15px;
    }
    
    .empty-icon {
        width: 80px;
        height: 80px;
    }
    
    .empty-icon i {
        font-size: 40px;
    }
}