@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Gentium+Book+Plus:ital,wght@0,400;0,700;1,400;1,700&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Gentium Book Plus", "Source Serif 4", serif;
  font-weight: 500;
  background-color: rgb(249, 250, 251);
  color: #1f2937;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Gentium Book Plus", "Source Sans 3", sans-serif;
  color: #111827;
  font-weight: 700;
}

html.dark p, html.dark span, html.dark li, html.dark td, html.dark th,
html.dark .ul,
html.dark .ol,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: #edefec !important;
}

html.dark a {
  color: #92bed3 !important;
}

p,
a,
span,
li,
td,
th {
  font-family: "Source Serif 4", serif;
  color: #1f2937;
  padding: 0.4rem 0;
  font-size: large;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

table {
  font-family: "Source Serif 4", serif;
  color: #1f2937;
  border-collapse: collapse;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: start;
}

a {
  color: #2563eb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.box {
  padding: 1rem 2rem 1rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  color: #1f2937;
  max-width: 1000px;
  width: 100%;
  margin: 1rem auto;
}

.box:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.nav-box {
  margin-top: 2rem;
}

.footer-box {
  margin-bottom: 4rem;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.nav-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
  flex: auto;
}

.nav-links {
  display: flex;
  gap: 15px;
  flex: initial;
  margin-right: 15px;
}

.nav-link {
  text-decoration: none;
  color: #2563eb;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

ul {
  padding: 1rem 3rem;
}

hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid #d1d5db;
}

img {
  width: 100%;
}

.link {
  color: #2563eb;
}
.link:hover {
  text-decoration: underline;
}

.video-container {
  margin: 0 auto;
  margin-top: 15px;
  margin-bottom: 15px;
  position: relative;
  width: 80%;
  min-width: 400px;
  padding-top: 45%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

table {
  width: 100%;
  margin: 1.5rem 0;
  font-size: 1rem;
  color: #4b5563;
  background-color: #ffffff;
}
table th,
table td {
  padding: 0.75rem;
  border-bottom: 1px solid #d1d5db;
}
table thead {
  background-color: rgb(249, 250, 251);
}

.blogList {
  list-style: none;
}

.blogListItem {
  margin: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.footer {
  width: 100%;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 25px;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: #606060;
}
.switch input:checked + .slider:before {
  transform: translateX(26px);
}

.dark-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: initial;
}

.material-symbols-outlined {
  font-size: 1.5rem;
}

html.dark body {
  background-color: #1e293b;
  color: #e2e8f0;
}
html.dark p,
html.dark a,
html.dark span,
html.dark li,
html.dark td,
html.dark th {
  color: #e2e8f0;
}
html.dark table thead {
  background-color: #1e293b;
}
html.dark table {
  background-color: #334155;
}
html.dark .box {
  background-color: #334155;
  color: #e2e8f0;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}
html.dark .box:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}
html.dark .nav-title,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: #e2e8f0;
}
html.dark .nav-link {
  color: #93c5fd;
}
html.dark a {
  color: #93c5fd;
}
html.dark .switch .slider {
  background-color: #374151;
}
html.dark .switch .slider:before {
  background-color: #1f2937;
}
html.dark input:checked + .slider {
  background-color: #d1d5db;
}
html.dark .dark-toggle label {
  color: #e2e8f0;
}

pre {
  background-color: #f3f4f6;
  color: #1f2937;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.projects-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 20px !important;
  margin-top: 30px !important;
}

.project-card {
  padding: 20px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transition: 0.2s ease !important;
}

.project-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}

.project-card h3 {
  margin-top: 0 !important;
}

.project-card a {
  display: inline-block !important;
  margin-top: 10px !important;
  color: #7bb3ff !important;
  text-decoration: none !important;
  padding: 6px 12px !important;
}

.pagination {
  margin-top: 40px !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  gap: 20px !important;
  align-items: center !important;
}

.pagination a {
  padding: 8px 14px !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  text-decoration: none !important;
}

.pagination a:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

@media screen and (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  ul {
    padding: 0 !important;
  }
  .content-wrapper {
    padding: 0 0.3rem;
  }
  table {
    font-size: 0.875rem;
    overflow: scroll;
    display: flex;
    flex-direction: column;
  }
  th {
    padding: 0.5rem;
  }
}
