/* Layout additions for the Experience & Education section. */

.section-resume .resume-list.card-fill {
  height: 100%;
  margin-top: 0 !important;
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.job-head h5,
.job-head .badge {
  margin: 0 !important;
}

.list-2col {
  columns: 2;
  column-gap: 2.5rem;
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.list-2col li,
.list-1col li {
  break-inside: avoid;
  margin-bottom: 0.55rem;
}

.list-1col {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.key-areas-label {
  display: block;
  margin: 1.25rem 0 0.6rem;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #42a5f5;
}

.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
}

.lang-row + .lang-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.skill-group-title {
  font-size: 15px;
  margin-bottom: 0.9rem !important;
}

.skill-group-icon {
  color: #42a5f5;
  width: 1.4em;
  margin-right: 4px;
  text-align: center;
}

.skill-group .skill-tag {
  padding: 5px 12px;
  font-size: 13px;
}

@media (max-width: 991px) {
  .list-2col {
    columns: 1;
  }
}

/* Home "About Me": lead paragraph at full size, the rest slightly smaller. */
.about-desc-content p.about-more {
  font-size: 17px;
  line-height: 1.7;
}

/* Home stats: equal-height cards with even spacing between rows. */
.about-stats-row > [class*="col-"] {
  display: flex;
  margin-bottom: 24px;
}

.about-stats-row .about-stat-card {
  width: 100%;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-stats-row .about-stat-label {
  margin-bottom: 0;
  line-height: 1.6;
}

.about-stats-row .about-stat-value {
  white-space: nowrap;
}

/* Recommended reading cards */
.section-reading {
  background: #151515 !important;
}

.reading-intro {
  color: #aaa;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.reading-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.reading-tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #90caf9;
  background: rgba(66, 165, 245, 0.08);
  border: 1px solid rgba(66, 165, 245, 0.25);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.reading-tab:hover {
  background: rgba(66, 165, 245, 0.18);
  border-color: rgba(66, 165, 245, 0.5);
}

.reading-tab.is-active {
  color: #fff;
  background: #1e88e5;
  border-color: #1e88e5;
}

.reading-tab:focus-visible {
  outline: 2px solid #90caf9;
  outline-offset: 2px;
}

.reading-card {
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.reading-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(66, 165, 245, 0.3);
  color: inherit;
}

.reading-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.reading-card__icon {
  font-size: 32px;
  color: #42a5f5;
}

.reading-card__title {
  color: #fff;
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.reading-card__note {
  color: #aaa;
  font-size: 15px;
  flex-grow: 1;
}

.reading-card__meta {
  color: #888;
  font-size: 14px;
  margin-bottom: 0.75rem;
}

.reading-card__meta strong {
  color: #ddd;
}

.reading-card__cta {
  color: #42a5f5;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Preloader: Lottie animation (public/animations/loading.json) */
.preloader-lottie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.preloader-lottie__anim {
  width: 160px;
  height: 160px;
}

.preloader-lottie__text {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #90caf9;
  opacity: 0.85;
  animation: preloader-pulse 1.6s ease-in-out infinite;
}

@keyframes preloader-pulse {
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-lottie__text {
    animation: none;
  }
}

/* Home: blog overview */
.section-blog-overview {
  background: #1a1a1a !important;
}

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.blog-topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #90caf9 !important;
  background: rgba(66, 165, 245, 0.08);
  border: 1px solid rgba(66, 165, 245, 0.25);
  text-decoration: none !important;
  transition: background 0.3s, border-color 0.3s;
}

.blog-topic:hover {
  background: rgba(66, 165, 245, 0.18);
  border-color: rgba(66, 165, 245, 0.5);
}

.blog-topic__count {
  font-size: 12px;
  color: #fff;
  background: rgba(66, 165, 245, 0.35);
  border-radius: 999px;
  padding: 1px 8px;
}

.blog-overview-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.blog-overview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(66, 165, 245, 0.3);
  color: inherit;
}

.blog-overview-card__img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.blog-overview-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.blog-overview-card__cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #42a5f5;
  margin-bottom: 8px;
}

.blog-overview-card__title {
  color: #fff;
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-overview-card__excerpt {
  color: #aaa;
  font-size: 15px;
  flex-grow: 1;
}

.blog-overview-card__meta {
  color: #888;
  font-size: 13px;
  margin: 0;
}

/* Copy-to-clipboard handle (Discord) */
.copy-text {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  word-break: break-all;
}

.contact-details--panel .copy-text {
  color: #42a5f5;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
}

.copy-text__hint {
  color: #3fb950;
  font-size: 0.85em;
  white-space: nowrap;
}
