/* Blog Custom Styling for Shreeji Techno Innovations */

.blog-banner {
    background-image: url(../images/breadcrumb-blog.webp);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.blog-main-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #ff9e00;
}

.blog-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f8f9fa;
}

.blog-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img-wrapper img {
    transform: scale(1.08);
}

.date-wrapper {
    position: absolute;
    top: 0px;
    left:0px;   
    color: #fff;   
    font-weight: 500;     
    text-transform: uppercase;
    text-align: center; 
}

.date-wrapper .date {    
    background: #ff9e00;
    color: #000;
    display: block;
    padding: 0 15px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    
}

.date-wrapper .month {
     top: 44px;
    background: #fff;
    color: #000;
     display: block;
     padding: 0 15px;
     height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.blog-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-title {
    font-size: 22px;
    line-height: normal;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: #001b68;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #ff9e00;
}

.blog-card-excerpt {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.6;
    max-height: calc(1.6em * 3);
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #001b68;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ff9e00;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}

.category-list a:hover {
    color: #ff9e00;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img {
    width: 75px;
    height: 75px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-info .h5 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px 0;
}

.recent-post-info .h5 a {
    color: #001b68;
}

.recent-post-info .h5 a:hover {
    color: #ff9e00;
}

.recent-post-date {
    font-size: 12px;
    color: #888;
}

.cta-widget {
    background: linear-gradient(135deg, #001b68 0%, #000f39 100%);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 30px 20px;
}

.cta-widget h4 {
    font-size: 22px;
    font-weight: 700;
    color: #ff9e00;
    margin-bottom: 12px;
}

.cta-widget p {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Blog Detail Page Styling */
.blog-detail-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.blog-detail-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.blog-detail-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f5f7fb;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    font-weight: 600;
    transition: .3s;
}

.meta-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff9e00;
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
}

.meta-icon svg {
    width: 16px;
    height: 16px;
}

.blog-detail-meta > span:hover {
    background: #001b68;
    color: #fff;
}

.blog-detail-meta > span:hover .meta-icon {
    background: #fff;
    color: #001b68;
}

.blog-detail-title {
    font-size: 30px;
    font-weight: 700;
    color: #001b68;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-detail-content {
    color: #020202;
    font-size: 16px;
    line-height: 1.8;
}

.blog-detail-content a{
    color: #001b68;
}

.blog-detail-content h2 {
    position: relative;
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    padding-left: 18px;
    margin: 35px 0 20px;
       border-left: 4px solid #ff9e00;
    line-height: 1.35;
}

.blog-detail-content h3{
    font-size: 25px;
}

.blog-detail-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.blog-detail-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #444;
}

.blog-detail-content ul li {
    margin-bottom: 10px;
    text-align: justify;
}

.cta-widget .btn-cta {
    background: #ff9e00;
    color: #000;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-widget .btn-cta:hover {
    background: #e08b00;
    color: #fff;
}

/* Blog FAQ Accordion */
.blog-detail-content .faq-customer {
    margin-top: 10px;
}

.blog-detail-content .faq-customer .accordion {
    background-color: #fff;
    color: #030303;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: 1px solid #dedede;
    text-align: left;
    outline: 0;
    font-size: 18px;
    transition: 0.4s;
    margin-bottom: 6px;
    font-weight: 600;
}

.blog-detail-content .faq-customer .accordion:hover,
.blog-detail-content .faq-customer .accordion.active {
    background-color: #001b68;
    color: #ffffff;
}

.blog-detail-content .faq-customer .accordion:after {
    content: "\002B";
    color: #000000;
    font-weight: 700;
    float: right;
    margin-left: 5px;
    font-size: 22px;
}

.blog-detail-content .faq-customer .accordion:hover:after,
.blog-detail-content .faq-customer .accordion.active:after {
    content: "\2212";
    color: #ffffff;
}

.blog-detail-content .faq-customer .panel {
    margin-bottom: 4px;
    padding: 0 18px;
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border: 0 solid transparent;
}

.blog-detail-content .faq-customer .panel p {
    padding-top: 10px;
}


@media (max-width: 767px) {
    .blog-detail-content h2 {
        font-size: 25px;
        line-height: auto;
       
    }
}