/* =========================
   BASE
========================= */
body {
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.5;
}

/* =========================
   HEADER (COLLEGE STYLE)
========================= */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  height: 42px;
  cursor: pointer;
}

.input-pill {
  border-radius: 4px;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  width: 100%;
  background: #f9fafb;
} 

/* =========================
   SEARCH DROPDOWN
========================= */

.search-wrapper {
  position: relative;
  width: 50%;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  z-index: 999;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

/* items */
.search-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}

.search-item:hover {
  background: #f9fafb;
}

/* labels */
.search-item small {
  display: block;
  font-size: 12px;
  color: #6b7280;
} 

.search-dropdown::-webkit-scrollbar {
  width: 6px;
}
.search-dropdown::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.note {
  font-weight: 600;
  color: #065f46;
} 

/* =========================
   HERO (SPLIT LAYOUT)
========================= */
.hero {
  min-height: 40vh;
  max-height: 300px;
  display: block; /* remove grid from hero */
}

/* keep split layout inside container */
.hero .grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

/* move image to container instead */
.hero .grid-container::after {
  content: "";
  background: url('../images/durhamCollege.jpeg') center/cover no-repeat;
}

/* overlay stays same but full height */
.hero-overlay {
  height: 100%;
  background: #006a4e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 60px;
  color: white;
}

/* HERO ACTIONS */
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}



/* SECONDARY BUTTON */
.button.secondary {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.button.secondary:hover {
  background: #ffffff;
  color: #065f46;
}

.hero-title {
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  font-size: 52px;
}

.hero-sub {
  font-size: 18px;
  margin-bottom: 24px;
}

/* SEARCH */
.hero-search input {
  background: #ffffff;
  border: none;
  padding: 14px 18px;
  border-radius: 3px;
  width: 300px;
}

/* RIGHT IMAGE */
.hero::after {
  content: "";
  background: url('../images/durhamCollege.jpeg') center/cover no-repeat;
}

@media (max-width: 768px) {
  .hero .grid-container {
    grid-template-columns: 1fr;
  }

  .hero{
  min-height: 50vh;
}
}



/* =========================
   BREADCRUMB
========================= */
#breadcrumbs {
  font-size: 14px;
  color: #6b7280;
  margin: 20px 0;
}

/* =========================
   TITLES
========================= */
.pageTitle {
  font-size: 28px;
  font-weight: 800;
  margin-top: 20px;
  color: #065f46;
}

/* =========================
   DIVIDER
========================= */
.divider {
  height: 3px;
  width: 60px;
  background: #f97316;
  margin: 10px 0 30px;
}

/* =========================
   CARDS (COLLEGE STYLE)
========================= */
.box {
  cursor: pointer;
  background: #ffffff;
  border-radius: 4px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
  position: relative;
}

.box h3,
.box h4 {
  font-weight: 700;
}

.box p {
  color: #6b7280;
}

/* hover effect like DC site */
.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-left: 5px solid #f97316;
}

/* GREEN TONES */
.green {
  background: #e6f4ea;
}
.green-light {
  background: #edfdf5;
}
.green-dark {
  background: #d1fae5;
}

/* =========================
   GRID SECTIONS (LIKE PROMO BLOCKS)
========================= */
.grid-x.grid-margin-y {
  margin-top: 10px;
}

/* =========================
   PDF LAYOUT
========================= */
.pdf-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.pdfFrame {
  width: 100%;
  height: 75vh;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

/* SIDE PANEL */
.pdf-side {
  background: #f9fafb;
  padding: 20px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.pdf-side h4 {
  font-weight: 700;
  margin-bottom: 10px;
}

/* TAGS */
.tag {
  display: inline-block;
  margin: 5px 5px 5px 0;
  padding: 6px 10px;
  background: #e6f4ea;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

/* =========================
   BACK BUTTON
========================= */
.back {
  display: inline-block;
  margin-top: 20px;
  color: #065f46;
  font-weight: 700;
  cursor: pointer;
}

/* =========================
   CTA BUTTON STYLE (ADD THIS LOOK)
========================= */
.button,
button {
  background: #f97316;
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
}

.button:hover {
  background: #ea580c;
}

/* =========================
   FOOTER
========================= */
footer {
  margin-top: 50px;
  padding: 25px;
  text-align: center;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
} 

.category-item .box {
  height: 100%;
}

/* subtle color variations */
.box:nth-child(3n+1) {
  background: #e6f4ea;
}

.box:nth-child(3n+2) {
  background: #edfdf5;
}

.box:nth-child(3n+3) {
  background: #d1fae5;
} 

.box::after {
  content: "→";
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-weight: bold;
  color: #f97316;
} 

/* =========================
   TOPICS (MATCH CATEGORY CARDS)
========================= */
.topic-item {
  cursor: pointer;
  background: #ffffff;
  border-radius: 4px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
  position: relative;
  font-weight: 700;
}

/* hover effect */
.topic-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-left: 5px solid #f97316;
}

/* arrow like cards */
.topic-item::after {
  content: "→";
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-weight: bold;
  color: #f97316;
}

