:root {
  --primary: #2c5aa0;
  --primary-dark: #1e3d72;
  --secondary: #d4af37;
  --accent: #e63946;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --success: #28a745;
  --border-radius: 8px;
  --shadow: 0 5px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

body.psssb-test-page * {
  box-sizing: border-box;
}

body.psssb-test-page {
  background-color: #f5f7fa;
  color: var(--dark);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

body.psssb-test-page a {
  color: inherit;
  text-decoration: none;
}

body.psssb-test-page p {
  margin-bottom: 1.5rem;
}

body.psssb-test-page .container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}

body.psssb-test-page .page-container {
  align-items: flex-start;
  display: block;
  gap: 0;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0;
}

body.psssb-test-page .left-sidebar,
body.psssb-test-page .right-sidebar {
  margin: 0;
  padding: 0;
  position: fixed;
  top: 20px;
  width: 200px;
  z-index: 5;
}

body.psssb-test-page .left-sidebar {
  left: calc(50% - 700px);
}

body.psssb-test-page .right-sidebar {
  right: calc(50% - 700px);
}

body.psssb-test-page .center-content {
  margin: 0 auto;
  max-width: 950px;
  min-width: 0;
  width: 100%;
}

body.psssb-test-page .ad-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 0;
  padding: 0;
  position: relative;
  text-align: center;
  width: 200px;
}

body.psssb-test-page .adsbygoogle {
  min-height: 600px;
}

body.psssb-test-page .breadcrumb {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9rem;
  padding: 10px 0;
}

body.psssb-test-page .breadcrumb a {
  color: var(--primary);
}

body.psssb-test-page .breadcrumb a:hover {
  text-decoration: underline;
}

body.psssb-test-page .breadcrumb span {
  color: var(--gray);
}

body.psssb-test-page header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

body.psssb-test-page .header-content {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
}

body.psssb-test-page .logo {
  align-items: center;
  color: var(--primary);
  display: flex;
  font-size: 1.5rem;
  font-weight: 800;
  gap: 10px;
}

body.psssb-test-page .logo-icon {
  font-size: 1.8rem;
}

body.psssb-test-page nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.psssb-test-page nav a {
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

body.psssb-test-page nav a:hover {
  color: var(--primary);
}

body.psssb-test-page nav a::after {
  background: var(--primary);
  bottom: -5px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transition: var(--transition);
  width: 0;
}

body.psssb-test-page nav a:hover::after {
  width: 100%;
}

body.psssb-test-page .mobile-menu {
  cursor: pointer;
  display: none;
  font-size: 1.5rem;
}

body.psssb-test-page .tutor-wrap {
  margin: 40px auto;
  max-width: 950px;
  padding: 0;
  width: 100%;
}

body.psssb-test-page .lang-tabs {
  background: #fff;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0;
  margin: 0;
  overflow: hidden;
}

body.psssb-test-page .lang-tab {
  background: #fff;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--dark);
  cursor: pointer;
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 20px;
  text-align: center;
  transition: var(--transition);
}

body.psssb-test-page .lang-tab:hover {
  color: var(--primary);
}

body.psssb-test-page .lang-tab.active {
  background: var(--primary);
  border-bottom-color: var(--secondary);
  color: #fff;
}

body.psssb-test-page .tutor-header-panel {
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  padding: 15px 20px;
}

body.psssb-test-page .tutor-header-panel span {
  margin: 0;
}

body.psssb-test-page .tutor-body {
  background: #fff;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow);
  padding: 25px;
}

body.psssb-test-page .time-info-bar,
body.psssb-test-page .highlight-settings {
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  color: var(--dark);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 15px;
  padding: 12px 15px;
}

body.psssb-test-page .time-info-bar .val {
  color: var(--primary) !important;
}

body.psssb-test-page .highlight-settings label,
body.psssb-test-page .tet-switch {
  align-items: center;
  color: var(--dark);
  display: inline-flex;
  font-weight: 500;
  gap: 8px;
  margin: 0;
}

body.psssb-test-page .highlight-settings input[type="number"] {
  border: 1px solid #ced4da;
  border-radius: 4px;
  color: var(--dark);
  font: inherit;
  height: 36px;
  padding: 6px 10px;
  width: 76px;
}

body.psssb-test-page .highlight-settings input[type="checkbox"] {
  accent-color: var(--primary);
}

body.psssb-test-page .capslock-warning {
  background: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: var(--border-radius);
  color: #664d03;
  margin-bottom: 15px;
  padding: 10px 15px;
}

body.psssb-test-page .tutor-body fieldset {
  background: #fff !important;
  border: 1px solid #e9ecef !important;
  border-radius: var(--border-radius) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin: 0 0 15px !important;
  padding: 18px !important;
}

body.psssb-test-page .tutor-body legend {
  background: var(--primary) !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  padding: 6px 14px !important;
}

body.psssb-test-page #passage_text.passage-box {
  background: #fffdf1 !important;
  border: 1px solid #eadb93 !important;
  border-radius: 6px;
  color: var(--dark);
  font-size: 1.05rem;
  line-height: 1.8;
  min-height: 120px;
  padding: 15px !important;
}

body.psssb-test-page .passage-box .word {
  border-radius: 3px;
  padding: 1px 4px;
  transition: background 0.15s;
}

body.psssb-test-page .passage-box .word.current {
  background: var(--secondary) !important;
  border-bottom: 3px solid var(--accent) !important;
  color: #111827;
  font-weight: 700;
}

body.psssb-test-page .passage-box .word.correct,
body.psssb-test-page .passage-box .word.incorrect {
  background: transparent;
  color: inherit;
  text-decoration: none;
}

body.psssb-test-page .typing-area-wrap {
  margin: 0;
}

body.psssb-test-page textarea#write_text {
  background: #fff;
  border: 2px solid #d9e0e8;
  border-radius: var(--border-radius);
  color: var(--dark);
  display: block;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 180px;
  outline: none;
  padding: 15px;
  resize: vertical;
  transition: var(--transition);
  width: 100%;
}

body.psssb-test-page textarea#write_text:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44,90,160,0.14);
}

body.psssb-test-page .chunk-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

body.psssb-test-page .btn-submit,
body.psssb-test-page .btn-repeat {
  background: var(--primary) !important;
  border: none;
  border-radius: var(--border-radius);
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  min-height: 46px;
  padding: 12px 24px;
  text-align: center;
  transition: var(--transition);
}

body.psssb-test-page .btn-submit:hover,
body.psssb-test-page .btn-repeat:hover {
  background: var(--primary-dark) !important;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

body.psssb-test-page .btn-repeat {
  background: var(--secondary) !important;
  color: var(--dark);
}

body.psssb-test-page .btn-repeat:hover {
  background: #c19d2a !important;
}

body.psssb-test-page .govt-test-note {
  background: #f8f9fa;
  border-left: 4px solid var(--secondary);
  border-radius: var(--border-radius);
  color: #495057;
  line-height: 1.7;
  margin-top: 20px;
  padding: 16px 18px;
}

body.psssb-test-page .tet-switch-slider {
  background: #cfd6df;
}

body.psssb-test-page .tet-switch input:checked + .tet-switch-slider {
  background: var(--primary);
}

body.psssb-test-page .seo-practice-guide {
  background: #fff;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow);
  margin: 40px auto !important;
  max-width: 950px;
}

body.psssb-test-page footer {
  background: var(--dark);
  color: #fff;
  padding: 50px 0 20px;
}

body.psssb-test-page .footer-content {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 40px;
}

body.psssb-test-page .footer-column h3 {
  font-size: 1.2rem;
  margin: 0 0 20px;
}

body.psssb-test-page .footer-column p {
  color: #adb5bd;
  margin: 0;
}

body.psssb-test-page .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.psssb-test-page .footer-links li {
  margin-bottom: 10px;
}

body.psssb-test-page .footer-links a {
  color: #adb5bd;
  transition: var(--transition);
}

body.psssb-test-page .footer-links a:hover {
  color: #fff;
}

body.psssb-test-page .footer-bottom {
  border-top: 1px solid #343a40;
  color: #adb5bd;
  font-size: 0.9rem;
  padding-top: 30px;
  text-align: center;
}

body.psssb-test-page .footer-bottom p {
  margin: 0;
}

@media (max-width: 1200px) {
  body.psssb-test-page .left-sidebar,
  body.psssb-test-page .right-sidebar {
    width: 140px;
  }

  body.psssb-test-page .left-sidebar {
    left: 0;
  }

  body.psssb-test-page .right-sidebar {
    right: 0;
  }

  body.psssb-test-page .ad-container {
    width: 140px;
  }

  body.psssb-test-page .adsbygoogle {
    min-height: 500px;
  }
}

@media (max-width: 992px) {
  body.psssb-test-page .page-container {
    align-items: center;
  }

  body.psssb-test-page .left-sidebar,
  body.psssb-test-page .right-sidebar {
    max-width: 728px;
    position: static;
    width: 100%;
  }

  body.psssb-test-page .center-content {
    max-width: 100%;
    width: 100%;
  }

  body.psssb-test-page .ad-container {
    position: static;
    width: 100%;
  }

  body.psssb-test-page .adsbygoogle {
    min-height: 90px;
  }

  body.psssb-test-page .tutor-header-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  body.psssb-test-page nav ul {
    display: none;
  }

  body.psssb-test-page .mobile-menu {
    display: block;
  }

  body.psssb-test-page .tutor-wrap {
    margin: 24px auto;
    padding: 0 12px;
  }

  body.psssb-test-page .tutor-body {
    padding: 16px;
  }

  body.psssb-test-page .time-info-bar,
  body.psssb-test-page .highlight-settings {
    align-items: flex-start;
    flex-direction: column;
  }

  body.psssb-test-page .chunk-nav {
    align-items: stretch;
    flex-direction: column;
  }

  body.psssb-test-page .btn-submit,
  body.psssb-test-page .btn-repeat {
    margin-left: 0 !important;
    width: 100%;
  }
}

@media (max-width: 576px) {
  body.psssb-test-page .container {
    padding: 0 14px;
  }

  body.psssb-test-page .logo {
    font-size: 1.25rem;
  }

  body.psssb-test-page .lang-tab {
    padding: 12px 10px;
  }
}
