/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Site Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.branding .site-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

.branding .site-logo:hover {
    color: #666;
}

/* Primary Navigation */
.primary-nav {
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: relative;
}

/* Hamburger menu - CSS only */
.menu-toggle {
    display: none;
}

.mobile-menu-bar {
    display: none;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #ddd;
    transition: background 0.2s ease;
}

.mobile-menu-bar:hover {
    background: rgba(245, 247, 250, 0.95);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    margin-right: 12px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

/* Hamburger animation */
.menu-toggle:checked ~ .mobile-menu-bar .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle:checked ~ .mobile-menu-bar .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked ~ .mobile-menu-bar .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Navigation menu */
.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0 2rem;
    margin: 0 auto;
    max-width: 1200px;
    justify-content: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 1rem 0.75rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-menu a:hover {
    color: #000;
    border-bottom-color: #000;
}

/* Main content */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    color: #000;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h2 {
    color: #000;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #333;
}

a {
    color: #000;
    text-decoration: underline;
}

a:hover {
    color: #666;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
}

.breadcrumb-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #0f172a;
    text-decoration: underline;
}

.breadcrumb-item span {
    color: #0f172a;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #94a3b8;
    margin: 0 0.5rem;
    font-size: 0.75rem;
}

/* Site Footer */
.site-footer {
    margin-top: auto;
    background: #0f172a;
    color: #fff;
    padding: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-container p {
    margin: 0;
    color: #fff;
}

.site-footer nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.site-footer nav a, .site-footer .footer-container a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.site-footer nav a:hover, .site-footer .footer-container a:hover {
    text-decoration: underline;
}

/* Responsive - Tablet */
@media (max-width: 820px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .site-footer nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .branding .site-logo {
        font-size: 1.25rem;
    }

    .breadcrumb-nav .container {
        padding: 0 1rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .breadcrumb-separator {
        margin: 0 0.35rem;
    }

    .mobile-menu-bar {
        display: flex;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        background: #fff;
        border-top: 1px solid #ddd;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu-toggle:checked ~ .nav-menu {
        max-height: 500px;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #ddd;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 16px 24px;
        border-radius: 0;
        border-bottom: none !important;
        text-align: left;
    }

    .nav-menu a:hover {
        background: #f5f5f5;
        border-bottom: none !important;
    }

    main {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .site-footer {
        padding: 1.5rem 1rem;
    }
}

/* Responsive - Small mobile */
@media (max-width: 480px) {
    .header-container {
        padding: 1rem;
    }

    .branding .site-logo {
        font-size: 1.15rem;
    }

    .breadcrumb-nav .container {
        padding: 0 0.75rem;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    main {
        padding: 1rem 0.75rem;
    }

    h1 {
        font-size: 1.35rem;
    }
}

/* Category page styles */
.category-list {
    display: grid;
    gap: 1rem;
}

.category-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    transition: box-shadow 0.2s;
}

.category-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-item .category-header {
    margin-bottom: 0.5rem;
}

.category-item .category-header a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}

.category-item .category-header a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.category-item .category-description {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

/* Total count display */
.total-count {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
}

/* Job list styles */
.job-list {
    display: grid;
    gap: 1rem;
}

.job-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    transition: box-shadow 0.2s;
}

.job-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.job-item .job-name {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.job-item .job-name a {
    color: #1e293b;
    text-decoration: none;
}

.job-item .job-name a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.job-item .job-summary {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Axis links box */
.axis-links-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
}

.axis-links-box h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 0.75rem 0;
}

.axis-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.axis-links a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
}

.axis-links a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Classification list styles */
.classification-list {
    display: grid;
    gap: 1rem;
}

.classification-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    transition: box-shadow 0.2s;
}

.classification-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.classification-item .classification-header {
    margin-bottom: 0.5rem;
}

.classification-item .classification-header a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}

.classification-item .classification-header a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Axis values styles */
.axis-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
}

.axis-value-item {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
}

.axis-value-item:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Aptitude cards styles */
.aptitude-cards {
    display: grid;
    gap: 1rem;
}

.aptitude-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    transition: box-shadow 0.2s;
}

.aptitude-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.aptitude-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.aptitude-card h3 a {
    color: #1e293b;
    text-decoration: none;
}

.aptitude-card h3 a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.aptitude-card .aptitude-description {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Aptitudes buttons */
.aptitudes-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 2rem 0;
}

.aptitudes-button {
    display: block;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.aptitudes-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.aptitudes-button-strengths {
    border-left: 4px solid #475569;
}

.aptitudes-button-weaknesses {
    border-left: 4px solid #64748b;
}

@media (max-width: 768px) {
    .aptitudes-buttons {
        max-width: none;
    }

    .aptitudes-button {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
}

.aptitude-description-long {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.aptitude-description-long p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Matching jobs count */
.matching-jobs-count {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
}

/* Classification hierarchy styles */
.classification-hierarchy {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.classification-hierarchy ul {
    list-style: circle;
    padding-left: 1.5rem;
    margin: 0.25rem 0;
}

.classification-hierarchy ul ul {
    list-style: square;
}

.classification-hierarchy li {
    margin: 0.5rem 0;
}

.classification-hierarchy a {
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.classification-hierarchy a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Tag cloud styles */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
}

.tag-cloud a {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* View all link styles */
.view-all-link {
    margin-top: 1rem;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pagination-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.pagination-current {
    background: #1e293b;
    border-color: #1e293b;
    color: #fff;
}

.pagination-current:hover {
    background: #1e293b;
    color: #fff;
}

.pagination-prev,
.pagination-next {
    font-weight: 500;
}

/* Responsive for category pages */
@media (max-width: 768px) {
    .axis-links {
        gap: 0.375rem;
    }

    .axis-links a {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .tag-cloud {
        gap: 0.375rem;
    }

    .tag-cloud a {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }

    .pagination {
        gap: 0.125rem;
    }

    .pagination-link {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.5rem;
        font-size: 0.8rem;
    }
}

/* Language selection page styles */
.language-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.language-selection h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000;
}

.language-selection-message {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 2rem;
    color: #666;
    font-size: 1rem;
}

.language-buttons {
    display: flex;
    gap: 1.5rem;
}

.language-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
}

.language-button:hover {
    background: #f5f5f5;
    color: #000;
}

@media (max-width: 480px) {
    .language-selection h1 {
        font-size: 1.35rem;
    }

    .language-selection-message {
        font-size: 0.9rem;
    }

    .language-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 200px;
    }

    .language-button {
        padding: 0.875rem 2rem;
        width: 100%;
        text-align: center;
    }
}

/* Home page styles */
.home-hero {
    text-align: center;
    padding: 2rem 0 3rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.home-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.home-subtitle {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 1rem;
}

.home-appeal {
    font-size: 1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.home-features {
    margin-top: 1rem;
}

.home-features h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.feature-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.feature-card h3 a {
    color: #1e293b;
    text-decoration: none;
}

.feature-card h3 a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.feature-card p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .home-hero {
        padding: 1.5rem 0 2rem;
    }

    .home-hero h1 {
        font-size: 1.5rem;
    }

    .home-subtitle {
        font-size: 1rem;
    }

    .home-appeal {
        font-size: 0.9rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
