/* Custom Stylesheet */
/**
 * Use this file to override Materialize files so you can update
 * the core Materialize files in the future
 *
 * Made By MaterializeCSS.com
 */

.icon-block {
  padding: 0 15px;
}
.icon-block .material-icons {
	font-size: inherit;
}

.projCard{
	background-color: rgb(77, 208, 225,0.2);
}

.newsHeader {
	color: #ef5350;
	font-weight: 100;
	text-transform: uppercase;
}

.schoolHeader {
	background-color: #ef5350;
	color: white;
	font-weight: 400;
	text-transform: uppercase;
	padding-left: 5px;
}

.award {
	color: gray;
	font-size: smaller;
}

h4 {
	font-weight: 900;
}

.projImg {
  height: 70%;
  max-height: 70%;
}

.projContent {
	max-height:30%;
	overflow-y: scroll;
	color:#424242;
	font-weight: 100;
}

.projBtn {
	bottom:5px;
}

#purchaseBtn {
	bottom:5px;
	right:75px;
}

#projTitle {
	background-color: #c51162;
	padding:10px;
	margin-bottom: 0px;
	font-weight: 500;
	text-transform: uppercase;
}

img{
height: 100%;
width: 100%;
object-fit: contain;
}


/* Keep all links readable in dark mode */
body.dark a:not(.company-link),
body.dark a:visited:not(.company-link),
body.dark a:hover:not(.company-link),
body.dark a:focus:not(.company-link) {
  color: #fff !important;
  text-decoration: underline;
}

/* Neutralize warm color utilities that can tank contrast on black */
body.dark .orange-text,
body.dark .deep-orange-text,
body.dark .amber-text,
body.dark .yellow-text,
body.dark .orange-text.text-darken-*, 
body.dark .orange-text.text-lighten-* {
  color: #fff !important;
}

/* Also neutralize any other forced text color utilities inside dark mode */
body.dark .black-text,
body.dark .grey-text,
body.dark .purple-text,
body.dark [class*=" text-darken-"],
body.dark [class*=" text-lighten-"] {
  color: #fff !important;
}

/* Nav active state: keep it white on purple */
body.dark nav .active > a,
body.dark nav .active > a:focus,
body.dark nav .active > a:hover {
  color: #fff !important;
  background-color: transparent !important;
}

/* Kill the Materialize starter orange header color */
body.dark .header,
body.dark .newsHeader {
  color: #fff !important;  /* or pick an accessible accent */
}


/* 1) Black page backdrop only */
body.dark {
  background: #000 !important;
}

/* 2) Keep cards/collections/panels stock Materialize (white bg, dark text) */
body.dark .card,
body.dark .card-panel,
body.dark .collection {
  background: #fff !important;
  color: rgba(0,0,0,0.87) !important;
}

/* Card internals stay dark, not inverted */
body.dark .card .card-title,
body.dark .card .card-content,
body.dark .card .card-action,
body.dark .collection .collection-item,
body.dark .secondary-content,
body.dark .material-icons {
  color: rgba(0,0,0,0.87) !important;
}

/* Card action divider back to light theme look */
body.dark .card .card-action {
  background: #fff !important;
  border-top: 1px solid #e0e0e0 !important;
}

/* Chips/badges inside cards: light look */
body.dark .chip {
  background: #f5f5f5 !important;
  color: #424242 !important;
  border: 1px solid #e0e0e0 !important;
}
body.dark .badge {
  background: #e0e0e0 !important;
  color: #424242 !important;
}

/* Links INSIDE cards: use Materialize default link color, not white */
body.dark .card a:not(.company-link):not(.project-link),
body.dark .card-panel a:not(.company-link):not(.project-link),
body.dark .collection a:not(.table-link) {
  color: #039be5 !important; /* Materialize default */
  text-decoration: none !important;
}

/* Footer/nav still readable on dark page (if you're using purple) */
body.dark .page-footer,
body.dark .page-footer a {
  color: #fff !important;
}

/* --- FIX: keep icons dark only INSIDE light cards --- */
body.dark .card .material-icons,
body.dark .card-panel .material-icons,
body.dark .collection .material-icons {
  color: rgba(0,0,0,0.87) !important; /* matches card text */
}

/* --- FIX: icons everywhere else on dark bg should be white --- */
body.dark .icon-block .material-icons,
body.dark nav .material-icons,
body.dark .sidenav .material-icons,
body.dark #index-banner .material-icons,
body.dark footer .material-icons {
  color: #fff !important;
}

/* Optional: slightly softer icon color inside cards if you prefer */
body.dark .card .secondary-content,
body.dark .card-panel .secondary-content {
  color: rgba(0,0,0,0.6) !important;
}

.collection .avatar i.material-icons.circle {
  background: #4a148c;      /* purple */
  color: #fff !important;   /* make icon white */
}

/* ===== Accessible, compact heading scale (Materialize is huge by default) ===== */
:root {
  --h1: 2.0rem;   /* ~32px */
  --h2: 1.75rem;  /* ~28px */
  --h3: 1.5rem;   /* ~24px */
  --h4: 1.25rem;  /* ~20px */
  --h5: 1.125rem; /* ~18px */
  --h6: 1.0rem;   /* ~16px */
  --h-lh: 1.25;   /* compact, readable line-height */
}

/* Apply smaller sizes + tidy margins */
h1 { font-size: var(--h1); line-height: var(--h-lh); margin: 0.6em 0 0.3em; }
h2 { font-size: var(--h2); line-height: var(--h-lh); margin: 0.6em 0 0.3em; }
h3 { font-size: var(--h3); line-height: var(--h-lh); margin: 0.6em 0 0.3em; }
h4 { font-size: var(--h4); line-height: var(--h-lh); margin: 0.6em 0 0.3em; }
h5 { font-size: var(--h5); line-height: var(--h-lh); margin: 0.6em 0 0.2em; }
h6 { font-size: var(--h6); line-height: var(--h-lh); margin: 0.6em 0 0.2em; }

/* Keep your existing boldness but prevent it from looking oversized */
h4 { font-weight: 900; } /* you already had this; leaving it here */

/* Optional: navbar brand stays legible on smaller scale */
.brand-logo h5 { font-size: 1.25rem; line-height: 1.2; margin: 0; }

/* Optional: section label style you use (e.g., “News”) kept compact */
.newsHeader { font-size: 0.95rem; letter-spacing: 0.04em; }

/* ---- Card layout: reliable heights + scrolling ---- */
.card.medium {
  display: flex;             /* stack image + content */
  flex-direction: column;
}

/* Image region: fixed share of the card height */
.card.medium .card-image.projImg {
  position: relative;
  flex: 0 0 60%;             /* ~60% image, ~40% content */
  min-height: 180px;         /* avoids tiny images on small screens */
  overflow: visible;         /* so the FAB is never clipped */
}

/* Make the image actually fill the region */
.card.medium .card-image.projImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* use 'contain' if you prefer no crop */
}

/* Title strip (class, not ID) */
.card .card-image .projTitle {
  background: #4a148c;
  color: #fff !important;
  padding: 10px;
  margin-bottom: 0;
  font-weight: 500;
  text-transform: uppercase;
  display: block;            /* full-width bar */
}

/* Content region: grows and scrolls */
.card.medium .card-content.projContent {
  flex: 1 1 40%;
  min-height: 0;             /* critical so flex child can shrink */
  overflow-y: auto;          /* restores scrolling */
  color: #424242;
  font-weight: 100;
  max-height: none;          /* override old % cap */
}

/* FAB: inside image, not cut off */
.card .card-image .projBtn {
  position: absolute;        /* ensure anchoring to image */
  right: 16px;
  bottom: 16px;              /* positive so it sits inside the image */
}

/* Keep the FAB icon white */
.card .card-image .projBtn .material-icons {
  color: #fff !important;
}

/* Sub-nav / tab strip color */
.nav-extended .nav-content {
  background-color: #212121 !important;  /* dark gray to contrast purple */
  border-top: 1px solid rgba(255,255,255,0.15); /* subtle separation line */
}

/* Tabs inherit white text & indicator */
.nav-extended .tabs .tab a {
  color: #fff !important;
}
.nav-extended .tabs .tab a:hover,
.nav-extended .tabs .tab a.active {
  background-color: rgba(255,255,255,0.1) !important;
}

/* Active tab underline indicator — lighter purple accent */
.nav-extended .tabs .indicator {
  background-color: #7e57c2 !important; /* lighter purple */
}

/* ---- FORCE COMPANY LINKS - black text with purple company names ---- */
body.dark .card a.company-link,
body.dark .card a.company-link:link,
body.dark .card a.company-link:visited,
body.dark .card a.company-link:hover,
body.dark .card a.company-link:focus,
body.dark .card-panel a.company-link,
body.dark .collection a.company-link,
body.dark .collection a.company-link:link,
body.dark .collection a.company-link:visited,
body.dark .collection a.company-link:hover,
body.dark .collection a.company-link:focus,
body.dark .card a.company-link.white-text,
body.dark .card a.company-link[class*=" text-lighten-"],
body.dark .card a.company-link[class*=" text-darken-"] {
  color: rgba(0,0,0,0.87) !important;   /* black text */
  text-decoration: none !important;
  font-weight: 400 !important;
}

/* Company name inside link - purple and bold */
body.dark .card a.company-link strong,
body.dark .card-panel a.company-link strong,
body.dark .collection a.company-link strong {
  color: #4a148c !important;   /* purple */
  font-weight: 700 !important;
}

/* Keep underline on hover/focus for accessibility */
body.dark .card a.company-link:hover,
body.dark .card a.company-link:focus,
body.dark .card-panel a.company-link:hover,
body.dark .card-panel a.company-link:focus,
body.dark .collection a.company-link:hover,
body.dark .collection a.company-link:focus {
  text-decoration: underline !important;
}

/* News article links - base link styling */
body.dark .collection a.table-link,
body.dark .collection a.table-link:link,
body.dark .collection a.table-link:visited,
body.dark .collection a.table-link:hover,
body.dark .collection a.table-link:focus {
  color: rgba(0,0,0,0.87) !important;
  text-decoration: none !important;
  font-weight: 400 !important;
}

/* News article titles - bold and purple */
body.dark .collection a.table-link strong {
  color: #4a148c !important;
  font-weight: 700 !important;
}

/* Project links - black text with purple project names */
body.dark .card-action a.project-link,
body.dark .card-action a.project-link:link,
body.dark .card-action a.project-link:visited,
body.dark .card-action a.project-link:hover,
body.dark .card-action a.project-link:focus {
  color: rgba(0,0,0,0.87) !important;
  text-decoration: none !important;
  font-weight: 400 !important;
}

/* Project name inside link - purple and bold */
body.dark .card-action a.project-link strong {
  color: #4a148c !important;
  font-weight: 700 !important;
}

/* Keep underline on hover/focus */
body.dark .card-action a.project-link:hover,
body.dark .card-action a.project-link:focus {
  text-decoration: underline !important;
}

/* Google Scholar and CV icon block text */
body.dark .icon-block .newsHeader {
  color: #fff !important;
}

/* Google Scholar and CV icon block links - white and bold on dark background */
body.dark .icon-block .newsHeader strong {
  color: #fff !important;
  font-weight: 700 !important;
}

/* Screen reader only class - visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Project links in card actions - stay purple, never white */
body.dark .card-action a.project-link,
body.dark .card-action a.project-link:link,
body.dark .card-action a.project-link:visited,
body.dark .card-action a.project-link:hover,
body.dark .card-action a.project-link:focus {
  color: #4a148c !important;
  text-decoration: none !important;
}

body.dark .card-action a.project-link:hover,
body.dark .card-action a.project-link:focus {
  text-decoration: underline !important;
}


