html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f2f4f8;
}

header {
  background-color: #0a3c68;
  color: white;
  padding: 20px;
  text-align: center;
}

main {
  padding: 30px;
  text-align: center;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 45px;
}

.card {
  background-color: white;
  padding: 35px;
  border-radius: 12px;
  text-decoration: none;
  color: #0a3c68;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card img {
  width: 100px;
  margin-bottom: 15px;
}

.card span {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.card:hover {
  transform: scale(1.05);
  background-color: #e6f0ff;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  width: 350px;
  text-align: center;
}

.modal-content input {
  width: 90%;
  padding: 12px;
  margin: 12px auto;
  display: block;

  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
}

.modal-content input:focus {
  border-color: #0a3c68;
  box-shadow: 0 0 5px rgba(10, 60, 104, 0.3);
}

.modal-content button {
  padding: 12px 25px;
  background-color: #0a3c68;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 15px;
  margin-top: 15px;
  transition: 0.2s;
}

.modal-content button:hover {
  background-color: #08406f;
}

#error-message {
  color: red;
  margin-top: 10px;
}
.logo {
  width: 180px;
  margin-bottom: 20px;
}
.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.problem-card {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
  color: #0a3c68;
  font-size: 18px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  transition: 0.2s;
}

.problem-card:hover {
  transform: scale(1.05);
  background-color: #e6f0ff;
}
footer {
  margin-top: 50px;
  background-color: #0a3c68;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}
.main-header {
  background-color: #0a3c68;
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.header-logo {
  width: 80px;
  margin-top: -30px;
}
footer p {
  margin: 5px 0;
  font-size: 13px;
}
.solution-box {
  background-color: white;
  padding: 25px;
  border-radius: 12px;
  margin-top: 25px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  text-align: left;
}

.feedback-buttons {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.feedback-buttons button {
  border: none;
  background: none;
  cursor: pointer;
  text-align: center;
}

.feedback-buttons img {
  width: 50px;
  display: block;
  margin: auto;
}

.feedback-buttons span {
  display: block;
  margin-top: 5px;
  color: #0a3c68;
  font-weight: bold;
}

.update-check {
  margin-top: 15px;
}
.feedback-buttons {
  display: flex;
  gap: 25px;
  margin-top: 15px;
}

.feedback-buttons label {
  cursor: pointer;
  text-align: center;
}

.feedback-buttons input {
  display: none;
}

.feedback-buttons img {
  width: 55px;
  display: block;
  margin: auto;
}

.feedback-buttons span {
  display: block;
  margin-top: 5px;
  color: #0a3c68;
  font-weight: bold;
}

.send-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #0a3c68;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.send-btn:hover {
  background-color: #08406f;
}
.feedback-buttons label {
  cursor: pointer;
  text-align: center;
  border-radius: 12px;
  padding: 10px 12px;
  transition: 0.15s;
}

.feedback-buttons label:hover {
  background-color: rgba(10, 60, 104, 0.08);
}

.feedback-buttons input:checked + img {
  outline: 3px solid #0a3c68;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(10, 60, 104, 0.15);
}

.feedback-buttons input:checked + img + span {
  color: #0a3c68;
  text-decoration: underline;
}


.category-header {
  background-color: #0a3c68;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.category-header img {
  width: 120px;
  margin-bottom: 15px;
}

.category-header h1 {
  margin: 0;
  font-size: 32px;
}

.category-header p {
  margin-top: 10px;
  font-size: 16px;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 40px;
  max-width: 1000px;
  margin: auto;
}

.problem-card {
  background-color: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #0a3c68;
  font-size: 18px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  transition: 0.2s;
}

.problem-card:hover {
  transform: scale(1.05);
  background-color: #e6f0ff;
}

.page-footer {
  background-color: #0a3c68;
  color: white;
  text-align: center;
  padding: 20px;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 60px;
}

.back-home {
  text-align: center;
  margin-bottom: 30px;
}
.solution-content {
  max-width: 900px;
  margin: 40px auto;
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: left;
}

.solution-content h2 {
  text-align: center;
  margin-bottom: 25px;
}

.solution-content ol,
.solution-content ul {
  margin-left: 20px;
  line-height: 1.8;
}

.solution-content pre {
  background: #f4f4f4;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 14px;
}

.back-home {
  text-align: center;
  margin: 30px 0;
}
.problem-image {
  width: 220px;
  margin: 20px auto;
  display: block;
}
.problem-card {
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #0a3c68;
  font-size: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.problem-card:hover {
  transform: scale(1.05);
  background-color: #e6f0ff;
}

.problem-icon {
  width: 90px;
  height: auto;
}
@media (max-width: 768px) {

  .main-header,
  .category-header {
    flex-direction: column;
    text-align: center;
  }

  .header-logo {
    width: 80px;
    margin-bottom: 10px;
  }

  .problem-list {
    grid-template-columns: 1fr;
  }

  textarea {
    width: 100%;
  }

  .solution-box {
    margin: 10px;
  }

}
.home-btn {
  margin-top: 20px;
  text-align: center;
}

.home-btn img {
  width: 100px;
  cursor: pointer;
  transition: 0.2s;
}

.home-btn img:hover {
  transform: scale(1.1);
}
