/* --- Resource Section --- */
.resource {
    max-width: 1240px;
    margin: 80px auto;
    height: 100%;
}

/* --- Titles --- */
.resources-title {
    text-align: center;
    color: #2d1b4d;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.titledfvdfb {
    font-size: 2.2rem;
    text-align: center;
    color: #000;
    padding: 30px 0 0;
    line-height: 1.5;
    width: 80%;
    margin: 0 auto;
}

.next-text {
    width: 80%;
    margin: 0px auto;
    border-top: solid 1px #eaeaea;
    padding: 35px 35px 0 35px;
    font-size: 35px;
    font-weight: 700;
    text-align: center;
}

/* --- Featured Article --- */
.featured-article {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.featured-article .img-article {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    width: 50%;
    border-radius: 24px;
}

/* --- Article Meta --- */
.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* --- Article Container --- */
.article-container {
    max-width: 1024px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.article-container h1,
.article-container h2,
.article-container h3,
.article-container h4,
.article-container h5,
.article-container h6,
.article-container li {
    text-align: start;
}

.article-container h1 {
    font-size: 2rem;
    color: #2d1b4d;
    margin-bottom: 15px;
}

.article-container img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 50%;
    width: 100%;
}

.article-container p,
.article-container li {
    font-size: 18px;
    color: #000;
    line-height: 2;
    text-align: justify;
}

.article-container h4,
.article-container strong {
    font-size: 20px;
    color: #000;
    line-height: 50px;
    font-weight: 700;
    text-align: justify;
}

/* --- Short Description --- */
.shortDes {
    padding: 12px 0;
    font-size: 23px;
    max-width: 80%;
    margin: 0 auto;
}

/* --- Articles List --- */
.articles-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
}

.article-card img {
    width: 300px;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    font-size: 1.2rem;
    color: #000;
    margin: 0 0 10px 0;
}

.article-content p {
    color: #666;
    margin: 10px 0;
    line-height: 1.5;
}

/* --- What Next Section --- */
.what-next {
    padding: 35px 0;
    padding-bottom: 60px;
}

/* --- Section --- */
.section {
    margin-top: 20px;
}

/* --- Containers (Image Overlay) --- */
.containers {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.containers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-overlay {
    position: absolute;
    bottom: 10%;
    left: 8%;
    color: white;
    z-index: 2;
}

.text-overlay h2 {
    font-size: 26px;
    margin-bottom: 20px;
    line-height: 2;
}

.text-overlay p {
    font-size: 20px;
    max-width: 80%;
    line-height: 2;
}

.containers::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.containers::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #2d144152;
    z-index: 1;
}

/* --- Social Media --- */
.social-media {
    display: flex;
    justify-self: center;
    align-items: center;
    gap: 20px;
    margin: auto;
    text-align: center;
}

.social-media a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    text-align: center;
    border-radius: 0;
    border: solid 1px #eaeaea;
    background: #fff;
    gap: 20px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

.social-media a img {
    margin-bottom: 5px;
    margin-right: 15px;
}

#facebook-share,
#linkedin-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

#facebook-share i,
#linkedin-share i {
    font-size: 18px;
}

#facebook-share:hover,
#linkedin-share:hover {
    color: #0d65d9;
}

/* --- Utility --- */
.pb-5 {
    padding-bottom: 80px;
}

.load-more {
    display: block;
    width: 150px;
    margin: 40px auto;
    padding: 12px 24px;
    background-color: #2d1b4d;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .what-next {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
    }

    .article-card img {
        width: 100%;
        height: 200px;
    }

    .containers {
        position: relative;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden;
    }

    .social-media {
        flex-direction: column;
        width: 90%;
    }

    .social-media a {
        width: 80%;
        margin-bottom: 10px;
    }

    .text-overlay h2 {
        font-size: 22px !important;
        margin-bottom: 19px !important;
        line-height: 1.2 !important;
    }

    .text-overlay p {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    .shortDes {
        max-width: 100%;
        width: 90% !important;
        font-size: 20px
    }
}

.bento-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 32px;
}

.bento-image {
    width: 100%;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 2;
}

.bento-card::before {
    content: "";
    position: absolute;
    inset: 0; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.0) 100%);
    z-index: 1;
    transition: background 0.3s;
    border-radius: 24px;
}

.bento-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%; 
    margin: 12px 0;
    padding: 12px 24px;
    text-align: left;
    pointer-events: auto;
    z-index: 2; 
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: start;
    align-items: start;
}

.bento-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s, text-shadow 0.2s;
}

.bento-desc {
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.6;
    color: #eee;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s, text-shadow 0.2s;
}

/* Responsive */
@media (max-width: 768px) {

    .bento-card {
        margin-bottom: 22px;
    }

    .bento-content {
        padding: 18px 12px 12px 12px;
    }

    .bento-title {
        font-size: 1.1rem;
    }

    .bento-desc {
        font-size: 0.95rem;
    }
}