:root {
    --zyla-indigo: #0c2340;
    --zyla-indigo-dark: #091a30;
    --zyla-indigo-light: #12335f;
    --zyla-indigo-lighter: #2a4975;
    --zyla-indigo-lightest: #dce4ef;
    --zyla-white: #ffffff;
    --zyla-light-gray: #f8f9fa;
    --zyla-gray: #e0e0e0;
    --zyla-dark-gray: #333333;
    --zyla-text: #2d3748;
}

/* Improved breadcrumbs styling */
.breadcrumb-container {
    background-color: var(--zyla-light-gray);
    padding: 15px 0 40px;
    border-bottom: 1px solid var(--zyla-gray);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--zyla-indigo);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--zyla-indigo-dark);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #8f8f8f;
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--zyla-text);
    font-weight: 400;
    max-width: 600px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--zyla-dark-gray);
    margin-bottom: 25px;
}

/* Search box styling */
.blog-search-form {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.blog-search-form input[type="text"] {
    width: 100%;
    height: 60px;
    background-color: var(--zyla-white);
    border: 2px solid var(--zyla-indigo-light);
    border-radius: 30px;
    padding: 0 60px 0 30px;
    font-size: 18px;
    color: var(--zyla-dark-gray);
    transition: all 0.3s ease;
}

.blog-search-form input[type="text"]::placeholder {
    color: #a0aec0;
}

.blog-search-form input[type="text"]:focus {
    border-color: var(--zyla-indigo);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.blog-search-form button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--zyla-indigo);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.blog-search-form button i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-search-form button:hover {
    color: var(--zyla-indigo-dark);
}

/* Featured post section */
.featured-section {
    margin-bottom: 60px;
}

.featured-section .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.featured-section .col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
    padding-right: 15px;
    padding-left: 15px;
}

.featured-section .col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    padding-right: 15px;
    padding-left: 15px;
}

.main-featured-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.main-featured-post .featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.main-featured-post .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.main-featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.main-featured-post .featured-content {
    padding: 30px;
    background: #fff;
}

.main-featured-post .featured-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #000;
    text-decoration: none;
    display: block;
}

.main-featured-post .featured-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.main-featured-post .post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.main-featured-post .author {
    font-weight: 500;
    color: #333;
}

.main-featured-post .date {
    color: #777;
    font-size: 14px;
}

.featured-posts-section {
    height: 100%;
}

.featured-posts-section h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--zyla-indigo);
    display: inline-block;
}

.featured-post-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.featured-post-item:last-child {
    border-bottom: none;
}

.featured-post-item .post-thumbnail {
    width: 100px;
    height: 70px;
    overflow: hidden;
    border-radius: 5px;
    margin-right: 15px;
    flex-shrink: 0;
}

.featured-post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post-item .post-info {
    flex-grow: 1;
}

.featured-post-item .post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    display: block;
    color: #333;
    text-decoration: none;
}

.featured-post-item .post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.featured-post-item .author {
    color: #555;
}

.featured-post-item .date {
    color: #888;
}

/* Pinterest-like card layout */
.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-card .card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.blog-card .card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #000;
}

.blog-card .card-excerpt {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-card .read-more {
    font-family: "gilroy-bold";
    font-size: 16px;
    color: var(--zyla-indigo);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.blog-card .read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-card .read-more:hover i {
    transform: translateX(5px);
}

.blog-card .post-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #777;
}

/* Improved pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    color: #555;
    transition: all 0.3s ease;
}

.pagination li.active a {
    background-color: var(--zyla-indigo);
    color: white;
    font-weight: bold;
}

.pagination li a:hover:not(.active) {
    background-color: var(--zyla-indigo-lightest);
}

.pagination .arrow a {
    font-size: 20px;
}

.pagination .disabled a {
    color: #ccc;
    pointer-events: none;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin: 40px 0 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--zyla-indigo);
    display: inline-block;
}

.blog-page-white-bg img {
    object-fit: contain !important;
}

@media (max-width: 992px) {
    .featured-section .col-md-7,
    .featured-section .col-md-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .featured-posts-section {
        margin-top: 30px;
    }

    .main-featured-post .featured-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .breadcrumb-current {
        max-width: 300px;
    }

    .blog-search-container h2 {
        font-size: 32px;
    }

    .blog-search-form input[type="text"] {
        height: 50px;
        font-size: 16px;
    }

    .blog-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .pagination li a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .main-featured-post .featured-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .breadcrumb-current {
        max-width: 200px;
    }

    .blog-search-container h2 {
        font-size: 28px;
    }

    .blog-card-grid {
        grid-template-columns: 1fr;
    }

    .featured-post-item .post-thumbnail {
        width: 80px;
        height: 60px;
    }
}

.footer {
    font-size: 24px;
}

@media (max-width: 768px) {
    .pagination li:nth-child(6),
    .pagination li:nth-child(7) {
        display: none;
    }
}
