/* ANZSCO Search Page Styles */

/* Ensure navbar consistency */
.navbar {
  position: relative;
  z-index: 1000;
}

.navbar ul {
  margin: 0;
  padding: 0;
}

.navbar li {
  position: relative;
}

.dropdown-content {
  min-width: 250px;
}

.anzsco-hero {
  background: linear-gradient(135deg, #003366, #004080);
  color: white;
  padding: 80px 20px 60px;
  text-align: center;
}

.anzsco-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.anzsco-hero p {
  font-size: 1.3rem;
  opacity: 0.9;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Search Section */
.search-section {
  padding: 60px 20px;
  background: #f8f9fa;
}

.search-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.search-box h2 {
  color: #003366;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.search-box p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.search-input-group {
  display: flex;
  max-width: 600px;
  margin: 0 auto 2rem;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.1);
}

#searchInput {
  flex: 1;
  padding: 18px 25px;
  border: none;
  font-size: 1.1rem;
  outline: none;
  background: white;
}

.search-btn {
  background: #003366;
  color: white;
  border: none;
  padding: 18px 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #002244;
}

.search-results {
  background: white;
  border-radius: 10px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.search-results h3 {
  color: #003366;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.result-item {
  padding: 20px;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.result-item:hover {
  border-color: #003366;
  box-shadow: 0 2px 10px rgba(0, 51, 102, 0.1);
}

.result-code {
  font-size: 1.2rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 5px;
}

.result-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.result-description {
  color: #666;
  line-height: 1.6;
}

/* ANZSCO Info Section */
.anzsco-info {
  padding: 80px 20px;
  background: white;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr;
  gap: 50px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.info-main h2 {
  color: #003366;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 2rem;
}

.info-main h3 {
  color: #003366;
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
}

.anzsco-benefits {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.anzsco-benefits li {
  display: flex;
  align-items: flex-start;
  font-size: 1.1rem;
  line-height: 1.7;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  border-left: 5px solid #28a745;
  box-shadow: 0 3px 15px rgba(0, 51, 102, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.anzsco-benefits li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.15);
  border-left-color: #003366;
}

.anzsco-benefits li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #28a745, #20c997);
}

.anzsco-benefits i {
  color: #28a745;
  margin-right: 18px;
  margin-top: 2px;
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.anzsco-benefits li:hover i {
  background: rgba(0, 51, 102, 0.1);
  color: #003366;
  transform: scale(1.1);
}

.anzsco-benefits .benefit-content {
  flex: 1;
}

.anzsco-benefits strong {
  display: block;
  color: #003366;
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.anzsco-benefits .benefit-text {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.anzsco-structure {
  margin-top: 2rem;
}

.structure-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.structure-icon {
  background: #003366;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 20px;
  flex-shrink: 0;
}

.structure-content h4 {
  color: #003366;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.structure-content p {
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Sidebar */
.info-sidebar {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
  height: fit-content;
  min-width: 350px;
  max-width: 420px;
  margin-left: auto;
  margin-right: 0;
  justify-self: end;
}

.quick-facts h3,
.popular-searches h3 {
  color: #003366;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.fact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.fact-item i {
  background: #003366;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.fact-item strong {
  display: block;
  color: #003366;
  margin-bottom: 3px;
}

.fact-item p {
  color: #666;
  margin: 0;
}

.popular-searches {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popular-item {
  background: white;
  border: 1px solid #ddd;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.popular-item:hover {
  background: #003366;
  color: white;
  border-color: #003366;
}

/* How to Use Section */
.how-to-use {
  padding: 80px 20px;
  background: #f8f9fa;
}

.how-to-use h2 {
  text-align: center;
  color: #003366;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step {
  background: white;
  padding: 30px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.step:hover {
  transform: translateY(-5px);
}

.step-number {
  background: #003366;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step h3 {
  color: #003366;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.step p {
  color: #666;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #003366, #004080);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background: white;
  color: #003366;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  display: inline-block;
}

.cta-button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .anzsco-hero h1 {
    font-size: 2.2rem;
  }
  
  .anzsco-hero p {
    font-size: 1.1rem;
  }
  
  .search-input-group {
    flex-direction: column;
    border-radius: 10px;
  }
  
  #searchInput {
    border-radius: 10px 10px 0 0;
  }
  
  .search-btn {
    border-radius: 0 0 10px 10px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .info-sidebar {
    min-width: auto;
    max-width: none;
    padding: 20px;
    margin-left: 0;
    margin-right: 0;
    justify-self: auto;
  }
  
  .structure-item {
    flex-direction: column;
    text-align: center;
  }
  
  .structure-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Search result highlighting */
mark {
  background-color: #fff3cd;
  color: #856404;
  padding: 0;
  margin: 0;
  font-weight: 600;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Ensure no extra spacing in search results */
.result-title, .result-description {
  word-wrap: break-word;
  line-height: 1.4;
}

.result-title mark, .result-description mark {
  display: inline;
  white-space: nowrap;
}

/* ANZSCO Skill Levels Section */
.skill-levels-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.skill-levels-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 2rem;
  position: relative;
}

.skill-levels-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #003366, #28a745);
  border-radius: 2px;
}

.skill-levels-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.2rem;
  color: #555;
  line-height: 1.7;
}

.skill-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.skill-level-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #003366, #28a745);
}

.skill-level-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 51, 102, 0.15);
}

.skill-level-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.skill-level-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #003366, #004080);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.skill-level-header h3 {
  color: #003366;
  font-size: 1.5rem;
  margin: 0;
  flex-grow: 1;
}

.skill-level-badge {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-level-content p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.skill-examples {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #28a745;
  font-size: 0.95rem;
  color: #444;
}

.skill-examples strong {
  color: #003366;
}

.skill-levels-importance {
  background: white;
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.1);
  position: relative;
  overflow: hidden;
}

.skill-levels-importance::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #28a745, #20c997);
}

.skill-levels-importance h3 {
  color: #003366;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.importance-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.importance-list li {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  border-left: 4px solid #003366;
  transition: all 0.3s ease;
  line-height: 1.6;
}

.importance-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 51, 102, 0.1);
}

.importance-list li i {
  color: #28a745;
  font-size: 1.2rem;
  margin-right: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.importance-list li strong {
  color: #003366;
  margin-right: 0.5rem;
  display: inline-block;
}

.importance-list li .text-content {
  flex: 1;
}

.importance-list li .text-content strong {
  display: block;
  margin-bottom: 0.3rem;
}

/* Responsive Design for Skill Levels */
@media (max-width: 768px) {
  .skill-levels-section {
    padding: 60px 0;
  }
  
  .skill-levels-section h2 {
    font-size: 2rem;
  }
  
  .skill-levels-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skill-level-card {
    padding: 1.5rem;
  }
  
  .skill-levels-importance {
    padding: 2rem;
  }
  
  .importance-list {
    grid-template-columns: 1fr;
  }
}

/* Enhanced Sidebar Styles */
.expert-tips, .migration-pathways, .common-mistakes, .additional-resources {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0, 51, 102, 0.08);
  border-left: 4px solid #28a745;
}

.expert-tips h3, .migration-pathways h3, .common-mistakes h3, .additional-resources h3 {
  color: #003366;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tip-item, .mistake-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tip-item:hover, .mistake-item:hover {
  background: #e3f2fd;
  transform: translateX(3px);
}

.tip-item:last-child, .mistake-item:last-child {
  margin-bottom: 0;
}

.tip-item i, .mistake-item i {
  color: #28a745;
  font-size: 1rem;
  margin-right: 0.8rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.mistake-item i {
  color: #dc3545;
}

.tip-item strong, .mistake-item strong {
  color: #003366;
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.tip-item p, .mistake-item p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.pathway-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  border-left: 3px solid #003366;
  transition: all 0.3s ease;
}

.pathway-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 51, 102, 0.1);
}

.pathway-item:last-child {
  margin-bottom: 0;
}

.pathway-flag {
  font-size: 1.5rem;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.pathway-item strong {
  color: #003366;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.pathway-item p {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

.resource-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.resource-item:hover {
  background: #e3f2fd;
  transform: translateX(3px);
}

.resource-item:last-child {
  margin-bottom: 0;
}

.resource-item i {
  color: #28a745;
  font-size: 1rem;
  margin-right: 0.8rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.resource-item strong {
  color: #003366;
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.resource-item p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.help-cta {
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 51, 102, 0.15);
}

.help-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #28a745, #20c997);
}

.help-content i {
  color: #28a745;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.help-content h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.help-content p {
  color: #e8f4f8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.help-btn {
  background: #28a745;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.help-btn:hover {
  background: #20c997;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Mobile responsiveness for sidebar */
@media (max-width: 768px) {
  .expert-tips, .migration-pathways, .common-mistakes, .additional-resources, .help-cta {
    margin-bottom: 1.5rem;
    padding: 1rem;
  }
  
  .tip-item, .mistake-item, .pathway-item, .resource-item {
    padding: 0.6rem;
  }
  
  .help-content {
    padding: 0;
  }
}

/* ANZSCO Code Breakdown Section */
.code-breakdown-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.code-breakdown-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 3rem;
  position: relative;
}

.code-breakdown-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #003366, #28a745);
  border-radius: 2px;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: start;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.breakdown-main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.breakdown-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
}

.breakdown-example, .breakdown-comparison {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.1);
  position: relative;
  overflow: hidden;
}

.breakdown-example::before, .breakdown-comparison::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #003366, #28a745);
}

.breakdown-example h3, .breakdown-comparison h3 {
  color: #003366;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.code-visualization {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 2rem;
}

.code-segment {
  flex: 1;
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.code-segment:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 51, 102, 0.1);
}

.code-segment.level-1 { border-color: #dc3545; background: #fff5f5; }
.code-segment.level-2 { border-color: #fd7e14; background: #fff8f1; }
.code-segment.level-3 { border-color: #ffc107; background: #fffbf0; }
.code-segment.level-4 { border-color: #28a745; background: #f0fff4; }
.code-segment.level-5 { border-color: #17a2b8; background: #f0fdff; }
.code-segment.level-6 { border-color: #6f42c1; background: #f8f5ff; }

.segment-number {
  font-size: 2rem;
  font-weight: bold;
  color: #003366;
  margin-bottom: 0.5rem;
}

.segment-info h4 {
  font-size: 0.8rem;
  color: #003366;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.segment-info p {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
}

.comparison-table {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.table-header {
  display: contents;
}

.table-header > div {
  background: #003366;
  color: white;
  padding: 1rem 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.table-row {
  display: contents;
}

.table-row > div {
  padding: 0.8rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.table-row:nth-child(even) > div {
  background: #f8f9fa;
}

.table-row:hover > div {
  background: #e3f2fd;
}

.occupation-name {
  font-weight: 600;
  color: #003366;
}

.code-cell {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #28a745;
  justify-content: center;
}

.skill-level {
  justify-content: center;
  font-weight: 600;
  border-radius: 15px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
}

.skill-level.level-1 { background: #fff5f5; color: #dc3545; }
.skill-level.level-3 { background: #fffbf0; color: #ffc107; }

.interactive-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #28a745, #20c997);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  color: #003366;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.code-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.code-input-group input {
  flex: 1;
  padding: 0.8rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  text-align: center;
}

.code-input-group input:focus {
  border-color: #28a745;
  outline: none;
}

.lookup-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lookup-btn:hover {
  background: #20c997;
  transform: translateY(-2px);
}

.code-result {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #666;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-distribution {
  text-align: left;
}

.dist-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.dist-bar {
  height: 20px;
  border-radius: 10px;
  margin-right: 1rem;
  transition: all 0.3s ease;
  min-width: 20px;
}

.dist-bar.level-1 { background: linear-gradient(90deg, #dc3545, #ff6b7a); }
.dist-bar.level-2 { background: linear-gradient(90deg, #fd7e14, #ffaa5c); }
.dist-bar.level-3 { background: linear-gradient(90deg, #ffc107, #ffdd4a); }
.dist-bar.level-4 { background: linear-gradient(90deg, #28a745, #5cb85c); }
.dist-bar.level-5 { background: linear-gradient(90deg, #17a2b8, #5bc0de); }

.dist-item span {
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

.quick-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.category-btn {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border: 2px solid #e9ecef;
  padding: 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  color: #003366;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.category-btn:hover {
  background: linear-gradient(135deg, #003366, #004080);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 51, 102, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .code-breakdown-section {
    padding: 60px 0;
  }
  
  .breakdown-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .breakdown-main-content {
    order: 1;
  }
  
  .breakdown-sidebar {
    order: 2;
  }
  
  .code-visualization {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .code-segment {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 120px;
  }
  
  .comparison-table {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .table-header > div, .table-row > div {
    padding: 0.6rem;
    justify-content: flex-start;
  }
  
  .interactive-features {
    grid-template-columns: 1fr;
  }
  
  .quick-categories {
    grid-template-columns: 1fr;
  }
  
  .code-breakdown-section h2 {
    font-size: 2rem;
  }
  
  .breakdown-example h3, .breakdown-comparison h3 {
    font-size: 1.2rem;
  }
}

/* ============================================
   ENHANCED RESPONSIVE DESIGN FOR ANZSCO
   ============================================ */

/* Tablet Landscape: 1024px and below */
@media (max-width: 1024px) {
  .container {
    max-width: 95%;
    padding: 0 15px;
  }
  
  .anzsco-hero h1 {
    font-size: 2.5rem;
  }
  
  .anzsco-hero p {
    font-size: 1.1rem;
  }
  
  .info-grid {
    grid-template-columns: 1.4fr 1.6fr;
    gap: 30px;
  }
  
  .breakdown-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
  }
  
  .info-sidebar {
    max-width: 380px;
    padding: 25px;
  }
  
  .interactive-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skill-levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait: 768px and below - Enhanced */
@media (max-width: 768px) {
  .anzsco-hero {
    padding: 60px 20px 40px;
  }
  
  .anzsco-hero h1 {
    font-size: 2rem;
  }
  
  .anzsco-hero p {
    font-size: 1rem;
  }
  
  .search-section {
    padding: 40px 15px;
  }
  
  .search-box h2 {
    font-size: 1.8rem;
  }
  
  .search-box p {
    font-size: 1rem;
  }
  
  .search-input-group {
    flex-direction: column;
    border-radius: 10px;
    max-width: 100%;
  }
  
  #searchInput {
    border-radius: 10px 10px 0 0;
    padding: 15px 20px;
  }
  
  .search-btn {
    border-radius: 0 0 10px 10px;
    padding: 15px 25px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }
  
  .info-sidebar {
    min-width: auto;
    max-width: none;
    padding: 20px;
    margin-left: 0;
    margin-right: 0;
    justify-self: auto;
  }
  
  .info-main h2 {
    font-size: 2rem;
  }
  
  .info-main h3 {
    font-size: 1.5rem;
  }
  
  .structure-item {
    flex-direction: column;
    text-align: center;
  }
  
  .structure-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .breakdown-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .breakdown-main-content {
    order: 1;
  }
  
  .breakdown-sidebar {
    order: 2;
    margin-left: 0;
    max-width: none;
  }
  
  .code-visualization {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .code-segment {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 120px;
  }
  
  .comparison-table {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .table-header > div, .table-row > div {
    padding: 0.6rem;
    justify-content: flex-start;
  }
  
  .interactive-features {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .skill-levels-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skill-level-card {
    padding: 1.5rem;
  }
  
  .skill-levels-importance {
    padding: 2rem;
  }
  
  .importance-list {
    grid-template-columns: 1fr;
  }
  
  .quick-categories {
    grid-template-columns: 1fr;
  }
  
  .how-to-use h2 {
    font-size: 2rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content p {
    font-size: 1.1rem;
  }
}

/* Mobile Large: 600px and below */
@media (max-width: 600px) {
  .anzsco-hero {
    padding: 50px 15px 30px;
  }
  
  .anzsco-hero h1 {
    font-size: 1.8rem;
  }
  
  .anzsco-hero p {
    font-size: 0.9rem;
  }
  
  .search-section {
    padding: 30px 10px;
  }
  
  .search-box h2 {
    font-size: 1.5rem;
  }
  
  .search-box p {
    font-size: 0.9rem;
  }
  
  .anzsco-info {
    padding: 50px 15px;
  }
  
  .info-main h2 {
    font-size: 1.8rem;
  }
  
  .info-main h3 {
    font-size: 1.3rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .anzsco-benefits li {
    padding: 1rem;
  }
  
  .anzsco-benefits strong {
    font-size: 1.1rem;
  }
  
  .code-breakdown-section {
    padding: 50px 15px;
  }
  
  .code-breakdown-section h2 {
    font-size: 2rem;
  }
  
  .breakdown-example h3, .breakdown-comparison h3 {
    font-size: 1.2rem;
  }
  
  .code-segment {
    flex: 1 1 100%;
    min-width: auto;
  }
  
  .segment-number {
    font-size: 1.5rem;
  }
  
  .segment-info h4 {
    font-size: 0.7rem;
  }
  
  .segment-info p {
    font-size: 0.65rem;
  }
  
  .how-to-use {
    padding: 50px 15px;
  }
  
  .skill-levels-section {
    padding: 50px 15px;
  }
  
  .skill-levels-section h2 {
    font-size: 2rem;
  }
  
  .skill-level-card {
    padding: 1.2rem;
  }
  
  .skill-level-header h3 {
    font-size: 1.2rem;
  }
  
  .cta-section {
    padding: 50px 15px;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .cta-content p {
    font-size: 1rem;
  }
}

/* Mobile Small: 480px and below */
@media (max-width: 480px) {
  .anzsco-hero h1 {
    font-size: 1.5rem;
  }
  
  .anzsco-hero p {
    font-size: 0.85rem;
  }
  
  .search-box h2 {
    font-size: 1.3rem;
  }
  
  .info-main h2 {
    font-size: 1.5rem;
  }
  
  .info-main h3 {
    font-size: 1.2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .anzsco-benefits li {
    padding: 0.8rem;
  }
  
  .anzsco-benefits i {
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
  }
  
  .structure-item {
    padding: 15px;
  }
  
  .structure-icon {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .code-breakdown-section h2 {
    font-size: 1.8rem;
  }
  
  .skill-levels-section h2 {
    font-size: 1.8rem;
  }
  
  .how-to-use h2 {
    font-size: 1.8rem;
  }
  
  .cta-content h2 {
    font-size: 1.5rem;
  }
  
  .cta-content p {
    font-size: 0.9rem;
  }
  
  .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* Large Desktop: 1440px and above */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  .anzsco-hero h1 {
    font-size: 3.5rem;
  }
  
  .anzsco-hero p {
    font-size: 1.4rem;
  }
  
  .info-grid {
    max-width: 1500px;
  }
  
  .breakdown-grid {
    max-width: 1500px;
  }
  
  .interactive-features {
    grid-template-columns: repeat(3, 1fr);
  }
}
