:root {
  /* Define some variables for easy theme changes (assuming a dark theme) */
  --news-bg-color: #121212; /* Darker background for more contrast */
  --card-bg-color: #14151e;
  --card-header-bg: #14151e; /* Slightly different background for header */
  --card-hover-color: #14151e;
  --text-color: #e0e0e0;
  --accent-color: #00bcd4; /* Teal for highlights/buttons */
  --secondary-accent: #ff9800; /* Orange for events */
  --fixes-badge: #ffc107;
  --border-radius: 12px; /* Slightly larger radius for softer look */
  --max-content-width: 1000px; /* Reduced max width for better readability */
}

/* General Layout for Main Content */
#news-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 20px;
  background-color: none;
  color: var(--text-color);
  min-height: 70vh;
}

.page-title {
  text-align: center;
  font-size: 2.8em;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 50px;
  /* Enhanced Glow */
  text-shadow: 0 0 15px rgba(0, 188, 212, 0.4);
}

/* --- News Card Styling --- */

.news-card {
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  margin-bottom: 30px; /* More space between cards */
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  /* Smoother transition */
  transition: box-shadow 0.3s ease;
  border: 1px solid #333;
  width: 100%;
}

/* Card Header (The always visible part) */
.card-header {
  display: flex;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  gap: 20px;
  /* Use the header background color */
  background-color: #14151e;
  /* Add subtle scale/lift effect on hover */
  transition: transform 0.2s ease;
}

.news-card:not([data-expanded="true"]) .card-header:hover {
  transform: scale(1.005);
  background-color: var(--card-hover-color);
}

.header-content {
  flex-grow: 1;
}

.fixes-title {
  display: flex;
  text-align: center;
  align-items: center;
  font-size: 1.6em;
  margin: 0;
  color: var(--fixes-badge);
  line-height: 1.3;
}

.fix-date {
  font-size: 0.9em;
  color: #bbb;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* News Tags/Badges */
.fix-tag {
  font-size: 0.8em;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 12px;
  color: var(--card-header-bg); /* Dark text on light background */
}

.fix-tag {
  background-color: #4caf50; /* Green */
  color: #ffffff; /* White text for contrast */
}

.bug-tag {
  background-color: #ffc107; /* Amber */
  color: #14151e; /* Dark text for contrast */
}

/* Expand Button */
.expand-btn {
  --size: 42px;
  background: var(--card-bg-color);
  border: 2px solid var(--fixes-badge);
  color: var(--fixes-badge);
  border-radius: 50%;
  width: var(--size);
  height: var(--size);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.expand-btn:hover {
  background-color: var(--fixes-badge);
  color: var(--card-header-bg);
  transform: scale(1.08);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.expand-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Chevron animation */
.expand-btn .icon {
  transition: transform 0.3s ease;
}

/* When expanded, rotate chevron up */
.news-card[data-expanded="true"] .expand-btn .icon {
  transform: rotate(180deg);
}
/* --- Expanded Details Styling --- */

.news-details {
  /* Initial state: hidden */
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  /* Smoother transition */
  transition: max-height 0.5s ease-in-out, opacity 0.4s ease, padding 0.5s ease;
  background-color: var(--card-bg-color); /* The inner content background */
}

/* Expanded state */
.news-card[data-expanded="true"] .news-details {
  max-height: 3000px; /* Use a very generous max-height */
  opacity: 1;
  visibility: visible;
  padding: 25px 30px 30px 30px; /* Increased padding */
  border-top: 1px solid #383838;
}

.news-preview {
  font-style: italic;
  font-size: 1.1em;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #444;
  color: #ccc;
}

.fixes-full-content h3 {
  color: var(--fixes-badge);
  font-size: 1.4em;
  margin: 25px 0 15px 0;
  border-left: 4px solid var(--fixes-badge);
  padding-left: 15px;
}

.feature-icon {
  margin-right: 5px;
  font-size: 1.1em;
}

.fixes-full-content p,
.fixes-full-content li {
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1em;
}

.fixes-full-content ul {
  list-style-type: none; /* Remove default list style */
  padding-left: 0;
}

.fixes-full-content ul li {
  padding-left: 20px;
  position: relative;
}

.fixes-full-content ul li::before {
  content: "»"; /* Custom bullet point */
  color: var(--fixes-badge);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.2em;
    margin-bottom: 30px;
  }

  .news-card {
    margin-bottom: 20px;
  }

  .card-header {
    flex-wrap: wrap;
    padding: 15px;
    gap: 15px;
  }

  .fixes-title {
    font-size: 1.3em;
  }

  .header-content {
    min-width: unset;
  }

  .expand-btn {
    order: 3;
    width: 35px;
    height: 35px;
    font-size: 1.5em;
    align-self: center;
  }

  .news-details {
    padding: 20px;
  }
}
