:root {
  --card-bg: var(--pst-color-surface);
  --card-border: var(--pst-color-border);
  --card-text: var(--pst-color-text);
  --card-muted: var(--pst-color-text-muted);
  --card-shadow: rgba(0, 0, 0, 0.05);
  --card-highlight: var(--pst-color-highlight);
}

/* Flux RSS – Adaptation clair/sombre */
.rss-publication {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #111;
}
html[data-theme="dark"] .rss-publication {
  color: #eee;
}
.rss-publication h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #000;
}
html[data-theme="dark"] .rss-publication h4 {
  color: #fff;
}
.rss-publication a {
  color: #0066cc;
  text-decoration: none;
}
html[data-theme="dark"] .rss-publication a {
  color: #66aaff;
}
.rss-publication a:hover {
  text-decoration: underline;
}
.rss-publication .rss-date {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.5rem;
}
html[data-theme="dark"] .rss-publication .rss-date {
  color: #ccc;
}

/* Transparent background for code cells */
.cell.tag_remove-input {
  background-color: transparent !important;
}
div.cell div.output_wrapper,
div.cell div.output,
div.cell div.inner_cell {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* General button styling */
.view-all-button {
  display: inline-block;
  background-color: var(--card-bg);
  color: var(--card-text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--card-border);
  transition: background-color 0.2s;
  margin-bottom: 1.5rem;
}
.view-all-button:hover {
  background-color: var(--card-border);
}

/* News Cards */
.news-card-standard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background-color: var(--card-bg);
  box-shadow: 2px 2px 8px var(--card-shadow);
  min-height: 0;
}
.news-text {
  flex: 1 1 200px;
}
.news-image-container {
  flex: 0 0 250px;
  width: 250px;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent; 
}
.news-img-standard {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  object-position: center;
  display: block;
  border-radius: 8px;
}

.latest-news-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}
.news-topic-link {
  display: inline-block;
  background-color: var(--card-highlight);
  color: var(--pst-color-primary);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}
.news-topic-link:hover {
  opacity: 0.85;
}
.news-date {
  font-size: 0.85rem;
  color: var(--card-muted);
  margin-bottom: 0.4rem;
}
.news-title {
  font-size: 1.4rem;
  margin: 0.3rem 0 0.8rem;
  color: var(--card-text);
}
.news-description {
  font-size: 1rem;
  color: var(--card-text);
  margin-bottom: 0.8rem;
}
.news-link a {
  color: var(--pst-color-link);
  text-decoration: none;
}
.news-link a:hover {
  text-decoration: underline;
}

/* Team & Alumni Cards */
.card {
  width: 220px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 2px 2px 6px var(--card-shadow);
  text-align: center;
  font-family: sans-serif;
  font-size: 14px;
  background-color: var(--card-bg);
  color: var(--card-text);
}
.card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}
.card small {
  color: var(--card-muted);
  font-size: 12px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.modal-content {
  background-color: var(--card-bg);
  color: var(--card-text);
  padding: 1rem;
  border-radius: 8px;
  max-width: 600px;
  margin: 5% auto;
  border: 1px solid var(--card-border);
}
.modal-content h3 {
  margin-top: 0;
}
.modal-close {
  float: right;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive media query */
@media (max-width: 768px) {
  .news-card-standard {
    flex-direction: column;
    align-items: center;
  }
  .news-image-container {
    width: 100%;              
    max-width: 250px;         
    aspect-ratio: 1 / 1;        
    margin: 1rem auto 0;        
  }
}
