/*
Theme Name: Astra Child
Template: astra
Author: Your Name
Version: 1.0
*/








/* =========================================================
   BLOG SECTION
========================================================= */

.ic-blog-section {
    width: 100%;
    padding: 50px 0;
    box-sizing: border-box;
}


/* =========================================================
   HEADING
========================================================= */

.ic-blog-heading {
    margin-bottom: 35px;
}

.ic-blog-heading h2 {
    margin: 0 0 8px;

    color: #111;

    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
}

.ic-blog-heading p {
    margin: 0;

    color: #777;

    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   SLIDER VIEWPORT
========================================================= */

.ic-blog-viewport {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}


/* =========================================================
   SLIDER TRACK
========================================================= */

.ic-blog-track {
    display: flex;

    width: 100%;

    gap: 24px;

    transition: transform 0.6s ease;

    will-change: transform;
}


/* =========================================================
   BLOG CARD
========================================================= */

.ic-card {
    flex: 0 0 calc((100% - 48px) / 3);

    min-width: 0;
    height: 500px;

    display: flex;
    flex-direction: column;

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 0;

    overflow: hidden;

    box-sizing: border-box;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* CARD HOVER */

.ic-card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 8px 25px rgba(13, 139, 215, 0.15);

}


/* =========================================================
   IMAGE
========================================================= */

.ic-img {

    display: block;

    width: 100%;
    height: 220px;

    flex-shrink: 0;

    overflow: hidden;

    background: #f3f3f3;

}


.ic-img img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;

}


.ic-card:hover .ic-img img {

    transform: scale(1.04);

}


/* NO IMAGE */

.ic-no-image {

    width: 100%;
    height: 100%;

    background: #f3f3f3;

}


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

.ic-content {

    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 20px;

    box-sizing: border-box;

}


/* =========================================================
   TITLE
========================================================= */

.ic-title {

    height: 62px;
    min-height: 62px;

    margin-bottom: 12px;

    overflow: hidden;

    font-size: 20px;
    font-weight: 600;

    line-height: 1.45;

}


.ic-title a {

    color: #0c466d;

    text-decoration: none;

}


.ic-title a:hover {

    color: #0d8bd7;

}


/* =========================================================
   DATE
========================================================= */

.ic-date {

    height: 20px;
    min-height: 20px;

    margin-bottom: 12px;

    color: #222;

    font-size: 13px;
    font-weight: 500;

    line-height: 20px;

}


/* =========================================================
   EXCERPT
========================================================= */

.ic-content p {

    height: 78px;
    min-height: 78px;

    margin: 0;

    overflow: hidden;

    color: #666;

    font-size: 15px;

    line-height: 1.6;

}


/* =========================================================
   READ MORE
========================================================= */

.ic-read {

    align-self: flex-start;

    margin-top: auto;

    padding: 10px 20px;

    background: #0d8bd7;

    color: #fff;

    border-radius: 25px;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.2;

    text-decoration: none;

    transition:
        background 0.3s ease,
        transform 0.3s ease;

}


.ic-read:hover {

    background: #0874b5;

    color: #fff;

    transform: translateY(-1px);

}


/* =========================================================
   DOTS
========================================================= */

.ic-dots {

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 7px;

    margin-top: 25px;

}


.ic-dots button {

    width: 9px;
    height: 9px;

    padding: 0;
    margin: 0;

    border: 0;

    border-radius: 50%;

    background: #c5c5c5;

    cursor: pointer;

    transition:
        width 0.3s ease,
        background 0.3s ease;

}


.ic-dots button.active {

    width: 24px;

    border-radius: 10px;

    background: #0d8bd7;

}


/* =========================================================
   TABLET
   2 CARDS
========================================================= */

@media (max-width: 1024px) {

    .ic-blog-section {

        padding: 45px 0;

    }


    .ic-blog-heading {

        margin-bottom: 32px;

    }


    .ic-blog-heading h2 {

        font-size: 30px;

    }


    .ic-card {

        flex: 0 0 calc((100% - 24px) / 2);

        height: 490px;

    }


    .ic-img {

        height: 210px;

    }


    .ic-title {

        font-size: 19px;

    }

}


/* =========================================================
   MOBILE
   1 CARD
========================================================= */

@media (max-width: 767px) {

    .ic-blog-section {

        padding: 40px 0;

    }


    .ic-blog-heading {

        margin-bottom: 28px;

    }


    .ic-blog-heading h2 {

        font-size: 28px;

    }


    .ic-blog-heading p {

        font-size: 14px;

    }


    .ic-card {

        flex: 0 0 100%;

        height: 470px;

    }


    .ic-img {

        height: 200px;

    }


    .ic-content {

        padding: 18px;

    }


    .ic-title {

        height: 60px;
        min-height: 60px;

        font-size: 19px;

    }


    .ic-date {

        font-size: 13px;

    }


    .ic-content p {

        height: 75px;
        min-height: 75px;

        font-size: 14px;

    }


    .ic-read {

        padding: 10px 18px;

        font-size: 13px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .ic-blog-section {

        padding: 35px 0;

    }


    .ic-blog-heading {

        margin-bottom: 25px;

    }


    .ic-blog-heading h2 {

        font-size: 25px;

    }


    .ic-blog-heading p {

        font-size: 13px;

    }


    .ic-card {

        height: 450px;

    }


    .ic-img {

        height: 180px;

    }


    .ic-content {

        padding: 16px;

    }


    .ic-title {

        height: 55px;
        min-height: 55px;

        font-size: 18px;

        line-height: 1.45;

    }


    .ic-date {

        height: 18px;
        min-height: 18px;

        font-size: 12px;

        line-height: 18px;

    }


    .ic-content p {

        height: 70px;
        min-height: 70px;

        font-size: 14px;

    }


    .ic-read {

        padding: 9px 17px;

        font-size: 12px;

    }


    .ic-dots {

        margin-top: 20px;

    }

}