/*=========================================
SINGLE EBOOK
=========================================*/

.single-ebook{

    padding: 0;
    background:#f8f4ee;

}

.ebook-detail{

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:380px 1fr;

    gap:60px;

    align-items:start;

}

/*=========================================
COVER
=========================================*/

.ebook-cover{

    background:#fff;

    border-radius:20px;

    padding:25px;

    box-shadow:0 20px 60px rgba(0,0,0,.08);

    position:sticky;

    top:120px;

}

.ebook-cover img{
    width:100%;
    height:100%;
    display:block;
    border-radius:12px;
}

/*=========================================
CONTENT
=========================================*/

.ebook-content{
    background:#fff;
    border-radius:20px;
    padding:45px;
    box-shadow:0 20px 60px rgba(0,0,0,.08);
}

.ebook-status{

    display:inline-block;

    background:#17304f;

    color:#fff;

    padding:8px 18px;

    border-radius:50px;

    font-size:13px;

    font-weight:600;

    margin-bottom:20px;

    letter-spacing:1px;

    text-transform:uppercase;

}

.ebook-content h1{

    font-size:42px;

    color:#17304f;

    margin-bottom:18px;

    line-height:1.3;

}

.ebook-author{

    color:#64748b;

    margin-bottom:30px;

}

/*=========================================
META
=========================================*/

.ebook-meta{

    display:flex;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:35px;

}

.ebook-meta span{

    background:#eef3f9;

    color:#17304f;

    padding:10px 18px;

    border-radius:30px;

    font-size:14px;

    font-weight:600;

}

/*=========================================
DESCRIPTION
=========================================*/

.ebook-description{

    line-height:2;

    color:#475569;

    margin-bottom:40px;

}

.ebook-description h2{

    color:#17304f;

    margin:30px 0 15px;

}

.ebook-description ul{

    padding-left:20px;

}

.ebook-description li{

    margin-bottom:10px;

}

/*=========================================
BUTTON
=========================================*/

.ebook-content .btn-primary{

    display:inline-block;

    padding:16px 40px;

    border-radius:50px;

    background:#c8a96b;

    color:#17304f;

    font-weight:700;

    text-decoration:none;

    transition:.3s;

}

.ebook-content .btn-primary:hover{

    transform:translateY(-3px);

    box-shadow:0 15px 30px rgba(0,0,0,.15);

}

/*=========================================
RESPONSIVE
=========================================*/

@media(max-width:992px){
    .ebook-detail{
        grid-template-columns:1fr;
    }

    .ebook-cover{
        position:relative;
        top:auto;
        max-width:420px;
        margin:auto;
    }

    .ebook-content{
        margin-top:30px;
    }
}

@media(max-width:768px){
    .single-ebook{
        padding:0;
    }
    .ebook-content{
        padding:30px;
    }
    .ebook-content h1{
        font-size:32px;
    }
    .ebook-meta{
        flex-direction:column;
    }

}

/*==================================================
SINGLE EBOOK
Sutan Khulifah Academy
==================================================*/

.single-ebook-wrapper{

    background:linear-gradient(
        180deg,
        #fffaf1 0%,
        #ffffff 40%,
        #f8f4ee 100%
    );

}


/*==================================================
HERO
==================================================*/

.single-cover{
    align-self:start;
}

.single-content{
    align-self:start;
}

.single-ebook-grid{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:60px;

    align-items:start;

    /* tambahkan */
    grid-auto-rows:auto;
}

.ebook-cover-image:hover{

    transform:scale(1.03);

}


/*==================================================
CONTENT
==================================================*/

.single-content{

    display:flex;

    flex-direction:column;

}

.single-content h1{

    font-size:48px;

    line-height:1.25;

    color:#17304f;

    margin:20px 0;

}


/*==================================================
BADGE
==================================================*/

.ebook-status{

    display:inline-block;

    padding:8px 18px;

    border-radius:30px;

    font-size:13px;

    font-weight:700;

    letter-spacing:1px;

    width:max-content;

}

.ebook-status.free{

    background:#16a34a;

    color:#fff;

}

.ebook-status.premium{

    background:#17304f;

    color:#fff;

}


/*==================================================
RATING
==================================================*/

.ebook-rating{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:22px;

    color:#f6b900;

    margin-bottom:25px;

}

.ebook-rating span{

    font-size:15px;

    color:#64748b;

}


/*==================================================
SHORT DESCRIPTION
==================================================*/

.ebook-short{

    font-size:17px;

    line-height:1.9;

    color:#64748b;

    margin-bottom:40px;

}


/*==================================================
INFORMATION
==================================================*/

.ebook-information{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

    margin-bottom:45px;

}

.ebook-information div{

    background:#fff;

    padding:18px 20px;

    border-radius:16px;

    box-shadow:0 8px 20px rgba(0,0,0,.05);

}

.ebook-information strong{

    display:block;

    margin-bottom:8px;

    color:#17304f;

    font-size:14px;

}

.ebook-information span{

    color:#475569;

    font-size:16px;

}


/*==================================================
PRICE
==================================================*/

.ebook-price-box{

    margin-bottom:40px;

}

.old-price{

    color:#94a3b8;

    text-decoration:line-through;

    font-size:18px;

    margin-bottom:6px;

}

.new-price{

    font-size:38px;

    color:#17304f;

    font-weight:700;

}

.price-free{

    font-size:40px;

    color:#16a34a;

    font-weight:700;

}


/*==================================================
BUTTONS
==================================================*/

.ebook-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:18px;

    margin-bottom:45px;

}

.ebook-buttons .btn-primary,

.ebook-buttons .btn-outline{

    min-width:220px;

    justify-content:center;

}


/*==================================================
FEATURES
==================================================*/

.ebook-feature-list{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}

.ebook-feature-list div{

    background:#fff;

    border-radius:18px;

    padding:18px;

    font-size:16px;

    color:#17304f;

    box-shadow:0 8px 18px rgba(0,0,0,.05);

}


/*==================================================
SECTION
==================================================*/

.single-section{

    padding:90px 0;

}

.single-section h2{

    font-size:38px;

    color:#17304f;

    margin-bottom:30px;

}

.single-section p{

    font-size:17px;

    line-height:1.9;

    color:#64748b;

}


/*==================================================
TABLE
==================================================*/

.single-table{

    width:100%;

    border-collapse:collapse;

}

.single-table tr{

    border-bottom:1px solid #ececec;

}

.single-table th{

    width:220px;

    text-align:left;

    color:#17304f;

    padding:16px;

}

.single-table td{

    padding:16px;

    color:#475569;

}


/*==================================================
PREVIEW
==================================================*/

.preview-box{

    background:#fff;

    border-radius:24px;

    padding:30px;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.preview-box iframe{

    width:100%;

    height:700px;

    border:none;

    border-radius:12px;

}


/*==================================================
RELATED
==================================================*/

.related-ebooks{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}



/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:1100px){

.single-ebook-grid{

    grid-template-columns:1fr;

}

.single-cover{

    position:relative;

    top:auto;

    max-width:420px;

    margin:auto;

}

}

@media (max-width:768px){

    .single-ebook-grid{

        display:flex;
        flex-direction:column;
        gap:30px;

    }

    .single-cover{

        position:relative;
        top:auto;

        max-width:320px;
        width:100%;

        margin:0 auto;

        padding:15px;

    }

    .single-cover img{

        width:100%;
        max-width:280px;

        height:auto;
        max-height:none;

        display:block;
        margin:auto;

        object-fit:contain;

    }

    .single-content{

        width:100%;

    }

    @media (max-width:768px){

    .single-ebook .cta-program h2,
    .ebook-single-wrapper .cta-program h2{

        font-size:28px;
        line-height:1.3;

    }

    .single-ebook .cta-program p,
    .ebook-single-wrapper .cta-program p{

        font-size:16px;

    }

    .single-ebook .cta-program .btn-primary,
    .ebook-single-wrapper .cta-program .btn-primary{

        width:100%;
        min-width:auto;
        font-size:16px;

    }

}

}

/*==================================================
INFORMATION CARD
==================================================*/

.section-heading{

    text-align:center;

    max-width:760px;

    margin:0 auto 60px;

}

.section-heading span{

    display:inline-block;

    padding:8px 18px;

    border-radius:30px;

    background:#f5e5b7;

    color:#17304f;

    font-size:13px;

    font-weight:700;

    margin-bottom:18px;

}

.section-heading h2{

    font-size:40px;

    color:#17304f;

    margin-bottom:18px;

}

.section-heading p{

    color:#64748b;

    line-height:1.9;

}

.ebook-information-card{

    background:#fff;

    border-radius:24px;

    padding:35px;

    box-shadow:0 18px 40px rgba(0,0,0,.08);

}

.single-table{

    width:100%;

    border-collapse:collapse;

}

.single-table tr{

    border-bottom:1px solid #edf2f7;

}

.single-table tr:last-child{

    border-bottom:none;

}

.single-table th{

    width:260px;

    padding:18px;

    color:#17304f;

    font-weight:600;

    text-align:left;

    background:#fafafa;

}

.single-table td{

    padding:18px;

    color:#475569;

}

@media(max-width:768px){

.single-table,
.single-table tbody,
.single-table tr,
.single-table th,
.single-table td{

    display:block;

    width:100%;

}

.single-table th{

    background:none;

    padding-bottom:8px;

}

.single-table td{

    padding-top:0;

    padding-bottom:20px;

}

}

/*==================================================
PREVIEW
==================================================*/

.preview-box{

background:#fff;

padding:40px;

border-radius:25px;

box-shadow:0 18px 45px rgba(0,0,0,.08);

margin-bottom:45px;

}

.preview-box iframe{

width:100%;

height:720px;

border:none;

border-radius:16px;

}

.preview-buttons{

margin-top:30px;

text-align:center;

}

.preview-empty{

padding:80px 30px;

text-align:center;

}

.preview-icon{

font-size:80px;

margin-bottom:25px;

}

.preview-empty h3{

font-size:34px;

color:#17304f;

margin-bottom:20px;

}

.preview-empty p{

font-size:17px;

line-height:1.9;

color:#64748b;

max-width:650px;

margin:auto auto 35px;

}

.ebook-security{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:30px;

}

.security-card{

background:#fff;

padding:30px;

border-radius:22px;

text-align:center;

box-shadow:0 10px 30px rgba(0,0,0,.06);

transition:.35s;

}

.security-card:hover{

transform:translateY(-8px);

}

.security-icon{

font-size:42px;

margin-bottom:18px;

}

.security-card h4{

font-size:22px;

color:#17304f;

margin-bottom:12px;

}

.security-card p{

font-size:15px;

line-height:1.8;

color:#64748b;

}

@media(max-width:900px){

.ebook-security{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.preview-box{

padding:20px;

}

.preview-box iframe{

height:420px;

}

.preview-empty{

padding:40px 20px;

}

.preview-empty h3{

font-size:26px;

}

.ebook-security{

grid-template-columns:1fr;

}

}

/*==================================================
RELATED
==================================================*/

.related-section{

    background:#fff;

}

.related-ebooks{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.related-card{

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    transition:.35s;

}

.related-card:hover{

    transform:translateY(-8px);

}

.related-cover{

    padding:25px;

    background:#fafafa;

    display:flex;

    justify-content:center;

}

.related-cover img{

    width:180px;

    height:auto;

    object-fit:contain;

    border-radius:12px;

    box-shadow:0 12px 25px rgba(0,0,0,.15);

}

.related-content{

    padding:25px;

}

.related-content h3{

    font-size:24px;

    line-height:1.4;

    color:#17304f;

    margin:15px 0;

    min-height:72px;

}

.related-author,

.related-pages{

    color:#64748b;

    margin-bottom:10px;

}

.related-price{

    margin:25px 0;

}

.related-content .btn-primary{

    width:100%;

    text-align:center;

}

@media(max-width:992px){

.related-ebooks{

    grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.related-ebooks{

    grid-template-columns:1fr;

}

.related-cover img{

    width:160px;

}

.related-content h3{

    min-height:auto;

    font-size:22px;

}

}

/*==================================================
CTA
==================================================*/

.single-ebook-cta{

padding:90px 0;

background:linear-gradient(
135deg,
#0f2238,
#17304f
);

color:#fff;

}
/* 
.cta-box{

display:grid;

grid-template-columns:2fr 1fr;

gap:60px;

align-items:center;

}

.cta-label{

display:inline-block;

padding:8px 18px;

border-radius:30px;

background:rgba(255,255,255,.08);

color:#d8b16c;

font-size:13px;

margin-bottom:20px;

}

.cta-box h2{

font-size:42px;

margin-bottom:20px;

line-height:1.3;

}

.cta-box p{

font-size:17px;

line-height:1.9;

color:#dbe3ea;

margin-bottom:25px;

} */

.cta-benefits{

list-style:none;

padding:0;

margin:0;

}

.cta-benefits li{

margin-bottom:12px;

font-size:16px;

}

.cta-right{

background:#fff;

padding:35px;

border-radius:18px;

text-align:center;

color:#17304f;

box-shadow:0 15px 40px rgba(0,0,0,.15);

}

.cta-price{

margin-bottom:25px;

}

.cta-price.free{

font-size:42px;

font-weight:700;

color:#16a34a;

}

.cta-right .old-price{

display:block;

font-size:18px;

text-decoration:line-through;

color:#94a3b8;

}

.cta-right .new-price{

display:block;

font-size:38px;

font-weight:700;

margin-top:10px;

color:#17304f;

}

.cta-right .btn-primary{

width:100%;

margin-bottom:15px;

}

.cta-right .btn-outline{

width:100%;

display:block;

}

@media(max-width:900px){

.cta-box{

grid-template-columns:1fr;

}

.cta-box h2{

font-size:32px;

}

}

/* ==========================================
   SINGLE EBOOK COVER
========================================== */

.single-cover{

    position:sticky;

    top:120px;

    display:flex;

    justify-content:center;

    align-items:flex-start;

    background:#fff;

    padding:20px;

    border-radius:20px;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

    max-width:380px;

    margin:auto;

}

.single-cover img{

    display:block;

    width:100%;

    max-width:340px;

    height:auto;

    max-height:480px;

    object-fit:contain;

    margin:auto;

    border-radius:15px;

}

/*=====================================
HERO
=====================================*/

.single-ebook-hero{

    padding-top:120px;
    padding-bottom:80px;

}

/* ==========================================
   MOBILE SINGLE EBOOK
========================================== */

@media (max-width:768px){

    .single-ebook-hero{
        padding-top:80px;
        padding-bottom:90px;
    }

    .single-ebook-grid{
        display:flex;
        flex-direction:column;
        gap:25px;
    }

    .single-cover{

        position:relative !important;
        top:auto !important;

        width:100%;
        max-width:280px;

        margin:0 auto;

        padding:12px;

    }

    .single-cover img{

        display:block;

        width:100% !important;
        height:auto !important;

        max-width:250px;
        max-height:360px;

        margin:auto;

        object-fit:contain;

    }

    .single-content{

        width:100%;
        text-align:left;

    }

    .ebook-information{

        grid-template-columns:1fr;

    }

}

/* ======================================
REMOVE GAP BEFORE FOOTER
====================================== */

.single-ebook-page section:last-child,
.single-ebook section:last-child,
.ebook-single section:last-child,
.cta-program{

    margin-bottom:0 !important;

    padding-bottom:50px !important;

}

.footer{

    margin-top:0 !important;

}
/* ======================================
GLOBAL CTA
====================================== */

.single-ebook .cta-program{

    margin:0 !important;
    padding:120px 0 !important;

}

.single-ebook .cta-program .container{

    max-width:900px;
    margin:auto;
    text-align:center;

}

/* ======================================
   CTA SINGLE EBOOK
====================================== */

.single-ebook .cta-program,
.ebook-single-wrapper .cta-program{

    padding:100px 20px !important;

}

.single-ebook .cta-program h2,
.ebook-single-wrapper .cta-program h2{

    font-size:48px;
    line-height:1.2;
    font-weight:700;
    margin-bottom:25px;

}

.single-ebook .cta-program p,
.ebook-single-wrapper .cta-program p{

    max-width:700px;
    margin:0 auto 35px;
    font-size:20px;
    line-height:1.8;

}

.single-ebook .cta-program .btn-primary,
.ebook-single-wrapper .cta-program .btn-primary{

    min-width:320px;
    font-size:18px;
    padding:18px 40px;

}
/* ======================================
CTA SINGLE EBOOK
====================================== */

.single-ebook .cta-program h2,
.ebook-single-wrapper .cta-program h2{

    font-size:36px;
    line-height:1.3;
    font-weight:700;
    margin-bottom:20px;

}

.single-ebook .cta-program p,
.ebook-single-wrapper .cta-program p{

    max-width:650px;
    margin:0 auto 35px;
    font-size:18px;
    line-height:1.8;

}

.single-ebook .cta-program .btn-primary,
.ebook-single-wrapper .cta-program .btn-primary{

    min-width:320px;
    font-size:18px;
    padding:18px 40px;

}
