/* style.css */
body { font-family: Arial, sans-serif; margin: 0; padding: 0; line-height: 1.6; }
header { background: #ff9999; color: #fff; padding: 2rem 1rem; text-align: center; }
header h1 { margin: 0; font-size: 2.5rem; }
header p { margin: 0.5rem 0 0; font-size: 1.2rem; }
nav { background: #ffa4a3; padding: 0.5rem; text-align: center; }
nav a { color: #fff; margin: 0 1rem; text-decoration: none; font-weight: bold; }
section { padding: 2rem 1rem; max-width: 800px; margin: auto; }
h2 { border-bottom: 2px solid #000; padding-bottom: 0.5rem; }
.project { margin-bottom: 1.5rem; }
.project h3 { margin: 0.2rem 0; }
footer { text-align: center; background: #000; color: #fff; padding: 1rem; margin-top: 2rem; }

/* Main page photo settings*/
.profile-photo {
    display: block;
    margin: 1rem auto;
    width: 200px;
    border-radius: 60%;
  }

/* Instructional video settings*/
.video-gallery {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
.video-thumb {
    width: 220px;
    border-radius: 6px;
    transition: transform 0.2s ease;
  }
.video-thumb:hover {
    transform: scale(1.05);
  }

/* Teaching card settings */
.teaching-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
.teaching-card h3 {
    margin-top: 0;
    color: #cc4444;
  }

/* Course card settings */
.course-section {
    margin: 2rem auto;
    max-width: 1100px;
  }
.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }
.card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
.card h2 {
    margin-top: 0;
    color: #cc4444;
  }
.card ul {
    padding-left: 1.2rem;
    margin: 0;
  }

  /* Student evaluations settings */

.header-block {
    background: #ffe5e5;   /* lighter version of your red */
    color: #cc4444;
    font-weight: bold;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    margin: 1rem 0 0.5rem 0;
  }

.collapsible summary {
    background: #ff9999;
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 0.5rem;
    list-style: none;
    transition: background 0.2s ease;
  }
.collapsible summary:hover {
    background: #cc4444;
  }
.collapsible[open] summary::after {
    content: " ▲";
  }
.collapsible summary::after {
    content: " ▼";
    float: right;
    font-size: 0.9rem;
  }
.collapsible ul {
    margin: 0.5rem 0 0 1rem;
  }

/* Project cards */
.project-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
.project-card h3 {
    margin-top: 0;
    color: #cc4444;
  }

.project-card p {
  color: #333;
}

.tech-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0.5rem 0;
    list-style: none;
  }
.tech-list li {
    background: #ffe5e5;
    color: #cc4444;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
  }

/* Report button */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.project-header h3 {
  margin: 0;
  color: #cc4444;
}
.report-btn {
  display: inline-block;
  background: #ff9999;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}
.report-btn:hover {
  background: #cc4444;
}

/* tk dictionary */

.dictionary-container {
  max-width: 700px;
  margin: 40px auto;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: center;
}

.dictionary-container h2 {
  margin-bottom: 20px;
  color: #333;
}

/* .word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
} */

.word {
  padding: 8px 14px;
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
} 


.word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;              /* more breathing room */
  justify-content: center;
  max-width: 600px;      /* constrain width */
  margin: 0 auto;
}


.word:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
}

.group {
  margin-bottom: 30px;
}

.group h3 {
  margin-bottom: 10px;
  color: #555;
}

/* popup definition */
/* Popup background */
.popup {
  display: none;              /* hidden initially */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.popup.show {
  display: flex;
}

/* Popup box */
.popup-content {
  background: white;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 80%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Close button */
#close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

/* Optional: smooth animation */
.popup-content {
  animation: fadeIn 0.2s ease;
}


.word.highlighted {
  background: #6366f1; /* bright yellow highlight */
  color: #000;
  transform: translateY(-2px); /* optional, keep hover effect consistent */
}