.exam-books-page {
    padding: 40px 20px;
    background: #f7f8fc;
    min-height: 100vh;
}

.exam-books-container {
    max-width: 1200px;
    margin: 0 auto;
}

.exam-books-header {
    margin-bottom: 30px;
}

.exam-books-back-link {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #2563eb;
    font-size: 14px;
    font-weight: 500;
}

.exam-books-back-link:hover {
    text-decoration: underline;
}

.exam-books-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}

.exam-books-subtitle {
    margin: 0;
    max-width: 850px;
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
}

.exam-books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.exam-book-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.exam-book-image-wrapper {
    height: 280px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.exam-book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.exam-book-no-image {
    color: #9ca3af;
    font-size: 14px;
}

.exam-book-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.exam-book-name {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: #111827;
}

.exam-book-description {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    flex: 1;
}

.exam-book-buy-button {
    display: inline-block;
    align-self: flex-start;
    padding: 11px 18px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.exam-book-buy-button:hover {
    background: #1d4ed8;
}

.exam-books-empty-state {
    grid-column: 1 / -1;
    padding: 50px 20px;
    text-align: center;
    color: #6b7280;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

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

@media (max-width: 767px) {
    .exam-books-page {
        padding: 30px 15px;
    }

    .exam-books-title {
        font-size: 28px;
    }

    .exam-books-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .exam-book-image-wrapper {
        height: 240px;
    }
}