/* === Global background and base text === */

body {
  margin: 0;
  min-height: 100vh;
  background: url("/sudu.github.io/images/dna-hero.png") no-repeat center center fixed;
  background-size: cover;
  color: #1f2933; /* dark slate instead of pure black */
}

.page__content {
  color: #1f2933;
}

a {
  color: #1f4e79;
}

a:hover {
  color: #0b3b63;
}

/* Smooth scroll for anchors */
html {
  scroll-behavior: smooth;
}

/* === Layout: sidebar + content === */

#main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  gap: 4rem;
}

.sidebar {
  flex: 0 0 260px;
}

/* Sidebar author card */
.sidebar .card {
  max-width: 260px;
  margin: 0 0 1.5rem;
}

.author__content,
.author__urls-wrapper {
  margin-top: 0.75rem;
}

.page {
  flex: 1;
  padding-top: 1rem;
}

/* Light overlay so header, content, and footer stay readable */
.masthead,
.page,
.page__footer {
  background-color: rgba(255, 255, 255, 0.88);
}

/* === Top navigation === */

.masthead {
  border-bottom: 1px solid #ddd;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

.masthead-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.4rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #111827;
  margin-right: 2rem;
}

.greedy-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.greedy-nav li {
  margin: 0;
}

.greedy-nav a {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #111827;
}

.greedy-nav a:hover {
  color: #1f4e79;
}

/* === Landing hero (home page) === */

.hero-landing {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.hero-overlay {
  max-width: 800px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
}

.hero-name {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-button {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: #f97316;
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #f97316;
}

.hero-button:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #0b1120;
}

.hero-button-outline {
  background: transparent;
  color: #111827;
  border-color: #111827;
}

/* === Main content card (generic) === */

.page__content {
  max-width: 780px;
  padding: 1.5rem 2rem 2.5rem;
  margin: 0 0 3rem;
  font-size: 1rem;
  line-height: 1.7;
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 0.75rem;
}

/* Reusable generic card (bio, intro, etc.) */
.card {
  max-width: 900px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* === Big white section titles (Blog, Projects, Portfolio, CV) === */

.section-hero {
  margin: 1.5rem 0 1.5rem;
}

.section-hero__title {
  font-size: 2.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4af37;
  margin: 0 0 0.5rem;
}

/* Optional filters/links under the title (Topics, etc.) */
.section-hero__filters {
  font-size: 0.9rem;
}

.section-hero__label {
  font-weight: 600;
  margin-right: 0.75rem;
  color: #f9fafb;
}

.section-hero__link {
  margin-right: 0.75rem;
  text-decoration: none;
  color: #e5e7eb;
}

.section-hero__link.is-active {
  font-weight: 700;
  color: #ffffff;
}

.section-hero__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Hide default black page title on pages using custom hero */
.has-section-hero .page__header {
  display: none;
}

/* === Avatar === */

.author__avatar img {
  width: 120px;
  height: 120px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
/* HERO / HEADER IMAGE: keep it responsive, but not too tall */
.page__hero-image,
.page__hero--overlay .page__hero-image {
  width: 100%;
  max-width: 100%;
  max-height: 260px;     /* was fixed height; now a max-height */
  height: auto;          /* keeps natural aspect until it hits max-height */
  object-fit: cover;
  object-position: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 2) Any image inside post/portfolio content should never overflow */
/* CONTENT IMAGES: centered, but not giant */
.page__content img {
  max-width: 700px;      /* choose 600–800px depending on taste */
  width: 100%;           /* responsive downwards on small screens */
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 3) Widen the reading column for all single pages (posts, portfolio, etc.) */
/* Alternative: almost full-width reading view */
.layout--single .page {
  max-width: none;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}


/* Use more space on large screens */
@media (min-width: 1200px) {
  .layout--single .page {
    max-width: 1100px;
  }
}

/* 4) Hide "You May Also Enjoy" so opened card shows only the post */
.layout--single .page__related {
  display: none;
}

/* 5) (Optional) hide previous/next links if you want ONLY the content */
.layout--single .pagination {
  display: none;
}


/* === Uniform card list (Blog, Projects, Portfolio) === */

.kp-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.kp-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.kp-item-image img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.kp-item-body {
  flex: 1;
}

.kp-item-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #1f4e79;
  margin-bottom: 0.15rem;
}

.kp-item-title {
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

.kp-item-title a {
  text-decoration: none;
  color: #111827;
}

.kp-item-title a:hover {
  text-decoration: underline;
}

.kp-item-meta {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 0.3rem;
}

.kp-item-excerpt {
  font-size: 0.9rem;
  color: #374151;
  margin: 0;
}

/* Hover micro‑interaction */
.kp-item {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.kp-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.14);
}

/* Mobile: stack card image above text */
@media (max-width: 640px) {
  .kp-item {
    flex-direction: column;
  }

  .kp-item-image img {
    width: 100%;
    height: auto;
  }
}

/* Hide the default black big title on all archive pages */
.archive .page__title {
  display: none;
}

/* Hide the black layout title only on these three pages */
.year-archive-page .page__title,
.projects-page .page__title,
.portfolio-page .page__title {
  display: none;
}
/* Make hero section titles golden */
.section-hero__title {
  color: #d4af37 !important; /* classic gold */
}
/* Hide "You May Also Enjoy" in the RIGHT SIDEBAR only */
.sidebar .you-may-also-enjoy,
.sidebar h3:contains("You May Also Enjoy"),
.sidebar h2:contains("You May Also Enjoy") {
  display: none !important;
}

/* Safety: if it's wrapped in a generic widget container */
.sidebar .page__related,
.sidebar .related-posts {
  display: none !important;
}

/* Hide Minimal Mistakes / AcademicPages related-posts block globally */
.page__related,
.page__related-title,
.related-posts,
.you-may-also-enjoy {
  display: none !important;
}

/* If it's in tiles or list form */
.tiles--related,
.related {
  display: none !important;
}

