/* TalentMasterKey Styles */

:root {
    --primary-cyan: #00A8E1;
    --accent-cyan: #0087C9;
    --light-cyan: #D4F2FF;
    --charcoal: #3D3D3D;
    --near-black: #1F1F1F;
    --cool-gray: #6B6B6B;
    --soft-gray: #F0F2F5;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--near-black);
    background: var(--soft-gray);
    min-height: 100vh;
}

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

/* Header */
header {
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary-cyan);
}

/* Sticky Progress Bar */
.sticky-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-cyan), #3b82f6);
    color: white;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.progress-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.timer-display {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.timer-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sticky-progress-bar .btn {
    background: white;
    color: var(--primary-cyan);
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sticky-progress-bar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

body.has-sticky-bar {
    padding-top: 80px;
}

@media (max-width: 768px) {
    .sticky-progress-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }
    
    .progress-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .timer-display {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    body.has-sticky-bar {
        padding-top: 140px;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-logo {
    flex: 0 1 auto;
}

/* Center logo on landing page */
.landing-page .header-logo {
    flex: 1 1 100%;
    text-align: center;
}

.header-logo a {
    display: inline-block;
}

.logo {
    max-width: 450px;
    height: auto;
    width: 100%;
}

/* User Navigation */
.user-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

/* Center user navigation on landing page */
.landing-page .user-nav {
    flex: 1 1 100%;
    justify-content: center;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 1rem;
}

.lang-link {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: var(--soft-gray);
    transition: all 0.2s;
}

.lang-link:hover {
    background: var(--primary-cyan);
    color: var(--white);
}

/* RTL Support */
body.rtl {
    direction: rtl;
}

body.rtl .language-switcher {
    margin-left: 1rem;
    margin-right: auto;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .user-nav {
    flex-direction: row-reverse;
}

body.rtl .main-nav {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    direction: rtl;
}

.user-nav a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.user-nav a:hover {
    color: var(--primary-cyan);
}

.user-nav .separator {
    color: var(--cool-gray);
    opacity: 0.5;
}

/* Main Navigation Menu */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 2px solid var(--soft-gray);
}

.main-nav-link {
    color: var(--charcoal);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
    font-size: 1rem;
}

.main-nav-link:hover {
    background: var(--primary-cyan);
    color: var(--white);
}

.btn-login {
    background: var(--primary-cyan);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-login:hover {
    background: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 225, 0.3);
}

.nav-separator {
    color: var(--cool-gray);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
    }
    
    .header-logo {
        text-align: center;
        width: 100%;
    }
    
    .user-nav {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-separator {
        display: none;
    }
    
    .main-nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn-login {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
}

/* Main Content */
main {
    background: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    min-height: 500px;
}

/* Welcome Section */
.welcome-section h2 {
    color: var(--charcoal);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--cool-gray);
    margin-bottom: 2rem;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.model-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-cyan);
}

.model-card h3 {
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.model-card ul {
    list-style-position: inside;
    margin-top: 1rem;
}

.model-card li {
    margin: 0.5rem 0;
}

.assessment-info {
    background: var(--light-cyan);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-cyan);
}

.assessment-info p {
    margin: 0.5rem 0;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-cyan);
    color: var(--white);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-cyan);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 225, 0.4);
}

/* Social Sharing Buttons */
.social-sharing {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: var(--soft-gray);
    border-radius: 8px;
}

.social-sharing h4 {
    color: var(--charcoal);
    margin-bottom: 15px;
    font-size: 1rem;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: white;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-linkedin {
    background: #0077B5;
}

.btn-linkedin:hover {
    background: #005885;
}

.btn-twitter {
    background: #000000;
}

.btn-twitter:hover {
    background: #14171A;
}

.btn-email {
    background: var(--charcoal);
}

.btn-email:hover {
    background: var(--near-black);
}

@media (max-width: 600px) {
    .social-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-social {
        justify-content: center;
    }
}

.btn-secondary {
    background: var(--charcoal);
    color: white;
}

.btn-secondary:hover {
    background: var(--near-black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(61, 61, 61, 0.4);
}

/* Assessment Section */
.assessment-section h2 {
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.instructions {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    margin-bottom: 2rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
    margin: 1rem 0;
    font-weight: 600;
}

/* Progress Bar */
.progress-bar {
    background: #e9ecef;
    height: 30px;
    border-radius: 15px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-cyan), var(--accent-cyan));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 15px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: var(--near-black);
}

/* Likert Scale */
.likert-scale-legend {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.question-item {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.question-item.answered {
    border-left-color: #28a745;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--near-black);
}

.question-number {
    color: var(--primary-cyan);
    font-weight: 600;
    margin-right: 0.5rem;
}

.likert-scale {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.likert-scale label {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.likert-scale label:first-child,
.likert-scale label:last-child {
    flex: 1.5;
}

.likert-scale label:hover {
    border-color: var(--primary-cyan);
    background: var(--light-cyan);
}

.likert-scale input[type="radio"] {
    display: none;
}

.likert-scale input[type="radio"]:checked + span {
    background: var(--primary-cyan);
    color: var(--near-black);
    font-weight: 700;
}

.likert-scale label span {
    display: block;
    padding: 0.5rem;
    border-radius: 3px;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #dee2e6;
}

/* Results Section */
.results-section h2 {
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.results-intro {
    font-size: 1.1rem;
    color: var(--cool-gray);
    margin-bottom: 2rem;
}

.report-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
}

.report-section h3 {
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-cyan);
    padding-bottom: 0.5rem;
}

.riasec-primary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 5px solid #28a745;
}

.riasec-primary h4 {
    color: #28a745;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.type-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--cool-gray);
}

.results-table {
    width: 100%;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.results-table th {
    background: var(--primary-cyan);
    color: var(--near-black);
    font-weight: 700;
    padding: 1rem;
    text-align: left;
}

.results-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.label-high {
    background: #d4edda;
    color: #155724;
}

.label-medium {
    background: #fff3cd;
    color: #856404;
}

.label-low {
    background: #f8d7da;
    color: #721c24;
}

/* Domain Cards */
.domain-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.domain-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary-cyan);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.domain-card.level-high {
    border-top-color: #28a745;
}

.domain-card.level-medium {
    border-top-color: #ffc107;
}

.domain-card.level-low {
    border-top-color: #dc3545;
}

.domain-card h4 {
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.score-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.domain-description {
    color: var(--cool-gray);
    line-height: 1.6;
}

/* Facets Grid */
.facets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.facet-domain {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
}

.facet-domain h4 {
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.facet-list {
    list-style: none;
}

.facet-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: var(--soft-gray);
    border-radius: 5px;
}

.facet-name {
    font-weight: 600;
    color: var(--primary-cyan);
}

.facet-score {
    font-weight: 600;
    margin: 0 1rem;
}

.facet-intro {
    color: #666;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    flex: 1;
    text-align: center;
}

.footer-right {
    flex: 0 0 auto;
    text-align: right;
}

footer p {
    margin: 0.5rem 0;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--light-cyan);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links .separator {
    margin: 0 0.25rem;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 1.5rem;
    }
    
    .likert-scale {
        flex-direction: column;
    }
    
    .likert-scale label {
        margin: 0.25rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
        width: 100%;
    }
}

/* New TalentMasterKey Styles */
.what-youll-discover {
    margin: 2rem 0;
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.discovery-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-cyan);
}

.discovery-item h4 {
    color: var(--primary-cyan);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.reassurance {
    background: var(--light-cyan);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
    border-left: 4px solid var(--primary-cyan);
}

/* Intro Pages */
.intro-section {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.intro-content h3 {
    color: var(--primary-cyan);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.intro-content h3:first-child {
    margin-top: 0;
}

.example-box {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin: 1.5rem 0;
}

.example-box h4 {
    color: #856404;
    margin-bottom: 0.75rem;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tips-list li:before {
    content: "";
    position: absolute;
    left: 0;
}

.time-estimate {
    background: #e8f5e9;
    padding: 1rem;
    border-radius: 8px;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
}

.welcome-msg {
    font-size: 1.2rem;
    color: var(--cool-gray);
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-cyan);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-card h2 {
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.assessment-list {
    margin: 1.5rem 0;
}

.assessment-item {
    background: var(--soft-gray);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.assessment-info {
    flex: 1;
    line-height: 1.8;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-in_progress {
    background: #fff3cd;
    color: #856404;
}

.status-abandoned {
    background: #f8d7da;
    color: #721c24;
}

.no-data {
    color: var(--cool-gray);
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.cta-section {
    margin-top: 2rem;
    text-align: center;
}

.profile-summary {
    line-height: 2;
}

.consent-status {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-cyan);
    border-radius: 6px;
}

.badge-yes {
    color: #155724;
    font-weight: 600;
}

.badge-no {
    color: #721c24;
    font-weight: 600;
}

.consent-date {
    font-size: 0.9rem;
    color: var(--cool-gray);
    margin-top: 0.5rem;
}

/* Profile Styles */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.profile-sections {
    margin-top: 2rem;
}

.profile-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-cyan);
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-card h2 {
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--soft-gray);
}

.info-row label {
    font-weight: 600;
    color: var(--cool-gray);
}

.section-desc {
    color: var(--cool-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.consent-active {
    color: #155724;
    font-weight: 600;
}

.consent-inactive {
    color: var(--cool-gray);
    font-weight: 600;
}

.form-section {
    margin: 2rem 0;
}

.form-section h3 {
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.field-note {
    color: var(--cool-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.form-row label {
    font-weight: 500;
    color: var(--charcoal);
}

.form-input {
    padding: 0.5rem;
    border: 1px solid var(--cool-gray);
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .assessment-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}
    margin-top: 1.5rem;
    border-left: 4px solid #4caf50;
}

.time-estimate p {
    margin: 0.25rem 0;
}

/* Content Pages (How It Works, About, Developer) */
.content-page {
    max-width: 900px;
    margin: 0 auto;
}

.content-page h1 {
    color: var(--charcoal);
    margin-bottom: 2rem;
    text-align: center;
}

.content-page h2 {
    color: var(--primary-cyan);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-page .section {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.step-card {
    background: var(--light-cyan);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-cyan);
}

.step-card h3 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.step-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.step-card li {
    margin-bottom: 0.5rem;
}

.tips-box {
    background: #e8f5e9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.tips-box p {
    margin: 0.5rem 0;
}

.powered-by-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

.hrmk-logo-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    display: inline-block;
}

.hrmk-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
}

.powered-by-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--charcoal);
    margin: 0;
}

.powered-by-text .hr-link {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.powered-by-text .hr-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.cta-section {
    text-align: center;
    margin-top: 2rem;
}

/* Mobile responsiveness for logo */
@media (max-width: 768px) {
    .logo {
        max-width: 300px;
    }
    
    .discovery-grid {
        grid-template-columns: 1fr;
    }
    
    .content-page .section {
        padding: 1.5rem;
    }
    
    .step-card {
        padding: 1rem;
    }
}

/* Visualizations Section */
.visualizations {
    background: linear-gradient(135deg, var(--light-cyan) 0%, var(--white) 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.chart-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-box canvas {
    max-width: 100%;
    height: auto !important;
}

/* Career Recommendations Section */
.career-recommendations {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.career-intro {
    color: var(--cool-gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.career-card {
    background: var(--soft-gray);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.career-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-cyan);
    box-shadow: 0 4px 15px rgba(0, 168, 225, 0.2);
}

.career-header h4 {
    color: var(--charcoal);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.career-arabic {
    display: block;
    color: var(--cool-gray);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.career-match {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 6px;
}

.match-label {
    font-size: 0.85rem;
    color: var(--cool-gray);
    font-weight: 500;
}

.match-score {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-cyan);
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.holland-tag {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--accent-cyan) 100%);
    color: var(--white);
}

/* Responsive Design for Charts and Careers */
@media (max-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .chart-box {
        min-height: 300px;
    }
    
    .careers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .visualizations {
        padding: 1rem;
    }
    
    .chart-box {
        padding: 1rem;
        min-height: 250px;
    }
    
    .career-card {
        padding: 1rem;
    }
}

/* Facet Descriptions Enhancement */
.facet-list li {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--soft-gray);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.facet-list li:hover {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.facet-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.facet-name {
    flex: 1 1 200px;
    font-weight: 600;
    color: var(--charcoal);
}

.facet-score {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-cyan);
}

.facet-description {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--cool-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive adjustments for facet descriptions */
@media (max-width: 768px) {
    .facet-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .facet-description {
        font-size: 0.9rem;
    }
}

/* Enhanced RIASEC Description Styling */
.type-description {
    background: var(--soft-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.type-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--charcoal);
}

.type-description p:first-child {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--near-black);
}

.type-description p:last-child {
    margin-bottom: 0;
}

.type-description strong {
    color: var(--primary-cyan);
    font-weight: 600;
}

/* Educational Pathways Section */
.educational-pathways {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.pathways-intro {
    color: var(--cool-gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.pathways-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pathway-card {
    background: var(--soft-gray);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.pathway-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 4px 15px rgba(0, 168, 225, 0.15);
}

.pathway-career-title {
    color: var(--charcoal);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-cyan);
}

.pathway-detail {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.pathway-label {
    font-weight: 600;
    color: var(--cool-gray);
    min-width: 130px;
    font-size: 0.9rem;
}

.pathway-value {
    color: var(--charcoal);
    flex: 1;
}

.pathway-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pathway-section-title {
    display: block;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.pathway-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pathway-list li {
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--cool-gray);
    font-size: 0.9rem;
}

.pathway-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
    font-weight: bold;
}

.pathway-info {
    background: linear-gradient(135deg, var(--light-cyan) 0%, var(--white) 100%);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--charcoal);
    border-left: 3px solid var(--primary-cyan);
}

.pathway-info strong {
    color: var(--primary-cyan);
}

/* Responsive Design for Pathways */
@media (max-width: 768px) {
    .pathways-container {
        grid-template-columns: 1fr;
    }
    
    .pathway-detail {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .pathway-label {
        min-width: auto;
    }
}

/* Authentication Pages Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 480px;
    width: 100%;
}

.auth-card h1 {
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--cool-gray);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid #ddd;
    background: var(--white);
    color: var(--charcoal);
}

.oauth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.oauth-google {
    border-color: #4285F4;
}

.oauth-google:hover {
    background: #f8f9fa;
}

.oauth-linkedin {
    border-color: #0077B5;
    background: #0077B5;
    color: white;
}

.oauth-linkedin:hover {
    background: #006399;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--cool-gray);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 168, 225, 0.1);
}

.form-hint {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--cool-gray);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.link-secondary {
    color: var(--primary-cyan);
    text-decoration: none;
    font-size: 0.9rem;
}

.link-secondary:hover {
    text-decoration: underline;
}

.btn-primary {
    background: var(--primary-cyan);
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 225, 0.3);
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    color: var(--cool-gray);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-error {
    background: #fee;
    color: #c00;
    border-left: 4px solid #c00;
}

.alert-success {
    background: #efe;
    color: #060;
    border-left: 4px solid #060;
}

.alert-warning {
    background: #ffe;
    color: #960;
    border-left: 4px solid #960;
}

.alert-info {
    background: #eef;
    color: #009;
    border-left: 4px solid #009;
}

.migrate-card {
    max-width: 600px;
}

.migration-info {
    background: linear-gradient(135deg, var(--light-cyan) 0%, var(--white) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-cyan);
}

.migration-info p {
    margin: 0.5rem 0;
}

.migration-options h3,
.migration-options h4 {
    color: var(--charcoal);
    margin: 1.5rem 0 1rem;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-card h1 {
        font-size: 1.75rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
    }
}

/* ========================================
   Google AdSense Styling
   ======================================== */

.adsense-wrapper {
    background: linear-gradient(135deg, rgba(0, 168, 225, 0.03) 0%, rgba(0, 135, 201, 0.05) 100%);
    border: 1px solid rgba(0, 168, 225, 0.15);
    border-radius: 12px;
    padding: 25px 20px;
    margin: 40px auto;
    max-width: 970px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.adsense-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--accent-cyan));
}

.adsense-wrapper:hover {
    box-shadow: 0 6px 16px rgba(0, 168, 225, 0.15);
    transform: translateY(-2px);
}

.adsense-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cool-gray);
    margin-bottom: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    border: 1px solid rgba(0, 168, 225, 0.2);
}

.adsense-container {
    text-align: center;
    min-height: 90px;
    width: 100%;
    min-width: 300px;
    display: block;
    background: var(--white);
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

.adsense-container ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-width: 300px;
}

/* Placeholder for when ads are loading or not available */
.adsense-placeholder {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--accent-cyan) 100%);
    padding: 20px;
    border-radius: 8px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-placeholder p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* AdSense on summary page - special styling */
.ad-placement-top {
    margin-top: 20px;
    margin-bottom: 30px;
}

.ad-placement-bottom {
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Responsive design for ads */
@media (max-width: 768px) {
    .adsense-wrapper {
        padding: 20px 15px;
        margin: 30px auto;
        border-radius: 8px;
    }
    
    .adsense-label {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .adsense-container {
        padding: 8px;
        min-height: 70px;
    }
    
    .ad-placement-top,
    .ad-placement-bottom {
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .adsense-wrapper {
        padding: 15px 10px;
        margin: 20px auto;
    }
    
    .adsense-container {
        min-height: 60px;
    }
}
