/* =========================================================
   HOME STORIES + BLOG
   Independent CSS
========================================================= */

/* =========================================================
   COMMON
========================================================= */

.home-stories *,
.home-blog * {
    box-sizing: border-box;
}

/* =========================================================
   SUCCESS STORIES
========================================================= */

.home-stories {
    width: 100%;
    background: linear-gradient(135deg, #eaf3f5 0%, #e8e9f2 100%);
    padding: 80px 0;
}

.home-stories-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Heading */

.home-stories-heading {
    max-width: 820px;
    margin: 0 auto 50px;
    text-align: center;
}

.home-stories-label {
    display: inline-block;
    color: #0d6efd;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.home-stories-heading h2 {
    margin: 0 0 18px;
    color: #003a66;
    font-size: 42px;
    line-height: 1.25;
    font-weight: 700;
}

.home-stories-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: #6c757d;
    font-size: 15px;
    line-height: 1.8;
}

/* Grid */

.home-stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Card */

.home-story-card {
    min-width: 0;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e8edf2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.home-story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 58, 102, 0.14);
}

/* Image */

.home-story-image {
    width: 100%;
    height: 235px;
    overflow: hidden;
    background: #edf3f7;
}

.home-story-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.home-story-card:hover .home-story-image img {
    transform: scale(1.08);
}

/* Placeholder */

.home-story-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf2f8;
}

.home-story-placeholder i {
    font-size: 42px;
    color: #8ba5b7;
}

/* Content */

.home-story-content {
    padding: 22px;
    min-height: 150px;
}

.home-story-content h3 {
    margin: 0 0 10px;
    color: #003a66;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-story-content p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.7;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button */

.home-stories-button {
    margin-top: 45px;
    text-align: center;
}

.home-stories-button a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 30px;
    border-radius: 50px;

    color: #3b3577;
    background: linear-gradient(135deg, #2a8fa6 0%, #3b3577 100%) !important;
    color: var(--bs-white) !important;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    transition: 0.5s;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    transition: all 0.3s ease;
}

.home-stories-button a i {
    transition: transform 0.3s ease;
}

.home-stories-button a:hover {
    background: #003a66;
    border-color: #003a66;
    transform: translateY(-2px);
}

.home-stories-button a:hover i {
    transform: translateX(4px);
}

/* Empty */

.home-stories-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.home-stories-empty i {
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
    color: #b5c4cf;
}

.home-stories-empty p {
    margin: 0;
}

/* =========================================================
   BLOG
========================================================= */

.home-blog {
    width: 100%;
    background: #ffffff;
    padding: 80px 0;
}

.home-blog-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Heading */

.home-blog-heading {
    max-width: 820px;
    margin: 0 auto 50px;
    text-align: center;
}

.home-blog-label {
    display: inline-block;
    color: #0d6efd;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.home-blog-heading h2 {
    margin: 0 0 18px;
    color: #003a66;
    font-size: 42px;
    line-height: 1.25;
    font-weight: 700;
}

.home-blog-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: #6c757d;
    font-size: 15px;
    line-height: 1.8;
}

/* Grid */

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Card */

.home-blog-card {
    min-width: 0;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e8edf2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);

    display: flex;
    flex-direction: column;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.home-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 58, 102, 0.14);
}

/* Image */

.home-blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #edf3f7;
}

.home-blog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.home-blog-card:hover .home-blog-image img {
    transform: scale(1.08);
}

/* Placeholder */

.home-blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf2f8;
}

.home-blog-placeholder i {
    font-size: 42px;
    color: #8ba5b7;
}

/* Content */

.home-blog-content {
    padding: 20px 21px 22px;
    flex: 1;

    display: flex;
    flex-direction: column;
}

/* Meta */

.home-blog-meta {
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.home-blog-category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;

    background: linear-gradient(135deg, #2a8fa6 0%, #3b3577 100%) !important;
    color: var(--bs-white) !important;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.home-blog-date {
    color: #999;
    font-size: 12px;
}

/* Title */

.home-blog-content h3 {
    margin: 0 0 10px;
    color: #003a66;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description */

.home-blog-description {
    margin: 0 0 15px;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.7;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Author */

.home-blog-author {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 17px;

    color: #777;
    font-size: 13px;
}

.home-blog-author i {
    color: #003a66;
    font-size: 17px;
}

/* Read More */

.home-blog-read-more {
    margin-top: auto;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: fit-content;

    color: #003a66;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition: color 0.3s ease;
}

.home-blog-read-more i {
    transition: transform 0.3s ease;
}

.home-blog-read-more:hover {
    color: #003a66;
}

.home-blog-read-more:hover i {
    transform: translateX(5px);
}

/* Button */

.home-blog-button {
    margin-top: 45px;
    text-align: center;
}

.home-blog-button a {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 13px 30px;
    border-radius: 50px;

    background: linear-gradient(135deg, #2a8fa6 0%, #3b3577 100%) !important;
    color: var(--bs-white) !important;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    transition: 0.5s;
    font-size: 15px;

    text-decoration: none;

    transition: all 0.3s ease;
}

.home-blog-button a i {
    transition: transform 0.3s ease;
}

.home-blog-button a:hover {
    background: #003a66;
    border-color: #003a66;
    transform: translateY(-2px);
}

.home-blog-button a:hover i {
    transform: translateX(4px);
}

/* Empty */

.home-blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.home-blog-empty i {
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
    color: #b5c4cf;
}

.home-blog-empty p {
    margin: 0;
}

/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1199px) {
    .home-stories-grid,
    .home-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 767px) {
    .home-stories,
    .home-blog {
        padding: 55px 0;
    }

    .home-stories-container,
    .home-blog-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-stories-heading,
    .home-blog-heading {
        margin-bottom: 35px;
    }

    .home-stories-heading h2,
    .home-blog-heading h2 {
        font-size: 31px;
    }

    .home-stories-heading p,
    .home-blog-heading p {
        font-size: 14px;
        line-height: 1.75;
    }

    .home-stories-grid,
    .home-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-story-image {
        height: 230px;
    }

    .home-blog-image {
        height: 220px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {
    .home-stories,
    .home-blog {
        padding: 45px 0;
    }

    .home-stories-container,
    .home-blog-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .home-stories-heading h2,
    .home-blog-heading h2 {
        font-size: 26px;
    }

    .home-stories-label,
    .home-blog-label {
        font-size: 11px;

        color: #3b3577;
        letter-spacing: 1.5px;
    }

    .home-stories-heading p,
    .home-blog-heading p {
        font-size: 13.5px;
    }

    .home-story-image {
        height: 210px;
    }

    .home-blog-image {
        height: 205px;
    }

    .home-story-content {
        padding: 19px;
    }

    .home-blog-content {
        padding: 19px;
    }

    .home-story-content h3,
    .home-blog-content h3 {
        font-size: 18px;
    }

    .home-story-content p,
    .home-blog-description {
        font-size: 13.5px;
    }
}
