/* =========================================
   INSIGHTS & BLOG STYLES (PROFESSIONAL)
   ========================================= */


/* --- Hero Area --- */

.hero-section {
    padding: 100px 0 80px;
    background-color: #f4f6fc;
    margin-bottom: 0;
}


/* --- Blog Card Design --- */

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.img-wrapper {
    overflow: hidden;
    height: 220px;
    position: relative;
}

.blog-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-top {
    transform: scale(1.08);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


/* Date Badge */

.blog-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    min-width: 60px;
}

.blog-date-badge span {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-purple);
    line-height: 1;
}

.blog-date-badge small {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #555;
    font-weight: 700;
    letter-spacing: 1px;
}


/* Typography */

.badge-category {
    background-color: #ff6b35;
    color: white;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 30px;
    align-self: flex-start;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.blog-title {
    font-weight: 800;
    font-size: 1.3rem;
    color: #2d2d2d;
    margin-bottom: 15px;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: 0.2s;
}

.blog-title:hover {
    color: var(--accent-orange);
}

.read-more-link {
    margin-top: auto;
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
}

.read-more-link i {
    margin-left: 5px;
    transition: 0.2s;
}

.read-more-link:hover {
    color: var(--primary-purple);
}

.read-more-link:hover i {
    transform: translateX(5px);
}


/* --- Pagination --- */

.pagination {
    margin-top: 50px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    margin: 0 6px;
    color: #555;
    font-weight: 600;
    border: 1px solid #eee;
    transition: 0.3s;
}

.page-link:hover {
    background-color: #f4f6fc;
    color: var(--primary-purple);
    border-color: var(--primary-purple);
}

.page-item.active .page-link {
    background-color: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
    box-shadow: 0 5px 15px rgba(57, 43, 88, 0.3);
}


/* --- Sidebar --- */

.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.sidebar-title {
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}


/* Search */

.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    border: 1px solid #eee;
    background: #f8f9fa;
    outline: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.search-form input:focus {
    background: white;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(57, 43, 88, 0.1);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 40px;
    width: 40px;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.search-form button:hover {
    background: var(--accent-orange);
}


/* Categories */

.category-list li {
    list-style: none;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.category-list li a {
    color: #666;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.category-list li a span {
    background: #f4f6fc;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--primary-purple);
}

.category-list li a:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}


/* Recent Posts Small */

.recent-post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.recent-post-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
}

.recent-post-info h6 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-info h6 a {
    color: var(--text-dark);
    transition: 0.2s;
}

.recent-post-info h6 a:hover {
    color: var(--accent-orange);
}

.recent-post-info small {
    color: #999;
    font-size: 0.8rem;
}


/* --- Blog Detail Page Specifics (Fixed) --- */

.blog-detail-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
    margin-top: 30px;
}

.blog-detail-content p {
    margin-bottom: 1.8rem;
}

.blog-detail-content h2 {
    color: var(--primary-purple);
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.blog-detail-content h3 {
    color: #333;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-detail-content ul {
    padding-left: 20px;
    margin-bottom: 2rem;
}

.blog-detail-content li {
    margin-bottom: 10px;
}

.blockquote-custom {
    background-color: #fff5f0;
    border-left: 5px solid var(--accent-orange);
    padding: 30px;
    font-size: 1.25rem;
    font-style: italic;
    color: #333;
    margin: 40px 0;
    border-radius: 0 10px 10px 0;
}

.author-meta {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin: 30px 0;
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

.author-meta i {
    color: var(--accent-orange);
    margin-right: 5px;
}