/* Collegedunia case study — page-scoped styles. Lives outside style.css on
   purpose: this page uses its own warm orange/tan identity (matching the
   Figma source) instead of the site's teal --accent, and none of these
   tokens or layout rules are meant to leak into any other page. Shares the
   site's header/nav/theme-toggle chrome from style.css (loaded first, on
   every page) — but NOT its --serif/--sans fonts: the Figma source's own
   type system is Roboto (headings + body) with Poppins used for three
   specific spots (checked directly against each text node's `style.
   fontFamily/fontSize/fontWeight` in the Figma file, not eyeballed), so
   this page loads its own fonts rather than inheriting Inter/Domine. */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800&family=Poppins:wght@400;700&display=swap');

:root{
  --cd-orange:#FF7900;
  --cd-orange-deep:#7D4B00;
  --cd-tan-1:#E6C6AC;
  --cd-tan-2:#F0D7BE;
  --cd-tan-3:#DFBEA3;
  --cd-tan-4:#EDD4BC;
  --cd-ink:#202124;
  --cd-ink-soft:#4D5156;
  --cd-line:#E3E3E3;
  --cd-surface:#F7F7F7;
  --cd-green:#40C02B;
  --cd-red:#E4483B;
  --cd-font:'Roboto', sans-serif;
  --cd-font-accent:'Poppins', sans-serif;
}
:root[data-theme="dark"]{
  --cd-ink:#F2F0EC;
  --cd-ink-soft:#B9B6B0;
  --cd-line:#333333;
  --cd-surface:#1C1C1C;
}

.cd-page{background:var(--bg); color:var(--cd-ink); font-family:var(--cd-font);}
.cd-wrap{max-width:1200px; margin:0 auto; padding:0 20px;}
.cd-section{padding:64px 0;}
.cd-section + .cd-section{border-top:1px solid var(--cd-line);}
/* the Figma source's orange bands are a grain/noise texture with a
   translucent orange-brown wash layered on top (fills: an IMAGE at the
   bottom, a SOLID at 41% opacity on top) — not a flat CSS gradient. Two
   stacked background-images reproduce that exactly: a solid-color layer
   (as a same-color-stop linear-gradient, so it behaves like a plain tint)
   on top of the noise photo, listed first since CSS paints earlier
   background-image layers over later ones. */
.cd-noise-orange{
  background-image:
    linear-gradient(rgba(125,75,0,.41), rgba(125,75,0,.41)),
    url('Collegedunia Case Study Images/noise-texture.jpg');
  background-size:cover; background-position:center; background-repeat:no-repeat;
}
.cd-band{color:#fff; padding:56px 0;}
.cd-band h2{font-family:var(--cd-font); font-size:42px; font-weight:700; margin:0; line-height:1.4;}
/* one of the four band titles ("Accessibility") is set in Poppins in the
   source, not Roboto like the other three — an inconsistency in the
   original file itself, reproduced here rather than "corrected" away. */
.cd-band.cd-accent h2{font-family:var(--cd-font-accent);}

/* hero */
.cd-hero{color:#fff; padding:64px 0 48px; text-align:center;}
.cd-hero-logo{display:block; height:76px; width:auto; margin:0 auto 16px;}
.cd-hero-tagline{font-family:var(--cd-font); font-size:20px; font-weight:500; line-height:1.4; margin:0 0 40px; opacity:.95;}
.cd-hero-mockup{max-width:900px; width:100%; height:auto; display:block; margin:0 auto;}

/* project overview / role */
.cd-h2{font-family:var(--cd-font); font-size:24px; font-weight:800; line-height:1.4; margin:0 0 20px;}
.cd-h2.cd-accent{font-family:var(--cd-font-accent); font-weight:700;}
.cd-h3{font-family:var(--cd-font); font-size:20px; font-weight:700; line-height:1; margin:0 0 14px;}
.cd-body{font-family:var(--cd-font); font-size:16px; font-weight:400; line-height:1.5; color:var(--cd-ink-soft); max-width:80ch;}
.cd-body + .cd-body{margin-top:16px;}
.cd-body-full{max-width:none;}
.cd-body.cd-accent{font-family:var(--cd-font-accent);}

/* team */
.cd-team-head{display:flex; align-items:baseline; gap:10px; margin-bottom:24px;}
.cd-team-head .cd-h2{margin:0;}
.cd-team-count{font-size:16px; color:var(--cd-ink-soft);}
.cd-team-row{display:flex; flex-wrap:wrap; gap:28px; margin-bottom:40px;}
.cd-team-member{display:flex; align-items:center; gap:12px;}
.cd-team-member img{width:48px; height:48px; border-radius:50%; object-fit:cover; flex-shrink:0;}
.cd-team-name{font-family:var(--cd-font); font-weight:700; font-size:16px; margin:0;}
.cd-team-role{font-family:var(--cd-font); font-size:14px; font-weight:400; color:var(--cd-ink-soft); margin:0;}

/* scope of work timeline */
.cd-timeline{position:relative; display:flex; flex-wrap:wrap; gap:24px; margin-top:52px;}
/* the source's "Iteration" annotation is a boolean-subtracted rectangle
   bracket (not a smooth curved arrow — traced its two source rects and it
   resolves to a thin rounded-corner frame, mostly open at the bottom) plus
   a separately-styled chip label, positioned above the Prototyping→Design
   Delivery span. Exported the bracket as a pixel-exact image rather than
   re-deriving its boolean-op path by hand, and rebuilt the chip from the
   Figma node's own fill/stroke/radius/font values. Percentages below are
   the bracket's and label's exact x-offsets from the Figma file, expressed
   as fractions of the 1200px timeline row (565/1200, 635/1200, etc.) so
   they track the row's actual rendered width instead of a fixed pixel grid. */
.cd-iteration{
  position:absolute; top:-33px; left:47.083%; width:52.917%; height:55px;
  pointer-events:none;
}
.cd-iteration-bracket{display:block; width:100%; height:100%;}
.cd-iteration-label{
  position:absolute; top:-13px; left:43.78%;
  display:inline-block; white-space:nowrap; text-align:center;
  background:#F3F3F3; border:1px solid #E8E8E8; border-radius:4px;
  color:var(--cd-ink); font-family:var(--cd-font); font-size:12px; font-weight:400;
  padding:4px 12px;
}
@media (max-width:900px){ .cd-iteration{display:none;} }
/* equal-width columns (flex-basis:0 + min-width:0 overrides the default
   content-based minimum) — Figma's 5 stages are a uniform 216px each, but
   with a content-sized basis these grew unevenly (e.g. "Design Delivery"'s
   longer bullet line made that column ~155px vs "Ideation"'s ~102px),
   which threw off the Iteration bracket's percentage-based position since
   that math assumes the same uniform columns Figma uses. */
.cd-stage{flex:1 1 0; min-width:0;}
.cd-pill{
  display:inline-block; background:var(--cd-orange); color:#fff; font-family:var(--cd-font); font-weight:500;
  font-size:16px; padding:10px 22px; border-radius:100px; margin-bottom:16px;
}
.cd-stage ul{margin:0; padding:0; list-style:none;}
.cd-stage li{position:relative; padding-left:16px; margin-bottom:10px; font-family:var(--cd-font); font-size:14px; color:var(--cd-ink-soft); line-height:1.4;}
.cd-stage li::before{content:""; position:absolute; left:0; top:8px; width:4px; height:4px; border-radius:50%; background:var(--cd-ink-soft);}

/* competitor table */
/* Figma has the intro paragraph and the logo grid side by side in one row
   (705px text : 467px logos, roughly 60:40) rather than stacked — the
   paragraph wraps to ~5-6 lines at that width instead of spanning the
   full column. */
.cd-competitors-row{display:flex; align-items:flex-start; gap:28px; margin-top:24px;}
.cd-competitors-row .cd-body{flex:1 1 0; margin:0;}
.cd-competitor-logos{flex:0 0 auto; width:467px; max-width:40%; height:auto; display:block;}
@media (max-width:760px){
  .cd-competitors-row{flex-direction:column;}
  .cd-competitor-logos{width:100%; max-width:420px;}
}
.cd-table{width:100%; border-collapse:collapse; margin-top:28px; font-family:var(--cd-font); font-size:18px;}
.cd-table th{text-align:left; font-weight:600; padding:10px 12px; border-bottom:2px solid var(--cd-line); color:var(--cd-ink);}
.cd-table td{padding:12px; border-bottom:1px solid var(--cd-line); color:var(--cd-ink-soft); vertical-align:top; font-weight:400;}
.cd-table tr th:first-child, .cd-table tr td:first-child{font-weight:600; color:var(--cd-ink); font-size:16px;}
.cd-table .cd-section-row td{background:var(--cd-surface); font-weight:600; color:var(--cd-ink); padding:10px 12px; font-size:16px;}
.cd-status{display:inline-flex; align-items:center; gap:6px; white-space:nowrap;}
.cd-status-dot{width:16px; height:16px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; font-size:11px; color:#fff; font-weight:700;}
.cd-status-dot.is-good{background:var(--cd-green);}
.cd-status-dot.is-warn{background:var(--cd-orange);}
.cd-status-dot.is-bad{background:var(--cd-red);}
.cd-status-note{display:block; font-size:12px; color:var(--cd-ink-soft); margin-top:2px;}

/* heuristic evaluation / heatmap / ideation screenshot blocks */
.cd-shot{max-width:100%; height:auto; display:block; border-radius:8px; margin-top:20px;}
.cd-shot-wide{max-width:100%; height:auto; display:block; margin-top:24px;}

/* NPS feedback */
.cd-nps-cols{display:grid; grid-template-columns:1fr 1fr; gap:0 48px; margin-top:24px;}
.cd-nps-cols ul{margin:0; padding:0; list-style:none;}
.cd-nps-cols li{position:relative; padding-left:18px; margin-bottom:18px; font-family:var(--cd-font); font-size:16px; font-weight:400; line-height:1.5; color:var(--cd-ink-soft);}
.cd-nps-cols li::before{content:"•"; position:absolute; left:0; color:var(--cd-ink-soft);}
.cd-clusters{background:var(--cd-surface); border-radius:12px; padding:32px; margin-top:24px;}
.cd-clusters h4{font-family:var(--cd-font); font-size:18px; font-weight:600; margin:0 0 20px;}
.cd-cluster-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.cd-cluster-card{border-radius:8px; padding:22px;}
.cd-cluster-card h5{font-family:var(--cd-font); font-weight:700; font-size:16px; margin:0 0 14px;}
.cd-cluster-card ul{margin:0; padding:0; list-style:none;}
.cd-cluster-card li{font-family:var(--cd-font); font-size:14px; font-weight:400; margin-bottom:10px; line-height:1.4;}
.cd-cluster-card.is-design{background:#CFE8F7;}
.cd-cluster-card.is-readability{background:#CDEFD9;}
.cd-cluster-card.is-accessibility{background:#FBE0B5;}
:root[data-theme="dark"] .cd-cluster-card{color:#1A1A1A;}

/* visual designs gallery */
.cd-gallery-note{font-family:var(--cd-font-accent); font-size:24px; font-weight:700; margin:0 0 24px;}

/* accessibility colorblind row */
.cd-cb-row{display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-top:24px;}
.cd-cb-item{text-align:center;}
.cd-cb-item img{width:100%; height:auto; border-radius:8px; border:1px solid var(--cd-line); display:block; margin-bottom:10px;}
.cd-cb-item span{font-family:var(--cd-font); font-size:16px; font-weight:400; color:var(--cd-ink-soft);}

/* closing CTA */
.cd-closing{color:#fff; text-align:center; padding:72px 0;}
.cd-closing p{font-family:var(--cd-font); font-size:16px; font-weight:600; margin:0 0 24px;}
.cd-closing img{width:160px; height:160px; border-radius:10px; margin-bottom:40px; background:#fff; padding:8px;}
.cd-closing h3{font-family:var(--cd-font); font-size:42px; font-weight:700; margin:0 0 12px; line-height:1.4;}
.cd-closing .cd-body{font-size:16px; font-weight:500; color:#fff; opacity:.9; margin:0 auto;}

@media (max-width:900px){
  .cd-cluster-grid{grid-template-columns:1fr;}
  .cd-nps-cols{grid-template-columns:1fr;}
  .cd-cb-row{grid-template-columns:repeat(2,1fr);}
  .cd-timeline{flex-direction:column;}
}
@media (max-width:600px){
  .cd-table{font-size:14px;}
  .cd-table th, .cd-table td{padding:8px 6px;}
  .cd-hero-logo{height:56px;}
  .cd-band h2, .cd-closing h3{font-size:28px;}
}
