/* =====================================================
   Featured Content Section – Beautiful Redesign
   Novamira Sandbox | indreshworcampus.edu.np
   ===================================================== */

/* ----- Section wrapper ----- */
#featured-content {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%) !important;
    padding: 50px 0 60px !important;
    float: left;
    width: 100%;
    border-top: 4px solid #1a5276;
    border-bottom: 4px solid #1a5276;
}

/* ----- Row uses flexbox so all cards are same height ----- */
#featured-content .inner-wrapper {
    display: flex !important;
    flex-wrap: wrap;
    margin-left: -15px !important;
    margin-right: -15px !important;
    align-items: stretch;
}

/* ----- Each card ----- */
#featured-content article {
    float: none !important;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    margin: 0 15px 30px;
    padding: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.33% - 30px) !important;
}

#featured-content article:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
}

/* ----- Title / header inside card ----- */
#featured-content .entry-header {
    background: #1a5276;
    padding: 14px 20px;
    margin: 0;
}

#featured-content .entry-title {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.4;
    text-align: center;
}

#featured-content .entry-title a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.3px;
}

#featured-content .entry-title a:hover {
    color: #aed6f1 !important;
}

/* ----- Image – fixed height, object-fit cover ----- */
#featured-content article > a {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

#featured-content article > a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

#featured-content article:hover > a img {
    transform: scale(1.04);
}

/* ----- Excerpt text area ----- */
#featured-content .entry-content {
    padding: 18px 20px 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#featured-content .entry-content p {
    color: #444444;
    font-size: 14px;
    line-height: 1.75;
    margin: 0 0 12px;
}

#featured-content .entry-content a {
    color: #1a5276;
    font-weight: 600;
}

/* ----- 2-column on tablets ----- */
@media (max-width: 900px) {
    #featured-content article {
        width: calc(50% - 30px) !important;
    }
}

/* ----- 1-column on mobile ----- */
@media (max-width: 600px) {
    #featured-content article {
        width: calc(100% - 30px) !important;
    }
    #featured-content article > a {
        height: 200px;
    }
}
