/* Reset and page backgrounds */
.page1 {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: linear-gradient(to bottom, #0369cf, #E2EFF1);
}

.page2 {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: #000000;
}

/* Content container */
.content {
  min-height: 50vh;
  box-sizing: border-box;
}

/* Social icons */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  fill: black;
  gap: 4%;
}

.social-icon {
  pointer-events: bounding-box;
  width: 40px;
  height: 40px;
  fill: black;
  transition: filter 0.2s ease, fill 0.2s ease;

}

/* .flicker .social-icon {
  animation: flickerAnimation 0.2s linear infinite;
}

.inverted .social-icon {
  fill: white;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

@keyframes flickerAnimation {
  0%   { opacity: 1; }
  20%  { opacity: 0.2; }
  50%  { opacity: 0.6; }
  70%  { opacity: 0.1; }
  100% { opacity: 1; }
} */

/* Typography */
h1 {
  font-family: Catamaran;
  text-align: center;
  margin-left: 3%;
  margin-top: 0;
  font-size: 20vmin;
  color: #E2EFF1;
  margin-bottom: 5px;
}

h2 {
  text-align: center;
  font-family: Catamaran;
  font-size: 3vmin;
  color: #bccdcd;
  margin-top: 5px;
}

h2 a {
  text-decoration: underline;
}

/* Link styles */
a {
  text-decoration: wavy;
  color: #d4d6d6;
}

.page1 a:visited {
  text-decoration: none;
  color: #d4d6d6;
}

.page1 a:hover, .page1 a:active {
  text-decoration: none;
  color: black;
}

.page2 a:visited {
  text-decoration: none;
  color: #d4d6d6;
}

.page2 a:hover {
  text-decoration: none;
  color: rgb(97, 97, 97);
}

.page2 a:hover, .page2 a:active {
  text-decoration: underline;
  color: rgb(167, 245, 255);
}

/* Project card */
.box { 
  display: block;
  width: 100%;
  margin: 0;           /* keep card spacing in one place (gap) */
}

.box img {
  width: 100%;
  height: 250px;
  margin: 0;
  padding: 0;
  object-fit: cover;
  display: block;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

.project-card {
  /* 397px image/panel + 10px left padding originally ≈ 407.
     We'll normalize to a clean 400px card for neat wrapping. */
  flex: 0 0 400px;     /* fixed column width */
  display: flex;
  flex-direction: column;
  margin: 0;           /* card spacing comes from the container gap */
  background: transparent;
  overflow: hidden;
}

/* Attached panel */
.attached-panel {
  width: 100%;
  margin: 0;
  background: rgba(48, 48, 48, 0.92);
}

.attached-title {
  text-align: left;
  margin: 10px 14px 4px;
  font-family: Catamaran, system-ui, sans-serif;
  font-size: 18px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attached-summary {
  margin: 10px 14px 8px;
  text-align: left;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  color: #b3b3b3;
  opacity: 0.85;
}

/* Inline Read More link */
.inline-read-more {
  appearance: none;
  border: none;
  background: none;
  color: #b3b3b3;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin: 0px 8px 8px;
  text-decoration: underline;
}
.inline-read-more-a {
  appearance: none;
  border: none;
  background: none;
  color: #b3b3b3;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin: 0px 8px 8px;
  text-decoration: underline;
}

/* Collapsible content */
.attached-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
  will-change: max-height;
}

.attached-content p,
.attached-content ul {
  margin: 10px 14px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  color: #ececec;
  line-height: 1.6;
}

.attached-content ul {
  padding-left: 28px;
}

.attached-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 6px 0 8px;
}

/* Read Less button */
.attached-content .read-less {
  margin: 16px 0 8px 14px;
  align-items: left;
  display: block;
  background: none;
  color: #b3b3b3;
  border: none;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.attached-content a {
  text-decoration: underline;
}

.attached-content .read-less:hover {
  color: #636363;
}

/* Bottom image */
.bottom-image-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.bottom-image-container img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.blogTitle {
  font-size: 15vmin;
}

.homeButton {
  display: block;
  text-align: center;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  margin: 20px auto;
}

.table-of-contents {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.blogSubtitle {
  display: block;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 18px;
  margin: 15px 0;
}

.blog-post {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  scroll-margin-top: 20px;
}

.blog-post h2 {
  font-family: Catamaran, system-ui, sans-serif;
  font-size: 6vmin;
  color: #ffffff;
  text-align: left;
}

.blog-date {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  color: #b3b3b3;
  margin-bottom: 20px;
}

.blog-content p {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  color: #d4d6d6;
  line-height: 1.8;
  margin-bottom: 15px;
}

.blog-content a {
  text-decoration: underline;
}