/* Archive Header */
.ih-archive-header {
    width: 100%;
    background: #243e80  ;
    padding: 45px 30px;
    margin-bottom: -80px;
    margin-top: 100px;
    box-sizing: border-box;
}

.ih-archive-title {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}







/* =========================
   BASE CONTAINER
========================= */

.ih-container {
    max-width: 1340px;
    margin: 100px auto;
    padding: 50px 20px;
}


/* =========================
   HEADER
========================= */

.ih-blog-header {
    margin-bottom: 40px;
}

.ih-blog-h-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.ih-blog-h-title a {
    color: #1b1b1b;
    text-decoration: none;
    transition: .3s;
}


.ih-blog-line {
    width: 100%;
    height: 2px;
    background: #a9a9a9;
    margin-top: 12px;
    border-radius: 2px;
}


/* =========================
   LAYOUT (70 / 30)
========================= */

.ih-blog-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 20px;
    align-items: start;
}


/* =========================
   BLOG CONTENT
========================= */

.ih-blog-content {
    display: flex;
    flex-direction: column;
}


.ih-blog-content .ih-blog-list {
    display: grid;
    gap: 30px;
}

.ih-single-sidebar {
    min-width: 280px;
    box-sizing: border-box;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:992px) {

    .ih-blog-layout {
        grid-template-columns: 1fr;
    }

    .ih-blog-title {
        font-size: 1.6rem;
    }
}





/* loop style */

/*==============================
        Blog List
==============================*/

.ih-blog-list {

    list-style: none;

    margin: 0;

    padding: 0;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

    gap: 40px;

}

.ih-blog-item {

    margin: 0;

    padding: 0;

}


/*==============================
        Card
==============================*/

.ih-blog-card {

    background: #fff;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 10px 35px rgba(0, 0, 0, .08);

    transition: .35s;

    display: flex;

    flex-direction: column;

    height: 100%;

}

.ih-blog-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);

}


/*==============================
        Image
==============================*/

.ih-blog-thumb {

    display: block;

    overflow: hidden;

}

.ih-blog-thumb img {

    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    transition: .45s;

}

.ih-blog-card:hover .ih-blog-thumb img {

    transform: scale(1.06);

}


/*==============================
        Content
==============================*/

.ih-blog-content {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    flex: 1;

    padding: 28px;

}


/*==============================
        Title
==============================*/

.ih-blog-title {

    margin: 0 0 18px;

    font-size: 1.4rem;

    line-height: 1.5;

}

.ih-blog-title a {

    text-decoration: none;

    color: #1f1f1f;

    transition: .3s;

}

.ih-blog-title a:hover {

    color: #1F4E3D;

}


/*==============================
        Excerpt
==============================*/

.ih-blog-excerpt {

    margin-bottom: 28px;

    flex: 1;

}

.ih-blog-excerpt p {

    margin: 0;

    line-height: 1.9;

    color: #666;

    text-align: justify;

}




/*==============================
        Responsive
==============================*/

@media (max-width:768px) {

    .ih-blog-list {

        grid-template-columns: 1fr;

        gap: 28px;

    }

    .ih-blog-content {

        padding: 22px;

    }

    .ih-blog-title {

        font-size: 1.2rem;

    }

    .ih-blog-btn {

        width: 100%;

    }

}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    grid-column: 1 / -1;
}

.pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination ul.page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination a,
.pagination .current {
    display: inline-block;
    padding: 10px 17px;
    margin: 3px;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .05);
    color: #222;
    border-radius: 5px;
}

.pagination a:hover {
    background-color: #ffa9a9;
}

.pagination .current {
    background-color: #c50000;
    color: #fff;
    padding: 10px 20px;
}

/* ==========================================================================
     (Sidebar)
   ========================================================================== */
.ih-sidebar {
    width: 100%;
    max-width: 520px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 22px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    clear: both;
    box-sizing: border-box;
}

.ih-sidebar-title {
    color: #1b1b1b;
    padding-inline: 10px;
    margin-bottom: 14px;
    padding-top: 8px;
}

.ih-sidebar-line {
    width: 90%;
    height: 2px;
    background-color: #e0e0e0;
    margin-inline-start: 10px;
    margin-bottom: 30px;
}

.ih-sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
    (Cards)
   ========================================================================== */
.ih-sidebar-card {
    display: block;
    text-decoration: none;
    background-color: #eaeaea;
    /* border: 1px solid #c2c2c2; */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ih-sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.ih-card-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.ih-card-content {
    padding: 15px 12px;
    text-align: center;

}

.ih-card-title {
    color: #1b1b1b;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 2.8rem;
    overflow: hidden;
    text-align: center;
}



/* ==========================================================================
     (Responsive Fix)
   ========================================================================== */
@media (max-width: 480px) {
    .ih-sidebar {
        max-width: 100%;
        width: 100%;
        margin-inline: auto;
        border-radius: 0;
        padding: 15px 10px;
    }

}




/* =========================
   Single Blog Sidebar Card
   ========================= */

.alp-single-sidebar {
    width: 100%;
    position: sticky;
    top: 150px;
    padding: 0 10px;
    margin-top: 20px;
}

.alp-single-sidebar h2 {
    text-align: center;

}

.alp-sidebar-card {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.alp-sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.11);
}


/* Image */

.alp-sidebar-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.alp-sidebar-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Content */

.alp-sidebar-content {
    padding: 22px;
    text-align: center;
}

.alp-sidebar-title {
    margin: 0 0 12px;
    color: #404b87;
    font-size: 21px;
    line-height: 1.6;
    font-weight: 700;
}

.alp-sidebar-description {
    margin: 0 0 20px;
    color: #555;
    font-size: 15px;
    line-height: 2;
}


/* Button */

.alp-sidebar-button {
    display: block;
    width: 80%;
    margin: auto;
    padding: 11px 18px;
    background: #dc0000;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    transition: background-color 0.2s ease;
}

.alp-sidebar-card:hover .alp-sidebar-button {
    background: #d90000;
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 767px) {

    .alp-single-sidebar {
        position: static;
    }

    .alp-sidebar-card {
        border-radius: 10px;
    }

    .alp-sidebar-content {
        padding: 18px;
    }

    .alp-sidebar-title {
        font-size: 19px;
    }

    .alp-sidebar-description {
        font-size: 14px;
        line-height: 1.9;
    }

}