.ielts-container {
  text-align: center;
  margin: 20px auto;
}

.ielts-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.ielts-btn,
.next-part-btn,
.ielts-start-btn,
.ielts-submit-btn {
  padding: 10px 20px;
  border: none;
  background-color: #28AFFA;
  color: #054A91;
  font-size: 36px;
  cursor: pointer;
  border-radius: 16px;
}

.ielts-btn:hover,
.next-part-btn:hover,
.ielts-start-btn:hover,
.ielts-submit-btn:hover {
  background-color: #054A91;
  color: #fff;
}

.ielts-instructions {
  margin-top: 20px;
  text-align: left;
}

.ielts-test {
  margin-top: 20px;
  text-align: left;
}

.ielts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  margin-bottom: 10px;
  background-color: #E9F7FF;
  border: 1px solid #28AFFA;
  border-radius: 16px;
}

.ielts-header h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 110%;
  margin: 0;
}

.ielts-info {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ielts-info p {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 110%;
}

.ielts-buttons .mock-card {
  width: 100%;
  height: 320px;
}

.ielts-buttons .mock-card {
  font-weight: 500;
}

.ielts-buttons .mock-card:hover {
  color: #fff;
}

.instruction-block {
  background-color: #E9F7FF;
  border-radius: 16px;
  border: 1px solid #28AFFA;
  padding: 24px;
  margin-bottom: 48px;
}

.instruction-block ul {
  padding-left: 1rem;
}

.instruction-block ul li:not(:last-child) {
  margin-bottom: 0.2rem;
}

.instruction-block p:last-child {
  margin-bottom: 0;
}

.ielts-instructions .test-btn-wrap {
  text-align: center;
  margin-top: 50px;
}

.ielts-instructions .test-btn-wrap button {
  background-color: #28AFFA;
  padding: 16px 24px;
  width: min(594px, 100%);
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  border-radius: 16px;
}

.ielts-info p:has(.timer) {
  font-weight: 600;
}

.ielts-info p .timer {
  font-size: 22px;
}

.two-col-block {
  display: flex;
  gap: 20px;
  padding-top: 36px;
}

.two-col-block .para-block,
.two-col-block .ielts-test-form {
  width: 50%;
}

.two-col-block .para-block {
  background-color: #E9F7FF;
  border-radius: 8px;
  padding: 20px;
  height: 90dvh;
  overflow: auto;
  scrollbar-width: thin;
  /* For Firefox */
  scrollbar-color: #054a91 #e9f7ff;/
}

.two-col-block .para-block::-webkit-scrollbar {
  width: 8px;
}

.two-col-block .para-block::-webkit-scrollbar-track {
  background: #e9f7ff;
  border-radius: 8px;
}

.two-col-block .para-block::-webkit-scrollbar-thumb {
  background-color: #054a91;
  border-radius: 8px;
  border: 2px solid #e9f7ff;
}

.two-col-block .para-block::-webkit-scrollbar-thumb:hover {
  background-color: #154a9a;
}

form.ielts-test-form {
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #007AFF;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  height: 90dvh;
  overflow: auto;
  scrollbar-width: thin;
  /* For Firefox */
  scrollbar-color: #054a91 #f0faff;
  /* For Firefox */
}

/* Custom Scrollbar for Webkit Browsers (Chrome, Safari) */
form.ielts-test-form::-webkit-scrollbar {
  width: 8px;
}

form.ielts-test-form::-webkit-scrollbar-track {
  background: #f0faff;
  border-radius: 8px;
}

form.ielts-test-form::-webkit-scrollbar-thumb {
  background-color: #054a91;
  border-radius: 8px;
  border: 2px solid #f0faff;
}

form.ielts-test-form::-webkit-scrollbar-thumb:hover {
  background-color: #054a91;
}

form.ielts-test-form .question-block {
  width: 100%;
}

form.ielts-test-form p {
  margin-bottom: 16px;
  font-weight: 500;
  line-height: 160%;
}

form.ielts-test-form label:not(:last-child) {
  margin-bottom: 1rem;
}

form.ielts-test-form label:has(input[type=radio]),
form.ielts-test-form label.checkbox-label {
  display: block;
}

form.ielts-test-form input[type=radio] {
  width: 21px;
  height: 21px;
  vertical-align: middle;
  margin-right: 6px;
}

form.ielts-test-form input[type=radio],
form.ielts-test-form input[type=checkbox] {
  accent-color: #054A91;
}

form.ielts-test-form input[type=checkbox] {
  width: 21px;
  height: 21px;
  border-radius: 0;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid #999999;
}

form.ielts-test-form input[type=text] {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgb(5, 74, 145);
  border-radius: 0;
  height: 45px;
  color: #054A91;
}

form.ielts-test-form input[type=text]::placeholder {
  color: #054A91;
}

form.ielts-test-form input[type=text]:is(:focus, :focus-visible) {
  outline: none;
  box-shadow: none;
  color: #1a3c75;
  border-color: inherit;
  background-color: inherit;

}


form.ielts-test-form textarea {
  background-color: rgba(249, 250, 251, 0.70);
  color: #1a3c75;
  font-size: 16px;
  line-height: 26px;
  padding: 20px;
  width: 100%;
  border-radius: 8px;
  border-color: #007AFF;
}

form.ielts-test-form textarea::placeholder {
  color: rgba(0, 123, 255, 0.50);
}

form.ielts-test-form select {
  font-size: 16px;
  padding: 12px 40px 12px 12px;
  border: 1px solid #cfe8ff;
  border-radius: 50px;
  background-color: #f5fbff;
  color: #1a3c75;
  outline: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%231a3c75" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 16.5l-6-6 1.41-1.41L12 13.67l4.59-4.58L18 10.5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 24px;
  cursor: pointer;
  width: 100%;
}

.two-col-block .line {
  background: #007AFF;
  width: 4px;
  border-radius: 4px;
}

.ielts-part .audio-block {
  border: 1px solid #28AFFA;
  padding: 24px;
  margin-bottom: 36px;
  border-top: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  margin-top: -24px;
  padding-top: 48px;
}

audio {
  width: 100%;
  max-width: 450px;
  height: 50px;
  border-radius: 24px;
  background-color: #054A91;
  outline: none;
  margin-bottom: 6px;
  -moz-box-background: #054A91;
}

@-moz-document url-prefix() {
  audio {
    height: auto !important;
    background-color: #054A91;
  }
}

.safari-browser audio {
  height: auto !important;
  background-color: #054A91;
}

/* Hide default audio controls on some browsers */
audio::-webkit-media-controls-panel {
  background-color: #054A91;
  border-radius: 8px;
  border-color: #054A91;
}

/* Change play/pause button, mute, and seek icons to white */
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-pause-button,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-seek-back-button,
audio::-webkit-media-controls-seek-forward-button {
  filter: invert(100%) brightness(1.5);
  /* White icon */
}

audio::-webkit-media-controls-overflow-button {
  display: none;
}

/* Change progress bar to white */
audio::-webkit-media-controls-timeline {
  border-radius: 4px;
  height: 4px;
}

audio::-webkit-media-controls-timeline::-webkit-media-slider-runnable-track {
  background: #fff;
  /* White track */
}

/* Optional: Change current time and remaining time display text to white */
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: #fff !important;
}

.ielts-results {
  text-align: left;
}

.ielts-results h3 {
  font-size: 36px;
}

.ielts-results .score-value {
  font-size: 64px;
  font-weight: 600;
  display: inline-block;
  line-height: 110%;
  margin-bottom: 70px;
}

.ielts-results p strong {
  font-weight: 600;
  margin-bottom: 50px;
  font-size: 24px;
  display: block;
}

.result-part h5 {
  font-size: 16px;
  line-height: 160%;
  font-weight: 600;
  border-bottom: 1px solid #28AFFA;
  padding-bottom: 10px;
  padding-top: 10px;
}

.result-part ul {
  margin-top: 36px;
  margin-bottom: 40px;
  padding-left: 0;
}

.result-part ul li {
  list-style-type: none;
  font-size: 16px;
  line-height: 160%;
  border-bottom: 1px solid rgb(5 74 145 / 16%);
  padding-bottom: 10px;
  margin-bottom: 12px;
  display: flex;
  gap: 3px;
}

.result-part ul li p {
  font-size: 16px;
  line-height: 160%;
}

.result-part ul li p:only-child {
  margin: 0;
}

.result-part ul li p:not(:only-child) {
  margin-bottom: 6px;
}

.result-part ul li .question-text {
  width: 100%;
}

.result-part ul li p br {
  display: none;
}

.result-part ul li img {
  float: right;
  height: auto;
}

.btns-wrap {
  display: flex;
  gap: 15px;
}

.recording-section .record-btn {
  transition: all 0.3s;
}

.recording-section .record-btn:hover {
  background: #28affa;
  border-color: #28affa;
}

.ielts-buttons .mock-card:focus-visible,
.ielts-buttons .mock-card:focus {
  outline: 0;
}

.recording-section {
  display: flex;
  gap: 15px;
}

.recording-section button {
  min-width: fit-content;
}

button.ielts-btn.mock-card.active {
  background: #054A91;
  color: #fff;
}

.audio-file-block {
  display: none;
}

.question-block .question-text p {
  margin-bottom: 10px !important;
}

.question-block .question-text p br {
  display: none;
}

@media(max-width: 1199px) {

  .ielts-buttons .mock-card {
    height: 150px;
    padding: 20px;
    font-size: 30px;
  }
}

@media(max-width: 991px) {
  .ielts-buttons {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 767px) {
  .ielts-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ielts-info {
    text-align: left;
  }

  .ielts-header h3 {
    margin-bottom: 15px;
  }

  #section-selection h3 {
    font-size: 24px;
    line-height: 30px;
  }

  .ielts-container h1 {
    font-size: 36px;
    line-height: 42px;
  }

  .ielts-results .score-value {
    margin-bottom: 30px;
    font-size: 45px;
  }

  .ielts-results h3 {
    font-size: 30px;
  }

  .ielts-results p strong {
    margin-bottom: 30px;
    font-size: 22px;
  }

  .result-part ul li {
    padding-right: 20px;
    position: relative;
  }

  .result-part ul li img {
    float: right;
    position: absolute;
    right: 0;
  }

  .btns-wrap {
    flex-wrap: wrap;
  }

  .two-col-block .para-block {
    height: 100%;
  }

  form.ielts-test-form {
    height: 50vh;
  }
}

@media(max-width: 575px) {
  .ielts-buttons {
    grid-template-columns: 1fr;
  }

  .two-col-block {
    flex-wrap: wrap;
  }

  .two-col-block .line {
    width: 100%;
    height: 4px;
  }

  .two-col-block .para-block,
  .two-col-block .ielts-test-form {
    width: 100%;
  }

  .ielts-buttons.space-small {
    padding: 20px 0;
  }

  .recording-section {
    flex-wrap: wrap;
  }

  .recording-section,
  .recording-section audio {
    width: 100%;
    max-width: 100%;
  }

  .recording-section button,
  .btns-wrap button {
    width: 100%;
  }

}


.tracker-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.tracker-box {
  width: 30px;
  height: 30px;
  border: 2px solid #666;
  margin: 5px;
  text-align: center;
  line-height: 30px;
  border-radius: 4px;
  cursor: pointer;
  background-color: #f2f2f2;
}

.tracker-box.active {
  background-color: #4CAF50;
  color: #fff;
  font-weight: bold;
  border-color: #4CAF50;
}

form.ielts-test-form .question-block h4 {
  font-weight: 600;
  margin-top: 20px;
}

.woocommerce table.shop_table th.product-quantity,
.woocommerce table.shop_table td.product-quantity {
  display: none !important;
}


.feedback-section {
  border: 1px solid #054a91;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  margin-top: 16px;
}

.feedback-section h3 {
  margin-bottom: 12px;
}

.question-block {
  transition: opacity 0.3s ease;
}

button#next-question {
  margin-left: auto;
}

button#next-question:hover {
  color: #fff;
}

button#next-question:before {
  display: none;
}
