body {
    background-color: #ffffff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.blogs-main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

.blog-hero {
    width: 100%;
    height: 80vh;
    background-image:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0) 15%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 1) 100%),
        url('./assets/images/blog-background.png');

    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

.blog-intro {
    text-align: center;
    padding: 50px 20px 30px;
    width: 100%;
    margin: 0 auto;
}

.blog-main-title {
    font-family: 'Campton', sans-serif;
    text-align: center;
    font-size: 50px;
    font-weight: 700;
    line-height: 59px;
    color: #000;
    margin-bottom: 15px;
}

.blog-main-subtitle {
    font-family: 'Campton', sans-serif;
    color: #000;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    max-width: 700px;
    margin: 0 auto;
}

.blog-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.blog-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 35px;
}

.search-container {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 36px 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #0000ff;
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    align-content: start;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-image-wrapper {
    width: 100%;
    height: 180px;
    background-color: #f7fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

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

.card-title {
    font-family: "Campton", Montserrat;
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 38px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-family: "Campton", Montserrat;
    color: #000;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 38px;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.read-more-btn {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #d1d5db;
    padding: 6px 16px;
    font-family: 'Campton', sans-serif;
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.read-more-icon {
    width: 12px;
    height: 12px;
}

.read-more-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
}

.page-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    padding: 5px 10px;
    position: relative;
    font-weight: 500;
}

.page-btn.active {
    color: #5d4fa1;
    font-weight: 700;
}

.page-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #5d4fa1;
}

.page-nav-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-nav-btn:disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.no-results {
    grid-column: span 3;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

mark.search-highlight {
    background-color: rgba(93, 79, 161, 0.2);
    color: #0000FE;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: inherit;
}

@media (max-width: 991px) {
    .no-results {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        height: 40vh;
    }

    .blog-main-title {
        font-size: 36px;
        line-height: 44px;
    }

    .blog-main-subtitle {
        font-size: 18px;
        line-height: 26px;
    }

    .card-title {
        font-size: 20px;
        line-height: 30px;
    }

    .card-description {
        font-size: 16px;
        line-height: 28px;
    }

    .no-results {
        grid-column: span 1;
    }

    .blog-toolbar {
        justify-content: center;
    }

    .search-container {
        width: 100%;
    }
}
.mt40 {
  margin-top: 40px !important;
}