/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}


/* Hero Section */
.atl-blog-hero {
  position: relative;
  height: 300px;
  background-image: url("https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1200&h=400&fit=crop");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atl-blog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(29, 53, 87, 0.8), rgba(78, 205, 196, 0.6));
}

.atl-blog-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.atl-blog-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.atl-blog-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 900px;
}

/* Filter Section */
.atl-blog-filter-section {
  background-color: white;
  padding: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.atl-blog-filter-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.atl-blog-filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e0e0e0;
  background-color: white;
  color: #666;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.atl-blog-filter-btn:hover {
  border-color: #4ecdc4;
  color: #4ecdc4;
  transform: translateY(-2px);
}

.atl-blog-filter-btn-active {
  background-color: #4ecdc4;
  color: white;
  border-color: #4ecdc4;
}

/* Unified Blog Section */
.atl-blog-unified-section {
  padding: 3rem 0;
}

.atl-blog-unified-grid {
  margin-bottom: 2rem;
}

.atl-blog-grid-item {
  margin-bottom: 2rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.atl-blog-grid-item.atl-blog-hidden {
  display: none;
}

/* Blog Cards */
.atl-blog-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.atl-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.atl-blog-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.atl-blog-card-image-tall {
  height: 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.atl-blog-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(29, 53, 87, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.atl-blog-card-image:hover .atl-blog-card-overlay {
  opacity: 1;
}

.atl-blog-card-overlay-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid white;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.atl-blog-card-overlay-link:hover {
  background-color: white;
  color: #1d3557;
}

.atl-blog-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.atl-blog-card-content-featured {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.atl-blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.atl-blog-card-category {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.atl-blog-category-events {
  background-color: #e63946;
  color: white;
}

.atl-blog-category-business {
  background-color: #1d3557;
  color: white;
}

.atl-blog-category-culture {
  background-color: #f77f00;
  color: white;
}

.atl-blog-category-community {
  background-color: #06a77d;
  color: white;
}

.atl-blog-category-development {
  background-color: #457b9d;
  color: white;
}

.atl-blog-card-date {
  color: #999;
  font-size: 0.875rem;
}

.atl-blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1d3557;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.atl-blog-card-title-large {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.atl-blog-card-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.atl-blog-card-excerpt-large {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Featured Card Specific */
.atl-blog-card-featured {
  height: 100%;
}

.atl-blog-featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #e63946;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.atl-blog-card-link-featured {
  color: #4ecdc4;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.atl-blog-card-link-featured:hover {
  gap: 1rem;
}

/* No Results */
.atl-blog-no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
}

.atl-blog-no-results i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.atl-blog-no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #666;
}

/* Load More Button */
.atl-blog-loadmore-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.atl-blog-loadmore-btn {
  padding: 1rem 2.5rem;
  background-color: #4ecdc4;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.atl-blog-loadmore-btn:hover {
  background-color: #3db8af;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(78, 205, 196, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
  .atl-blog-hero-title {
    font-size: 2.5rem;
  }

  .atl-blog-mainnav {
    justify-content: center;
    margin-top: 1rem;
  }

  .atl-blog-featured-item {
    margin-bottom: 2rem;
  }

  .atl-blog-card-image-tall {
    min-height: 300px;
  }
}

@media (max-width: 767px) {
  .atl-blog-hero-title {
    font-size: 2rem;
  }

  .atl-blog-hero-subtitle {
    font-size: 1rem;
  }

  .atl-blog-filter-wrapper {
    gap: 0.5rem;
  }

  .atl-blog-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .atl-blog-newsletter-input-group {
    flex-direction: column;
  }

  .atl-blog-newsletter-submit {
    width: 100%;
  }
}
