/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;

    background:var(--bg-body);

    color:var(--text-body);

    overflow-x:hidden;
}

/* ==========================
   IMAGE
========================== */

img{

    max-width:100%;

    height:auto;

    display:block;
}

/* ==========================
   LINK
========================== */

a{

    text-decoration:none;

    transition:var(--transition);
}

/* ==========================
   MAIN CONTENT
========================== */

.site-main{

    min-height:70vh;
}

/* ==========================
   SECTION
========================== */

.section-page{

    padding:60px 0;
}

/* ==========================
   PAGE HEADER
========================== */

.page-header{

    text-align:center;

    margin-bottom:40px;
}

.page-title{

    font-size:36px;

    font-weight:700;

    color:var(--text-dark);

    margin-bottom:10px;
}

.page-subtitle{

    color:var(--text-muted);

    max-width:700px;

    margin:auto;
}

/* ==========================
   CARD
========================== */

.cms-card{

    background:var(--bg-card);

    border:1px solid var(--border);

    border-radius:var(--radius);

    box-shadow:var(--shadow-sm);

    overflow:hidden;

    height:100%;
}

/* ==========================
   BUTTON
========================== */

.btn-primary-custom{

    background:var(--primary);

    border:none;

    color:#fff;

    border-radius:10px;

    padding:10px 20px;

    font-weight:600;
}

.btn-primary-custom:hover{

    background:var(--primary-dark);

    color:#fff;
}

/* ==========================
   PAGINATION
========================== */

.pagination{

    gap:5px;
}

.pagination .page-link{

    border-radius:8px;

    border:1px solid var(--border);

    color:var(--primary);
}

.pagination .active .page-link{

    background:var(--primary);

    border-color:var(--primary);
}

/* ==========================
   TABLET
========================== */

@media(max-width:991px){

    .section-page{

        padding:50px 0;
    }

    .page-title{

        font-size:32px;
    }

}

/* ==========================
   MOBILE
========================== */

@media(max-width:768px){

    .section-page{

        padding:40px 0;
    }

    .page-title{

        font-size:28px;
    }

} 

/* ==========================================
   GLOBAL SECTION HEADER
========================================== */

.section-header{
    position:relative;
    margin-bottom:15px;
}

.section-header::before{
    content:'';

    position:absolute;

    left:0;
    right:0;
    top:50%;

    height:2px;

    background:#dbe3ef;

    transform:translateY(-50%);
}

.section-label{
    position:relative;
    z-index:2;

    display:inline-flex;
    align-items:center;
    gap:10px;

    background:var(--primary);

    color:#fff;

    padding:12px 28px;

    font-size:14px;
    font-weight:700;

    line-height:1;

    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.section-label::after{
    content:'';

    position:absolute;

    right:-18px;
    top:0;

    width:18px;
    height:100%;

    background:var(--primary);

    clip-path:polygon(
        0 0,
        100% 50%,
        0 100%
    );
}
/* ==========================================
   GLOBAL SECTION
========================================== */

.home-section{
    position: relative;
    padding: 50px 0;
}

.home-section:first-of-type{
    padding-top: 100px;
}

/* ==================================================
   HALAMAN PENGUMUMAN
================================================== */

.page-section{
    padding:50px 0 70px;
    background:#f8fafc;
}

.page-description{
    margin-bottom:30px;

    color:#64748b;

    font-size:15px;
}


/* ==================================================
   CARD PENGUMUMAN
================================================== */

.pengumuman-card{
    height:100%;

    display:flex;
    flex-direction:column;

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    border:1px solid #e5e7eb;

    transition:.3s ease;

    box-shadow:0 4px 18px rgba(0,0,0,.05);
}

.pengumuman-card:hover{

    transform:translateY(-6px);

    border-color:var(--primary);

    box-shadow:0 18px 35px rgba(0,0,0,.08);
}

/* ==================================================
   IMAGE
================================================== */

.pengumuman-image{
    display:block;
    overflow:hidden;
    position:relative;
}

.pengumuman-image img{

    width:100%;

    height:250px;

    object-fit:cover;

    transition:.5s ease;
}

.pengumuman-card:hover .pengumuman-image img{

    transform:scale(1.08);
}

/* overlay tipis */

.pengumuman-image::after{

    content:'';

    position:absolute;

    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.15),
        transparent
    );
}

/* ==================================================
   BODY
================================================== */

.pengumuman-body{

    padding:22px;

    display:flex;
    flex-direction:column;

    flex:1;
}

.pengumuman-date{

    display:inline-flex;
    align-items:center;
    gap:6px;

    width:max-content;

    padding:7px 14px;

    border-radius:30px;

    background:rgba(105,118,238,.08);

    color:var(--primary);

    font-size:12px;
    font-weight:700;

    margin-bottom:16px;
}

/* ==================================================
   TITLE
================================================== */

.pengumuman-body h3{

    margin-bottom:12px;

    line-height:1.5;

    font-size:18px;
    font-weight:700;

    min-height:58px;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    overflow:hidden;
}

.pengumuman-body h3 a{

    color:#1f2937;

    text-decoration:none;
}

.pengumuman-body h3 a:hover{

    color:var(--primary);
}

/* ==================================================
   SUMMARY
================================================== */

.pengumuman-body p{

    flex:1;

    color:#64748b;

    font-size:14px;

    line-height:1.8;

    margin-bottom:18px;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;

    overflow:hidden;
}

/* ==================================================
   BUTTON
================================================== */

.btn-detail{

    display:inline-flex;
    align-items:center;
    gap:8px;

    width:max-content;

    color:var(--primary);

    font-size:14px;
    font-weight:700;

    text-decoration:none;
}

.btn-detail i{

    transition:.3s;
}

.btn-detail:hover i{

    transform:translateX(5px);
}

.pengumuman-card:hover{

    transform:translateY(-5px);

    border-color:var(--primary);

    box-shadow:0 15px 30px rgba(0,0,0,.08);
}

/* ==================================================
   IMAGE
================================================== */

.pengumuman-image{
    display:block;
    overflow:hidden;
    background:#f1f5f9;
}

.pengumuman-image img{

    width:100%;

    height:220px;

    object-fit:cover;

    transition:.4s ease;
}

.pengumuman-card:hover .pengumuman-image img{

    transform:scale(1.05);
}

/* ==================================================
   BODY
================================================== */

.pengumuman-body{

    flex:1;

    display:flex;
    flex-direction:column;

    padding:20px;
}

.pengumuman-date{

    display:inline-flex;
    align-items:center;
    gap:6px;

    width:max-content;

    background:rgba(105,118,238,.1);

    color:var(--primary);

    padding:6px 12px;

    border-radius:30px;

    font-size:12px;
    font-weight:600;

    margin-bottom:15px;
}

.pengumuman-body h3{

    margin-bottom:12px;

    font-size:18px;
    font-weight:700;

    line-height:1.5;

    min-height:54px;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    overflow:hidden;
}

.pengumuman-body h3 a{

    color:#1f2937;

    text-decoration:none;
}

.pengumuman-body h3 a:hover{

    color:var(--primary);
}

.pengumuman-body p{

    flex:1;

    color:#64748b;

    font-size:14px;

    line-height:1.8;

    margin-bottom:18px;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;

    overflow:hidden;
}

/* ==================================================
   BUTTON
================================================== */

.btn-detail{

    display:inline-flex;
    align-items:center;
    gap:8px;

    color:var(--primary);

    text-decoration:none;

    font-size:14px;
    font-weight:700;
}

.btn-detail:hover{

    color:var(--primary-dark);
}

.btn-detail i{

    transition:.3s ease;
}

.btn-detail:hover i{

    transform:translateX(4px);
}

/* ==================================================
   EMPTY
================================================== */

.empty-state{
    background:#fff;
    border:1px dashed #cbd5e1;
    border-radius:16px;

    padding:80px 20px;

    text-align:center;

    color:#64748b;
}

.empty-state i{
    font-size:50px;
    color:var(--primary);

    display:block;
}

.empty-state h5{
    margin-bottom:10px;

    color:#1f2937;
    font-weight:700;
}

.empty-state p{
    margin:0;
}

/* ==================================================
   PAGINATION
================================================== */

.pagination-wrapper{

    display:flex;

    justify-content:center;

    margin-top:45px;
}

.pagination{

    gap:6px;
}

.pagination .page-link{

    border:none;

    min-width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:10px;

    color:#475569;

    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.pagination .page-item.active .page-link{

    background:var(--primary);

    color:#fff;
}

.pagination .page-link:hover{

    background:var(--primary);

    color:#fff;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width:991px){

    .pengumuman-image img{

        height:200px;
    }
}

@media (max-width:768px){

    .page-section{

        padding:40px 0 60px;
    }

    .pengumuman-image img{

        height:190px;
    }

    .pengumuman-body{

        padding:18px;
    }

    .pengumuman-body h3{

        font-size:16px;

        min-height:auto;
    }
} 

.pengumuman-no-image{

    height:250px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:linear-gradient(
        135deg,
        var(--primary),
        #8893ff
    );

    color:#fff;

    font-size:70px;
}

