/* styles.css */
:root {
  --blue: #375b9a;
  --yellow: #EED376;
  --text: #4B4B4D;
  --muted: #575759;
  --bg: #fafafa;
  --card: #ffffff;
  --border: #e6e6e8;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);
  --font-sansPro: "SourceSansPro", Helvetica, Arial, "serif";
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --dark-grey:#333333
}
/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  /* font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; */
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.5;
  /* color: #003f6b;
  background-color: #f9fafb;
  margin: 0;
  padding: 0; */
}

a {
  color: #003f6b;
  text-decoration: none;
}

p {
  font-family: var(--font-sansPro);
}

a:hover,
a:focus {
  text-decoration: underline;
  outline: none;
}

h1, h2, h3 {
  margin-top: 0;
  font-weight: 600;
  color: #003f6b;
  font-family: var(--font-serif);
}

/* Utility */
.section-subtitle {
  font-size: 1rem;
  color: var(--dark-grey) !important;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-buttons .btn-primary,
.btn-yellow,
.hero-buttons .btn-secondary,
.btn-secondary-outline,
.btn-search,
.btn-lang,
.btn-login {
  cursor: pointer;
  border-radius: 3px;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  transition: background-color 0.3s ease;
}

.hero-buttons .btn-primary {
  background-color: #003f6b;
  color: white;
}

.hero-buttons .btn-primary:hover,
.hero-buttons .btn-primary:focus {
  background-color: #002c4a;
  outline: none;
}

.btn-yellow {
  background-color: #ffcc00;
  color: #003f6b;
  border: 1px solid #ffcc00;
}

.btn-yellow:hover,
.btn-yellow:focus {
  background-color: #e6b800;
  outline: none;
}

.hero-buttons .btn-secondary {
  background-color: #f5f8fa;
  color: #003f6b;
  border: 1px solid #cbd6e2;
}

.hero-buttons .btn-secondary:hover,
.hero-buttons .btn-secondary:focus {
  background-color: #e1e9f4;
  outline: none;
}

.btn-secondary-outline {
  background-color: transparent;
  color: #003f6b;
  border: 1px solid #003f6b;
}

.btn-secondary-outline:hover,
.btn-secondary-outline:focus {
  background-color: #003f6b;
  color: white;
  outline: none;
}

.btn-search {
  background-color: #ffcc00;
  color: #003f6b;
  border: 1px solid #ffcc00;
}

.btn-search:hover,
.btn-search:focus {
  background-color: #e6b800;
  outline: none;
}

.btn-lang,
.btn-login {
  background-color: transparent;
  color: white;
  border: 1px solid transparent;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
}

.btn-lang:hover,
.btn-login:hover,
.btn-lang:focus,
.btn-login:focus {
  background-color: #002c4a;
  outline: none;
}

.btn-center {
  text-align: center;
  margin-top: 1.5rem;
}

.highlight {
  color: #003F6B;
  font-family: var(--font-serif);
  font-weight: 700;
}

/* Header */
.header {
  background-color: #003f6b;
  color: white;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

.nav-list li a {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  display: block;
}

.nav-list li a:hover,
.nav-list li a:focus {
  text-decoration: underline;
  outline: none;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

.search-form input[type="search"] {
  padding: 0.35rem 0.5rem;
  border: none;
  border-radius: 3px;
  font-size: 0.875rem;
  width: 150px;
}

.search-form select {
  padding: 0.35rem 0.5rem;
  border: none;
  border-radius: 3px;
  font-size: 0.875rem;
  background-color: white;
  color: #003f6b;
}

.lang-login {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Hero Section */
.hero-section {
  background-color: #f9fbfc;
  padding: 6rem 1rem 6rem;
  text-align: center;
  border-bottom: 1px solid #dce6eb;
}

.hero-banner {
  max-width: 720px;
  margin: 0 auto;
}

.banner-info {
  display: inline-block;
  background-color: #fffae6;
  border: 1px solid #f7e8a7;
  color: #7a6a1e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.hero-banner h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.hero-banner p.hero-description {
  color: #333333;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 400;
}

.hero-buttons > button {
  margin: 0 0.5rem;
}

/* Features Section */
.features-section {
  max-width: 1100px;
  margin: 4rem auto 4rem;
  padding: 0 1rem;
  text-align: center;
}

.features-section h2 {
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 0.3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: #f9fbfc;
  border: 1px solid #dce6eb;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  color: #003f6b;
  box-shadow: 0 1px 3px rgb(0 63 107 / 0.05);
}

.feature-card h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--dark-grey);
}

/* Icons placeholders for features (use background colors or emoji for demonstration) */
.icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
  /* background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px; */
  margin-bottom: 0.5rem;
}

.icon-living-documents {
  background-color: #cde6f7;
  background-image: url("data:image/svg+xml,%3csvg fill='none'%20stroke='%23003f6b'%20stroke-width='2'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9%2012h6M9%2016h6M9%208h6M5%2020h14a2%202%200%20002-2V6a2%202%200%2000-2-2H5a2%202%200%2000-2%202v12a2%202%200%20002%202z'/%3e%3c/svg%3e");
}

.icon-citable-comments {
  background-color: #dbeff6;
  background-image: url("data:image/svg+xml,%3csvg fill='none'%20stroke='%23003f6b'%20stroke-width='2'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M17 8h2a2 2 0 012 2v7a2 2 0 01-2 2h-6l-4 4v-4H7a2 2 0 01-2-2v-2'/%3e%3c/svg%3e");
}

.icon-quality-moderation {
  background-color: #dbeff6;
  background-image: url("data:image/svg+xml,%3csvg fill='none'%20stroke='%23003f6b'%20stroke-width='2'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 9v3l2 2M9 12H5a2 2 0 00-2 2v2a2 2 0 002 2h14a2 2 0 002-2v-2a2 2 0 00-2-2h-4'/%3e%3c/svg%3e");
}

.icon-open-access {
  background-color: #fff3cc;
  background-image: url("data:image/svg+xml,%3csvg fill='none'%20stroke='%237a6a1e'%20stroke-width='2'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cpath d='M8 12l2 2 4-4'/%3e%3c/svg%3e");
}

.icon-transparent-peer-review {
  background-color: #cde6f7;
  background-image: url("data:image/svg+xml,%3csvg fill='none'%20stroke='%23003f6b'%20stroke-width='2'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect x='3' y='4' width='18' height='16' rx='2' ry='2'/%3e%3cpath d='M16 2v4M8 2v4M3 10h18'/%3e%3c/svg%3e");
}

.icon-multi-disciplinary {
  background-color: #fff3cc;
  background-image: url("data:image/svg+xml,%3csvg fill='none'%20stroke='%237a6a1e'%20stroke-width='2'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 2l2 7h7l-5.5 4 2 7-5.5-4-5.5 4 2-7-5.5-4h7z'/%3e%3c/svg%3e");
}

/* Latest Articles Section */
.latest-articles-section {
  max-width: 1100px;
  margin: 4rem auto 4rem;
  padding: 0 1rem;
  text-align: center;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.article-card {
  background-color: #f9fbfc;
  border: 1px solid #dce6eb;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgb(0 63 107 / 0.05);
}

.article-card h3 {
  font-size: 1.125rem;
  margin: 0.5rem 0 0.75rem;
  color: #003f6b;
}

.article-card p {
  font-size: 0.875rem;
  color: var(--dark-grey);
  margin-bottom: 1rem;
  min-height: 3.25rem;
}

.article-card a {
  font-style: normal !important;
  text-decoration: none;
}

.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  color: #003f6b;
  background-color: #cde6f7;
  user-select: none;
}

.article-tag.sociology {
  background-color: #dbeff6;
  color: #003f6b;
}

.article-tag.genetics {
  background-color: #f0f6f9;
  color: #003f6b;
  border: 1px solid #cbd6e2;
  padding: 0.2rem 0.5rem;
}

.article-tag.original {
  background-color: #ffcc00;
  color: #7a6a1e;
  margin-left: 0.4rem;
  font-weight: 600;
  border-radius: 2px;
  padding: 0.1rem 0.4rem;
}

.article-tag.epidemiology {
  background-color: #fce7d7;
  color: #8c4a00;
}

.article-tag.medicine {
  background-color: #dbeff6;
  color: #003f6b;
}

.article-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.article-links a {
  color: #003f6b;
  font-weight: 600;
  font-style: normal;
}

.discussion-closed {
  font-size: 0.8rem;
  font-style: italic;
  color: #5f7d95;
}

/* Latest Discussions Section */
.latest-discussions-section {
  max-width: 1100px;
  margin: 4rem auto 4rem;
  padding: 0 1rem;
  text-align: center;
}

.discussions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.discussion-card {
  background-color: #f9fbfc;
  border: 1px solid #dce6eb;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgb(0 63 107 / 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.discussion-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: #003f6b;
}

.discussion-card p {
  font-size: 0.875rem;
  color: #5f7d95;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.discussion-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  user-select: none;
  width: fit-content;
}

.discussion-tag.red {
  background-color: #ffd7d7;
  color: #8c2929;
}

.discussion-tag.blue {
  background-color: #dbeff6;
  color: #003f6b;
}

.discussion-tag.green {
  background-color: #d9f2e6;
  color: #2e6b3a;
}

.discussion-card footer {
  font-size: 0.75rem;
  font-weight: 600;
  color: #003f6b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.discussion-card footer a.link-read {
  font-weight: 600;
  font-size: 0.875rem;
}

/* How NAL-live Works Section */
.how-works-section {
  max-width: 720px;
  margin: 4rem auto 4rem;
  padding: 0 1rem;
  text-align: center;
}

.how-works-section h2 {
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 0.3rem;
}

.how-works-box {
  background-color: #f0f6f9;
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin-top: 2rem;
  text-align: left;
  box-shadow: 0 1px 3px rgb(0 63 107 / 0.1);
}

.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-number {
  background-color: #003f6b;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

.step h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: #003f6b;
}

.step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--dark-grey);
}

.btn-learn-more {
  margin-top: 1.5rem;
  display: inline-block;
}

/* About Section */
.about-section {
  max-width: 720px;
  margin: 4rem auto 4rem;
  padding: 0 1rem;
  color: #5f7d95;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.about-section h2 {
  color: #003f6b;
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.about-section p {
  margin-bottom: 1rem;
  color: var(--dark-grey)
}

/* Footer CTA Section */
.footer-cta {
  background-color: #003f6b;
  color: white;
  padding: 3rem 1rem 4rem;
  text-align: center;
}

.footer-cta h2 {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.footer-cta p {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.footer-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-cta-buttons button {
  min-width: 160px;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  border: none;
}

.footer-cta-buttons .btn-yellow {
  background-color: #ffcc00;
  color: #003f6b;
  border: 1px solid #ffcc00;
}

.footer-cta-buttons .btn-yellow:hover,
.footer-cta-buttons .btn-yellow:focus {
  background-color: #e6b800;
  outline: none;
}

.footer-cta-buttons .btn-secondary {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.footer-cta-buttons .btn-secondary:hover,
.footer-cta-buttons .btn-secondary:focus {
  background-color: white;
  color: #003f6b;
  outline: none;
}

/* Footer */
/* .footer {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 2rem 1rem 1rem;
  color: #b1c4d3;
  font-size: 0.75rem;
}

.footer-top {
  border-bottom: 1px solid #1a4768;
  padding-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
}

.footer-info {
  font-size: 0.75rem;
  color: #9bb8d8;
  margin: 0;
  flex-grow: 1;
  max-width: 600px;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column a {
  color: #b1c4d3;
  font-weight: 400;
  font-size: 0.75rem;
}

.footer-column a:hover,
.footer-column a:focus {
  color: white;
  text-decoration: underline;
  outline: none;
}

.footer-bottom {
  margin-top: 1.5rem;
  text-align: center;
  color: #7a9ecf;
} */

/* Responsive tweaks */
@media (max-width: 768px) {
  .header-container {
    justify-content: center;
  }
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  .search-form {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
  .lang-login {
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }
  .features-grid,
  .articles-grid,
  .discussions-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.card,
.hero-section,
.card-container,
.feature-card,
.article-card,
.discussion-card {
  background-color: #f1fbfa; /* Light gray/blue background */
  border-radius: 8px;        /* Optional: rounded corners */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Optional: subtle shadow */
  /* padding: 50px;             /* Optional: inner spacing */ */
}

.banner-info {
  display: none;
}

/* Scoped CSS for the About the Platform section */
.platform-about-section {
  padding: 60px 20px 80px;
  background-color: #f1fbfa;
  color: #003f6b; /* slate-600 */
}

.platform-about-container {
  max-width: 1080px;
  margin: 0 auto;
}

.platform-about-title {
  font-weight: 700;
  font-size: 28px;
  color: #003f6b; /* navy-900 */
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.2;
}

.platform-about-subtitle {
  font-weight: 400;
  font-size: 15px;
  text-align: center;
  color: #003f6b; /* slate-500 */
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.platform-about-content {
  display: flex;
  gap: 48px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.platform-about-left {
  flex: 1 1 55%;
  min-width: 280px;
}

.platform-about-item {
  margin-bottom: 28px;
}

.platform-about-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: #003f6b; /* navy-900 */
  margin-bottom: 8px;
}

.platform-about-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark-grey);
  margin: 0;
  font-family: var(--font-sansPro);
}

.platform-about-right {
  flex: 1 1 40%;
  min-width: 260px;
  background-color: #f1f5f9; /* slate-100 */
  border-radius: 8px;
  padding: 24px 24px 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.platform-features-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.platform-features-list li:last-child {
  margin-bottom: 0;
}

.platform-features-list strong {
  font-weight: 700;
  font-size: 15px;
  color: #003f6b; /* navy-900 */
  display: block;
  margin-bottom: 4px;
}

.platform-features-list p {
  font-size: 13px;
  color: var(--dark-grey);
  margin: 0;
  line-height: 1.4;
  font-family: var(--font-sansPro);
}

/* Icons as inline SVG background or inline elements */
.icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: #e2e8f0; /* slate-200 */
  border-radius: 6px;
  /* display: inline-block;
  position: relative; */


  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Specific icons can be replaced by SVG background images or inline SVG */
/* For demo, simple content placeholders */

.icon.global-indexing::before {
  content: "🌐";
  font-size: 18px;
  position: absolute;
  top: 6px;
  left: 7px;
}

.icon.structured-metadata::before {
  content: "📄";
  font-size: 18px;
  position: absolute;
  top: 6px;
  left: 7px;
}

.icon.author-profiles::before {
  content: "👤";
  font-size: 18px;
  position: absolute;
  top: 6px;
  left: 7px;
}

.icon.open-standards::before {
  content: "✔️";
  font-size: 18px;
  position: absolute;
  top: 6px;
  left: 7px;
}

.platform-about-cta {
  margin-top: 40px;
  text-align: left;
}

.btn-learn-more {
  background: transparent;
  border: 1px solid #0f1e40; /* navy-900 */
  color: #003f6b;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: inherit;
}

.btn-learn-more:hover,
.btn-learn-more:focus {
  background-color: #0f1e40;
  color: #ffffff;
  outline: none;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  display: inline-block;
  vertical-align: middle;
}
