
/* ===============================
   HERO BANNER
================================ */

.jobs-hero {
    position: relative;
    background-image: url("../images/hero/insight.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right 30%;
    min-height: 45vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .jobs-hero {
        background-position: right 20%;
    }
}

/* Main overlay (enhanced but same class) */
.jobs-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            rgba(11, 51, 102, 0.88),
            rgba(10, 186, 181, 0.78)
        );
    z-index: 1;
}

/* Subtle vector / glow accents */
.jobs-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(
        circle,
        rgba(246, 233, 149, 0.25),
        rgba(246, 233, 149, 0) 70%
    );
    top: -180px;
    right: -180px;
    z-index: 2;
}

.jobs-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(
        circle,
        rgba(10, 186, 181, 0.18),
        rgba(10, 186, 181, 0) 70%
    );
    bottom: -160px;
    left: -160px;
    z-index: 2;
}

.jobs-hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #F6E995;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb span {
    color: #ffffff;
}

/* Hero Text */
.jobs-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.jobs-hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #f1f1f1;
    max-width: 650px;
}

/* ===============================
   RESPONSIVE (HERO ONLY)
================================ */

@media (max-width: 768px) {
    .jobs-hero {
        min-height: 55vh;
    }

    .jobs-hero h1 {
        font-size: 2.2rem;
    }

    .jobs-hero p {
        font-size: 1rem;
    }

    .jobs-hero::before,
    .jobs-hero::after {
        width: 300px;
        height: 300px;
    }
}


/* ===============================
   BLOG GRID
================================ */
.blog-section {
    padding: 80px 0;
    background: #f9fafc;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 50px;
}

/* ===============================
   FEATURED POST
================================ */
.blog-featured {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    margin-bottom: 50px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 40px;
}

.category {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.featured-content h2 {
    margin: 15px 0;
    font-size: 1.8rem;
    color: var(--secondary);
}



.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

/* ===============================
   BLOG CARDS
================================ */
.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}


.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(0,0,0,0.12);
}

.card-content h3 {
    font-size: 1.1rem;
    margin: 10px 0;
    color: var(--secondary);
}

.card-content a {
    color: var(--primary);
    font-weight: 600;
}

/* ===============================
   SIDEBAR
================================ */
.blog-sidebar .sidebar-box {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 10px 0 0 10px;
    border: 1px solid #ddd;
}

.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 0 10px 10px 0;
}

.categories li {
    margin-bottom: 10px;
}

.categories a {
    color: #555;
}

.recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.recent-post img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

/* ===============================
   PAGINATION
================================ */
.blog-pagination {
    margin-top: 50px;
    display: flex;
    gap: 10px;
}

.blog-pagination a {
    padding: 10px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.blog-pagination a.active {
    background: var(--primary);
    color: #fff;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-hero h1 {
        font-size: 2.4rem;
    }
}
.blog-pagination a:hover {
    background: inherit;
    cursor: pointer;
}


.blog-card h3 {
    font-size: 16px;
    margin: 10px 0;
    color: #0B3366;
}
.blog-card a {
    display: inline-block;
    margin-top: 10px;
    color: #0ABAB5;
    font-weight: 500;
    text-decoration: none;
}

.recent-post {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
    text-decoration: none;
}

.recent-post img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
}

.recent-info p {
    font-size: 14px;
    color: #0B3366;
    font-weight: 500;
    margin: 0;
}

.recent-post:hover p {
    color: #0ABAB5;
}



/* ===============================
   NORMAL BLOG CARD UPGRADE
================================ */

.blog-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
}

/* IMAGE */
.blog-card-image {
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENT */
.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* CATEGORY */
.card-category {
    font-size: 12px;
    color: #0ABAB5;
    font-weight: 600;
}

/* TITLE */
.blog-card h3 {
    font-size: 16px;
    color: #0B3366;
    margin: 0;
}

/* EXCERPT */
.blog-card .excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* FOOTER */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* DATE */
.card-date {
    font-size: 12px;
    color: #888;
}

/* BUTTON */
.read-btn {
    font-size: 13px;
    font-weight: 600;
    color: #0ABAB5;
}

.blog-card {
    min-height: 360px;
}

.card-content {
    padding: 20px;
    gap: 10px;
}
/* ===============================
   UNIFIED PUBLIC PAGE HERO ALIGNMENT
================================ */
body.inner-page .jobs-hero {
    min-height: 390px !important;
    padding: 118px 0 74px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body.inner-page .jobs-hero-content {
    position: relative !important;
    z-index: 3 !important;
    max-width: 850px !important;
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.inner-page .jobs-hero .breadcrumb {
    margin: 0 0 18px !important;
}

body.inner-page .jobs-hero h1 {
    margin: 0 0 14px !important;
    max-width: 820px !important;
    font-size: 46px !important;
    line-height: 1.16 !important;
}

body.inner-page .jobs-hero p {
    max-width: 700px !important;
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.75 !important;
}

@media (max-width: 900px) {
    body.inner-page .jobs-hero {
        min-height: 340px !important;
        padding: 104px 0 58px !important;
    }

    body.inner-page .jobs-hero h1 {
        font-size: 36px !important;
    }
}

@media (max-width: 640px) {
    body.inner-page .jobs-hero {
        min-height: auto !important;
        padding: 96px 0 46px !important;
    }

    body.inner-page .jobs-hero-content {
        width: 92% !important;
    }

    body.inner-page .jobs-hero .breadcrumb {
        margin-bottom: 14px !important;
        flex-wrap: wrap !important;
    }

    body.inner-page .jobs-hero h1 {
        font-size: 32px !important;
    }

    body.inner-page .jobs-hero p {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    body.inner-page .jobs-hero::before,
    body.inner-page .jobs-hero::after {
        width: 280px !important;
        height: 280px !important;
    }
}

/* ===============================
   INSIGHT PAGE MOBILE POLISH
================================ */
.blog-main,
.blog-sidebar,
.blog-card,
.blog-featured,
.featured-content {
    min-width: 0;
}

.blog-card h3,
.featured-content h2,
.recent-info p {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .blog-section {
        padding: 44px 0 56px;
    }

    .blog-grid {
        width: min(92%, 100%);
        gap: 28px;
    }

    .blog-featured {
        margin-bottom: 26px;
        border-radius: 14px;
    }

    .featured-image {
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    .featured-image img {
        height: 100%;
        display: block;
    }

    .featured-content {
        padding: 22px;
    }

    .featured-content h2 {
        margin: 8px 0 8px;
        font-size: 1.34rem;
        line-height: 1.25;
    }

    .featured-content .excerpt {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .blog-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .blog-card {
        min-height: auto;
        border-radius: 14px;
    }

    .blog-card-image {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .card-content {
        padding: 18px;
    }

    .card-footer {
        gap: 12px;
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-sidebar .sidebar-box {
        padding: 20px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .search-form {
        width: 100%;
    }

    .search-form input {
        min-width: 0;
        width: 100%;
    }

    .search-form button {
        flex: 0 0 48px;
        padding: 0;
    }

    .recent-post {
        align-items: flex-start;
    }

    .recent-post img {
        width: 72px;
        height: 64px;
        flex: 0 0 72px;
    }

    .blog-pagination {
        margin-top: 28px;
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    .featured-content,
    .card-content,
    .blog-sidebar .sidebar-box {
        padding: 16px;
    }

    .featured-content h2 {
        font-size: 1.22rem;
    }

    .blog-card h3 {
        font-size: 15px;
        line-height: 1.35;
    }
}
