/* =====================================================
   JGIC Premium Q1 Theme - SIRG (Geospatial Orange Theme)
===================================================== */

/* ================= BASE ================= */
body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2a2a2a;
  background-color: #ffffff;
}

/* ================= HEADINGS ================= */
h1, h2, h3, h4, h5, h6,
.pkp_page_title,
.obj_article_summary .title a {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.25px;
  color: #d97706; /* ORANGE PRIMARY */
}

/* ================= NAVIGATION ================= */
.pkp_navigation_primary > li > a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pkp_navigation_primary > li > a:hover {
  color: #f59e0b;
}

/* ================= HERO HEADER ================= */
.pkp_structure_head {
  background: linear-gradient(135deg, #c2410c 0%, #7c2d12 100%);
  color: #fff;
}

.pkp_site_name .is_text {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ================= ARTICLE CARDS ================= */
.obj_article_summary {
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  background: #ffffff;
  transition: all 0.25s ease;
}

.obj_article_summary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border-color: #f59e0b;
}

/* ================= ARTICLE PAGE ================= */
.obj_article_details {
  font-size: 16px;
  line-height: 1.75;
}

.obj_article_details .item .label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #9a3412;
}

/* ================= BUTTONS ================= */
button,
.pkp_button,
.cmp_button,
input[type="submit"] {
  font-family: 'Poppins', sans-serif !important;
  border-radius: 8px;
  background: #f59e0b;
  color: #fff;
  border: none;
  transition: all 0.2s ease;
}

button:hover,
.pkp_button:hover,
.cmp_button:hover {
  transform: translateY(-1px);
  background: #d97706;
}

/* ================= LINKS ================= */
a {
  color: #ea580c;
  transition: color 0.2s ease;
}

a:hover {
  color: #9a3412;
  text-decoration: underline;
}

/* ================= FORMS ================= */
input,
select,
textarea {
  font-family: 'Roboto', sans-serif !important;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

/* ================= FOOTER ================= */
.pkp_structure_footer_wrapper {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  background: #fff7ed;
}

/* =====================================================
   🌙 DARK MODE — ORANGE GEO THEME
===================================================== */
@media (prefers-color-scheme: dark) {

  body {
    background-color: #1c1917;
    color: #f3f4f6;
  }

  h1, h2, h3, h4, h5, h6,
  .pkp_page_title,
  .obj_article_summary .title a {
    color: #fbbf24 !important;
  }

  a {
    color: #fbbf24;
  }

  a:hover {
    color: #fde68a;
  }

  /* ===== ARTICLE CARDS ===== */
  .obj_article_summary {
    background: #292524;
    border-color: #44403c;
    color: #f3f4f6 !important;
  }

  /* ===== ARTICLE DETAILS ===== */
  .obj_article_details,
  .obj_article_details .item,
  .obj_article_details .value,
  .obj_article_details .label {
    color: #f3f4f6 !important;
  }

  /* ===== AUTHORS ===== */
  .authors,
  .authors a,
  .author {
    color: #f3f4f6 !important;
  }

  .authors .affiliation,
  .item .affiliation {
    color: #d6d3d1 !important;
  }

  /* ===== SIDEBAR ===== */
  .pkp_block,
  .pkp_block .content,
  .block {
    color: #f3f4f6 !important;
    background: transparent;
  }

  /* ===== HEADER ===== */
  .pkp_structure_head {
    background: linear-gradient(135deg, #7c2d12 0%, #431407 100%);
  }

  /* ===== FOOTER ===== */
  .pkp_structure_footer_wrapper {
    background: #0c0a09;
    color: #d6d3d1;
  }

  /* ===== FORMS ===== */
  input,
  select,
  textarea {
    background: #0c0a09;
    color: #f3f4f6;
    border-color: #44403c;
  }
}

/* ================= ARABIC SUPPORT ================= */
html[lang="ar"] body {
  font-family: 'Cairo', sans-serif !important;
}

/* =====================================================
   📚 REFERENCES (MATCH COVER COLOR)
===================================================== */
.references h2,
.references h3,
.cmp_article_references h2 {
  color: #ea580c;
  font-weight: 700;
  margin-top: 30px;
}

.references li {
  margin-bottom: 8px;
  line-height: 1.6;
}