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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 4rem;
  position: relative;
  width: 100%;
  margin-left: -0.5rem;
}

.theme-toggle {
  position: absolute;
  left: 4.5rem;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(180deg);
  background-color: rgba(255, 255, 255, 0.1);
}

.sun-icon {
  width: 24px;
  height: 24px;
}

.sun-icon circle {
  fill: #fff;
}

.sun-icon line {
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem 6rem 2rem;
}

.page-title {
  font-size: 4rem;
  font-style: italic;
  margin-bottom: 2rem;
  text-align: center;
}

.blogs-intro {
  font-size: 1.3rem;
  font-style: italic;
  text-align: center;
  margin-bottom: 1rem;
  color: #ccc;
}

.blogs-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.blogs-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.blogs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}

.blogs-content {
  display: flex;
  flex-direction: column;
}

.blogs-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blogs-meta {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 0.8rem;
}

.blogs-type {
  display: inline-block;
  background-color: #5a7a6f;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.blogs-type a,
.blogs-type a:visited,
.blogs-type a:hover,
.blogs-type a:active {
  color: white;
  text-decoration: none;
}

.chatbot-button {
  position: fixed;
  bottom: 30px;
  background-color: #5a7a6f;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 4rem;
  transition: all 0.3s ease;
  outline: none;
  border: none;
  left: 616px;
}

.chatbot-button:focus {
  outline: none;
}

.chatbot-button:hover {
  background-color: #6a8a7f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 112, 111, 0.4);
}

footer {
  display: flex;
  justify-content: flex-end;
  padding: 2rem 4rem;
}

.scroll-top {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: transparent;
  color: #fff;
  font-size: 1.2rem;
}

.scroll-top:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Light mode styles */
body.light-mode {
  background-color: #fff;
  color: #000;
}

body.light-mode nav,
body.light-mode .theme-toggle,
body.light-mode .nav-links a {
  color: #000;
}

body.light-mode .theme-toggle {
  border-color: #000;
}

body.light-mode .sun-icon circle,
body.light-mode .sun-icon line {
  fill: #000;
  stroke: #000;
}

body.light-mode .blogs-card {
  background-color: #f5f5f5;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.light-mode .blogs-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

body.light-mode .blogs-intro {
  color: #555;
}

body.light-mode .blogs-meta {
  color: #555;
}

body.light-mode .chatbot-button {
  background-color: #5a7a6f;
  color: #fff;
}

body.light-mode .chatbot-button:hover {
  background-color: #6a8a7f;
}

body.light-mode .scroll-top {
  border-color: #000;
  color: #000;
}

body.light-mode .sun-icon {
  display: none;
}

.moon-icon {
  display: none;
  width: 24px;
  height: 24px;
}

body.light-mode .moon-icon {
  display: block;
}

/* Update existing @media (max-width: 968px) with these additions */
@media (max-width: 968px) {
  .theme-toggle {
    left: 0.55rem;
    width: 35px;
    height: 35px;
  }
  
  nav {
    padding: 1.5rem 2rem;
    flex-wrap: wrap;
    margin-right: -0.7rem;
    margin-left: 0.35rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .page-title {
    font-size: 3rem;
  }

  .blogs-card {
    padding: 2rem;
  }
  
  main {
    padding: 2rem 1.5rem 5rem 1.5rem;
  }
  
  .blogs-intro {
    font-size: 1.2rem;
    padding: 0 1rem;
  }
  
  .blogs-container {
    gap: 2rem;
  }
  
  .chatbot-button {
    padding: 0.8rem 2rem;
    bottom: 36px;
    left: 50%;
    transform: translateX(-53%);
  }
  
  footer {
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .theme-toggle {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }
}

/* Update existing @media (max-width: 640px) with these additions */
@media (max-width: 640px) {
  .theme-toggle {
    left: 0.55rem;
    width: 32px;
    height: 32px;
  }
  
  .sun-icon, .moon-icon {
    width: 20px;
    height: 20px;
  }
  
  .page-title {
    font-size: 2rem;
  }

  .blogs-intro {
    font-size: 1rem;
  }

  .nav-links {
    gap: 0.4rem;
  }
  
  .nav-links a {
    font-size: 1rem;
  }

  nav {
    padding: 1rem;
    margin-left: 0.35rem;
  }

  footer {
    padding: 1rem;
  }

  .blogs-title {
    font-size: 1.2rem;
  }

  .blogs-meta {
    font-size: 1rem;
  }

  .blogs-card {
    padding: 1.5rem;
  }
  
  .blogs-type {
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
  }
  
  main {
    padding: 1.5rem 1rem 4rem 1rem;
  }
  
  .chatbot-button {
    padding: 0.7rem 1.5rem;
  }
}

/* Extra small devices */
@media (max-width: 380px) {
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .blogs-title {
    font-size: 1.1rem;
  }
  
  .blogs-meta {
    font-size: 0.95rem;
  }
  
  .blogs-card {
    padding: 1.2rem;
  }

  .theme-toggle {
  width: 30px;
  height: 30px;
}
}

