/* public/assets/landing-page/css/style-v3.css */

/* Header Section */
.item-menu:hover {
    cursor: pointer;
    text-decoration: underline;
}

.item-menu a {
    color: white;
}

.item-menu-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: end;
    color: white;
    height: 75px;
}

/* ---------- HERO SECTION ---------- */
.hero{
    height:60vh;
    display:flex;
    align-items:center;
    justify-content:center;

    /* gunakan path relatif terhadap file CSS  */
    /* …/css/style‑v3.css  →  ../v3/Hero-Image.png */
    background:url('../v3/img/Hero-Image.png') center/cover no-repeat;
    position:relative;
}

/* lapisan putih transparan agar ilustrasi lebih soft */
.hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(255,255,255,.55);
    backdrop-filter:blur(2px);
}

/* kontainer pencarian */
.search-wrapper{
    position:relative;
    z-index:1;
    text-align:center;
}
.search-wrapper .logo{
    width:230px;
    margin:0 auto 1rem;
}

/* kotak input + tombol */
.search-box{
    width:620px;
    max-width:90vw;
    display:flex;
    align-items:stretch;
    border:1px solid #ccc;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
}
.search-box .icon{
    display:flex;
    align-items:center;
    padding:0 1rem;
}
.search-box .icon svg{
    width:20px;height:20px;
}
.search-box input{
    flex:1;
    border:none;
    outline:none;
    padding:1rem;
    font-size:1rem;
}
.search-box button{
    border:none;
    padding:0 2rem;
    background:#0d6efd;
    color:#fff;
    font-weight:600;
    cursor:pointer;
}

/* radio button */
.options{
    margin-top:1rem;
    display:flex;
    gap:2rem;
    justify-content:center;
    font-size:1rem;
}
.options label{cursor:pointer;}
.options input{margin-right:.5rem;}

/* ------ RESPONSIVE TWEAK ------ */
@media (max-width:600px){
    .search-box{flex-direction:column;}
    .search-box button{
        width:100%;
        padding:1rem 0;
        border-radius:0;
    }
}

/* ---------- SERVICES SECTION ---------- */
.services{
    text-align:center;
    padding:4rem 1rem 5rem;
}
.services__title{
    font-size:2.2rem;
    font-weight:700;
    margin-bottom:.5rem;
    color:#202020;
}
.services__subtitle{
    font-size:1.35rem;
    color:#de3122;           /* merah sesuai permintaan */
    margin-bottom:2.5rem;
}

/* grid kartu */
.service-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:2rem;
    max-width:1100px;
    margin-inline:auto;
}

.service-card{
    display:flex;
    flex-direction:column;
    border:1px solid #d5d5d5;
    border-radius:6px;
    overflow:hidden;
    text-decoration:none;    /* hilangkan underline */
    transition:transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{
    cursor:pointer;
    transform:translateY(-4px);
    box-shadow:0 8px 18px rgba(0,0,0,.15);
}

/* gambar */
.service-card .card-img{
    height:170px;
    background-size:cover;
    background-position:center;
}

/* caption merah */
.service-card .card-caption{
    background:#de3122;
    color:#fff;
    font-weight:600;
    text-align:center;
    padding:1rem .5rem;
    font-size:1.05rem;
}

/* --------- RESPONSIVE ADJUSTMENT --------- */
@media (max-width:480px){
    .services__title{font-size:1.8rem;}
    .services__subtitle{font-size:1.1rem;}
    .service-card .card-img{height:150px;}
}

/* ---------- CERTIFICATION SECTION ---------- */
.cert-section{
    padding:5rem 1rem 6rem;
    text-align:center;
}
.cert-title{
    font-size:2.6rem;
    font-weight:700;
    margin-bottom:.4rem;
}
.cert-subtitle{
    font-size:1.4rem;
    color:#de3122;
    margin-bottom:3rem;
}

/* ===== Filter Bar ===== */
.cert-filters{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:1.5rem 2rem;
    max-width:950px;
    margin:0 auto 3rem;
}
.filter-group{
    display:flex;
    flex-direction:column;
    text-align:left;
}
.filter-group label{
    font-weight:600;
    margin-bottom:.6rem;
}
.filter-group select{
    min-width:240px;
    /* padding:.7rem 1rem; */
    border:1px solid #c5c5c5;
    border-radius:4px;
    font-size:1rem;
    background:#fff url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 0.8rem center/12px no-repeat;
    appearance:none;
}
.btn-search{
    align-self:flex-end;
    padding:.9rem 2.2rem;
    background:#de3122;
    color:#fff;
    border:none;
    border-radius:4px;
    cursor:pointer;
    font-weight:600;
}

/* ===== Slider / track ===== */
.cert-slider{
    position:relative;
    max-width:1120px;
    margin-inline:auto;
}
.slider-track{
    display:flex;
    gap:2rem;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding-bottom:1rem;
}
.slider-track::-webkit-scrollbar{display:none;}

.cert-card{
    flex:0 0 260px;
    border:1px solid #e0e0e0;
    border-radius:6px;
    padding:1.2rem;
    scroll-snap-align:start;
    text-align:left;
    display:flex;
    flex-direction:column;
    gap:.4rem;
}
.cert-logo{
    width:110px;
    height:110px;
    margin:0 auto 1rem;
    display:flex;
    align-items:center;
    justify-content:center;
}
.cert-logo img{max-width:100%;max-height:100%;}

.cert-card__title{font-size:1.05rem;font-weight:600;min-height:42px;}
.cert-card__org{font-size:.92rem;color:#666;}
.cert-card__loc{font-size:.9rem;color:#999;}
.cert-card__price{font-size:1.15rem;font-weight:700;margin:.8rem 0;}

.btn-daftar{
    margin-top:auto;
    display:block;
    width:100%;
    text-align:center;
    padding:.7rem 0;
    background:#de3122;
    color:#fff;
    border-radius:4px;
    font-weight:600;
}

/* Arrows */
.nav{
    position:absolute;
    top:45%;
    transform:translateY(-50%);
    width:28px;height:28px;
    border:none;
    background:#de3122;
    color:#fff;
    font-size:1.4rem;
    border-radius:50%;
    cursor:pointer;
}
.nav.prev{left:-35px;}
.nav.next{right:-35px;}

/* Dots & CTA */
.slider-dots{margin:1.4rem 0;}
.dot{
    display:inline-block;
    width:8px;height:8px;
    border-radius:50%;
    background:#ddd;
    margin:0 4px;
}
.dot.active{background:#de3122;}
.btn-outline{
    display:inline-block;
    margin-top:1.2rem;
    padding:.75rem 2.3rem;
    border:2px solid #de3122;
    color:#de3122;
    border-radius:4px;
    font-weight:600;
    text-decoration:none;
}

/* ---------- Responsiveness ---------- */
@media (max-width:540px){
    .cert-title{font-size:2.1rem;}
    .cert-subtitle{font-size:1.15rem;}
    .filter-group select{min-width:180px;}
    .nav{display:none;}   /* arrow disembunyikan, user bisa swipe/scroll */
}

/* ---------- NEWS SECTION ---------- */
.news-section{
    padding:4.5rem 1rem 6rem;
    text-align:center;
}
.news-title{
    font-size:2.4rem;
    font-weight:700;
    margin-bottom:.4rem;
}
.news-subtitle{
    font-size:1.35rem;
    color:#de3122;
    margin-bottom:2.8rem;
}

/* grid kartu */
.news-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:2rem;
    max-width:1150px;
    margin-inline:auto 3rem;
}

/* kartu */
.news-card{
    border:1px solid #dcdcdc;
    border-radius:6px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    background:#fff;
}

/* gambar 16:9 */
.news-img{
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
}
.news-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* isi */
.news-body{
    padding:1.1rem 1.3rem 1.5rem;
    text-align:left;
}
.news-meta{
    font-size:.88rem;
    color:#666;
    margin-bottom:1rem;
    line-height:1.3;
}
.news-headline{
    font-size:1.05rem;
    font-weight:600;
    line-height:1.35;
}

/* reuse tombol outline merah */
.btn-outline{
    display:inline-block;
    margin-top:2.2rem;
    padding:.75rem 2.4rem;
    border:2px solid #de3122;
    color:#de3122;
    border-radius:6px;
    font-weight:600;
    text-decoration:none;
}
.btn-outline:hover{background:#de3122;color:#fff;}
