.header1::after,
.header1::before {
    content: "";
    position: absolute;
    z-index: 0
}

.header1,
.header1 * {
    position: relative
}

.pagination a,
.sidebar a {
    background: #f7f9fc;
    text-decoration: none;
    font-weight: 500;
    transition: .3s
}

.header1 {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background-color: #000000;
    padding: 15pc 0px;
    overflow: hidden;
    color: #fff
}

.header1::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../bgimage/blog.webp") center/cover no-repeat fixed  ;
    opacity: .20;
}

.header1::after {
    bottom: -40px;
    right: -60px;
    width: 300px;
    height: 300px;
    opacity: .35;
    filter: blur(52px);
    border-radius: 50%;
    pointer-events: none
}

.header1 * {
    z-index: 2
}

.header1 h1 {
    /* border-bottom: 4px solid #b08435; */
    font-family: "Inter", sans-serif;
    margin: 0;
    font-size: 56px;
    color: #fff
}
.header1 p {
    /* border-bottom: 4px solid #b08435; */
    font-family: "Inter", sans-serif;
    margin: 0;
    color: #fff;
    line-height: 1.5;
    text-align: center;
    padding: 10px 40pc;
}

.main-content {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 30px;
    padding: 0 20px 15pc;
    flex-grow: 1
}

.section-title,
.sidebar h3 {
    margin-bottom: 20px;
    color: #172443
}

.sidebar {
    width: 240px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 30px
}

.sidebar h3 {
    font-size: 18px;
    border-bottom: 2px solid #cb982b;
    padding-bottom: 10px
}

.no-blogs::before,
.sidebar a {
    display: block;
    margin-bottom: 10px
}

.sidebar a {
    padding: 12px 15px;
    border-radius: 8px;
    color: #172443
}

.pagination a.active,
.pagination a:hover,
.sidebar a.active,
.sidebar a:hover {
    background: #cb982b;
    color: #fff
}

.blogs-container {
    flex: 1
}

.section-title {
    font-size: 22px;
    border-left: 4px solid #cb982b;
    padding-left: 10px
}

.blog-section {
    display: block;
    animation: .4s fadeIn
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px
}

.blog-grid a{
    text-decoration: none;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: transform .3s;
    display: flex;
    flex-direction: column
}

.blog-card:hover {
    transform: translateY(-5px)
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover
}

.blog-content {
    padding: 15px
}

.blog-content h3 {
    margin: 0 0 10px;
    color: #172443;
    font-size: 18px
}

.blog-content p {
    color: #555;
    font-size: 14px;
    line-height: 1.5
}

.blog-meta {
    font-size: 13px;
    color: #777;
    margin-top: 8px
}

.no-blogs {
    text-align: center;
    color: #555;
    font-size: 18px;
    margin-top: 60px;
    padding: 20px;
    border-radius: 10px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

.no-blogs::before {
    content: "😔";
    font-size: 40px
}

.pagination {
    text-align: center;
    margin: 30px 0
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 5px;
    color: #172443
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (min-width:1440px) {
    .main-content {
        max-width: 1400px;
        gap: 40px
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr)
    }
       .header1 p {
        text-align: center;
        padding: 0px 25%;
    }
}

@media (min-width:1025px) and (max-width:1439px) {
    .main-content {
        max-width: 1200px;
        gap: 30px
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr)
    }
       .header1 p {
        text-align: center;
        font-size: 20px;
        padding: 0px 25%;
    }
}

@media (min-width:769px) and (max-width:1024px) {
    .main-content {
        flex-direction: row;
        padding: 0 40px
    }

    .sidebar {
        width: auto;
        position: relative;
        top: 0;
        margin-bottom: 30px
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px
    }

    .header1 {
        height: 15vh;
        /* padding: 30px 0; */
        margin-top: 4pc
    }
       .header1 p {
        text-align: center;
        font-size: 20px;
        padding: 0px 10%;
    }
}

@media (min-width:481px) and (max-width:768px) {
    .main-content {
        flex-direction: column;
        gap: 20px
    }

    .sidebar {
        width: auto;
        position: relative;
        top: 0
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px
    }

    .header1 {
        flex-direction: column;
        height: auto;
        padding: 12pc 20px;
        border-radius: 0
    }

    .header1 h1 {
        font-size: 32px;
        text-align: center
    }

    .header1 p {
        text-align: center;
        font-size: 20px;
        padding: 0%;
    }
}

@media (min-width:300px) and (max-width:480px) {
    .main-content {
        flex-direction: column;
        padding: 0 15px
    }

    .sidebar {
        width: auto;
        margin-bottom: 20px;
        position: static
    }

    .blog-grid {
        grid-template-columns: 1fr
    }

    .header1 {
        flex-direction: column;
        height: auto;
        padding: 12pc 20px;
        border-radius: 0
    }

    .journey-title {
        width: 71% !important;
        font-size: 25px !important
    }

    .header1 h1 {
        font-size: 30px;
        text-align: center
    }

   .header1 p {
        text-align: center;
        font-size: 16px;
        padding: 0%;
        margin: 10px 0px 0px ;
    }

    .blog-card img {
        height: 160px
    }

    .blog-content h3,
    .sidebar h3 {
        font-size: 16px
    }
}