/* ===========================================
   API AUTOMATIONS | RESEARCH PAGE
   Theme: Genesis + Magnolia
   Primary:  #004aad
   Accent:   #b4d4ff
   Hero img: https://inhousevideo.b-cdn.net/Untitled-2-researchHero_1920x720.jpeg
   =========================================== */

/* ── Base Typography ────────────────────────────────────────── */
.entry-content h1,
.entry-content h2 {
  letter-spacing: -0.3px;
  line-height: 1.25;
}

/* Section headings — !important overrides WordPress inline styles */
.entry-content h2 {
  font-size: 2.4rem !important;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #111;
}

.entry-content h3 {
  font-size: 1.4rem !important;
  color: #222;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.entry-content p {
  font-size: 1.1rem !important;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: #444;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.45) 100%),
    url("https://inhousevideo.b-cdn.net/Untitled-2-researchHero_1920x720.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 8rem 1rem 6rem;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero-section h1 {
  font-size: 3.75rem !important;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 3px 8px rgba(0,0,0,0.35);
}

.hero-section p {
  font-size: 1.35rem !important;
  max-width: 820px;
  margin: 0 auto 2rem;
  color: #f0f4ff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.25);
  line-height: 1.75;
}

.hero-section .button {
  background-color: #004aad;
  color: #fff;
  border-radius: 4px;
  padding: 1rem 2.4rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.hero-section .button:hover {
  background-color: #003080;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* ── Research Intro ─────────────────────────────────────────── */
.research-intro h2 {
  font-size: 1.85rem !important;
}

.research-intro p {
  font-size: 1.15rem !important;
  color: #444;
  max-width: 900px;
}

/* ── Domain Cards ───────────────────────────────────────────── */
.domain-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.domain-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  transform: translateY(-5px);
  border-color: #b4d4ff;
}

.domain-card h3 {
  font-size: 1.3rem !important;
}

.domain-card p {
  font-size: 1rem !important;
  color: #555;
}

/* ── Featured Research Section ──────────────────────────────── */

/* PEPI hero card */
.rp-pepi-card {
  transition: box-shadow 0.3s ease;
}

.rp-pepi-card:hover {
  box-shadow: 0 14px 36px rgba(0,74,173,0.13);
}

.rp-pepi-card h3 {
  font-size: 2.1rem !important;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #0f172a;
}

.rp-pepi-card p {
  font-size: 1.05rem !important;
  line-height: 1.8;
  color: #475569;
}

/* Secondary project cards */
.rp-project-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 1.75rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rp-project-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.rp-project-card h3 {
  font-size: 1.25rem !important;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

.rp-project-card p {
  font-size: 1rem !important;
  color: #555;
  line-height: 1.75;
}

/* Live pulse animation */
@keyframes rp-pulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.35; transform: scale(1.55); }
}

/* ── Methods Grid ───────────────────────────────────────────── */
.research-methods ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.research-methods ul li {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #eee;
  text-align: center;
  padding: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.research-methods ul li:hover {
  background: #004aad;
  color: #fff;
  border-color: #004aad;
  transform: scale(1.02);
}

/* ── Collaboration CTA ──────────────────────────────────────── */
.research-collab p {
  font-size: 1.1rem !important;
  color: #555;
  max-width: 850px;
  margin: 1.5rem auto 2.5rem;
}

.research-collab .button {
  background-color: #004aad;
  color: #fff;
  border-radius: 4px;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
}

.research-collab .button:hover {
  background-color: #003080;
  transform: translateY(-3px);
}

/* ── Impact list ────────────────────────────────────────────── */
.research-impact p {
  font-size: 1.05rem !important;
}

.research-impact ul {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  max-width: 700px;
  color: #555;
  text-align: left;
}

.research-impact ul li {
  font-size: 1rem;
  margin-bottom: 0.85rem;
  line-height: 1.65;
}

/* ── Recent Work ────────────────────────────────────────────── */
.recent-work ul {
  list-style: none;
  padding: 0;
}

.recent-work ul li {
  margin-bottom: 1.75rem;
  line-height: 1.6;
  transition: box-shadow 0.25s ease;
}

.recent-work ul li:last-child {
  margin-bottom: 0;
}

.recent-work ul li:hover {
  box-shadow: 0 6px 20px rgba(0,74,173,0.1);
}

.recent-work ul li strong {
  font-size: 1.1rem;
}

.recent-work ul li p {
  font-size: 1rem !important;
  color: #555;
  margin: 0.5rem 0 0.75rem;
}

/* ── Section transitions ────────────────────────────────────── */
section {
  scroll-margin-top: 100px;
}

.research-domains,
.research-methods,
.research-impact,
.research-collab,
.recent-work {
  transition: background-color 0.4s ease;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .entry-content h2 { font-size: 2rem !important; }
  .entry-content h3 { font-size: 1.25rem !important; }
  .rp-pepi-card h3  { font-size: 1.75rem !important; }
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
    padding: 6rem 1rem 5rem;
  }

  .hero-section h1    { font-size: 2.5rem !important; }
  .hero-section p     { font-size: 1.15rem !important; }
  .entry-content h2   { font-size: 1.75rem !important; }
  .domain-card        { padding: 1.5rem; }
  .rp-pepi-card h3    { font-size: 1.5rem !important; }

  .research-methods ul {
    grid-template-columns: 1fr !important;
  }
}
