* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f6f4ff, #ebe7ff);
    color: #1f1f2e;
}

/* HERO */

.blog-hero {
    text-align: center;
    padding: 120px 20px 80px;
}

.gradient-heading {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(90deg, #6c63ff, #9f7aea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.underline {
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #6c63ff, #9f7aea, #6c63ff);
    background-size: 200% auto;
    animation: move 3s linear infinite;
    border-radius: 10px;
}

@keyframes move {
    to { background-position: 200% center; }
}

.blog-hero p {
    margin-top: 25px;
    color: #555;
    font-size: 18px;
}

/* FILTERS */

.category-filters {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(108,99,255,0.3);
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.filter-pill.active,
.filter-pill:hover {
    background: linear-gradient(90deg, #6c63ff, #9f7aea);
    color: #fff;
}

/* GRID */

.blog-container {
    padding: 60px 8% 120px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

/* CARD */

.blog-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 35px rgba(108, 99, 255, 0.08);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(108, 99, 255, 0.18);
}

/* Border Glow */

.blog-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, #6c63ff, #9f7aea);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: 0.3s;
}

.blog-card:hover::before {
    opacity: 1;
}

/* IMAGE */

.card-image {
    height: 200px;
    overflow: hidden;
}

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

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

/* CONTENT */

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

.category {
    font-size: 12px;
    font-weight: 700;
    color: #6c63ff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.read-more {
    margin-top: auto;
    font-weight: 600;
    color: #6c63ff;
}

/* Fade Animation */

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Pagination */

.pagination {
    margin-top: 60px;
    text-align: center;
}

.page-btn {
    margin: 0 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(108,99,255,0.08);
    transition: 0.3s;
}

.page-btn.active,
.page-btn:hover {
    background: linear-gradient(90deg, #6c63ff, #9f7aea);
    color: #fff;
}

/* Responsive */

@media(max-width:768px){
    .gradient-heading { font-size: 30px; }
    .blog-grid { grid-template-columns: 1fr; }
}

.read-more.disabled {
    color: #aaa;
    cursor: default;
}

.blog-card {
    position: relative;
    z-index: 1;
}

.blog-card::before {
    pointer-events: none;   /* IMPORTANT FIX */
}