/* FT News Frontend Styles */

.ft_news_container {
  margin: 20px 0;
}

.ft_news_layout_list .ft_news_list_item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}

.ft_news_layout_list .ft_news_list_item:last-child {
  border-bottom: none;
}

.ft_news_layout_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ft_news_layout_cards .ft_news_list_item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.ft_news_layout_cards .ft_news_list_item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ft_news_image {
  flex-shrink: 0;
  width: 150px;
  height: 100px;
  overflow: hidden;
  border-radius: 4px;
}

.ft_news_layout_grid .ft_news_image,
.ft_news_layout_cards .ft_news_image {
  width: 100%;
  height: 200px;
}

.ft_news_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ft_news_image:hover img {
  transform: scale(1.05);
}

.ft_news_content {
  flex: 1;
}

.ft_news_layout_cards .ft_news_content {
  padding: 20px;
}

.ft_news_category {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ft_category_adhoc {
  background: #ff6b6b;
  color: white;
}

.ft_category_corporate_news {
  background: #4ecdc4;
  color: white;
}

.ft_category_corporate_news {
  background: #4ecdc4;
  color: white;
}

.ft_news_title {
  margin: 0 0 10px 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.ft_news_title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ft_news_title a:hover {
  color: #0073aa;
}

.ft_news_date {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.ft_news_link_button {
  display: inline-block;
  padding: 8px 16px;
  background: #0073aa;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.ft_news_link_button:hover {
  background: #005a87;
  color: white;
}

.ft_news_single {
  max-width: 800px;
  margin: 0 auto;
}

.ft_news_single_item {
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.ft_news_single .ft_news_image {
  width: 100%;
  height: 300px;
  margin-bottom: 20px;
}

.ft_news_single .ft_news_title {
  font-size: 28px;
  margin-bottom: 15px;
}

.ft_no_news {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

.ft_error {
  padding: 15px;
  background: #ffe6e6;
  border-left: 4px solid #ff0000;
  color: #cc0000;
  margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ft_news_layout_list .ft_news_list_item {
    flex-direction: column;
    gap: 15px;
  }
  
  .ft_news_image {
    width: 100%;
    height: 150px;
  }
  
  .ft_news_layout_grid {
    grid-template-columns: 1fr;
  }
  
  .ft_news_single_item {
    padding: 20px;
    margin: 0 15px;
  }
  
  .ft_news_single .ft_news_title {
    font-size: 24px;
  }
}