

/* ===================================
   BLOG PAGE SPECIFIC STYLES
   =================================== */

.blog-page {
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}


/* ===================================
   PAGE HEADER
   =================================== */

.page-header {
    text-align: center;
    margin-bottom: 3rem;
  
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    background:var(--orange);
    border-radius: 2px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   FILTER SECTION
   =================================== */

.filter-section {
    margin-bottom: 2.5rem;
}

.filter-tags {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    font-family: 'Montserrat', sans-serif;
}

.filter-tag[data-filter="all"] {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}
.filter-tag[data-filter="all"]:hover,
.filter-tag[data-filter="all"].active {
    background: var(--text-primary);
    color: black;
    border-color: var(--text-primary);
}
/* Articles - Royal Blue */
.filter-tag[data-filter="article"] {
    color: var(--royal-blue);
    border-color: var(--royal-blue);
} 
.filter-tag[data-filter="article"]:hover,
.filter-tag[data-filter="article"].active {
    background: var(--royal-blue);
    color: white;
    border-color: var(--royal-blue);
}
/* Posts - Green */
.filter-tag[data-filter="post"] {
    color: green ;
    border-color: green;
}
.filter-tag[data-filter="post"]:hover,
.filter-tag[data-filter="post"].active {
    background: green;
    color: white;
    border-color:green;
}
/* Infographics - Orange */
.filter-tag[data-filter="infographic"] {
    color: var(--orange);
    border-color: var(--orange);
}
.filter-tag[data-filter="infographic"]:hover,
.filter-tag[data-filter="infographic"].active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}
/* Active state styles */
.filter-tag.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hover effects */
.filter-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* ===================================
   INSIGHTS GRID
   =================================== */

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* ===================================
   INSIGHT CARD
   =================================== */

.insight-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border-color);
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px var(--shadow-heavy);
    border-color: var(--royal-blue);
}

/* ===================================
   INSIGHT IMAGE
   =================================== */

.insight-image {
    width: 100%;
    height: 200px;
    background: var(--bg-tertiary);
    overflow: hidden;
    position: relative;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* ===================================
   CONTENT TYPE BADGE
   =================================== */

.content-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.content-type.article {
    background: var(--royal-blue);
    color: white;
}

.content-type.post {
    background: green;
    color: white;
}



.content-type.infographic {
    background: var(--orange);
    color: white;
}

/* ===================================
   INSIGHT CONTENT
   =================================== */

.insight-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.insight-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.insight-date,
.insight-reading-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.insight-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================
   INSIGHT TAGS
   =================================== */

.insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.insight-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(24, 0, 173, 0.1);
    color: var(--royal-blue);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(24, 0, 173, 0.2);
}

[data-theme="dark"] .insight-tag {
    background: rgba(91, 127, 255, 0.15);
    border-color: rgba(91, 127, 255, 0.3);
}

/* ===================================
   READ MORE LINK
   =================================== */

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--royal-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-medium);
    margin-top: auto;
}

.read-more:hover {
    color: var(--orange);
    gap: 0.8rem;
}

.read-more i {
    transition: transform var(--transition-medium);
}

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .blog-page {
        padding: 2rem 1rem 1.5rem;
    }

    .page-header {
        margin-bottom: 2rem;
        padding-top: 0.5rem;
    }

    .filter-section {
        margin-bottom: 2rem;
    }

    .filter-tags {
        gap: 0.6rem;
    }

    .filter-tag {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .insight-image {
        height: 180px;
    }

    .insight-content {
        padding: 1.2rem;
    }

    .insight-title {
        font-size: 1.1rem;
    }

    .insight-description {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}