/* Using the Inter font (google) */
/* Apply to the entire document */
:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1; /* Optional: Enables OpenType features for better rendering in some browsers */
  }
  
  /* For variable font support (recommended for modern browsers) */
  @supports (font-variation-settings: normal) {
    :root {
      font-family: InterVariable, sans-serif;
    }
  }

body { 
  margin-bottom: 2cm;
  padding: 0;
  background: #f5f1e8; /* warm off-white/beige background */
  color: #1a1a1a; /* dark text for readability */
}  

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

/* Navigation Bar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}

.nav-logo:hover {
  color: #0066cc;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #0066cc;
  background: rgba(0, 102, 204, 0.05);
}

.nav-link.active {
  color: #0066cc;
  background: rgba(0, 102, 204, 0.1);
}

/* Mobile navigation */
@media (max-width: 850px) {
  .nav-container {
    padding: 1rem;
  }
  
  .nav-logo {
    font-size: 1.1rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Code for the title/summary on the home-page */
.top-wrapper{ 
  display: grid;
  grid-template-columns: 1fr 1fr; /* two columns */ 
  gap: 2rem;
  max-width: 1100px; /* keep content from stretching too wide */
  margin: 2rem auto; /* center wrapper horizontally with minimal top spacing */
  padding: 0; /* remove padding */
  align-items: start; /* align to top */
  justify-items: start; /* align items to start */
  text-align: left;
  border: none; /* remove border */
  border-radius: 0;
  box-shadow: none; /* remove shadow */
  background: transparent; /* transparent background */
}

.top-wrapper-left{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 640px; /* prevent left column from becoming too wide */
  grid-column: 1;
  align-self: start; /* align to top to match image */
  justify-self: start;
}

.top-wrapper-left a{
  text-decoration: none;
}

/* Link colors - blue theme matching f1.css */
a, a:visited, .add-link a, .top-wrapper-left a {
  color: #0066cc;
}

a:hover, .add-link a:hover, .top-wrapper-title a:hover {
  color: #003d7a;
}


.top-wrapper-right{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 360px;
  grid-column: 2;
  align-self: start; /* align to top */
  justify-self: start;
}

.top-wrapper-title{ 
    /* grid-column: 1 / -1; Make title span both columns */
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    text-align: center;
}

.top-wrapper-title a{ 
  text-decoration: none;
  color: #0066cc; /* blue for your name/title */
}


.top-wrapper-title a:hover {
  color: #003d7a;
}

.top-wrapper-intro ul{
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}


.profile-img{
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  object-position: center top;
}

.top-wrapper-intro{
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.5;
    text-align: left;
} 

.add-link{
  text-align: center;
}
.add-link ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.add-link li {
  margin: 0.5rem 0;
}

.add-link a {
  font-size: 1.5rem;
  color: #0066cc;
  /* text-decoration: none; */
}

.add-link a:hover {
  color: #003d7a;
}

  /* For mobile screens  */
  /* Mobile layout: stack image above text */
@media (max-width: 850px) {
  .top-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1rem;
    width: 90%;
    gap: 1.5rem;
  }

  .top-wrapper-left {
    grid-column: 1;
    align-items: center;
    max-width: 100%;
    padding: 0 1rem;
  }

  .top-wrapper-right {
    grid-column: 1;
    order: -1; /* show name/image/link first */
    max-width: 100%;
  }

  .top-wrapper-intro {
    text-align: center !important;
    font-size: 1.2rem; /* smaller font for mobile */
    line-height: 1.6;
  }

  .top-wrapper-title {
    grid-column: 1 / -1;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }

  .add-link a {
    font-size: 1.2rem;
  }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
  .top-wrapper {
    width: 95%;
    padding: 0.5rem;
    margin: 1rem auto;
  }

  .top-wrapper-intro {
    text-align: center !important;
    font-size: 1rem;
    line-height: 1.5;
  }

  .profile-img {
    width: 180px;
    height: 180px;
  }

  .add-link a {
    font-size: 1rem;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .nav-menu {
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Blog Page Styles */
.blog-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.blog-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.blog-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  border-bottom: 2px solid rgba(0, 102, 204, 0.2);
  padding-bottom: 0.5rem;
}

.blog-post-preview {
  margin-bottom: 2rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.blog-post-preview:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.blog-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-post-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 1.5rem;
  align-items: center;
}

.blog-post-figure {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-post-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-post-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.blog-post-summary {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0;
}

.blog-post-date {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
}

/* Mobile responsive for blog posts */
@media (max-width: 850px) {
  .blog-page-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .blog-post-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .blog-post-figure {
    height: 180px;
  }

  .blog-post-title {
    font-size: 1.3rem;
  }

  .blog-post-summary {
    font-size: 0.95rem;
  }
}
