/* Root variables for theming */
:root {
  --text-dark: #000000;
  --text-light: #ffffff;
  --bg-light: #f4f4f4;
  --bg-dark: #1a1a1a;
}

/* Body styles */
body {
  margin: 0;
  font-family: 'Volta Modern', Tahoma, Geneva, Verdana, sans-serif;
  background-size: cover;
  color: #000000;
  transition: background-color 0.5s, color 0.5s;
}

/* Dark mode body */
body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Header layout */
header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  height: 50px;
  margin-top: 0px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Language selector and any header controls */
.controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  width: 50px;
}

/* Logo styling */
header img {
  height: 50px;
}

/* Page layout container */
.page-wrapper {
  min-height: 100vh;
  padding-top: 60px;
  padding-bottom: 70px;
  display: flex;
  flex-direction: column;
}

/* Page layout container */
.page-wrapper-faq {
  min-height: 100vh;
  padding-top: 10px;
  padding-bottom: 70px;
  display: flex;
  flex-direction: column;
}
.page-wrapper2 {
  min-height: 100vh;
  padding-top: 65px; /* Now accounting for fixed header height */
  padding-bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
}

.help-section h2 {
  font-size: 22px;
  color: #002068;
  text-align: center;
  margin-top: 20px;
}


.help-heading {
  text-align: center;
  font-size: 22px;
  color: #002068;
  margin: 80px auto 20px; /* gives spacing below header */
  max-width: 80%;
  font-weight: bold;
}


/* Logo text styling */
.logo-title {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
}

/* Title container */
.maintitle {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 65px;
  background:  #ffffff;
}

/* Main title (H1) */
h1 {
  text-align: center;
  margin: 2px 0;
  font-size: 25px;
  color: #002068;
  font-weight: bold;
}

h3 {
  text-align: left;
  margin: 1px 0;
  font-size: 20px;
  color: #002068;
  font-weight: bold;
}

/* Card container layout */
.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 15px;
  padding-bottom: 25px;
}

/* Individual card styles */
.card {
  background: #DBDBDB;
  padding: 10px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px #F2F2F4;
  width: 350px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card hover effect */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 5px #F2F2F4;
}

/* Icon container inside cards */
.icon-wrapper {
  margin-bottom: 1px;
  font-size: 20px;
}

/* Card title */
.card h2 {
  font-size: 20px;
  color: #0460A9;
  margin-bottom: 10px;
}

/* Card description */
.card p {
  font-size: 14px;
  margin-bottom: 10px;
}

/* Styled button link */
.btn {
  background: #002068;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Button hover effect */
.btn:hover {
  background: #FFFFFF;
  color: #002068;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border-color: #002068;
}

.help-button {
  cursor: pointer;
  background: #002068;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);

}

.help-button:hover {
  background-color: #f4f4f4; /* Slight color change on hover for better interactivity */
  color: #002068;
}





/* Tips wrapper section */
.tips-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0px;
  gap: 20px;
  padding: 5px;
  width: 100%;
  box-sizing: border-box;
}


/* Tip content box */
.tip-box {
  width: 100%;
  max-width: 1200px;
  padding: 5px;
  background-color: #FFFFFF;
  border-left: 5px solid #FF585D;
  box-shadow: 0 2px 8px #FFFFFF;
  font-size: 15px;
  line-height: 1;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

/* Help Tips wrapper section */
.tips-wrapper-help {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2px;
  gap: 5px;
  padding-left: 14px;
  width: 100%;
  box-sizing: border-box;
  padding-top: 25px;
}

/* Tip box Top */
.tip-box-help {
  width: 100%;
  max-width: 1200px;
  background-color: #FFFFFF;
  padding-left: 15px;
  padding-bottom: 5px;
  padding-top: 10px;
  font-size: 14px;
  line-height: 1;
  border-radius: 1px;
  transition: background-color 0.3s ease;
}

/* Tip section layout */
.tip-section-help {
  width: 100%;
  max-width: 1200px;
  background-color: #FFFFFF;
  padding-left: 15px;
  padding-bottom: 5px;
  padding-top: 10px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  margin: 0;
  line-height: 1.8;       /* Increases spacing between wrapped lines */
}

/* Icon next to each tip section */
.tip-icon {
  width: 50px;
  height: 50px;
}

/* Icon next to each tip section */
.tip1-icon {
  width: 40px;
  height: 40px;
}

/* Tip section layout */
.tip-section {
  display: flex;
  align-items: flex-start;
  margin: 0;
  line-height: 1.6;       /* Increases spacing between wrapped lines */
}

/* Tip list */
.custom-list {
  margin: 0.4em 0 0.5em 2em;
  padding: 5px;
  list-style-type: disc;
  padding-left: 50px;
}

/* List item style */
.custom-list li {
  color: black;
  margin-bottom: 5px;     /* Adds space between list items */
  line-height: 1.2;       /* Increases spacing between wrapped lines */
}

/* Bullet color */
.custom-list li::marker {
  color: #002868;
}

.custom-list li:nth-child(odd) {
  color: #000000; 
}

.custom-list li:nth-child(even) {
  color: #000000; 
}

/* Default unordered list overrides */
ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 80px;
}


.containertip {
  display: flex;
  width: 100%;
  max-width: 1200px;
  padding: 1px;
  background-color:  #FFFFFF;
  border-left: 1px solid #FF585D;
  box-shadow: 0 2px 8px #FFFFFF;
  border-radius: 4px;
  overflow: hidden; /* to remove any overflow of border radius */
  font-size: 15px;
  line-height: 1;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}



.icon-section {
  background-color:  #002068;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-section img {
  height: 64px; /* adjust size */
  width: 64px;
}
.text-section {
  padding-left: 15px;
  padding-bottom: 2px;
  align-items: center;
  font-size: 15px;
  color: #000000;
  line-height: 1.8;
}
.text-section a {
  color: blue;
  text-decoration: underline;
}


/* Footer style */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 99%;
  padding: 10px;
  font-size: 12px;
  text-align: center;
  background: #002366;
  color: #ffffff;
  z-index: 999;
}

/* Dark mode overrides */
.dark-mode .card {
  background: rgba(34, 34, 34, 0.95);
}

.dark-mode footer {
  background: rgba(0, 0, 0, 0.8);
  color: #ddd;
}

.dark-mode .btn {
  background: linear-gradient(45deg, #ff7c3b, #f86f00);
}

.dark-mode .btn:hover {
  box-shadow: 0 6px 16px rgba(255, 125, 50, 0.6);
}

.dark-mode .maintitle {
  background: rgba(40,40,40,0.9);
  color: #fff;
}

/* Language dropdown & buttons */
select, button {
  padding: 6px;
  border-radius: 5px;
}


.faq-section {
  margin: 40px auto;
  max-width: 1024px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.faq-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

#faqSearch {
  width: 80%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

details.faq {
  border: 1px solid #eee;
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

details.faq summary {
  padding: 12px 18px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f9fa;
}

details.faq summary:hover {
  background: #eef1f4;
}

details.faq p {
  padding: 10px 20px 20px;
  margin: 0;
  animation: fadeIn 0.3s ease-in;
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  margin: 10% auto;
  padding: 20px 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  margin-top: 0;
}

.modal-content input {
  width: 90%;
  padding: 8px;
  margin: 15px 0;
  font-size: 15px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}


.modal-actions button {
  padding: 10px 20px;
  width: 140px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}



#submitUsername {
  background-color: #003366;
  color: white;
}

#cancelModal {
  background-color: #ccc;
}

.error-message {
  color: #c62828;
  font-size: 15px;
  margin-top: 10px;
}


.modal-actions #submitUsername {
  background-color: #002068;
  color: white;
}
.modal-actions #cancelModal {
  background-color: grey;
  color: white;
}
#usernameInput {
  width: 300px;
  padding: 8px;
  margin-top: 5px;
}






.modal-content ul {
  margin: 0;
  padding-left: 20px;
}

.modal-content li {
  margin-bottom: 6px;
}

.radio-group {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
}
.radio-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.radio-option input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #666;
  border-radius: 50%;
  margin-bottom: 8px;
  position: relative;
}
.radio-option input[type="radio"]:checked {
  border-color: #002068;
}
.radio-option input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: #002068;
  border-radius: 50%;
}
.radio-option.selected {
  background-color: #F2F2F4;
  border-color: #002068;

}



@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .tip-box {
    padding: 14px 16px;
    font-size: 15px;
  }

  .tips-wrapper {
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .tip-box {
    padding: 12px 14px;
    font-size: 14px;
  }
}
