body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

header h1 {
    margin: 0;
}

.container {
    flex: 1;
    width: 80%;
    margin: 20px auto;
}

section {
    margin-bottom: 40px;
}

h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-table th,
.content-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.content-table th {
    background-color: #333;
    color: white;
}

.content-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.content-table tr:hover {
    background-color: #ddd;
}

/* Featured Projects Section */
.projects-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.project-card {
    background-color: #fff;
    width: calc(33.333% - 20px);
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card img {
    width: 100%;
    height: 300px; /* Or between 300px to 350px */
    object-fit: cover; /* Ensures the image doesn't get stretched/distorted */
}

.project-card .content {
    padding: 20px;
}

.project-card h3 {
    margin-top: 0;
}

.project-card p {
    color: #555;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

/* Skills and Coursework Grid */
.skills-grid,
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skills-grid .column,
.courses-grid .column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skills-grid .column h3,
.courses-grid .column h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.1rem; /* Slightly smaller font size for headings */
}

.skills-grid .column ul,
.courses-grid .column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.skills-grid .column li,
.courses-grid .column li {
    background-color: #f9f9f9;
    padding: 8px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    font-size: 0.9rem; /* Slightly smaller font size for list items */
}

/* Responsive Layout for Skills and Courses */
@media (max-width: 768px) {
    .skills-grid,
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer-links a:hover {
    color: #7E9CC3; /* Change color on hover */
    cursor: pointer;
}

.project-links a {
    color: blue;
    cursor: pointer;
}

.slideshow {
  position: relative;
  width: 1200px;      /* bigger width */
  height: 800px;      /* bigger height */
  margin: auto;
  overflow: hidden;
  background-color: black; /* ensures empty space is visible if image is smaller */
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* keeps full image visible */
  border-radius: 8px;
}

.nav {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 12px;
  color: #fff;
  background: rgba(0,0,0,.5);
  border: none;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.caption {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0,0,0,0.6);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 18px;
  text-align: center;
  max-width: 90%;
}


.prev { left: 10px; }
.next { right: 10px; }
.nav:hover { background: rgba(0,0,0,.8); }

.generic-link {
    color: blue;
    cursor: pointer;
}
.generic-link:hover {
    color: purple;
}
