/* ===================================
   BrainHack Marseille 2027 - Call for Project Proposals page
   Builds on style_navy.css (theme: #1D3557, #e76f51, #e9c46a, #2a9d8f, #264653)
   =================================== */

/* ---------- Hero ---------- */
#cfp-hero {
  background: #1D3557;
  color: #fff;
  padding: 140px 0 80px 0;
  position: relative;
  overflow: hidden;
}

#cfp-hero::after {
  /* soft accent glow, purely decorative */
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 196, 106, 0.18) 0%, rgba(233, 196, 106, 0) 70%);
  pointer-events: none;
}

#cfp-hero .cfp-eyebrow {
  color: #e9c46a;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

#cfp-hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

#cfp-hero h1 span {
  color: #e76f51;
}

#cfp-hero .cfp-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 760px;
  margin-bottom: 35px;
}

#cfp-hero .cfp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

#cfp-hero .btn-brainhack-primary {
  font-size: 1.05rem;
  padding: 15px 36px;
}

.btn-cfp-outline {
  display: inline-block;
  padding: 13px 32px;
  border: 2px solid #e9c46a;
  border-radius: 50px;
  color: #e9c46a;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-cfp-outline:hover {
  background: #e9c46a;
  color: #1D3557;
  text-decoration: none;
}

/* ---------- Generic helpers ---------- */
.cfp-section-intro {
  max-width: 820px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #495057;
}

.cfp-highlight {
  background: linear-gradient(180deg, transparent 60%, rgba(233, 196, 106, 0.45) 60%);
  font-weight: 600;
  color: #1D3557;
}

.section-alt {
  background: #f5f7fb;
}

/* ---------- Scope: the one rule ---------- */
.cfp-rule {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  border-left: 6px solid #e76f51;
  box-shadow: 0 6px 24px rgba(29, 53, 87, 0.08);
  padding: 35px 40px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.cfp-rule-icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e76f51, #e9c46a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.cfp-rule h3 {
  color: #1D3557;
  font-weight: 700;
  margin-bottom: 12px;
}

.cfp-rule p {
  color: #495057;
  line-height: 1.75;
  margin-bottom: 10px;
}

.cfp-rule p:last-child {
  margin-bottom: 0;
}

/* ---------- Spectrum ("dials") ---------- */
.cfp-dials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 10px;
}

.cfp-dial {
  background: #fff;
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 4px 16px rgba(29, 53, 87, 0.07);
  border-top: 4px solid #2a9d8f;
}

.cfp-dial:nth-child(2) {
  border-top-color: #e9c46a;
}

.cfp-dial:nth-child(3) {
  border-top-color: #e76f51;
}

.cfp-dial h4 {
  color: #1D3557;
  font-weight: 700;
  margin-bottom: 6px;
}

.cfp-dial h4 i {
  color: #e76f51;
  margin-right: 6px;
}

.cfp-dial .cfp-dial-sub {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.cfp-scale {
  position: relative;
  padding-left: 22px;
  margin: 0;
  list-style: none;
}

.cfp-scale::before {
  /* vertical gradient bar = "anywhere on this range is fine" */
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e9c46a, #e76f51);
}

.cfp-scale li {
  position: relative;
  margin-bottom: 16px;
}

.cfp-scale li:last-child {
  margin-bottom: 0;
}

.cfp-scale li::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e76f51;
}

.cfp-scale strong {
  display: block;
  color: #264653;
}

.cfp-scale span {
  color: #6c757d;
  font-size: 0.93rem;
}

.cfp-scale em {
  font-style: normal;
  color: #2a9d8f;
  font-weight: 600;
}

/* ---------- Kinds of work ---------- */
.cfp-kinds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.cfp-kind {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(29, 53, 87, 0.06);
}

.cfp-kind i {
  font-size: 28px;
  color: #2a9d8f;
  flex: 0 0 auto;
  margin-top: 2px;
}

.cfp-kind h5 {
  color: #1D3557;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.cfp-kind p {
  color: #6c757d;
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Past projects ---------- */
.cfp-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
}

.cfp-filter {
  border: 2px solid #1D3557;
  background: #fff;
  color: #1D3557;
  border-radius: 50px;
  padding: 7px 18px;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cfp-filter:hover,
.cfp-filter:focus {
  outline: none;
  border-color: #e76f51;
  color: #e76f51;
}

.cfp-filter.active {
  background: #1D3557;
  border-color: #1D3557;
  color: #fff;
}

.cfp-filter .cfp-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.cfp-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.cfp-project {
  background: #fff;
  border-radius: 14px;
  padding: 22px 22px 18px 22px;
  box-shadow: 0 4px 14px rgba(29, 53, 87, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 4px solid #2a9d8f;
}

.cfp-project:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(29, 53, 87, 0.14);
}

.cfp-project[data-category="software"]   { border-top-color: #e76f51; }
.cfp-project[data-category="pipelines"]  { border-top-color: #2a9d8f; }
.cfp-project[data-category="analysis"]   { border-top-color: #e9c46a; }
.cfp-project[data-category="data"]       { border-top-color: #264653; }
.cfp-project[data-category="modelling"]  { border-top-color: #f4a261; }
.cfp-project[data-category="learning"]   { border-top-color: #1D3557; }

.cfp-project.is-hidden {
  display: none;
}

.cfp-project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cfp-project-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #6c757d;
}

.cfp-project-year {
  font-family: "Jost", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #e76f51;
  white-space: nowrap;
}

.cfp-project h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1D3557;
  line-height: 1.35;
  margin-bottom: 8px;
}

.cfp-project p {
  color: #495057;
  font-size: 0.93rem;
  line-height: 1.6;
  flex: 1 1 auto;
  margin-bottom: 14px;
}

.cfp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.cfp-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  background: #eef2f8;
  color: #264653;
}

.cfp-tag.stage-idea   { background: #fff3e0; color: #b4532a; }
.cfp-tag.stage-proto  { background: #fff8e1; color: #8a6d1d; }
.cfp-tag.stage-mature { background: #e0f2f1; color: #1d6f66; }

.cfp-project-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2a9d8f;
  align-self: flex-start;
}

.cfp-project-link:hover {
  color: #e76f51;
  text-decoration: none;
}

.cfp-note {
  max-width: 820px;
  margin: 35px auto 0 auto;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

/* ---------- Good proposal checklist ---------- */
.cfp-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.cfp-checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cfp-checklist i {
  color: #2a9d8f;
  font-size: 22px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.cfp-checklist strong {
  color: #1D3557;
  display: block;
}

.cfp-checklist span {
  color: #6c757d;
  font-size: 0.95rem;
}

/* ---------- How it works (steps) ---------- */
.cfp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  counter-reset: cfp-step;
}

.cfp-step {
  background: #fff;
  border-radius: 14px;
  padding: 26px 20px 22px 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(29, 53, 87, 0.07);
  position: relative;
}

.cfp-step::before {
  counter-increment: cfp-step;
  content: counter(cfp-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #e76f51, #e9c46a);
  color: #fff;
  font-family: "Jost", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.cfp-step h5 {
  color: #1D3557;
  font-weight: 700;
  font-size: 1.05rem;
}

.cfp-step p {
  color: #6c757d;
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- FAQ ---------- */
.cfp-faq {
  max-width: 900px;
  margin: 0 auto;
}

.cfp-faq details {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(29, 53, 87, 0.06);
  margin-bottom: 14px;
  overflow: hidden;
}

.cfp-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 22px;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: #1D3557;
  position: relative;
}

.cfp-faq summary::-webkit-details-marker {
  display: none;
}

.cfp-faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #e76f51;
  transition: transform 0.25s ease;
}

.cfp-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.cfp-faq .cfp-faq-body {
  padding: 0 22px 18px 22px;
  color: #495057;
  line-height: 1.7;
}

/* ---------- Final call to action ---------- */
#cfp-cta {
  background: #1D3557;
  color: #fff;
  text-align: center;
}

#cfp-cta h2 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

#cfp-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

#cfp-cta .cfp-cta-contact {
  margin-top: 28px;
  margin-bottom: 0;
  font-size: 1rem;
}

#cfp-cta a.cfp-mail {
  color: #e9c46a;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  #cfp-hero {
    padding: 110px 0 60px 0;
    text-align: center;
  }
  #cfp-hero h1 {
    font-size: 2.2rem;
  }
  #cfp-hero .cfp-lead {
    font-size: 1.05rem;
  }
  #cfp-hero .cfp-hero-actions {
    justify-content: center;
  }
  .cfp-rule {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 22px;
  }
  .cfp-projects {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .cfp-kinds {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .cfp-kinds {
    grid-template-columns: 1fr;
  }
}
