/* =========================================================
   BLOG PAGE
========================================================= */

.blog-page-section {
    background: #EAF7EE;
}



/* =========================================================
   BLOG PAGE HEADING
   Same style as "Meet Our Teachers"
========================================================= */

.blog-page-section .title-area3 {
    text-align: center;
    margin-bottom: 50px;
}


/* Blog title */
.publication-blog-title {
    position: relative;
    width: 100%;
    height: 32px;
    margin: 12px 0 15px;
    overflow: hidden;
    z-index: 5;
}

.publication-blog-title a {
    display: block;
    width: 100%;
    color: #ffffff;
    text-decoration: none;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    line-height: 32px;
}

/* Hover background */
.publication-blog-content {
    position: relative;
    overflow: hidden;
}

.publication-blog-content::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    height: 100%;
    background: #e9fcef;
    z-index: 1;
    transition: bottom 0.4s ease;
}

/* Slide background upward */
.publication-blog-card:hover .publication-blog-content::before {
    bottom: 0;
}

/* Keep content above sliding background */
.publication-blog-content > * {
    position: relative;
    z-index: 2;
}

.publication-blog-card:hover .publication-blog-title {
    height: auto;
    min-height: 32px;
    overflow: visible;
}

.publication-blog-card:hover .publication-blog-title a {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.4;
    color: #172B3A !important;
}

.publication-blog-card:hover .publication-blog-btn {
    color: #28a745 !important;
}

/* Arrow icon also becomes green */
.publication-blog-card:hover .publication-blog-btn i {
    color: #28a745;
}


/* =========================================================
   BLOG LAYOUT - FINAL ALIGNMENT FIX
========================================================= */

.blog-page-section .blog-layout-row {
    align-items: flex-start !important;
}


/* LEFT BLOG AREA */

.blog-page-section .blog-main-column {
    position: relative;
}


/* RIGHT SIDEBAR */

.blog-page-section .blog-sidebar-column {
    position: relative;
    align-self: flex-start !important;
}


/*
   IMPORTANT:
   Remove any theme spacing that is pushing
   the sidebar down.
*/

.blog-page-section .blog-sidebar {
    position: sticky;
    top: 100px;

    margin-top: 0 !important;
    padding-top: 0 !important;

    align-self: flex-start;
}


/* Make absolutely sure the first widget
   does not have unwanted top spacing */

.blog-page-section .blog-sidebar .sidebar-widget:first-child {
    margin-top: 0 !important;
}


/* =========================================================
   BLOG CARD GRID
========================================================= */

.blog-page-section .blog-main-column > .row {
    --bs-gutter-x: 20px;
}


/* =========================================================
   SIDEBAR WIDTH / SPACING
========================================================= */

.blog-page-section .sidebar-widget {
    width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 992px) {

    .blog-page-section .blog-sidebar-column {
        margin-top: 0 !important;
    }

    .blog-page-section .blog-sidebar {
        margin-top: 0 !important;
    }

}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 991px) {

    .blog-page-section .blog-sidebar {
        position: static !important;
        margin-top: 40px !important;
    }

}


/* Subtitle */

.blog-page-section .sec-subtitle.style1 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 45px;

    color: #08A63C !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px; 
}


/* Yellow lines on both sides */

.blog-page-section .sec-subtitle.style1::before,
.blog-page-section .sec-subtitle.style1::after {
    content: "";
    display: block;

    width: 20px;
    height: 3px;

    background: #F9B900;
    border-radius: 3px;
}

/* Main heading */

.blog-page-section .sec-title {
    color: #172B3A !important;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.2;

    margin: 0;
}


/* =========================================================
   MAIN BLOG AREA
========================================================= */

.blog-page-section .gx-50 {
    --bs-gutter-x: 50px;
}


/* =========================================================
   BLOG CARD
========================================================= */

.publication-blog-card {
    position: relative;

    height: 390px;

    overflow: hidden;

    border-radius: 14px;

    background: #172B3A;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    transition: all 0.35s ease;
}


/* Hover */

.publication-blog-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   BLOG IMAGE
========================================================= */

.publication-blog-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.publication-blog-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s ease;
}


/* Zoom image on hover */

.publication-blog-card:hover .publication-blog-image img {
    transform: scale(1.06);
}


/* Default image */

.default-blog-image {
    background-size: cover;
    background-position: center;
}


/* =========================================================
   DARK OVERLAY
========================================================= */

.publication-blog-overlay {
    position: absolute;

    inset: 0;

    background: linear-gradient(
        to top,
        rgba(5, 25, 45, 0.95) 0%,
        rgba(5, 25, 45, 0.70) 45%,
        rgba(5, 25, 45, 0.15) 100%
    );

    z-index: 1;

    transition: all 0.35s ease;
}


/* Slightly stronger overlay on hover */

.publication-blog-card:hover .publication-blog-overlay {
    background: linear-gradient(
        to top,
        rgba(5, 25, 45, 0.97) 0%,
        rgba(5, 25, 45, 0.78) 55%,
        rgba(52, 104, 45, 0.25) 100%
    );
}


/* =========================================================
   BLOG CONTENT
========================================================= */

.publication-blog-content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    padding: 30px;
}


/* =========================================================
   DATE
========================================================= */

.publication-blog-date {
    display: inline-block;

    padding: 7px 13px;

    margin-bottom: 13px;

    border-radius: 5px;

    background: #F9B900;

    color: #fff;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   BLOG TITLE
========================================================= */

.publication-blog-title {
    margin: 0 0 10px;

    font-size: 22px;

    font-weight: 700;

    line-height: 1.35;
}

.publication-blog-title a {
    color: #fff !important;

    text-decoration: none;

    transition: color 0.3s ease;
}


/* =========================================================
   BLOG EXCERPT
========================================================= */

.publication-blog-excerpt {
    color: rgba(255, 255, 255, 0.85);

    font-size: 14px;

    line-height: 1.7;

    margin: 0 0 18px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   READ MORE BUTTON
========================================================= */

.publication-blog-btn {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #fff !important;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition: all 0.3s ease;
}

.publication-blog-btn i {
    font-size: 12px;

    transition: transform 0.3s ease;
}

.publication-blog-btn:hover {
    color: #F9B900 !important;
}

.publication-blog-btn:hover i {
    transform: translateX(5px);
}


/* =========================================================
   SIDEBAR
========================================================= */

.blog-sidebar {
    position: sticky;

    top: 100px;
    margin-bottom: 60px !important;
}


/* =========================================================
   SIDEBAR WIDGET
========================================================= */

.sidebar-widget {
    padding: 25px;

    margin-bottom: 30px;

    background: #f7faf8;

    border-radius: 12px;

    border: 1px solid #e5eee9;
}


/* Sidebar heading */

.sidebar-title {
    position: relative;

    margin: 0 0 22px;

    padding-bottom: 12px;

    color: #172B3A;

    font-size: 21px;

    font-weight: 700;
}

.sidebar-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 35px;
    height: 3px;

    background: #F9B900;

    border-radius: 3px;
}


/* =========================================================
   RECENT POSTS
========================================================= */

.recent-post {
    display: flex;

    gap: 14px;

    padding-bottom: 15px;

    margin-bottom: 15px;

    border-bottom: 1px solid #e2e8e5;
}

.recent-post:last-child {
    margin-bottom: 0;

    padding-bottom: 0;

    border-bottom: 0;
}


/* Recent image */

.recent-post-image {
    flex: 0 0 75px;

    width: 75px;
    height: 65px;

    overflow: hidden;

    border-radius: 7px;
}

.recent-post-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.recent-post-image:hover img {
    transform: scale(1.08);
}


/* Recent content */

.recent-post-content {
    flex: 1;
}

.recent-post-date {
    display: block;

    margin-bottom: 4px;

    color: #F9B900;

    font-size: 11px;

    font-weight: 600;
}

.recent-post-content h4 {
    margin: 0;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.4;
}

.recent-post-content h4 a {
    color: #172B3A;

    text-decoration: none;

    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: #08A63C;
}


/* =========================================================
   CATEGORIES
========================================================= */

.blog-categories {
    padding: 0;

    list-style: none;
}

.blog-categories li {
    position: relative;

    padding: 10px 0;

    border-bottom: 1px solid #e2e8e5;
}

.blog-categories li:last-child {
    border-bottom: none;
}

.blog-categories li a {
    color: #172B3A;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s ease;
}

.blog-categories li a::before {
    content: "→";

    margin-right: 8px;

    color: #F9B900;

    transition: transform 0.3s ease;
}

.blog-categories li a:hover {
    color: #08A63C;

    padding-left: 4px;
}


/* =========================================================
   PAGINATION
========================================================= */

.blog-pagination {
    display: flex;

    justify-content: center;

    width: 100%;

    margin-top: 15px;
}

.blog-pagination ul {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin: 0;

    padding: 0;

    list-style: none;
}

.blog-pagination li {
    margin: 0;
}

.blog-pagination li a,
.blog-pagination li span {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 12px;

    border: 1px solid #dce7e2;

    border-radius: 6px;

    background: #fff;

    color: #172B3A;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s ease;
}

.blog-pagination li span.current,
.blog-pagination li a:hover {
    background: #08A63C;

    border-color: #08A63C;

    color: #fff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .blog-page-section .sec-title {
        font-size: 32px;
    }

    .blog-sidebar {
        position: static;

        margin-top: 20px;
    }

}


@media (max-width: 767px) {

    .blog-page-section .title-area3 {
        margin-bottom: 35px;
    }

    .blog-page-section .sec-subtitle.style1 {
        gap: 20px;

        font-size: 11px;
    }

    .blog-page-section .sec-subtitle.style1::before,
    .blog-page-section .sec-subtitle.style1::after {
        width: 16px;
        height: 2px;
    }

    .blog-page-section .sec-title {
        font-size: 28px;
    }

    .publication-blog-card {
        height: 370px;
    }

}


@media (max-width: 575px) {

    .publication-blog-content {
        padding: 22px;
    }

    .publication-blog-title {
        font-size: 20px;
    }

    .publication-blog-excerpt {
        font-size: 13px;
    }

    .publication-blog-card {
        height: 350px;
    }

}