/* ============================================
   Blog Page - Enhanced Styles
   ============================================ */

/* Blog Card Base Styles */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 68, 114, 0.15);
    border-color: rgba(0, 68, 114, 0.1);
}

/* Colorful top borders for cards */
.blog-card.service-card {
    border-top: 5px solid #3b82f6;
}

.blog-card.future-card {
    border-top: 5px solid #f59e0b;
}

.blog-card.tool-card {
    border-top: 5px solid #10b981;
}

/* Blog Image Styling */
.blog-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    position: relative;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

/* Icon Animations */
.blog-card:hover i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Blog Content */
.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.blog-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--heading-color);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--accent-color);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--default-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.info-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Premium "Read More" Button */
.read-more-btn,
.read-more {
    display: inline-flex;
    margin-top: auto !important;
    align-self: flex-start;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-color), #3b82f6);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 68, 114, 0.2);
}

.read-more-btn:hover,
.read-more:hover {
    background: linear-gradient(135deg, #3b82f6, var(--accent-color));
    box-shadow: 0 6px 20px rgba(0, 68, 114, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.read-more-btn i,
.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i,
.read-more:hover i {
    transform: translateX(5px);
}

/* Section Title Styling */
.section-title h2 {
    color: var(--heading-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title h2:before {
    display: none;
}

.section-title h2:after {
    content: "";
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

/* Spacing Overrides */
section.blog-posts {
    padding-top: 0;
}

.page-title {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.section-title {
    padding-top: 20px;
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}

.breadcrumb-item.active {
    color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Premium Typography Enhancements (Detail Pages Only) */
.blog-detail-page h1,
.blog-detail-page h2,
.blog-detail-page h3 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.blog-detail-page h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.blog-detail-page h2 {
    font-size: 2rem;
    line-height: 1.3;
}

.blog-detail-page h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.blog-detail-page p {
    font-size: 1.1rem;
    margin: 2.5rem 0;
    padding: 2rem;
    font-style: italic;
    font-size: 1.25rem;
    color: #334155;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.blog-content blockquote::before {
    content: "\201C";
    font-family: serif;
    font-size: 4rem;
    color: rgba(var(--accent-color-rgb), 0.1);
    position: absolute;
    top: -10px;
    left: 10px;
    line-height: 1;
}

/* Images inside post */
.blog-content img {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin: 2rem 0;
    max-width: 100%;
}

/* --- 3. Info Bar (Author/Date) --- */
.blog-info-bar {
    background: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    margin-bottom: 50px;
    display: inline-flex;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
}

.info-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* --- 4. Alerts/Callouts --- */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.alert-primary {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}
