@media screen and (max-width: 720px) {
.sidebar { display: none; }
.borderbar { display: none; }
}

main {
  max-width: 800px;
  margin: 0 auto;
}

body {
  font-family: "avenir", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  padding: 0px;
  height: 100%;
}

/*---- HEADER STYLINGS ----*/

header {
  text-align: center;
}

header h1 {
  font-size: 0.8rem;
  margin-top: 0px;
  margin-bottom: 0px;
  color: #4C4C4C;
}

header nav ul {
  list-style: none;
  padding: 0;
  color: #4C4C4C;
}

header nav ul li {
  display: inline;
  margin: 0 15px;
}

header nav ul li a {
  text-decoration: none;
  color: #007acc;
}

h1 {
  font-family: 'avenir', sans-serif;
  font-weight: 600; /* Semi-bold for headings */
  color: #2c3e50; /* Dark blue-gray for headings */
  margin-bottom: 0.1em;
  margin-top: 0px;
}
  
h2, h3, h4, h5, h6 {
  font-family: "avenir", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600; /* Semi-bold for headings */
  color: #2c3e50; /* Dark blue-gray for headings */
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.2em; } /* 35.2px */
h2 { font-size: 1.8em; } /* 28.8px */
h3 { font-size: 1.5em; } /* 24px */
h4 { font-size: 1.3em; color: #425b7a; } /* 20.8px */
h5 { font-size: 1.1em; } /* 17.6px */
h6 { font-size: 1em; }   /* 16px */

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
  font-weight: 600;
  text-decoration: none;
}


/*---- HOME PAGE STYLINGS ----*/

/* Featured Project tile */
.home-project-tile {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
  padding: 1rem 1.2rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
  }

.home-project-tile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 1;
  background: 
    linear-gradient(
      rgba(255, 249, 246, 0.6),  /* more opaque warm white at top */
      rgba(255, 249, 246, 0.1)   /* very subtle at bottom */
    ), #fff9f6; /* warm base background */
}

/* General Body Styles */
body {
  font-size: 16px; /* Base font size */
  line-height: 1.6; /* Improved readability */
  color: #333; /* Dark gray for text */
  background-color: #fff; /* White background */
  margin: 0;
  padding: 0px;
}

/* Paragraphs */
p {
  font-size: 1em; /* 1em = 16px */
  line-height: 1.4;
  margin-bottom: 1.5em;
  color: #5a5a5a;
}

/* Lists */
ul, ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em; /* Indent list items */
}

li {
  margin-bottom: 0.75em; /* Space between list items */
  line-height: 1.6;
  font-size: 0.9em;
}

/* Code Blocks */
pre {
/*   display: inline-block; */
  overflow-x: auto; /* Horizontal scroll for long lines */
  font-family: monospace;
  font-size: 0.9em; 
  line-height: 1.5;
  margin-bottom: 1.5em;
}

code {
  font-family: monospace;
  font-size: 0.85em;
  background-color: #f4f4f4; /* Light gray background */
  padding: 2px 4px;
  border-radius: 5px;
  color: #425b7a;
  text-align: left;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #007acc; /* Blue left border */
  padding-left: 15px;
  margin: 1.5em 0;
  color: #555; /* Dark gray for quote text */
  font-style: italic;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}

th, td {
  padding: 10px;
  border: 1px solid #ddd; /* Light gray border */
  text-align: left;
}

th {
  background-color: #f4f4f4; /* Light gray background for headers */
  font-weight: 600;
}

/* Buttons */
button {
  background-color: #007acc; /* Blue background */
  color: #fff; /* White text */
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
}

button:hover {
  background-color: #005f99; /* Darker blue on hover */
}

/* Horizontal Rule */
hr {
  border: 0;
  height: 1px;
  background-color: #ddd; /* Light gray line */
  margin: 2em 0;
}

a {
  color: #007acc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #874FFF;
  font-weight: 425;
}

ul {
  list-style-type: none; /* Removes bullet points */
  padding: 0; /* Removes default padding */
  margin: 0; /* Adjusts margin for better alignment */
}

ul li {
  margin-bottom: 8px; /* Adds spacing below each list item */
}

.date {
  font-style: italic;
  color: #A0A0A0;
  margin-left: 10px;
  font-size: 0.9em;
  font-family: 'Roboto', sans-serif;
  white-space: pre;
}

p .date {
  margin-left: 0px;
  font-size: 1em;
}

.short-desc {
  font-style: italic;
  color: #707070;
  margin-top: 2px;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.articles li {
  padding: 0.2em 0;
}

.articles li a {
  font-size: 1.1rem;
  font-weight: 500;
}

small {
  display: none;
}

.highlight {
  text-align: center;
}

.home-buttontile {
  display: inline-block;
  color: #5a5a5a;
  font-weight: 600;
  font-size: 1.5em;
/*   background-color: #EDEDED; */
  border-radius: 6px;
/*   padding-left: 9px; */
  padding-right: 9px;
  margin-top: 5px;
  margin-bottom: 20px;
}

/* PROJECTS PAGE */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.project-tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-tile:hover {
  transform: scale(1.02);
}

.project-tile img {
  width: 100%;
  display: block;
  height: auto;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 30, 0.75);
  color: white;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
  transition: opacity 0.3s ease;
}

.overlay h3 {
  color: white;
}

.project-tile:hover .overlay {
  opacity: 1;
}
