/* ExertSense Solutions - Blog Pages CSS */
/* Version: 1.0 */
/* Extends the main style.css with blog-specific styles */

/* ========================================
   BLOG HERO SECTION
   ======================================== */
.blog-hero {
    min-height: 45vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 46, 95, 0.92) 0%, rgba(0, 128, 204, 0.85) 100%);
    z-index: 0;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.blog-hero h1 {
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: none;
}

.blog-hero .blog-meta {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.blog-hero .blog-meta span {
    margin: 0 10px;
}

.blog-hero .blog-meta i {
    margin-right: 5px;
}

/* Breadcrumb - Inside Hero */
.blog-hero .breadcrumb-container {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background: transparent;
    padding: 0;
    border: none;
    z-index: 2;
}

.blog-hero .breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
    font-size: 1.4rem;
}

.blog-hero .breadcrumb li {
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
}

.blog-hero .breadcrumb li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    text-transform: none;
}

.blog-hero .breadcrumb li a:hover {
    color: #00bfff;
}

.blog-hero .breadcrumb li + li::before {
    content: '›';
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   BLOG ARTICLE CONTENT
   ======================================== */
.blog-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.blog-content h2 {
    font-size: 2.8rem;
    color: #002e5f;
    margin-top: 50px;
    margin-bottom: 20px;
    line-height: 1.3;
    text-transform: none;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 2.2rem;
    color: #002e5f;
    margin-top: 35px;
    margin-bottom: 15px;
    line-height: 1.3;
    text-transform: none;
    font-weight: 600;
}

.blog-content p {
    font-size: 1.7rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 20px;
    text-transform: none;
}

.blog-content strong {
    color: #222;
}

.blog-content a {
    color: #1476F2;
    text-decoration: underline;
    text-decoration-color: rgba(20, 118, 242, 0.3);
}

.blog-content a:hover {
    color: #002e5f;
    text-decoration-color: #002e5f;
}

.blog-content ul,
.blog-content ol {
    margin: 15px 0 25px 25px;
    text-transform: none;
}

.blog-content li {
    font-size: 1.7rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 10px;
    text-transform: none;
}

.blog-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 40px 0;
}

.blog-content blockquote {
    border-left: 4px solid #1476F2;
    padding: 15px 25px;
    margin: 25px 0;
    background: #f8faff;
    border-radius: 0 8px 8px 0;
}

.blog-content blockquote p {
    color: #333;
    font-style: italic;
    margin-bottom: 0;
}

/* Key Insight Callout */
.blog-content .key-insight {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-left: 4px solid #00bfff;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.blog-content .key-insight p {
    color: #002e5f;
    font-weight: 500;
    margin-bottom: 0;
}

/* Tables */
.blog-content .table-responsive {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
    text-transform: none;
}

.blog-content table thead th {
    background: #002e5f;
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.blog-content table tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.blog-content table tbody tr:nth-child(even) {
    background: #f8faff;
}

.blog-content table tbody tr:hover {
    background: #e8f4fd;
}

/* ========================================
   BLOG CTA SECTION
   ======================================== */
.blog-cta {
    background: linear-gradient(135deg, #002e5f 0%, #0080cc 100%);
    padding: 60px 20px;
    text-align: center;
}

.blog-cta .container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-cta h2 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: none;
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-transform: none;
}

.blog-cta .cta-button {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: #00bfff;
    color: #fff !important;
    border-radius: 5rem;
    font-size: 1.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-cta .cta-button:hover {
    background: #fff;
    color: #002e5f !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ========================================
   BLOG LISTING PAGE
   ======================================== */
.blog-listing {
    padding: 60px 20px 80px;
    background: #f9fafb;
}

.blog-listing .container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-listing h1 {
    text-align: center;
    margin-bottom: 15px;
}

.blog-listing .listing-subtitle {
    text-align: center;
    font-size: 1.8rem;
    color: #666;
    margin-bottom: 50px;
    text-transform: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1476F2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: none;
    width: fit-content;
}

.blog-card-title {
    font-size: 2rem;
    color: #002e5f;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    text-transform: none;
}

.blog-card-excerpt {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.7;
    text-transform: none;
    flex: 1;
}

.blog-card-footer {
    padding: 15px 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    color: #999;
    text-transform: none;
}

.blog-card-footer .read-more {
    color: #1476F2;
    font-weight: 600;
    text-decoration: none;
}

/* ========================================
   RELATED POSTS
   ======================================== */
.related-posts {
    background: #f9fafb;
    padding: 60px 20px;
}

.related-posts .container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-posts h2 {
    text-align: center;
    font-size: 3rem;
    color: #002e5f;
    margin-bottom: 40px;
    text-transform: none;
}

/* ========================================
   SHARE BUTTONS
   ======================================== */
.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.blog-share span {
    font-size: 1.6rem;
    font-weight: 600;
    color: #002e5f;
    text-transform: none;
}

.blog-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-share a:hover {
    background: #1476F2;
    color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.8rem;
    }

    .blog-content {
        padding: 40px 15px 60px;
    }

    .blog-content h2 {
        font-size: 2.2rem;
    }

    .blog-content h3 {
        font-size: 1.9rem;
    }

    .blog-content p,
    .blog-content li {
        font-size: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-cta h2 {
        font-size: 2.4rem;
    }

    .blog-content table {
        font-size: 1.3rem;
    }

    .blog-content table thead th,
    .blog-content table tbody td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 100px 15px 40px;
        min-height: 35vh;
    }

    .blog-hero h1 {
        font-size: 2.2rem;
    }
}
