/* Trident Blog Styles - Optimized CSS */

/* Hero Section */
.trident-blog-hero {
  background-color: #f5f5f5;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/blog_hero_bg.jpeg');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  position: relative;
  text-align: center;
}

.trident-blog-hero-content {
  color: #fff;
  position: relative;
  z-index: 2;
}

.trident-blog-hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.trident-breadcrumb {
  display: flex;
  justify-content: center;
}

.trident-breadcrumb ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trident-breadcrumb ul li {
  position: relative;
  padding: 0 10px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.trident-breadcrumb ul li:not(:last-child):after {
  content: "/";
  position: absolute;
  right: -2px;
  top: 0;
}

.trident-breadcrumb ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.trident-breadcrumb ul li a:hover {
  color: var(--cs-primary-color);
}

/* Blog Section */
.trident-blog-section {
  padding: 80px 0;
  background-color: #fff;
}

/* Blog Filter */
.trident-blog-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.trident-filter-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: #222;
}

.trident-filter-categories ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.trident-filter-categories ul li {
  margin: 5px 10px;
}

.trident-filter-categories ul li a {
  color: #666;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: all 0.3s ease;
}

.trident-filter-categories ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--cs-primary-color);
  transition: width 0.3s ease;
}

.trident-filter-categories ul li a:hover,
.trident-filter-categories ul li a.active {
  color: var(--cs-primary-color);
}

.trident-filter-categories ul li a:hover:after,
.trident-filter-categories ul li a.active:after {
  width: 100%;
}

/* Featured Post */
.trident-featured-post {
  display: flex;
  margin-bottom: 60px;
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.trident-featured-image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}

.trident-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trident-featured-post:hover .trident-featured-image img {
  transform: scale(1.05);
}

.trident-featured-content {
  flex: 0 0 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trident-post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #777;
  font-size: 14px;
}

.trident-post-date {
  margin-right: 15px;
  position: relative;
}

.trident-post-date:after {
  content: '•';
  position: absolute;
  right: -10px;
}

.trident-post-category {
  color: var(--cs-primary-color);
  font-weight: 600;
}

.trident-post-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #222;
}

.trident-post-excerpt {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.trident-read-more {
  display: inline-flex;
  align-items: center;
  color: var(--cs-primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.trident-read-more:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--cs-primary-color);
  transition: width 0.3s ease;
}

.trident-read-more:hover {
  color: var(--cs-primary-color);
}

.trident-read-more:hover:after {
  width: 100%;
}

/* Blog Grid */
.trident-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.trident-blog-item {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trident-blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.trident-blog-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.trident-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trident-blog-item:hover .trident-blog-image img {
  transform: scale(1.05);
}

.trident-blog-image .trident-post-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--cs-primary-color);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.trident-blog-content {
  padding: 25px;
}

.trident-blog-content .trident-post-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.trident-blog-content .trident-post-excerpt {
  font-size: 14px;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.trident-pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.trident-pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trident-pagination ul li {
  margin: 0 5px;
}

.trident-pagination ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.trident-pagination ul li a.active,
.trident-pagination ul li a:hover {
  background-color: var(--cs-primary-color);
  color: #fff;
}

.trident-pagination ul li a.next {
  width: auto;
  padding: 0 20px;
  border-radius: 20px;
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .trident-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .trident-blog-hero {
    padding: 80px 0;
  }
  
  .trident-blog-hero-content h1 {
    font-size: 40px;
  }
  
  .trident-featured-post {
    flex-direction: column;
  }
  
  .trident-featured-image,
  .trident-featured-content {
    flex: 0 0 100%;
  }
  
  .trident-featured-image {
    height: 300px;
  }
  
  .trident-blog-filter {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .trident-filter-title {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .trident-blog-grid {
    grid-template-columns: 1fr;
  }
  
  .trident-blog-hero-content h1 {
    font-size: 32px;
  }
  
  .trident-filter-categories ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: -10px;
    -webkit-overflow-scrolling: touch;
  }
  
  .trident-filter-categories ul li {
    flex: 0 0 auto;
  }
  
  .trident-featured-content {
    padding: 25px;
  }
  
  .trident-post-title {
    font-size: 24px;
  }
}

@media (max-width: 575px) {
  .trident-blog-hero {
    padding: 60px 0;
  }
  
  .trident-blog-hero-content h1 {
    font-size: 28px;
  }
  
  .trident-featured-image {
    height: 220px;
  }
  
  .trident-pagination ul li a {
    width: 35px;
    height: 35px;
  }
}