




@font-face {
    font-family: 'Pelak';
    src: url('../fonts/pelakfa-black.ttf') format('truetype');
    font-weight: 900;
}

@font-face {
    font-family: 'Pelak';
    src: url('../fonts/pelakfa-bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Pelak';
    src: url('../fonts/pelakfa-regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Pelak';
    src: url('../fonts/pelakfa-light.ttf') format('truetype');
    font-weight: 300;
}

* {
    font-family: 'Pelak', sans-serif;
}

/* ---------------------------- */
/*   BLOG GLOBAL STYLE (ALL)   */
/* ---------------------------- */

body {
    font-family: 'Pelak', sans-serif;
    background-color: #f5f7fa;
}

a {
    text-decoration: none !important;
}

h1, h2, h3 {
    font-weight: 800;
    color: #1f2937;
}

/* ---------------------------- */
/*   BLOG LIST PAGE (Blog.aspx) */
/* ---------------------------- */

.blog-list-card {
    display: block;
    background: #ffffff;
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: all .25s ease;
}

    .blog-list-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.09);
    }

.blog-list-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.blog-list-date {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.blog-list-desc {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.8;
}


/* ---------------------------- */
/*  BLOG POST PAGE (BlogPost.aspx) */
/* ---------------------------- */

/* HERO IMAGE */
.blog-hero {
    height: 350px;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    position: relative;
}

    .blog-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.blog-hero-overlay {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(5px);
    position: absolute;
    inset: 0;
}

.blog-hero-title {
    position: absolute;
    bottom: 40px;
    right: 0;
    left: 0;
    text-align: center;
    color: #fff;
}

    .blog-hero-title h1 {
        font-size: 38px;
        font-weight: 900;
    }

    .blog-hero-title p {
        margin-top: 10px;
        font-size: 15px;
        opacity: .85;
    }

/* ARTICLE BODY */
.blog-article-wrapper {
    max-width: 820px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 10px 35px rgba(0,0,0,.1);
}

    .blog-article-wrapper p,
    .blog-article-wrapper li {
        font-size: 17px;
        color: #444;
        line-height: 2;
    }

    .blog-article-wrapper h2 {
        font-size: 26px;
        margin-top: 25px;
    }

    .blog-article-wrapper h3 {
        font-size: 21px;
        margin-top: 18px;
    }

.blog-error-box {
    background: #ffe4e6;
    padding: 14px;
    border-radius: 12px;
    color: #b91c1c;
    margin-bottom: 15px;
}


/* ---------------------------- */
/* ADMIN PAGE (BlogAdmin.aspx) */
/* ---------------------------- */

.admin-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 20px;
}

.admin-input {
    width: 100%;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 8px;
}

    .admin-input:focus {
        outline: none;
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    }

.admin-btn {
    background-color: #111827;
    color: white;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 14px;
}

    .admin-btn:hover {
        background-color: #1f2937;
    }

.admin-tag {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 10px;
    background-color: #f3f4f6;
    margin-left: 4px;
}

.admin-alert {
    background: #fef2f2;
    color: #b91c1c;
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.admin-preview-img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.blog-page-wrap{width:min(980px,calc(100% - 28px));margin:44px auto 72px;padding:0;}
.blog-list-wrap{max-width:980px;}
.blog-post-wrap{max-width:840px;}
.blog-page-title,.blog-post-title{font-size:clamp(1.7rem,3vw,2.35rem);font-weight:900;color:#111827;margin:0 0 24px;line-height:1.7;}
.blog-post-date{font-size:.9rem;color:#6b7280;margin:0 0 22px;}
.blog-cover{display:block;width:100%;height:auto;border-radius:24px;box-shadow:0 12px 32px rgba(0,0,0,.12);margin-bottom:24px;}
.hidden{display:none!important;}
@media(max-width:640px){.blog-page-wrap{width:min(100% - 20px,980px);margin-top:26px}.blog-article-wrapper{padding:24px 18px;border-radius:22px}.blog-list-card{padding:16px;border-radius:18px}.blog-list-title{font-size:18px}}
