/*==================================================
EBOOK PAGE
Sutan Khulifah Academy
==================================================*/

.ebook-wrapper{

    background:
    linear-gradient(
        180deg,
        #fffaf1 0%,
        #ffffff 45%,
        #f8f4ee 100%
    );

}


/*==================================================
HERO
==================================================*/

.ebook-hero{

    padding:120px 20px 90px;

    text-align:center;

    background:
    linear-gradient(
        135deg,
        #07101f,
        #10243c,
        #17304f
    );

    color:white;

}

.ebook-label{

    display:inline-block;

    padding:10px 22px;

    border-radius:50px;

    background:rgba(255,255,255,.08);

    color:#d7b46b;

    letter-spacing:2px;

    font-size:13px;

    margin-bottom:25px;

}

.ebook-hero h1{

    font-size:58px;

    margin-bottom:25px;

    line-height:1.15;

}

.ebook-hero p{

    max-width:760px;

    margin:auto;

    color:#d9e0e8;

    font-size:20px;

    line-height:1.9;

}

.ebook-hero .btn-primary{

    margin-top:45px;

}


/* ===================================
   FEATURED EBOOK
=================================== */

.ebook-featured{
    padding:60px 0;
}

.featured-card{

    max-width:900px;
    margin:0 auto;
    display:grid;
    grid-template-columns:240px 1fr;
    gap:35px;
    align-items:center;
    background:#fff;
    border-radius:24px;
    padding:35px;
    box-shadow:0 20px 50px rgba(0,0,0,.08);
}

.featured-cover{
    text-align:center;
}

.featured-cover img{
    width:220px;
    max-width:100%;
    height:auto;
    border-radius:14px;
    box-shadow:0 15px 35px rgba(0,0,0,.18);
    transition:.3s;
}

.featured-cover img:hover{
    transform:scale(1.03);
}

.featured-badge{

    display:inline-block;
    padding:6px 14px;
    border-radius:30px;
    background:#17304f;
    color:#fff;
    font-size:12px;
    margin-bottom:15px;
}

.featured-content h2{

    font-size:34px;
    line-height:1.35;
    margin-bottom:15px;
    color:#17304f;
}

.featured-content p{
    font-size:16px;
    line-height:1.8;
    color:#5b6470;
    margin-bottom:20px;
}

.featured-content ul{
    margin:20px 0;
    padding-left:20px;
}

.featured-content li{
    font-size:17px;
    margin-bottom:8px;
}

.featured-buttons{
    display:flex;
    gap:15px;
    margin-top:25px;
    flex-wrap:wrap;
}

.featured-buttons .btn-primary,

.featured-buttons .btn-outline{
    padding:14px 28px;
    border-radius:40px;
    font-size:15px;
}

/*==================================================
GRID
==================================================*/

.ebook-grid-section{
    padding:40px 0 120px;
}

.ebook-grid-section h2{
    text-align:center;
    font-size:32px;
    color:#17304f;
    margin-bottom:60px;

}

.ebook-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

    margin-top:40px;

}

@media(max-width:992px){
    .ebook-grid{
        grid-template-columns:repeat(2,1fr);
    }
    .ebook-cover{

        height:300px;

    }
}

@media(max-width:640px){
    .ebook-grid{
      grid-template-columns:1fr;
    }
}

.ebook-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:.35s;

    width:100%;

}

.ebook-card:hover{

    transform:translateY(-10px);

    box-shadow:

    0 30px 70px rgba(0,0,0,.15);

}

.ebook-card > img{

    display:block;

    width:100%;

    height:auto;

    max-height:340px;

    object-fit:contain;

    background:#fff;

    padding:16px;

    border-radius:18px 18px 0 0;

}

.ebook-info{

    padding:20px;

}

.ebook-info h3{
    color:#17304f;
    margin-bottom:18px;
}

.ebook-info p{
    color:#64748b;
    margin-bottom:25px;
}

.ebook-card h3{
    font-size:28px;
    line-height:1.45;
    word-break:normal;
    overflow-wrap:normal;
}

.ebook-card h3 a{
    text-decoration:none;
}

.ebook-card p{
font-size:14px;
line-height:1.8;
min-height:100px;
margin-bottom:15px;

}

.ebook-card .btn-primary{

    padding:12px 24px;
    font-size:14px;
    border-radius:35px;
}

/*==========================================
BENEFIT
==========================================*/

.ebook-benefit{

    padding:100px 0;

    background:#ffffff;

}

.section-title{

    max-width:760px;

    margin:0 auto 60px;

    text-align:center;

}

.section-title span{

    display:inline-block;

    padding:8px 18px;

    background:#f5e5b7;

    color:#17304f;

    border-radius:30px;

    font-size:13px;

    font-weight:700;

    margin-bottom:18px;

}

.section-title h2{

    font-size:42px;

    color:#17304f;

    margin-bottom:20px;

}

.section-title p{

    color:#64748b;

    line-height:1.9;

    font-size:17px;

}

.benefit-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.benefit-item{

    background:#fff;

    padding:35px;

    border-radius:22px;

    text-align:center;

    box-shadow:0 10px 35px rgba(0,0,0,.06);

    transition:.35s;

}

.benefit-item:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 45px rgba(0,0,0,.12);

}

.benefit-icon{

    width:80px;

    height:80px;

    margin:auto;

    margin-bottom:25px;

    border-radius:50%;

    background:#17304f;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:34px;

}

.benefit-item h3{

    color:#17304f;

    margin-bottom:15px;

    font-size:22px;

}

.benefit-item p{

    color:#64748b;

    line-height:1.8;

}

@media(max-width:900px){

.benefit-grid{

    grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

    .benefit-grid{

        grid-template-columns:1fr;

    }

    .section-title h2{

        font-size:34px;

    }

}


.ebook-card:hover .ebook-cover img{

    transform:scale(1.04);

}

/*==========================================
CTA
==========================================*/

.ebook-cta{

    padding:110px 20px;

    background:linear-gradient(
        135deg,
        #07101f,
        #10243c,
        #17304f
    );

    color:#fff;

    text-align:center;

}

.cta-label{

    display:inline-block;

    padding:8px 18px;

    border-radius:30px;

    background:rgba(255,255,255,.08);

    color:#d7b46b;

    letter-spacing:1px;

    font-size:13px;

    margin-bottom:25px;

}

.ebook-cta h2{

    font-size:46px;

    line-height:1.3;

    margin-bottom:25px;

}

.ebook-cta p{

    max-width:760px;

    margin:0 auto;

    color:#d9e0e8;

    line-height:1.9;

    font-size:18px;

}

.cta-feature{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:18px;

    margin:45px 0;

}

.cta-feature span{

    background:rgba(255,255,255,.08);

    padding:12px 18px;

    border-radius:40px;

    color:#fff;

    font-size:15px;

}

.cta-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.cta-buttons .btn-primary,

.cta-buttons .btn-outline{

    min-width:220px;

    text-align:center;

}

@media(max-width:768px){

    .ebook-cta{

        padding:80px 20px;

    }

    .ebook-cta h2{

        font-size:34px;

    }

    .cta-feature{

        flex-direction:column;

        align-items:center;

    }

    .cta-buttons{

        flex-direction:column;

        align-items:center;

    }

}

/*==================================================
REVEAL
==================================================*/

.reveal{

    opacity:0;

    transform:translateY(50px);

    transition:

    opacity .8s,

    transform .8s;

}

.reveal.show{

    opacity:1;

    transform:none;

}


/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:900px){
.featured-card{
    grid-template-columns:1fr;
    text-align:center;
}

.featured-cover{
    margin-bottom:25px;
}

.featured-cover img{
    width:180px;
}

.featured-content h2{
    font-size:28px;
}

}

@media(max-width:768px){

.ebook-hero h1{

    font-size:38px;

}

.ebook-grid{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:35px;

margin-top:40px;

}
.benefit-grid{

    grid-template-columns:1fr;

}

.cta-buttons{

    flex-direction:column;

}

.featured-buttons{

    flex-direction:column;

}

}

.ebook-status{

display:inline-block;

padding:8px 16px;

border-radius:30px;

font-size:12px;

font-weight:700;

margin-bottom:15px;

}

.ebook-status.free{

background:#10b981;

color:white;

}

.ebook-status.premium{

background:#c8a96b;

color:white;

}

.featured-book{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:45px;
    align-items:center;

    max-width:980px;
    margin:auto;

    padding:50px;

    background:#fff;
    border-radius:25px;
}

.featured-book img{

    width:260px;

    height:auto;

    border-radius:16px;

    box-shadow:0 15px 35px rgba(0,0,0,.18);

}

.featured-book h2{

    font-size:42px;

    line-height:1.25;

    margin-bottom:18px;

}

.featured-book p{

    font-size:17px;

    line-height:1.9;

}

.ebook-badge{

    display:inline-block;

    padding:7px 15px;

    border-radius:30px;

    font-size:12px;

    font-weight:700;

    margin-bottom:15px;

}

.ebook-badge.free{

    background:#16a34a;

    color:#fff;

}

.ebook-badge.premium{

    background:#17304f;

    color:#fff;

}

.ebook-rating{

    color:#f6b900;

    font-size:18px;

    margin-bottom:15px;

}

.ebook-meta{

    display:flex;

    flex-direction:column;

    gap:8px;

    margin-bottom:20px;

    color:#64748b;

    font-size:15px;

}

.ebook-price{

    margin:12px 0 18px;

}

.old-price{

    display:block;

    text-decoration:line-through;

    color:#94a3b8;

    font-size:15px;

}

.new-price{

    display:block;

    color:#17304f;

    font-size:24px;

    font-weight:700;

}

.price-free{

    color:#16a34a;

    font-size:24px;

    font-weight:700;

}

.ebook-card .btn-primary{

display:inline-flex;
justify-content:center;
align-items:center;
width:auto;
padding:12px 24px;
border-radius:40px;

}

.checkout-cover{
    display:flex;
    justify-content:center;
    margin-bottom:25px;
}

.checkout-cover img{

    width:240px;
    height:320px;
    aspect-ratio:2/3;
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

/*==============================
SEARCH
==============================*/

.ebook-search-form{

    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;

}

.ebook-search-input{

    flex:1;
    min-width:320px;

    display:flex;
    align-items:center;
    gap:14px;

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:18px;

    padding:0 22px;

    height:62px;

    transition:.35s;

    box-shadow:0 8px 24px rgba(0,0,0,.05);

}

.ebook-search-input:hover{

    transform:translateY(-2px);

}

.ebook-search-input:focus-within{

    border-color:#c8a96b;

    box-shadow:
    0 0 0 4px rgba(200,169,107,.18);

}

.ebook-search-input svg{

    width:24px;

    color:#999;

}

.ebook-search-input input{

    width:100%;

    border:none;

    outline:none;

    background:none;

    font-size:16px;

}

.ebook-search-category{

    width:270px;

    display:flex;

    align-items:center;

    gap:12px;

    padding:0 20px;

    height:62px;

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:18px;

    box-shadow:0 8px 24px rgba(0,0,0,.05);

}

.ebook-search-category svg{

    width:22px;

    color:#c8a96b;

}

.ebook-search-category select{

    width:100%;

    border:none;

    outline:none;

    background:none;

    font-size:16px;

}

.ebook-search-form input{

flex:1;

min-width:240px;

padding:12px 18px;

border:1px solid #ddd;

border-radius:10px;

}

.ebook-search-form select{

padding:12px 18px;

border-radius:10px;

border:1px solid #ddd;

}

.ebook-search-form button{

padding:12px 24px;

border:none;

background:#17304f;

color:#fff;

border-radius:10px;

cursor:pointer;

}

.reset-btn{

padding:12px 20px;

border-radius:10px;

background:#eee;

text-decoration:none;

color:#444;

}

/*==============================
PAGINATION
==============================*/

.ebook-pagination{

margin-top:40px;

display:flex;

justify-content:center;

}

.ebook-pagination .page-numbers{

display:inline-block;

padding:10px 15px;

margin:0 4px;

border-radius:8px;

background:#f5f5f5;

text-decoration:none;

color:#17304f;

}

.ebook-pagination .current{

background:#17304f;

color:#fff;

}

/*=================================
TOOLBAR
=================================*/

.ebook-toolbar{

display:flex;

justify-content:space-between;

align-items:center;

margin:25px 0 15px;

flex-wrap:wrap;

gap:15px;

}

.ebook-count{

font-size:15px;

color:#666;

}

.ebook-show-form{

margin-left:auto;

}

.ebook-show-form select{

padding:10px 14px;

border-radius:8px;

border:1px solid #ddd;

}
/*=================================
PAGINATION
=================================*/

.ebook-pagination{

display:flex;

justify-content:center;

margin:50px 0 20px;

gap:8px;

flex-wrap:wrap;

}

.ebook-pagination .page-numbers{

padding:10px 16px;

border-radius:8px;

background:#f7f7f7;

text-decoration:none;

color:#17304f;

font-weight:600;

transition:.25s;

}

.ebook-pagination .page-numbers:hover{

background:#c8a96b;

color:#fff;

}

.ebook-pagination .current{

background:#17304f;

color:#fff;

}

/*=========================================
RESET BUTTON PREMIUM
=========================================*/

.btn-reset{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:14px 26px;

    min-width:145px;
    height:54px;

    border-radius:14px;

    border:2px solid #d6b36a;

    background:#fff;

    color:#17304f;

    font-size:15px;
    font-weight:700;

    text-decoration:none;

    transition:.35s ease;

    box-shadow:
        0 10px 28px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.9);

}

.btn-reset svg{

    width:20px;
    height:20px;

    color:#c8a96b;

    transition:.35s;

}

.btn-reset:hover{

    background:linear-gradient(
        135deg,
        #17304f,
        #23456d
    );

    color:#fff;

    border-color:#17304f;

    transform:translateY(-3px);

    box-shadow:
        0 18px 35px rgba(23,48,79,.28);

}

.btn-reset:hover svg{

    color:#f4d28a;

    transform:rotate(-90deg);

}

.btn-reset:active{

    transform:translateY(0);

}

.ebook-search-form{

    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;

}

.btn-reset::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:inherit;

    opacity:0;

    transition:.35s;

    background:
    radial-gradient(circle at top,
    rgba(255,255,255,.55),
    transparent 70%);

}

.btn-reset{

    position:relative;
    overflow:hidden;

}

.btn-reset:hover::before{

    opacity:1;

}

.btn-search{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    min-width:170px;

    height:62px;

    border:none;

    border-radius:18px;

    background:linear-gradient(
        135deg,
        #17304f,
        #254d79
    );

    color:#fff;

    font-size:17px;

    font-weight:700;

    cursor:pointer;

    transition:.35s;

    box-shadow:
    0 16px 34px rgba(23,48,79,.28);

}

.btn-search svg{

    width:22px;

}

.btn-search:hover{

    transform:translateY(-4px);

    box-shadow:
    0 22px 42px rgba(23,48,79,.38);

    background:linear-gradient(
        135deg,
        #0f2745,
        #17304f
    );

}

.btn-search:active{

    transform:translateY(0);

}

/*==================================
MOBILE
==================================*/

@media (max-width:767px){

    .ebook-grid{

        display:grid;

        grid-template-columns:1fr;

        gap:24px;

    }

    .ebook-card{

        width:100%;

        max-width:none;

    }

}

@media (min-width:768px) and (max-width:991px){

    .ebook-grid{

        grid-template-columns:repeat(2,1fr);

        gap:26px;

    }

}

.ebook-cover{

    display:flex;

    justify-content:center;

    align-items:center;

    padding:18px;

    background:#fff;

}

.ebook-cover img{

    width:auto;

    max-width:100%;

    height:auto;

    max-height:300px;

    object-fit:contain;

}

@media(max-width:767px){

    .ebook-card h3{

        font-size:22px;

    }

    .ebook-cover{

        height:270px;

    }

}

.ebook-badge{

    padding:10px 20px;

    border-radius:50px;

    font-size:13px;

}