body {
    background-color: #f8f8ff !important;
}

.banner {
    margin-top: 66px;
    background-color: #f1f1f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 230px;
    padding: 3rem;
    position: relative;
    transition: all .3s ease;
}

.banner h2 {
    color: #ffffff00;
    font-style: normal;
    font-weight: 600;
    padding: 1rem 0;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
    word-break: break-word;
    background: linear-gradient(90deg, #681F7A, #515FE0);
    background-clip: text;
    font-size: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.083), 2.5rem);
}

.banner p {
    margin-top: 0;
    margin-bottom: 0;
    color: #515FE0 !important;
    line-height: 1.8;
    text-align: center;
}


.search-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pre-engr-exam-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

.exam-item h3 {
    margin: 0.5rem 0;
    color: transparent;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.exam-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.title-gradient {
    background: linear-gradient(90deg, #681F7A, #515FE0);
    background-clip: text;
    color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.exam-title {
    margin-right: auto;
}

.exam-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.exam-categories {
    font-size: 0.9rem;
}

.exam-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.pre-engr-download-button {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pre-engr-download-button:hover {
    background-color: #218838;
}

.trending-label {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 5px;
    white-space: nowrap;
}

.d-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

@media (max-width: 768px) {
    .title-gradient {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .exam-title {
        margin-bottom: 5px;
    }
}

@media (max-width: 1024px) {
    .pre-engr-exam-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pre-engr-exam-list {
        grid-template-columns: repeat(1, 1fr);
    }
}
