*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    background: #f9f9f9;
    color: #222;
    min-height: 100vh;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 150px 32px 90px;
}

.hero-text {
    text-align: center;
    margin-bottom: 60px;
}

.hero-text h1 {
    font-weight: 600;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 12px;
}

.hero-text p {
    font-size: 1rem;
    color: #555;
}

.cards-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: flex-start;
}

.ebook-card {
    width: 380px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-transition: transform 0.22s, box-shadow 0.22s;
    transition: transform 0.22s, box-shadow 0.22s;
    cursor: pointer;
}

.ebook-card:hover {
    -webkit-transform: translateY(-6px);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

.card-img-wrap {
    background: #ececec;
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
}

@supports (aspect-ratio: 1 / 1) {
    .card-img-wrap {
        padding-top: 0;
        aspect-ratio: 1 / 1;
        position: relative;
    }
}

.card-img-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.card-photo {
    border-radius: 10px;
    display: block;
    -o-object-fit: contain;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.card-photo-wide {
    width: 100%;
    height: auto;
}

.card-photo-tall {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.card-body {
    padding: 24px 24px 28px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
}

.ebook-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.5;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin-bottom: 16px;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.price-label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 3px;
}

.price {
    font-weight: 700;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 20px;
}

.btn-download {
    display: block;
    width: 100%;
    background: -webkit-linear-gradient(315deg, #1F8D4F, #0C5D30);
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 14px 0;
    border-radius: 50px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.ebook-card:hover .btn-download {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-filter: brightness(110%);
    filter: brightness(110%);
}