/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: #1c1c1c;
  background-color: #ffffff;
  line-height: 1.75;
  font-size: 16px;
}

.news-references ol {
  list-style-type: decimal;
  list-style-position: inside; /* Ensures numbers are aligned with text */
  margin: 0;
}

/* ===== LAYOUT ===== */
.main-container {
  display: grid;
  grid-template-columns: 3fr 1.2fr;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px;
}

.common-container {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  margin-top: 30px;
}

.common-column {
  border-radius: 8px;
}

.common-left, .article-right {
  width: 25%;
}

.common-middle {
  flex: 1;
}

.submission-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  padding: 10px;
}

.submission-links a {
  text-decoration: none;
  color: var(--text-theme); /* You already have text color variables */
  font-weight: 400;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.submission-links a:hover {
  text-decoration: underline;
  color: var(--theme); /* Optional: can stay same or darken slightly */
}

/* Expandable subsection (Preparing your manuscript) */
.submission-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.submission-section-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--text-theme);
  margin-top: 10px;
}

.submission-section-toggle:hover {
  text-decoration: underline;
}

.submission-sublist {
  display: none; /* Hide by default */
  flex-direction: column;
  padding-left: 15px;
  margin-top: 5px;
}

.submission-sublist a {
  font-size: 0.9rem;
}

/* When active (visible) */
.submission-sublist.active {
  display: flex;
}

/* Arrow styling for dropdown */
.toggle-arrow {
  margin-right: 5px;
  transition: transform 0.3s ease;
}

.toggle-arrow.open {
  transform: rotate(90deg);
}

.common-main-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 30px;
  margin-top: 30px;
  color: var(--text-theme);
}

.section-title {
  font-size: 1.2rem;
  font-weight: bold;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 10px;
  color: var(--text-theme);
}

.common {
  margin-bottom: 20px;
  color: var(--text-theme);
}

.common a{
  text-decoration: underline;
  color: var(--dark-theme);
}

.common h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-theme);
}

.common h5 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-theme);
}

.common p {
  font-size: 0.95rem;
  color: var(--text-theme);
  line-height: 1.6;
  margin-bottom: 10px;
}

.sidebar-links {
  margin-bottom: 20px;
  color: var(--text-theme);
}

.sidebar-links a{
  color: var(--text-dark-theme);
}

.sidebar-links a:hover{
  text-decoration: underline;
  color: var(--dark-theme);
}

.sidebar-links p {
  font-size: 0.95rem;
  color: var(--text-theme);
  line-height: 1.6;
  margin-bottom: 10px;
}

.view-profile {
  font-size: 0.85rem;
  margin-left: 5px;
  color: var(--theme);
  text-decoration: none;
}

.view-profile i {
  margin-right: 5px;
}

.view-profile:hover {
  text-decoration: underline;
}

.articles-tabs {
  display: flex;
  gap: 15px;
  margin: 10px 0;
  font-size: 1rem;
  font-weight: 600;
}

.articles-tabs .tab {
  cursor: pointer;
  color: #444;
}

.articles-tabs .tab.active {
  color: var(--dark-theme);
}

.article-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
}

.article-list li {
  margin-bottom: 10px;
  background-color: #f5f5f5;
  padding: 15px;
}

.article-list li a {
  color: #000000;
  font-weight: 600;
  text-decoration: none;
}

.article-list li a:hover {
  text-decoration: underline;
  color: var(--dark-theme);
}

.articles-tabs span.active {
  border-bottom: 2px solid var(--dark-theme);
}

.content {
  width: 100%;
}

.sidebar {
  padding-top: 10px;
  /* background-color: #f6f6f6; */
}

/* ===== TYPOGRAPHY ===== */

.pub-date {
  font-size: 14px;
  color: #333;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.article-type {
  color: #ca2015;
  font-weight: 600;
}

.headline {
  font-family: 'Merriweather', sans-serif;
  font-size: 2rem;
  font-weight: 1000;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #000000;
}

.subheadline {
  font-family: 'Merriweather', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.author {
  font-size: 15px;
  margin-bottom: 16px;
}

.author a {
  color: #0056a3;
  text-decoration: none;
}

.author a:hover {
  text-decoration: underline;
}

/* ===== SOCIAL ===== */
.social-icons {
  margin-bottom: 24px;
}

.social-icons a {
  font-size: 18px;
  margin-right: 12px;
  text-decoration: none;
  color: #000000;
}

/* ===== IMAGE & FIGURE ===== */
figure {
  margin-bottom: 20px;
  text-align: center;
}

figure img {
  width: 50%;
  height: 50%;
  border-radius: 6px;
}

figcaption {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
  font-style: italic;
}

/* ===== ARTICLE BODY ===== */
.article-body {
  margin-top: 20px;
}

.article-body p {
  margin-bottom: 18px;
}

/* Align all UL and LI with paragraph styling in the article body */
.article-body ul {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* ===== SIDEBAR SECTIONS ===== */
.sidebar h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #111;
}

.related ul {
  list-style-type: none;
  padding-left: 0;
}

.related li {
  margin-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 8px;
}

.related li:last-child {
  border-bottom: none;
}

.related a {
  text-decoration: none;
  color: #0056a3;
  font-size: 15px;
}

.related a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icons .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border: 1px solid #a1a1a1; 
    border-radius: 50%;
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

.latest-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.article-card {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  height: 90px;
}

.latest-divider {
  border: none;
  border-bottom: 3px solid #363636;
  margin: 0 15px;
}

.article-divider {
  border: none;
  border-bottom: 1px solid #dcdcdc;
  margin: 0 15px;
  margin-top: 5px;
}

.article-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0px;
  padding: 15px;
  overflow: hidden;
  flex-grow: 1;
}

.article-meta {
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 4px;
}

.article-type {
  font-weight: 600;
  color: #ca2015;
}

.article-date {
  color: #333;
}

.article-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-title:hover {
  color: var(--dark-theme);
  text-decoration: underline;
}

.author a {
  color: #0056a3;
  text-decoration: none;
}

.author a:hover {
  text-decoration: underline;
}

.article-body a {
  text-decoration: underline;
  color: #1c1c1c;
}

@media (max-width: 768px) {
    .main-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}