* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #F9F0EA 0%, #FFF8F0 50%, #ffffff 100%);
    min-height: 100vh;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 15px 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #348054, #2a6844);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.logo:hover .logo-icon {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #000, #000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-subscribe {
    background: linear-gradient(90deg, #348054, #2a6844);
    color: white;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.btn-subscribe:hover {
    background: linear-gradient(90deg, #2a6844, #1e4a2f);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

/* Container */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 50px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(52, 128, 84, 0.1);
    color: #348054;
    border: 1px solid rgba(52, 128, 84, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.75rem;
    }
}

.subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto 2rem;
}

/* Subscription Banner */
.subscription-banner {
    background: linear-gradient(90deg, #348054, #2a6844);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 42rem;
    margin: 0 auto 3rem;
}

.banner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.banner-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.banner-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.btn-banner {
    background: white;
    color: #348054;
    padding: 0.75rem 2rem;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-banner:hover {
    background: #f3f4f6;
}

/* Category Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.filter-btn:hover {
    border-color: #348054;
}

.filter-btn.active {
    background: #348054;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #348054;
}

/* Ebooks Grid */
.ebooks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ebooks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ebooks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ebook-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.ebook-card:hover {
    border-color: #348054;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.ebook-cover {
    margin-bottom: 1rem;
    height: 16rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.ebook-cover img {
    width: 50%;
    margin-top: 6px !important;
    height: 95%;
    object-fit: cover;
    display: flex;
    margin: 0 auto;
}

.ebook-cover-placeholder {
    height: 12rem;
    border-radius: 0.75rem;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 1rem;
}

.color-green {
    background: #dcfce7;
    border-color: #bbf7d0;
}

.color-blue {
    background: #dbeafe;
    border-color: #bfdbfe;
}

.color-yellow {
    background: #fef3c7;
    border-color: #fde68a;
}

.color-orange {
    background: #fed7aa;
    border-color: #fdba74;
}

.color-beige {
    background: #fef3c7;
    border-color: #fde68a;
}

.color-teal {
    background: #ccfbf1;
    border-color: #99f6e4;
}

.ebook-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.ebook-features {
    list-style: none;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ebook-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.ebook-features li i {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.ebook-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 1.875rem;
    font-weight: 800;
    color: #000;
}

.price-note {
    font-size: 0.875rem;
    color: #6b7280;
}

.ebook-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-buy {
    width: 100%;
    padding: 0.75rem;
    background: #348054;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-buy:hover {
    background: #2a6844;
}

.btn-subscription {
    width: 100%;
    padding: 0.75rem;
    background: white;
    color: #348054;
    border: 2px solid #348054;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-subscription:hover {
    background: #348054;
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #FAF5F0, #F5EBE1, #F0E5DB);
    padding: 3rem 1.5rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 72rem;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #348054;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.footer-description {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-section h4 {
    font-weight: 700;
    color: #000;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #374151;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #348054;
}

.lang-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.7);
}

.disclaimer {
    margin-bottom: 1.5rem;
}

.disclaimer p {
    color: #374151;
    font-size: 0.75rem;
    line-height: 1.5;
}

.copyright {
    border-top: 1px solid #d1d5db;
    padding-top: 1rem;
    text-align: center;
}

.copyright p {
    color: #374151;
    font-size: 0.75rem;
}

.hidden {
    display: none;
}


@media (max-width : 768px) {
    .header-container {
        padding: 15px 10px;
    }

    .ebook-cover img {
        margin-top: 12px !important;
        width: 54%;
        height: 91%;
        object-fit: cover;
        display: flex;
        margin: 0 auto;
    }
}