
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* HEADER */
header {
    position: relative;
    background: #004466;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}
.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-img {
    height: 50px;
    width: auto;
}
header h1 {
    margin: 0;
    font-size: 1.8em;
}

h1 {
    font-size: 2em;
    margin: 0.5em 0;
}

/* HAMBURGER MENU */
.menu-toggle {
    font-size: 1.5em;
    cursor: pointer;
    display: none;
    order: -1;
}
@media (max-width: 900px) {
    .menu-toggle { display: block; }
}

/* MOBILE NAV */
.mobile-nav {
    position: absolute;
    top: 60px;     /* just below header */
    left: 0;       /* align to left edge */
    width: 200px;  /* or 100% if you want full width */
    background: #006699;
    padding: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 999;
    display: none;      /* default hidden */
}
.mobile-nav.show {
    display: block;
}
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 8px;
}

/* DESKTOP NAVBAR */
.navbar {
    background: #006699;
    text-align: center;
    padding: 10px 0;
}
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 30px;
}
.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.2s ease-in-out;
}
.navbar a:hover {
    color: #ffdd33;
}
.navbar a.active {
    border-bottom: 2px solid white;
    padding-bottom: 5px;
}

/* MAIN LAYOUT */
.main-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
}
.main-content { flex: 3; }
.news-sidebar {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.news-sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}
.news-card {
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.news-card img {
    max-width: 100%;
    border-radius: 5px;
}
.news-card h3 {
    font-size: 1.1em;
    margin-top: 10px;
}
.news-card p {
    font-size: 0.9em;
    color: #555;
}
.news-date {
    font-size: 0.8em;
    color: #888;
    display: block;
    margin-bottom: 5px;
}
.news-card a {
    display: inline-block;
    margin-top: 5px;
    color: #004466;
    font-weight: bold;
    text-decoration: none;
}
.news-card a:hover {
    text-decoration: underline;
}
.see-all-news {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    text-decoration: none;
    color: #004466;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 900px) {
    .main-container { flex-direction: column; }
    .news-sidebar { order: 2; }
    .main-content { order: 1; }
}

/* TAB SECTIONS + EFFECTS */
.page-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.page-section.active {
    display: block;
    opacity: 1;
}
.fade-in { animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

nav a.active { border-bottom: 2px solid white; }

footer {
    background: #004466;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 40px;
}

/* Responsive behavior for menus */
@media (max-width: 900px) {
    .navbar {display: none;}
    .menu-toggle {display: block;}
}
@media (min-width: 901px) {
    .mobile-nav {display: none !important;}
}

.lang-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background: #006699;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
}
.lang-btn:hover {
  background: #004466;
}

.hero-img {
  width: 100%;        /* fits the container width */
  height: auto;       /* keep original proportions */
  max-height: 300px; /* limit height but keep full image */
}

.accordion {
  background-color: #004466;
  color: white;
  cursor: pointer;
  padding: 12px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  transition: 0.3s;
  font-size: 1.1em;
  margin-top: 10px;
}
.accordion:hover { background-color: #006699; }
.panel {
  padding: 0 15px;
  display: none;
  background: #f9f9f9;
  border-left: 2px solid #004466;
  border-right: 2px solid #004466;
  border-bottom: 2px solid #004466;
}
.panel p { margin: 8px 0; }

.coordinator-box {
  border: 2px solid #004466;
  background-color: #e6f2f5;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.coordinator-box h3 {
  margin-top: 0;
  color: #004466;
}

.activities-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.activity-card {
  flex: 1 1 300px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background: #fff;
}
.activity-card h3 {
  margin-top: 0;
  color: #004466;
}
.activity-card img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 10px;
}
.details {
  display: none;
  margin-top: 10px;
}
.activity-card button {
  margin-top: 10px;
  background: #004466;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}
.activity-card button:hover {
  background: #006699;
}

#load-more-btn {
  display: none;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #004466;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#load-more-btn:hover {
  background-color: #006699;
}

.news-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.news-card .news-img img {
  width: 150px;
  height: auto;
  border-radius: 5px;
}

.news-card .news-content {
  flex: 1;
}

.news-card .news-date {
  font-size: 0.9em;
  color: #777;
}

@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .news-card .news-img img {
    width: 100%;
    max-width: 300px;
  }
}

.sidebar-card {
  margin-bottom: 15px;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-card .news-date {
  font-size: 0.8em;
  color: #777;
}

.sidebar-card h3 {
  font-size: 1em;
  margin: 5px 0;
}

.sidebar-card p {
  font-size: 0.9em;
  color: #555;
}

.node-card {
  border: 1px solid #ccc;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  background: #f8f8f8;
}
.group-card {
  border: 1px solid #ddd;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border-radius: 6px;
  background: #fff;
}
.group-card h4 {
  margin-top: 0;
}

.node-header {
  background: #eee;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
}
.node-header h3 {
  margin: 0;
}
.node-content {
  padding: 10px;
  border-left: 2px solid #ccc;
  margin-bottom: 10px;
}
.group-card {
  background: #fff;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.news-card {
  background: #fff;
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Normalize Markdown-generated lists inside sidebar and news cards */
.sidebar-card ul,
.sidebar-card ol,
.news-card ul,
.news-card ol {
  margin: 0.5em 0 0.5em 1.2em;
  padding: 0;
  list-style-type: disc;
  list-style-position: inside;
}

.sidebar-card li,
.news-card li {
  font-family: Arial, sans-serif;;
  font-size: 0.9em;
  color: #555;
  margin: 10px;
  line-height: 1.4;
}

/* Normalize Markdown-rendered content inside sidebar/news cards */
.sidebar-card,
.sidebar-card p,
.sidebar-card li,
.sidebar-card ul,
.sidebar-card ol,
.news-card,
.news-card p,
.news-card li,
.news-card ul,
.news-card ol {
  font-family: Arial, sans-serif;;
  font-size: 0.9em;
  color: #555;
  line-height: 1.5;
  margin: 5px;
  padding: 0;
}

/* Optional: if you want bullet lists aligned and spaced like normal text */
.sidebar-card ul,
.news-card ul {
  list-style-position: inside;
  margin-left: 1em;
}

.sidebar-card li,
.news-card li {
  margin-bottom: 0.25em;
}

.activity-short,
.activity-details,
.activity-short p,
.activity-details p,
.activity-short ul,
.activity-details ul,
.activity-short li,
.activity-details li {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.markdown-preview {
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 5px;
  background: #f9f9f9;
  font-family: inherit;
  font-size: 0.95em;
  overflow: auto;
  max-height: 200px;
  white-space: normal;
}

.markdown-preview {
  width: 100%;
  box-sizing: border-box;
}

.markdown-preview p,
.markdown-preview ul,
.markdown-preview li {
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
}
