.nav-menu .row{margin: 0 -15px;}
.row{margin: 0;}
p{margin: 0;}
h2,h3,h4,h5,h6{
    margin-bottom: 0 !important;
}


.blogsBody  .container{max-width: 85% !important;}
/* .blogsBody{height: calc(100vh - 150px);}  */
.boxHeader{
    color: #004087;
    font-size: 36px;
    font-weight: 500;
}
.headingBox h1{margin-bottom: 30px !important;}
.recommendBlogsContainer, .otherBlogsBox{margin-top: 80px;}
.subscribeContainer{display: flex; flex-direction: column; justify-content: space-between;}
.subscribeBox{
    height: 230px; 
    border-radius: 12px;
    background: linear-gradient(135deg, #294F7F 0%, #00AFF0 100%);
    display: flex;
    flex-direction: column;
    row-gap: 28px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 20px rgba(41, 79, 127, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.subscribeBox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../img/subscribebg.png");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.1;
    z-index: 0;
}
.subscribeBox:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(41, 79, 127, 0.3);
}
.subscribeBox > * {
    position: relative;
    z-index: 1;
}

.subscribeBox .form-group{
    margin: 0;
}
.subTitle{
    height: 25px;
}
.subTitle h4{
    margin: 0;
    font-size: 20px;
}
.subscribeBox .form-control{
    padding: 12px 16px;
    height: 45px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1f1f1f;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    box-shadow: none;
}
.subscribeBox .form-control:focus {
    border-color: white;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    outline: none;
}
.subscribeBox .form-control::placeholder {
    color: #666;
}
.subTitle span{font-size: 16px;}
.subscribebtn{
    border-radius: 8px;
    height: 45px;
    background: white;
    color: #294F7F;
    font-size: 16px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.subscribebtn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.blogBigBox{
    height: 100%; 
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf0;
    transition: all 0.3s ease;
    overflow: hidden;
}
.blogBigBox:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e1e9f2;
}
.BlogImageBox{
    height: 480px;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.BlogImageBox .blogImage {
    transition: transform 0.3s ease;
}
.blogBigBox:hover .BlogImageBox .blogImage {
    transform: scale(1.02);
}
.bigBlogDetails{
    /* height: 20%; */
    justify-content: space-around;
    row-gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}
.blogOverview {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.blogDescription{
    width: 100%;
    color: #74777f;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.3s ease;
}
.blogBigBox:hover .blogDescription,
.blogSmallBox:hover .blogDescription {
    color: #5a5a5a;
}
.blogImage{
    height: 100%; 
    width: 100%; 
    object-fit: contain;
}
.blogTitle{
    width: 100%;
    color: #1f1f1f;
    font-size: 22px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.blogBigBox:hover .blogTitle,
.blogSmallBox:hover .blogTitle {
    color: #294F7F;
}
.BlogsBody .blogTitle{
    display: block;
    overflow: visible;
}

.blogSmallBox{
    width: 100%;
    /* height: 500px; */
    border-radius: 10px;
    padding: 0 15px;
    padding-top: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.smallBlogImageBox{
    height: 250px;
    display: block;
}
.smallBlogDetails{
    justify-content: space-around;
    row-gap: 20px;
    padding: 8px 4px;
}
.otherBlogsContainer{row-gap: 30px;}
.blogDetailHeader .blogImage{
    object-fit: cover;
}
.blogDetailHeader{
    display: flex;
    flex-direction: column;
    row-gap: 30px;
}
.blogDetailsBody .authorBody{
    display: flex;
    width: 100%;
    justify-content: space-between;
}
.blogDetailsBody .authorBody p{
   font-weight: 500;
   font-size: 16px;
   color: #294F7F;
}
.blogDetailsBody .authorBody p a:hover{color: var(--color-primary); font-weight: 400;}
.blogBigBox:hover, .blogSmallBox:hover{
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

/* Add same hover effects from blogBigBox to blogSmallBox */
.blogSmallBox:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e1e9f2;
}

/* Enhanced blog info styling */
.blogInfo .readTime {
    color: #294F7F;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SEO-friendly styling for new elements */
.blog-date {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
    font-style: italic;
}

.subscribeBox .subTitle h3 {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.subscribeBox .subTitle p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Form text styling */
.subscribeBox .form-text {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* SEO-friendly featured blog styling */
.blogBigBox .blogTitle {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.blogBigBox .blogDescription {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.blogBigBox .blogInfo {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.blogBigBox .blog-date {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

/* Hidden meta information for SEO */
.blog-meta {
    display: none !important;
}

/* Recommended Blogs Section Styling */
.recommendBlogsContainer {
    margin-top: 40px;
    margin-bottom: 40px;
}

.recommendBlogsContainer .headingBox {
    margin-bottom: 30px;
}

.recommendBlogsContainer .boxHeader {
    font-size: 28px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 20px;
}

.recommendBlogsContainer .boxHeader hr {
    border: none;
    height: 3px;
    background: linear-gradient(135deg, #294F7F 0%, #00AFF0 100%);
    width: 80px;
    margin: 10px 0;
}

/* Recommended blog cards specific styling */
.recommendBlogs .recommend-blog-card {
    margin-bottom: 30px;
    padding: 0 15px;
}

.recommendBlogs .recommend-blog-card .blogSmallBox {
    height: 100%;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf0;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
}

.recommendBlogs .recommend-blog-card .blogSmallBox:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #294F7F;
}

.recommendBlogs .recommend-blog-card .smallBlogImageBox {
    height: 280px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.recommendBlogs .recommend-blog-card .smallBlogImageBox .blogImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommendBlogs .recommend-blog-card .blogSmallBox:hover .smallBlogImageBox .blogImage {
    transform: scale(1.02);
}

.recommendBlogs .recommend-blog-card .smallBlogDetails {
    padding: 20px;
    background: #ffffff;
}

.recommendBlogs .recommend-blog-card .blogInfo {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.recommendBlogs .recommend-blog-card .blogTitle {
    font-size: 22px;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.recommendBlogs .recommend-blog-card .blogSmallBox:hover .blogTitle {
    color: #294F7F;
}

.recommendBlogs .recommend-blog-card .blogDescription {
    font-size: 15px;
    color: #74777f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.recommendBlogs .recommend-blog-card .blogSmallBox:hover .blogDescription {
    color: #5a5a5a;
}

.recommendBlogs .recommend-blog-card .readTime {
    color: #294F7F;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendBlogs .recommend-blog-card .blog-date {
    color: #999;
    font-size: 11px;
    font-weight: 500;
}

/* Responsive design for recommended blogs */
@media only screen and (max-width: 768px) {
    .recommendBlogs .recommend-blog-card {
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .recommendBlogsContainer .boxHeader {
        font-size: 24px;
    }
    
    .recommendBlogs .recommend-blog-card .smallBlogImageBox {
        height: 160px;
    }
    
    .recommendBlogs .recommend-blog-card .smallBlogDetails {
        padding: 15px;
    }
    
    .recommendBlogs .recommend-blog-card .blogTitle {
        font-size: 15px;
    }
    
    .recommendBlogs .recommend-blog-card .blogDescription {
        font-size: 12px;
    }
}

/* Ensure proper spacing between cards */
.recommendBlogs {
    margin: 0 -15px;
}

.recommendBlogs .recommend-blog-card {
    padding: 0 15px;
}

/* Desktop: add right margin but keep 3 per row */
@media (min-width: 768px) {
    .recommendBlogs {
        display: flex;
        flex-wrap: wrap;
    }
    .recommendBlogs .recommend-blog-card {
        /* width adjusted to accommodate right margin without wrapping */
        flex: 0 0 calc(33.333% - 24px);
        max-width: calc(33.333% - 24px);
        margin-right: 24px;
        margin-bottom: 24px;
        padding: 0; /* avoid double spacing when margins are used */
    }
    .recommendBlogs .recommend-blog-card:nth-child(3n) {
        margin-right: 0;
    }
}

/* Mobile/tablet: let items span full width with natural spacing */
@media (max-width: 767.98px) {
    .recommendBlogs .recommend-blog-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        padding: 0 10px; /* keep slight horizontal padding */
    }
}


.blogDetailsBody p, .blogDetailsBody ol, .blogDetailsBody ul{
    /* margin: 20px 0; */
    /* text-align: justify; */
    margin-top: 20px;
    margin-bottom: 10px;
}
.blogDetailsBody .subscribeBox{
    position: sticky;
    top: 100px;
}
.blogDetailHeader .blogImageBox{height: 618px; width: 100%;}
.blogDetailHeader .blogHeader{padding: 0 10px;}
.blogDetailHeader .blogTitle{font-size: 42px;}
.blogDetailsBody h2{font-size: 32px; margin-top: 40px;}
.blogDetailsBody h3{font-size: 22px; margin-top: 30px; font-weight: 500;}
/* .blogDetailsBody P br{margin: 10px;} */
.blogDetailsBody .blogDetailsDescription p, .blogDetailsBody .blogDetailsDescription ol,  .blogDetailsBody .blogDetailsDescription ul {font-size: 18px; line-height: 26px; font-weight: 300;}
.blogDetailsBody p strong{font-weight: 500;}
.blogOtherImages{height: 318px;}
.blogOtherImagesBox{
    display: flex;
    align-items: center; 
    justify-content: center;
    background-color: aliceblue;
    padding: 15px 0;
}  
ul ol {margin-top: 10px !important;}
.otherBlogsRef{display: flex; column-gap: 20px;}
.otherBlogsRef a{display: flex; flex-direction: column; height: 100%;}
.blogCard{
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    padding: 0px !important;
}
.blogCard .imgBox{
    width: 100%;
    height: 170px;
}
.blogCard .imgBox .blogImage{
    object-fit: cover;
    aspect-ratio: 1;
    
}
.blogName{ background-color: #EBEFF6; flex: 1;}
.blogName .blogTitle{
    padding: 10px;
    width: 100%;
    color: #1f1f1f;
    font-size: 16px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.blogCard:hover{ box-shadow: 2px 3px 20px rgba(0, 0, 0, 0.186);}
/* media Queries */
@media only screen and (max-width: 667px) {
    .nav-menu .row {margin: 0 -15px;}
   .blogsBody .container{max-width: 95% !important;}
    .heroSectionBlogBox{ row-gap: 50px;}
    .BlogImageBox {height: auto;}
    .recommendBlogs{row-gap: 30px;}
    .headingBox h1{margin-bottom: 20px !important;}
    .boxHeader{font-size: 28px;}
    .blogDetailHeader .blogTitle{font-size: 32px;}
    .blogDetailsBody h2{font-size: 22px;}
    .blogDetailsBody .blogDetailsDescription p, .blogDetailsBody .blogDetailsDescription ol, .blogDetailsBody .blogDetailsDescription ul {font-size: 16px; line-height: 26px;}
    .blogDetailsBody h3{font-size: 18px;}
    .blogDetailHeader .blogImageBox{height: 100%;}
    
 
}

.tabledeco{
    border-collapse: collapse;
    width: 100%;
}
.tabledeco td, th{
    border: 1px solid #969696;
    text-align: left;
    padding: 24px;
}
.tabledeco tr:first-child{
    background-color: #dddddd;
}

.textdeco{
    font-weight: bold;
    text-decoration: underline;
}

