﻿/*** BLOG STYLES **/

.blogContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #ffffff;
    clear:both;
}

.blogContainer table {
    width: 100%;
    flex: 0 0 100%;
}

a:link.readmore,
a:visited.readmore {
    color: #d94632;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover.readmore {
    color: #b22222;
    text-decoration: none;
}

a:active.readmore {
    color: #b22222;
}

.blogItem {
    flex: 1 1 calc(32.333% - 1.34rem);
    background: #E2E0D8;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
    color: #000;
}

.blogItem:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.blogItem img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    object-position: top center;
    display: block;
    margin: 0;
    border-radius: 0;
    flex-shrink: 0;
}

.blogContainer h2,
.blogItem h2 {
    text-align: center;
    /*margin: 1.25rem 1.25rem 0.75rem;
    color: #1f2937;*/
    background:#1f2937;
    color:#fff;
    min-height:100px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    padding:10px;
}

.blogItem p {
    color: #444;
    font-size: 1rem;
    line-height: 1.25;
    padding: 0 1.25rem;
}

p.blogListingDate {
    color: #7F7F7F;
    font-size: 0.85rem;
    text-align: left;
    padding: 0 1.25rem;
    margin-bottom: 0.85rem;
}

p.author {
    color: #666;
    text-align: center;
    font-size: 0.85rem;
    padding: 0 1.25rem;
    margin-bottom: 1rem;
}

/* Read More Link */
.blogItem .readmore {
    margin-top: auto;
    display: inline-block;
    padding-left:2px;
    font-weight:bold;
}

.blogItem p:not(.blogListingDate):not(.author) {
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
}

.blogItem p:not(.blogListingDate):not(.author)::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(
        to bottom,
        rgba(226,224,216,0),
        rgba(226,224,216,1)
    );
    pointer-events: none;   /* <-- add this */
}

/* Tablet Layout */
@media (max-width: 1000px) {
    .blogItem {
        flex: 1 1 calc(50% - 1rem);
    }
}

/* Mobile Layout */
@media (max-width: 600px) {
    .blogItem {
        flex: 1 1 100%;
    }

    .blogItem img {
        height: 240px !important;
    }
}
/*** BLOG DETAILS ADDITIONAL IMAGES STYLES**/

#blogGallery {
  display: block;
  margin: auto;
  width: 100%;
  text-align: center;
}

.blogGalleryContainer {
  display: inline-block;
  margin: 0 7px 15px; /* Balanced spacing between containers */
  padding: 4px;
  text-align: center;
  border-radius: 2px;
  vertical-align: top;
	word-wrap: break-word;
	max-width:300px; 
	font-size:14px;
}

.blogGalleryContainer img {
  display: block; /* Changed to block for better control within container */
  width:100%;
  max-width: 300px; 
  height: 250px; /* Fixed height to ensure all images are the same size */
  object-fit: cover; /* Crops the image to fit the fixed dimensions without distortion */
  border: 1px solid #ccc;
  padding: 5px;
  background: #f2f2f2;
  -webkit-box-shadow: 0 28px 16px -26px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 28px 16px -26px rgba(0, 0, 0, 0.5);
  box-shadow: 0 28px 16px -26px rgba(0, 0, 0, 0.5);
}


.blog-post { max-width: 1200px; margin: 0 auto; padding: 40px 20px 40px; }
.blog-breadcrumb { font-size: 0.9rem; color: #777; margin-bottom: 1rem; }
.blog-breadcrumb a { color: #d94632; text-decoration: none; }
.blog-post h1 { font-size: 2rem; line-height: 1.15; color: #1f2937; margin: 0 0 0.6rem; }
.blog-byline { color: #777; font-size: 0.95rem; margin: 0 0 1.2rem; }
.blog-byline time { white-space: nowrap; }
.blog-share { margin: 0 0 1.5rem; }
.blog-hero-img { margin: 0 0 1.5rem; }
.blog-hero-img img { width: 100%; max-width:600px; height: auto; border-radius: 8px; display: block; margin:auto; text-align:center}
.blog-content { line-height: 1.7; color: #222; font-size: 1.08rem; margin: 1.5rem 0; }
.blog-content p { margin: 0 0 1.2rem; }
.blog-content img { max-width: 100%; height: auto; }
.blog-gallery { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 1.5rem 0; }
.blog-gallery img { max-width: 280px; height: auto; border-radius: 6px; }
.blog-backlink { margin-top: 2rem; text-align: center; }

.paging {
	padding:3px;
	text-decoration:none!important;
}