/* Make sizing predictable everywhere */
*,
*::before,
*::after {
  box-sizing: border-box;
}
p {
    
    
    text-wrap: wrap;
    width: 70%;
    padding-left: 0%;
    color: #000000;

}

a{
    color: #656565;
    text-decoration: underline;}

a:hover{
    text-decoration: underline;
    color: #ffbb00;
}

body {
  font-family: 'Ronzino', "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
  font-synthesis-weight: none;
  font-synthesis-style: none;
}

/* Navbar container — no border */
.navbar {
  display: flex;
  align-items: center;
  padding: 12px 16px; /* keep some breathing room */
  width: 100%;
}

/* Left side */
.brand p { margin: 0; }

/* Right side */
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.navbar a {
  color: #000;
  font-size: 15px;
  padding: 0 .5rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Hover underline animation (unchanged) */
.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #ffb703;
  transition: width 0.3s ease-in-out;
}
.navbar a:hover::after { width: 100%; }
.navbar a:hover { color: #ffb703; }

/* Active page: persistent light grey underline (text stays black) */
.navbar a.active {
  color: inherit;
}
.navbar a.active::after {
  width: 100%;
  background-color: #c9c9c9; /* light grey */
}

/* Allow active link to change on hover too */
.navbar a.active:hover {
  color: #ffb703; /* orange text on hover */
}
.navbar a.active:hover::after {
  width: 100%;            /* stay full width */
  background-color: #ffb703; /* orange underline on hover */
}
/* Work page heading spacing */
.work h1 {
  margin: 12px 0 16px;
}

/* Filter buttons: rounded, minimal, using your accent color on active/hover */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
}

.filter-btn {
  appearance: none;
  border: 1px solid #d9d9d9;
  background: #f7f7f7;
  color: #000;
  padding: 6px 12px;
  border-radius: 9999px;
  font: inherit;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.filter-btn:hover {
  background: #ffe9c2;        /* subtle warm hover to match #ffb703 */
  border-color: #ffb703;
}

.filter-btn.is-active {
  background: #ffb703;
  border-color: #ffb703;
  color: #000;
}

.filter-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,183,3,.35);
}

/* Grid: 3 columns on large, 2 on medium, 1 on small */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards: clean, light borders, minimal lift on hover */
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none; /* make the whole card clickable */
  color: inherit;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-color: #ffb703;
}

/* Thumbnail keeps consistent height */
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  overflow: hidden;
}

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

/* Card text blocks */
.card-body {
  padding: 12px;
}

.card-title {
  margin: 0 0 6px;
  font-weight: 700; /* uses your Ronzino Bold face */
  font-size: 1rem;
}

.card-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 6px;
}

.card-desc {
  margin: 0;
  color: #222;
  font-size: 0.95rem;
  line-height: 1.35;
}


/* Align details blocks like your paragraphs (same width and left padding) */
main details {
  /* padding-left: 5%; */
  width: 80%;
  margin: 0.8em 0; /* similar vertical spacing to your h2 */
}

/* Style the summary to look like a heading (instead of putting an h2 inside) */
main details > summary {
cursor: pointer;
font-size: 1.5rem;    /* adjust to match your h2 if needed */
font-weight: 700;
line-height: 1.2;
margin: 0 0 0.4em;    /* bottom spacing like your h2 */
color: black; /* <-- DEFAULT STATE: Grey text color */
transition: color 0.2s ease; /* Smooth transition for the text color change */
}

/* Style when hovered over (Yellow Text) */
main details > summary:hover {
color: #ffbb00; /* <-- HOVER STATE: Yellow text color */
}



/* Optional: hide the default disclosure marker for a cleaner look */
main details > summary::-webkit-details-marker {
  display: none;
}

/* Keep content inside details aligned */
main details > p {
  margin: 0 0 0.5rem;
  padding: 0;
}

/* Code block inside details: match container width and tidy spacing */
main details pre {
  margin: 0;
  padding: 0.5rem;
  background: #f6f8fa;  /* optional */
  border-radius: 4px;   /* optional */
  overflow-x: auto;
  width: 100%;
}