:root {
    --primary-color: #34438a;
    --primary-light: #447fc1;
    --heading-color: #1a2332;
    --text-color: #6b7a8d;
    --card-bg: #ffffff;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modern-page-header {
    position: relative;
    background-color: #f4f7f6;
    padding: 90px 0 70px;
    text-align: center;
    overflow: hidden;
}

.modern-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 67, 138, 0.85) 0%, rgba(68, 127, 193, 0.75) 100%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.modern-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.modern-breadcrumb {
    display: inline-flex;
    padding: 0;
    background: transparent;
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.modern-breadcrumb li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.modern-breadcrumb li a:hover {
    color: #ffffff;
}

.modern-breadcrumb > .active {
    color: rgba(255, 255, 255, 0.7);
}

.blog-section {
    padding: 50px 0;
    background: transparent;
}

#blog-grid {
    display: flex;
    flex-wrap: wrap;
}

#blog-grid .blog-grid-item {
    display: flex;
    flex-direction: column;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
    width: 100%;
}

.blog-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-img-wrapper {
    position: relative;
    padding-top: 62%;
    overflow: hidden;
}

.blog-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.blog-card:hover .blog-img-wrapper::after {
    opacity: 0.7;
}

.blog-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.08);
}

.blog-body {
    padding: 20px 22px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-date {
    position: absolute;
    top: -16px;
    left: 20px;
    background: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.blog-date i {
    margin-right: 6px;
    color: var(--primary-color);
    font-size: 1rem;
}

.blog-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    margin-top: 15px;
    margin-bottom: 12px;
    line-height: 1.35;
    height: auto;
    color: var(--heading-color);
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title a {
    color: var(--primary-color);
}

.blog-summary {
    color: var(--text-color);
    font-size: 13.5px;
    line-height: 1.8;
    margin-top: 0;
    margin-bottom: 20px;
    height: auto;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    align-self: flex-start;
    font-family: 'Poppins', sans-serif;
    margin-top: auto;
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #34438a, #447fc1);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

.blog-card:hover .read-more-link::after {
    width: calc(100% - 26px);
}

.read-more-link i {
    margin-left: 8px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 12px;
    font-weight: 900;
}

.read-more-link:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.read-more-link:hover i {
    transform: translateX(6px);
}

.featured-card {
    flex-direction: row;
    min-height: 450px;
    align-items: stretch;
    border-radius: 20px;
    overflow: hidden;
}

.featured-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.featured-card .blog-img-wrapper::after {
    height: 40%;
}

.featured-card .blog-body {
    padding: 40px 50px;
    flex: 0 0 41.6667%;
    max-width: 41.6667%;
    box-sizing: border-box;
    justify-content: center;
}

.featured-card .blog-card-title {
    font-size: 2.4rem;
    margin-bottom: 18px;
    -webkit-line-clamp: 3;
    height: auto;
}

.featured-card .blog-summary {
    font-size: 14px;
    margin-bottom: 28px;
    -webkit-line-clamp: 4;
    height: auto;
}

.featured-card .blog-date {
    position: relative;
    top: 0;
    left: 0;
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 25px;
    font-size: 0.95rem;
    box-shadow: none;
    background: #f4f7fa;
    border: 1px solid rgba(52, 67, 138, 0.1);
    color: var(--primary-color);
}

.featured-card .read-more-link {
    margin-top: 25px;
}

.blog-featured-row {
    margin-bottom: 50px;
}

.blog-grid-item {
    margin-bottom: 30px;
}

.featured-img-col {
    padding: 0;
    position: relative;
    flex: 0 0 58.3333%;
    max-width: 58.3333%;
    box-sizing: border-box;
    overflow: hidden;
}

.featured-card .featured-img-col .blog-img-wrapper {
    padding-top: 0;
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

.featured-card .featured-img-col .blog-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
}

.blog-empty-state {
    padding: 50px;
}

.blog-empty-state p {
    color: #b2bec3;
    font-size: 1.2rem;
}


@media (max-width: 768px) {
    .featured-card {
        flex-direction: column;
    }

    .featured-img-col,
    .featured-card .blog-body {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .featured-img-col {
        padding-right: 0 !important;
        height: 300px;
    }

    .featured-card .blog-body {
        padding: 22px 22px 20px;
    }

    .blog-card-title {
        font-size: 1.5rem;
    }

    .blog-body {
        padding: 22px 22px 20px;
    }

    .blog-card:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .modern-title {
        font-size: 3rem;
    }
}


