/* --- VARIABLES --- */
:root {
  --bg-color: #ffffff;
  --header-bg: #101010;
  --hl-color: #60D937;      /* bright brand green: bars, borders, buttons */
  --hl-text: #0f6b00;       /* darker green for text and links on white */
  --text-color: #111111;
  --secondary-text-color: #3d3d3d;
  --grey: #d9dcd9;
  --spacing: 20px;
  --sm-spacing: 20px;
}

/* --- ANIMATIONS --- */

@keyframes slideDown {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  100% {
    transform: translateY(1%);
    opacity: 1;
  }
}

/* --- RESETS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* min-height (not height) so the sticky header stays pinned for the whole page */
html,
body {
  min-height: 100%;
  background-color: var(--bg-color);
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-color);
}

/* --- GLOBAL STYLES --- */
::selection {
  background-color: var(--hl-color);
  color: #000;
}

.pageTitle,
.pageDescription {
  width: calc(100% - 32px);
  max-width: 960px;
}

.pageTitle {
  color: var(--text-color);
  font-size: clamp(32px, 5.5vw, 46px);
  line-height: 1.2;
  font-weight: 700;
  border-bottom: 4px solid var(--hl-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.pageDescription {
  color: #1f1f1f;
  font-size: 20px;
  margin-bottom: 8px;
}

.socialIcons .icon {
  color: var(--text-color);
  text-decoration: none;
  font-size: 62px;
  padding: 10px;
  transition: 0.2s ease-in;
}

.socialIcons .icon:hover {
  scale: 1.2;
  color: var(--hl-text);
}

.btn {
  color: #000;
  background-color: var(--hl-color);
  border: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px var(--sm-spacing);
  border-radius: 20px;
  margin-top: 10px;
  cursor: pointer;
}

.btn:hover {
  background-color: #017100;
  color: #f9f9f9;
}

/* --- MOBILE STYLES --- */

/* --- MOBILE STYLES --- */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

/* One centered column, lined up with the centered header and title */
.about .aboutContainer {
  width: 100%;
  max-width: 992px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  border-bottom: 1px solid var(--grey);
}

.about .aboutContainer > .row {
  margin-left: 0;
  margin-right: 0;
}

.contentContainer {
  width: 100%;
  padding: 10px 0;
}

.contentContainer h4 {
  color: var(--hl-text);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 15px;
}

.contentContainer h5 {
  color: var(--text-color);
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 15px;
}

.contentDescription {
  color: var(--secondary-text-color);
  font-size: 18px;
}

.introduction h5 {
  line-height: 1.35;
}

.introduction p {
  margin-bottom: 14px;
}

.infoContainer {
  border-top: 1px solid var(--grey);
  margin-top: var(--sm-spacing);
  padding-top: var(--sm-spacing);
}

.info {
  padding-left: 0;
}

.infoContainer span {
  color: var(--text-color);
  font-weight: 600;
}

.infoContainer p {
  color: var(--secondary-text-color);
  display: inline-block;
  margin-left: 10px;
  margin-bottom: 10px;
}

.infoContainer a {
  color: var(--hl-text);
}

.infoContainer a:hover {
  color: #0a4d00;
}

.buttonContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: var(--sm-spacing);
}

a.btn {
  display: inline-block;
  text-decoration: none;
}

.studyKitLink {
  margin-bottom: var(--sm-spacing);
}

.downloadCV {
  margin-top: var(--sm-spacing);
  margin-bottom: var(--sm-spacing);
}


ul {
  list-style-type: none !important;
}

@media (min-width: 750px) {
  .about .socialIcons .icon {
    display: inline;
  }

  .about .socialIcons::before {
    background-color: var(--grey);
    height: 2px;
    width: var(--sm-spacing);
    display: inline-block;
    margin-bottom: 5px;
    margin-right: 10px;
  }
}

@media (min-width: 300px) {
  .row {
    margin-left: 2px;
  }
}

/* --- HOME PAGE ADDITIONS --- */
.headline {
  color: var(--text-color);
  font-size: clamp(21px, 3.2vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 15px;
}

.ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--sm-spacing);
}

.ctaRow .btn {
  margin-top: 6px;
}

.btn.btnOutline {
  background-color: transparent;
  border: 2px solid var(--hl-color);
  padding: 10px var(--sm-spacing);
}

.btn.btnOutline:hover {
  background-color: #017100;
  border-color: #017100;
  color: #f9f9f9;
}

.contentDescription {
  margin-bottom: 28px;
}

.contentDescription p {
  margin-bottom: 12px;
}

.bulletList li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.bulletList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--hl-color);
}

.skillGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 28px;
}

@media (min-width: 750px) {
  .skillGrid {
    grid-template-columns: 1fr 1fr;
  }
}

.skillLabel {
  color: var(--hl-text);
  font-weight: 600;
}

.smallNote {
  font-size: 15px;
  color: var(--secondary-text-color);
}

.socialIcons {
  padding: 12px 0 20px;
}

/* --- FEATURED SECTION --- */
.featured {
  margin-bottom: 36px;
}

.featureGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 750px) {
  .featureGrid {
    grid-template-columns: 1fr 1fr;
  }
}

.featureCard {
  display: flex;
  flex-direction: column;
  background-color: var(--header-bg);
  color: #e6e6e6;
  border-top: 4px solid var(--hl-color);
  border-radius: 12px;
  padding: 26px 24px 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featureCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.featureCard p {
  font-size: 16px;
  margin-bottom: 14px;
}

.featureKicker {
  color: var(--hl-color);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.featureKicker i {
  margin-right: 6px;
}

.featureTitle {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.latestPosts,
.featureList {
  margin-bottom: 16px;
}

.latestPosts li {
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  line-height: 1.4;
}

.latestPosts li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.latestPosts a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  display: block;
}

.latestPosts a:hover {
  color: var(--hl-color);
}

.postMeta {
  color: #a8a8a8;
  font-size: 13px;
}

.featureList li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-size: 15px;
}

.featureList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--hl-color);
}

/* Push each card's button to the bottom so both line up */
.featureCard .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* --- FULL-WIDTH HOME LAYOUT ---
   Three bands across the full screen: a hero about me,
   a tinted band with the featured content cards, then the details. */
.about.home {
  padding-top: 0;
  align-items: stretch;
}
.home .wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 56px);
  padding-right: clamp(16px, 4vw, 56px);
}
.home .hero {
  padding-top: 40px;
  padding-bottom: 36px;
}
.home .pageTitle {
  width: auto;
  max-width: none;
}
.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.heroText p {
  max-width: 110ch; /* roughly 1050px: wider now that the hero is one column, still readable */
}
.introduction p {
  margin-bottom: 14px;
}
/* Featured band */
.exploreBand {
  background-color: #f2f5f1;
  border-top: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
  padding: 40px 0 48px;
}
.home .featured {
  margin-bottom: 0;
}
.exploreHead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  border-bottom: 4px solid var(--hl-color);
  padding-bottom: 10px;
  margin-bottom: 26px;
}
.exploreHead h2 {
  color: var(--text-color);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}
.exploreHead p {
  color: var(--secondary-text-color);
  font-size: 16px;
}
.exploreBand .featureCard p,
.exploreBand .featureList li {
  font-size: 15px;
}
@media (min-width: 1200px) {
  .exploreBand .featureGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  .exploreBand .featureTitle {
    font-size: 21px;
  }
}

/* Details band */
.home .details {
  padding-top: 40px;
  padding-bottom: 12px;
}
.detailGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 56px;
}
@media (min-width: 1000px) {
  .detailGrid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .detailGrid .skillGrid {
    grid-template-columns: 1fr;
  }
}
.home .socialIcons {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 56px);
}
.home .details h4 {
  color: var(--hl-text);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Size the headline to its column so it stays on one line wherever it can
   (about 31.7px of width per px of font size); below ~20px it wraps, balanced. */
.heroText {
  container-type: inline-size;
}
.home .headline {
  font-size: clamp(20px, 3.05cqi, 28px);
  text-wrap: balance;
}

/* Blog band: the three newest posts */
.blogBand {
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--grey);
}
.exploreHead p a {
  color: var(--hl-text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.exploreHead p a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.postGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 750px) {
  .postGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.postCard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px 22px 18px;
  background-color: #f7f8f7;
  border: 1px solid var(--grey);
  border-left: 4px solid var(--hl-color);
  border-radius: 12px;
  color: var(--text-color);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.postCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--hl-color);
}
.postCard:focus-visible {
  outline: 3px solid var(--hl-color);
  outline-offset: 3px;
}
.postDate {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hl-text);
}
.postTitle {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}
.postSummary {
  font-size: 15px;
  color: var(--secondary-text-color);
  line-height: 1.55;
}
.postTags {
  font-size: 13px;
  color: #6b6f6b;
}
.postGo {
  margin-top: auto;
  padding-top: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hl-text);
}
@media (prefers-reduced-motion: reduce) {
  .postCard {
    transition: none;
  }
  .postCard:hover {
    transform: none;
  }
}

/* --- ABOUT PAGE --- */
.aboutPage .details {
  border-top: 1px solid var(--grey);
}
