:root {
  --primary: #0f4f73;          /* site-ish blue */
  --accent: #f3b387;           /* peach */
  --text: #1a1a1a;
  --muted: #6b7280;
  --bg: #ffffff;
  --max-width: 1450px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   Header
   ========================= */

.site-header{
  position: relative;
  height: 125px;                 /* lock height like your screenshot */
  background: #fff;
  overflow: hidden;             /* prevents shapes affecting layout */
  border-bottom: 1px solid #e5e7eb;
}

/* Your header-inner exists in HTML already */
.header-inner{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;          /* FIX: center not centre */
  justify-content: space-between;
}

/* Slightly roomier header padding */
.site-header .container{
  padding-left: 40px;
  padding-right: 40px;
}

/* --- Background layers (replace your old .header-bg-shape approach) --- */

.site-header::before{
  content:"";
  position:absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: var(--primary);
  z-index: 1;
  /* angled edge */
  clip-path: polygon(
    0 0,
    100% 0,
    97% 100%,
    0 100%
  );
}

/* subtle blue curve, same color family */
.site-header::after{
  content:"";
  position:absolute;
  left: 35%;
  top: -100px;
  width: 340px;
  height: 260px;
  background: rgba(255,255,255,0.06); /* gentle highlight on blue */
  border-radius: 0 0 0 260px;
  transform: skewX(-10deg);
  z-index: 1;
}




/* Logo */
.logo{
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.logo img{
  height: 75px;                 /* match screenshot feel */
  width: auto;
  display: block;
}

/* Navigation */
.main-nav{
  height: 100%;
  display: flex;
  align-items: center;
}

.main-nav ul{
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a{
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  position: relative;
}

/* underline */
.main-nav a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0;
  height: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

/* hover state */
.main-nav a:hover::after{
  width: 100%;
}


/* If you still want dropdown carets */
.has-dropdown > a::after{
  content: "▾";
  font-size: 12px;
  margin-left: 6px;
}

/* =========================
   Portal Layout
   ========================= */

.portal{
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 92px); /* assuming header height ~92px */
  background: #f4f7fb;
}

.portal-sidebar{
  background: #0f4f73;
  color: rgba(255,255,255,0.9);
  padding: 0;
}

.sidebar-inner{
  position: sticky;
  top: 0;                  /* sticks under header */
  padding: 22px 18px;

  display: flex;
  flex-direction: column;
  gap: 18px;
}


.sidebar-logo {
  display: none; /* IMPORTANT: removes layout space */
  padding: 14px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  background: #0f4f73;
}

.sidebar-logo img {
  max-width: 160px;
  height: auto;
}

/* When visible */
.sidebar-logo.is-visible {
  display: block;
  animation: fadeSlideIn 0.25s ease-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.sidebar-top{
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.stage-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
  width: fit-content;
}

.stage-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f3b387; /* accent */
}

.sidebar-nav{
  padding-top: 18px;
  display: grid;
  gap: 10px;
}

.sidebar-link{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}

.sidebar-link:hover{
  background: rgba(255,255,255,0.10);
  color: #fff;
}

.sidebar-link.active{
  background: rgba(243,179,135,0.22);
  border: 1px solid rgba(243,179,135,0.35);
  color: #fff;
}

.sidebar-num{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,0.14);
}

/* Main area */
.portal-main{
  padding: 28px 28px 48px;
}

.portal-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-title{
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: #0b2b3f;
}

.page-subtitle{
  margin: 8px 0 0;
  color: #5b6b7a;
  max-width: 68ch;
  font-weight: 500;
}

.coach-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}


/* Pills */
.progress-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,79,115,0.12);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: #0f4f73;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  white-space: nowrap;
}

.progress-icon{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,79,115,0.10);
  font-weight: 900;
}

/* Cards */
.card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,79,115,0.10);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  margin-bottom: 18px;
}

.card-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15,79,115,0.08);
  margin-bottom: 14px;
}

.card-header h2{
  margin: 0;
  font-size: 18px;
  color: #0b2b3f;
}

.stage-overview .card-header{
  border-bottom: none;
  margin-bottom: 10px;
}

.mini-progress{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5b6b7a;
  font-weight: 700;
  font-size: 12px;
}

.mini-progress-bar{
  width: 120px;
  height: 6px;
  border-radius: 999px;
  background: #0f4f73;
  opacity: 0.18;
  position: relative;
  overflow: hidden;
}

.mini-progress-bar::after{
  content:"";
  position:absolute;
  inset:0;
  background:#0f4f73;
  opacity: 0.9;
  width: 100%;
}

/* Hero row */
.overview-hero{
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,79,115,0.08);
  background: linear-gradient(90deg, rgba(15,79,115,0.06), rgba(255,255,255,0));
  margin-bottom: 16px;
}

.avatar{
  width: 62px;
  height: 62px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15,79,115,0.12);
  background: rgba(15,79,115,0.06);
}

.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overview-text h3{
  margin: 0 0 6px;
  color: #0b2b3f;
  font-size: 16px;
}

.overview-text p{
  margin: 0;
  color: #5b6b7a;
  font-weight: 500;
}

/* Inner layout */
.overview-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-bottom: 16px;
}

.inner-card{
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(15,79,115,0.08);
  box-shadow: none;
  margin: 0;
}

.inner-title{
  margin: 0 0 10px;
  font-size: 14px;
  color: #0b2b3f;
}

.stack{
  display: grid;
  gap: 14px;
}

/* Checklist */
.checklist{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist-item{
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15,79,115,0.08);
  background: rgba(255,255,255,0.85);
}

.checklist-item.done{
  opacity: 0.95;
}

.check-icon{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #0f4f73;
  background: rgba(15,79,115,0.10);
}

.check-text{
  font-weight: 700;
  color: #243746;
}

.chip-link{
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid rgba(245,127,33);
  color: #0f4f73;
  background: rgba(245,127,33,0.6);
}

/* Progress list */
.progress-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.progress-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #243746;
}

/* Activity */
.activity{
  display: grid;
  gap: 10px;
}

.activity-row{
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(15,79,115,0.08);
  background: rgba(255,255,255,0.85);
}

.activity-avatar{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #0f4f73;
  background: rgba(15,79,115,0.10);
}

.activity-name{
  font-weight: 800;
  color: #0b2b3f;
}

/* CTA row */
.cta-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,79,115,0.10);
  background: rgba(15,79,115,0.04);
}

.cta-left{
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-badge{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  background: #0f4f73;
}

.cta-title{
  margin: 0;
  font-size: 15px;
  color: #0b2b3f;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary{
  background: #f57f21;
  color: #fff;
  border-color: rgba(15,79,115,0.20);
}

.btn-primary:hover{
  opacity: 0.92;
}

/* Resources */
.resource-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resource-card{
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,79,115,0.08);
  background: rgba(255,255,255,0.85);
}

.resource-card:hover{
  transform: translateY(-1px);
  transition: transform 0.15s ease;
}

.resource-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #0f4f73;
  background: rgba(15,79,115,0.08);
}

.resource-title{
  font-weight: 900;
  color: #0b2b3f;
}

/* Empty state */
.empty-state{
  padding: 22px;
  border-radius: 16px;
  border: 1px dashed rgba(15,79,115,0.18);
  background: rgba(255,255,255,0.70);
  text-align: center;
}

.empty-title{
  font-weight: 900;
  color: #0b2b3f;
  margin-bottom: 6px;
}

.muted{ color: #5b6b7a; }
.small{ font-size: 12px; }

/* Responsive */
@media (max-width: 980px){
  .portal{ grid-template-columns: 1fr; }
  .portal-sidebar{
    position: relative;
    top: 0;
    height: auto;
    border-radius: 0;
  }
  .overview-grid{ grid-template-columns: 1fr; }
  .resource-grid{ grid-template-columns: 1fr; }
}


/* =========================
   Main / Footer
   ========================= */

.site-main{
  padding: 0px 0;
  min-height: calc(100vh - 160px);
}

/* =========================
   Footer (mirrors header)
   ========================= */

.site-footer{
  position: relative;
  padding: 48px 0;
  background: #fff;
  overflow: hidden;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  color: var(--muted);
}

/* Footer inner content stays above background */
.site-footer .container{
  position: relative;
  z-index: 2;
  padding-left: 40px;
  padding-right: 40px;
}

/* Blue background panel (mirrored) */
.site-footer::before{
  content:"";
  position:absolute;
  inset: 0 0 0 auto;
  width: 42%;
  background: var(--primary);
  z-index: 1;
  clip-path: polygon(
    3% 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

/* Subtle curve highlight (mirrored direction) */
.site-footer::after{
  content:"";
  position:absolute;
  right: 35%;
  bottom: -100px;
  width: 340px;
  height: 260px;
  background: rgba(255,255,255,0.06);
  border-radius: 260px 0 0 0;
  transform: skewX(10deg);
  z-index: 1;
}


/* =========================
   Upload CV Page
   ========================= */

.upload-box {
  border: 2px dashed #dce3ec;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  background: #fafcff;
}

.upload-label {
  display: block;
  cursor: pointer;
}

.upload-box input[type="file"] {
  display: none;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.focus-page {
  padding: 48px 16px;
}

.focus-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.flash-wrapper {
  max-width: 720px;
  margin: 24px auto;
}

.flash {
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.flash-success {
  background: rgba(15,79,115,0.10);
  border: 1px solid rgba(15,79,115,0.25);
  color: #0f4f73;
}

.flash-error {
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.25);
  color: #991b1b;
}

.btn-disabled,
.btn:disabled {
  background: #cbd5e1;        /* soft grey */
  border-color: #cbd5e1;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.8;
}

.btn-disabled:hover {
  opacity: 0.8;
}



/* =========================
   Login
   ========================= */


input {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0 16px;
  border-radius: 10px;
  border: 1px solid #dce3ec;
  font-size: 14px;
}

textarea {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0 16px;
  border-radius: 10px;
  border: 1px solid #dce3ec;
  font-size: 14px;
}


/* =========================
   My Work Sheet Page
   ========================= */

.outreach-table input[type="text"],
.outreach-table input[type="date"] {
  width: 100%;
  padding: 0.4rem;
  font-size: 0.9rem;
}

.outreach-table input[type="checkbox"] {
  transform: scale(1.1);
}

.outreach-add-row {
  background: #fafafa;
  border-top: 2px dashed #ddd;
}

.outreach-add-row td {
  vertical-align: middle;
}

.outreach-table th {
  background: #f6f7f9;
}



/* ========================
    Resources
    ======================= */
    
    .resource-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }
    
    .resource-card {
      background: #fff;
      border-radius: 12px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border: 1px solid #eee;
    }
    
    .resource-card.locked {
      opacity: 0.45;
      pointer-events: none;
    }
    
    .resource-card.completed {
      border-color: #2ecc71;
    }
    
    .resource-footer {
      display: flex;
      justify-content: flex-end;
    }
    
    .badge {
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 0.85rem;
    }
    
    .badge.success {
      background: #e8f7ee;
      color: #1f8f55;
    }
    
    .badge.locked {
      background: #f1f1f1;
      color: #777;
    }

    .badge{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 20px 20px;
      border-radius: 999px;
      font-weight: 800;
      text-decoration: none;
      border: 1px solid transparent;
      cursor: pointer;
    }

    .resource-card.completed {
      background: #f6fff9;
      border-color: #2ecc71;
    }
    
    .resource-card.completed .btn {
      background: #6cbf93;
    }


.photo-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
}

.photo-card {
  text-align: center;
}

.photo-card img {
  width: 50%;
  aspect-ratio: 3 / 4;   /* Portrait */
  object-fit: cover;
  object-position: center top; /* prioritise face */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}


.photo-label {
  margin-top: 12px;
  font-weight: 600;
}

.photo-card.bad .photo-label {
  color: #c0392b;
}

.photo-card.good .photo-label {
  color: #27ae60;
}
.photo-compare.grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.url-example {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.bad-url,
.good-url {
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
}

.bad-url {
  background: #fdecea;
  color: #c0392b;
}

.good-url {
  background: #eafaf1;
  color: #27ae60;
}
.steps {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 16px;
  align-items: start;
}

.step-number {
  background: #eef2ff;
  color: #3b5bdb;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  flex: 1;
}

.step-examples {
  margin-top: 8px;
  padding-left: 20px;
}

.step-examples li {
  margin-bottom: 4px;
}

.step-content p {
  margin-top: 0;
}



@media (max-width: 768px) {
  .photo-compare.grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Mobile fallback */
@media (max-width: 768px) {
  .photo-compare {
    grid-template-columns: 1fr;
  }
}
    

/* =========================
   Responsive
   ========================= */

@media (max-width: 860px){
  .site-header::before{ width: 44%; }
  .site-header::after{ left: 38%; }

  .main-nav ul{ gap: 18px; }
}

@media (max-width: 680px){
  .main-nav{ display: none; }   /* later: burger menu */
  .site-header .container{
    padding-left: 24px;
    padding-right: 24px;
  }
}
