/* HERO SECTION */
#service-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, rgba(40,40,70,0.9), rgba(60,50,110,0.85)),
        url("/wp-content/themes/arame/assets/images/blogimg/headimg.jpg") center/cover no-repeat;
    padding: 6rem 20px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    max-width: 850px;
    line-height: 1.25;
    margin: auto;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: #fff;
    max-width: 700px;
    margin: 20px auto 0;
}

/*  POST CARDS  */
.post-card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.post-featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.post-image-placeholder .placeholder-icon {
    font-size: 2rem;
    color: #aaa;
}

.post-image-placeholder .placeholder-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.5);
    text-align: center;
    color: #fff;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.card-body-custom {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/*  SIDEBAR & FILTERS  */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.sidebar-item {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.promo-block {
    background: #eef2ff;
    padding: 25px;
    border-radius: 15px;
    border: 1px dashed #5a54e9;
    text-align: center;
    margin-bottom: 20px;
}

.tag-filter-item label {
    cursor: pointer;
    padding: 6px 12px;
    transition: all 0.2s;
    display: inline-block;
    margin: 4px 2px;
}

.active-tag {
    background-color: #5a54e9 !important;
    color: white !important;
    border-color: #5a54e9 !important;
}

.pointer { cursor: pointer; }

.BTN {
    color: #eee;
    background-color: #0081CC;
    border: #0081CC;
}

.BTN:hover {
    color: #eee;
    background-color: #177bb4;
    border: #0081CC;
}

.Badge{
    background-color: #0081CC;
    color: rgb(255, 255, 255);
}

/*  RESPONSIVE LAYOUTS  */

/* Medium screens (tablets, <992px) */
@media(max-width: 992px) {
    #blog-hero { padding: 6rem 20px 4rem; }
    .hero-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
    .hero-text { font-size: clamp(0.95rem, 2.2vw, 1.2rem); }

    .post-card { flex-direction: column; }
    .post-featured-image, .post-image-placeholder { height: 180px; }

    .sidebar-sticky { position: relative; top: 0; }
}

/* Small screens (mobiles, <768px) */
@media(max-width: 768px) {
    #blog-hero { padding: 5rem 15px 3rem; border-radius: 30px; }
    .hero-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .hero-text { font-size: clamp(0.9rem, 3vw, 1.1rem); }

    .post-featured-image, .post-image-placeholder { height: 150px; }
    .card-body-custom { padding: 1rem; }

    /* Stack main content and sidebar */
    .blog-main { display: flex; flex-direction: column; }
}

/* Extra small screens (phones, <480px) */
@media(max-width: 480px) {
    #blog-hero { padding: 4rem 10px 2.5rem; border-radius: 25px; }
    .hero-title { font-size: 1.5rem; }
    .hero-text { font-size: 0.95rem; }

    .post-featured-image, .post-image-placeholder { height: 130px; }
    .card-body-custom { padding: 0.8rem; }

    .sidebar-item, .promo-block { padding: 15px; margin-bottom: 15px; }
    .tag-filter-item label { padding: 5px 10px; font-size: 0.85rem; }
}
