/* IFCC C-STFT Local Website Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #496289; text-decoration: none; }
a:hover { color: #5c7aa9; text-decoration: underline; }

.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Top */
#header_top {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}
#header_top .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  max-height: 90px;
}
#header-slogan {
  margin-left: auto;
  text-align: right;
  color: #496289;
  font-style: italic;
  font-size: 0.85em;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
nav ul li a {
  display: block;
  padding: 8px 14px;
  color: #fff;
  background: #496289;
  border-radius: 3px;
  font-size: 0.9em;
  transition: background 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  background: #3d5475;
  text-decoration: none;
  color: #fff;
}

/* Header Banner */
header.header {
  background: #496289;
  color: #fff;
  padding: 30px 0;
}
header.header h2 a {
  color: #fff;
}
header.header p {
  color: #dde;
}

/* Page */
#page {
  background: #fff;
  padding: 40px 0;
  min-height: 400px;
  flex: 1;
}
#page h1.title {
  color: #496289;
  font-size: 2em;
  margin-bottom: 25px;
  border-bottom: 2px solid #496289;
  padding-bottom: 10px;
}

/* Title with action link */
.title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.title-row .title { flex: 1; }
.archive-link {
  font-weight: bold;
  text-decoration: underline;
  white-space: nowrap;
}

/* Content */
.content p { margin-bottom: 12px; }
.content img { max-width: 100%; height: auto; }
.content a { text-decoration: underline; }
.content a:hover { color: #5c7aa9; }
.content h4 { margin-bottom: 8px; color: #496289; }
.content strong { color: #222; }

/* Research articles */
.article-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.article-item h4 { margin-bottom: 4px; }
.article-item h4 a { color: #496289; }
.article-item .description {
  color: #666;
  font-size: 0.9em;
}

/* Background links */
.background-links a {
  display: block;
  padding: 8px 0;
  font-weight: bold;
  font-size: 1.05em;
  border-bottom: 1px solid #eee;
}

/* Contact */
.contact-block { margin-bottom: 25px; }
.contact-block p { margin-bottom: 5px; }

/* Footer */
footer {
  background: #fff;
  color: #333;
  border-top: 1px solid #ddd;
  padding: 25px 0;
  text-align: center;
  font-size: 0.9em;
}
footer a { color: #8cc; }
footer img { max-height: 50px; vertical-align: middle; margin-left: 10px; }

/* Responsive */
@media (max-width: 768px) {
  #header_top .inner { flex-direction: column; align-items: flex-start; }
  nav ul { flex-direction: column; }
  #page h1.title { font-size: 1.5em; }
}
