/* Base styles */
:root {
  --finance-color: #4CAF50;
  --automation-color: #2196F3;
  --tech-news-color: #9C27B0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #333;
  line-height: 1.6;
  padding: 0px;
}

a {
  text-decoration: none;
  color: #0066cc;
  transition: color 0.2s;
}

a:hover {
  color: #004080;
}

.section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Header */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

/* Featured Posts Slider */
.featured-posts-slider {
  margin-bottom: 3rem;
  padding: 2rem 0;
  background-color: #f8f9fa;
}

.featured-post-card {
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.featured-post-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-post-image {
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-top: 20px;
  margin-bottom: auto;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-indicators {
  bottom: -40px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  opacity: 0.5;
}

.carousel-indicators button.active {
  opacity: 1;
  background-color: #0066cc;
}

/* Category Cards */
.category-card {
  display: block;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 0.5rem;
  border-left: 5px solid;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-description {
  color: #666;
  margin-bottom: 0;
}

/* Post Cards */
.post-card {
  transition: transform 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 0px;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.post-card .card-title {
  font-weight: 700;
}

.post-card .badge {
  font-weight: 500;
}

/* Topic Tags */
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.topic-tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.topic-tag:hover {
  background-color: #0066cc;
  color: #fff;
}

/* Newsletter */
.newsletter-signup {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.newsletter-form .form-control {
  padding: 0.75rem 1rem;
}

/* Post Page Styles */
.post-title {
  line-height: 1.2;
}

.post-featured-image img {
  object-fit: cover;
  margin-bottom: 1rem; /* reduce from mb-5 (which is ~3rem) */
  margin-top: 1rem; 
}

.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Footer */
footer {
  margin-top: 3rem;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.social-icons a {
  font-size: 1.5rem;
  margin-right: 1rem;
}

/* Responsive */
@media (max-width: 767px) {
  .featured-post-content {
    padding: 1.5rem;
  }
  
  .featured-post-content h2 {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .post-title {
    font-size: 1.75rem;
  }
}

/* Badge Styles */
.badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
  border-radius: 0.25rem;
  color: white;
}