

/* Blog Hero Section with Background Image */
.adpt-blog-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 10;
    background: #f8f9fa; /* Fallback background */
}

.blog-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/prodcut-banner-img1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.blog-hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.blog-hero-content {
    color: white;
    text-align: center;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

/* blog wrapper */
.blog-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    text-align: left;
    border: 1px solid #dee2e6;
    margin-bottom: 30px;
    border-radius: 0;
    overflow: hidden;
  }
  
 .blog-card-header {     /*blog main page */
    min-width: 350px;
    max-width: 350px;
  }

  .blog-card-headers {         /* blog details page css */
    min-width: 350px;
    max-width: 100%;;
  }

  .blog-card-imgs {
    border-radius: 0 0 0 0;
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }
  
  .blog-card-img {
    border-radius: 0 0 0 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }
  
  .blog-card-body {
    padding: 30px 20px 30px 30px;
  }
  
  .blog-card-title {
    font-weight: 100;
  }
  
  .blog-card-caption {
    margin: 15px 0 15px !important;
  }
  
  .blog-card-caption i {
    display: inline-block;
    width: 15px;
  }
  
  .blog-card-caption a {
    margin-right: 10px;
    color: #444;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    opacity: .7;
    font-size: 13px;
  }
  
  .blog-card-link {
    text-decoration: none;
    margin-top: 20px;
    display: block;
    font-size: 13px;
  }
  
  .blog-card-link i {
    position: relative;
    top: 1px;
  }
  
  @media (max-width: 991.98px) {
    .blog-card {
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -webkit-flex-direction: column;
          -ms-flex-direction: column;
              flex-direction: column;
    }
    .blog-card .blog-card-header {
      width: 100%;
      max-width: 100%;
      min-width: 100%;
    }
  }


  
.blog-pagination {
  margin-top: 80px
}

.blog-pagination .page-link {
  font-size: 14px;
  position: relative;
  display: block;
  padding: 0;
  text-align: center;
  margin-left: -1px;
  line-height: 45px;
  width: 45px;
  height: 45px;
  border-radius: 0 !important;
  color: #8a8a8a;
  border: 1px solid #f0e9ff;
  margin-right: 10px
}

.blog-pagination .page-link i,
.blog-pagination .page-link span {
  font-size: 13px
}

.blog-pagination .page-item.active .page-link {
  background-color: #fbf9ff;
  border-color: #f0e9ff;
  color: #888888
}

.blog-pagination .page-item:last-child .page-link {
  margin-right: 0
}


@media (max-width: 767px){

  .section-title::before {
    left: -49px;
  }

  .section-title::after {
    left: -49px;

}
  
}


@media (max-width: 477px){

  .blog-card-imgs {
    width: 60%;

  }
}

/* ===========================================
   BLOG PAGE STYLES - COMPREHENSIVE CSS
   =========================================== */

/* Blog Hero Section */
.blog-hero-section {
    background: #f8f9fa;
    padding: 80px 0;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(108,117,125,0.05) 100%);
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0;
    font-weight: 400;
}

/* Blog Categories Section */
.blog-categories-section {
    padding: 40px 0;
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    background: white;
    color: #6c757d;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.category-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 60px 0;
    background: white;
    position: relative;
}

.blog-posts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248,249,250,0.5) 0%, rgba(255,255,255,0.5) 100%);
    pointer-events: none;
}

.blog-post-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.blog-post-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.02) 0%, rgba(108,117,125,0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-post-card:hover::before {
    opacity: 1;
}

.blog-post-card:hover {
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0,123,255,0.15);
    transform: translateY(-5px);
}

/* Blog Post Image */
.blog-post-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: #f8f9fa;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(1) contrast(1);
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

.blog-post-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,123,255,0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    backdrop-filter: blur(10px);
}

.date-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.date-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Blog Post Content */
.blog-post-content {
    padding: 25px;
    position: relative;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.blog-post-category {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.blog-post-date-text {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
}

.blog-post-card:hover .blog-post-title {
    color: #007bff;
}

.blog-post-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.blog-post-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.blog-post-read-more:hover::after {
    width: 100%;
}

.blog-post-read-more:hover {
    color: #0056b3;
    text-decoration: none;
    transform: translateX(5px);
}

.blog-pagination-wrapper {
    margin-top: 50px;
}

.blog-pagination-wrapper .pagination {
    margin: 0;
}

.blog-pagination-wrapper .page-link {
    border: 1px solid #dee2e6;
    color: #007bff;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.blog-pagination-wrapper .page-link:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.blog-pagination-wrapper .page-item.active .page-link {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.blog-cta-section {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

.blog-cta-section h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.blog-cta-section p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

/* ===========================================
   BLOG DETAILS PAGE STYLES - COMPREHENSIVE CSS
   =========================================== */

/* Blog Details Hero Section */
.blog-details-hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #f8f9fa;
}

.blog-details-hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.blog-details-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: filter 0.3s ease;
}

.blog-details-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.8) 0%, rgba(108,117,125,0.6) 100%);
    display: flex;
    align-items: center;
    backdrop-filter: blur(2px);
}

.blog-details-hero-content {
    color: white;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.blog-details-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    font-size: 1rem;
    align-items: center;
}

.blog-details-category {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.blog-details-date {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.blog-details-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

/* Blog Details Content Section */
.blog-details-content-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
}

.blog-details-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248,249,250,0.8) 0%, rgba(255,255,255,0.8) 100%);
    pointer-events: none;
}

.blog-details-content {
    background: white;
    border-radius: 15px;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0,123,255,0.1);
}

.blog-details-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.blog-details-body h1,
.blog-details-body h2,
.blog-details-body h3,
.blog-details-body h4,
.blog-details-body h5,
.blog-details-body h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #007bff;
    position: relative;
}

.blog-details-body h1::after,
.blog-details-body h2::after,
.blog-details-body h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 2px;
}

.blog-details-body p {
    margin-bottom: 1.8rem;
    text-indent: 1.5rem;
}

.blog-details-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-details-body img:hover {
    transform: scale(1.02);
}

.related-posts-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.related-posts-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-details-title {
        font-size: 2rem;
    }
    
    .blog-details-content {
        padding: 30px 20px;
    }
    
    .blog-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ===========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   =========================================== */

/* Large Desktop */
@media (min-width: 1200px) {
    .blog-hero-title {
        font-size: 3.5rem;
    }
    
    .blog-details-title {
        font-size: 4rem;
    }
    
    .blog-details-content {
        padding: 80px;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .blog-hero-title {
        font-size: 3rem;
    }
    
    .blog-details-title {
        font-size: 3.5rem;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .blog-hero-section {
        padding: 60px 0;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .blog-post-image {
        height: 250px;
    }
    
    .blog-details-hero-section {
        height: 500px;
    }
    
    .blog-details-title {
        font-size: 3rem;
    }
    
    .blog-details-content {
        padding: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .blog-hero-section {
        padding: 40px 0;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
    }
    
    .blog-categories {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .category-btn {
        margin-bottom: 8px;
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .blog-posts-section {
        padding: 40px 0;
    }
    
    .blog-post-card {
        margin-bottom: 20px;
    }
    
    .blog-post-image {
        height: 200px;
    }
    
    .blog-post-content {
        padding: 20px;
    }
    
    .blog-post-title {
        font-size: 1.1rem;
    }
    
    .blog-details-hero-section {
        height: 400px;
    }
    
    .blog-details-title {
        font-size: 2.5rem;
    }
    
    .blog-details-meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .blog-details-content {
        padding: 30px;
        margin: 0 15px;
    }
    
    .blog-details-body {
        font-size: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .blog-hero-title {
        font-size: 1.8rem;
    }
    
    .blog-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .blog-post-image {
        height: 180px;
    }
    
    .blog-post-content {
        padding: 15px;
    }
    
    .blog-post-title {
        font-size: 1rem;
    }
    
    .blog-details-hero-section {
        height: 350px;
    }
    
    .blog-details-title {
        font-size: 2rem;
    }
    
    .blog-details-content {
        padding: 20px;
        margin: 0 10px;
    }
    
    .blog-details-body {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Responsive Design for Blog Hero */
@media (max-width: 991px) {
    .adpt-blog-hero {
        min-height: 40vh;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .adpt-blog-hero {
        min-height: 35vh;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 477px) {
    .adpt-blog-hero {
        min-height: 30vh;
    }
    
    .blog-hero-title {
        font-size: 1.8rem;
    }
    
    .blog-hero-subtitle {
        font-size: 0.9rem;
    }
}

