/* Blog Page CSS - messy human imperfections */

/* Blog listing styles */
.blog-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4a8c 100%);
    padding: 80px 0 60px 0;
    position: relative;
    color: #fff;
}

.blog-header::before {
    position: absolute;
    content: "";
    background-color: #001D38;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .35;
}

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

.blog-header h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #fff;
}

.blog-header p {
    font-size: 1.1rem;
    color: #E8E8E8;
    margin-bottom: 0;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-content {
    padding: 70px 0;
    background: #fff;
    min-height: 500px;
}

.articles-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.article-card {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc(50% - 15px);
    flex: 0 0 calc(50% - 15px);
    background: #fff;
    border-radius: 8px;
    -webkit-box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.article-card:hover {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -o-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    -moz-box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

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

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}

.article-card-content {
    padding: 25px;
}

.article-card-title {
    margin-bottom: 12px;
}

.article-card-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -ms-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #ff8b00;
    text-decoration: none;
}

.article-card-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.article-card-meta .author {
    margin-right: 15px;
    font-weight: 500;
}

.article-card-meta .date {
    color: #999;
}

.article-card-preview {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #ff8b00;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -ms-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ff9827;
    text-decoration: none;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-articles h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

/* Single article styles */
.article-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4a8c 100%);
    padding: 80px 0 60px 0;
    position: relative;
    color: #fff;
}

.article-header::before {
    position: absolute;
    content: "";
    background-color: #001D38;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .35;
}

.article-header .container {
    position: relative;
    z-index: 1;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #fff;
    line-height: 1.3;
}

.article-meta {
    font-size: 1rem;
    color: #E8E8E8;
    opacity: 0.9;
}

.article-meta .author {
    margin-right: 20px;
    font-weight: 500;
}

.article-meta .date {
    color: #ccc;
}

.single-article-content {
    padding: 70px 0;
    background: #fff;
}

.article-image {
    margin-bottom: 40px;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    -webkit-box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-footer {
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.back-to-blog {
    color: #ff8b00;
    text-decoration: none;
    font-weight: 600;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -ms-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #ff9827;
    text-decoration: none;
}

/* Column classes */
.col-lg-8 {
    -ms-flex: 0 0 66.666667%;
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-lg-10 {
    -ms-flex: 0 0 83.333333%;
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
    padding-right: 15px;
    padding-left: 15px;
}

.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important;
}

.text-center {
    text-align: center !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Responsive breakpoints - messy like human code */
@media (max-width: 991.98px) {
    .blog-header {
        padding: 60px 0 40px 0;
    }
    
    .blog-header h1, .article-title {
        font-size: 2.2rem;
    }
    
    .blog-content, .single-article-content {
        padding: 50px 0;
    }
    
    .articles-grid {
        gap: 25px;
    }
    
    .article-card {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
    }
    
    .col-lg-8, .col-lg-10 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .blog-header, .article-header {
        padding: 50px 0 30px 0;
    }
    
    .blog-header h1, .article-title {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .blog-content, .single-article-content {
        padding: 40px 0;
    }
    
    .article-card-content {
        padding: 20px;
    }
    
    .article-card-title a {
        font-size: 1.2rem;
    }
    
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-card-image {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .blog-header h1, .article-title {
        font-size: 1.6rem;
    }
    
    .article-card-content {
        padding: 18px;
    }
    
    .article-card-title a {
        font-size: 1.1rem;
    }
    
    .article-card-preview {
        font-size: 14px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-card-image {
        height: 160px;
    }
}