/* =====================================================
   CyberShield Resilience Index (CSRI) - Stylesheet
   Matching CyBehave.com Design Language
   Brand Colors: #6490A3 (Primary), #4B506D (Headings)
   ===================================================== */

/* CSS Variables - Matching CyBehave Main Site */
:root {
    /* CyBehave Brand Colors */
    --primary: #6490A3;
    --primary-dark: #527a8a;
    --primary-light: #7fb3c9;
    --heading-color: #4B506D;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    
    /* Backgrounds */
    --bg-base: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    /* Border & Shadow */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Header height */
    --header-height: 80px;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary: #7fb3c9;
    --primary-dark: #6490A3;
    --heading-color: #cbd5e1;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --bg-base: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --border: #334155;
    --border-light: #475569;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.7);
}

/* =====================================================
   ASSESSMENT PAGE LAYOUT
   ===================================================== */

.assessment-page-wrapper {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0 var(--spacing-xs) 0;
}

.assessment-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Instructions Section */
.assessment-instructions {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.assessment-instructions h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.assessment-instructions p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Progress Section */
.progress-section {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-percentage {
    font-size: 1.15rem;
    font-weight: 700;
    color: #6490A3;
}

[data-theme="dark"] .progress-percentage {
    color: #7fb3c9;
}

.progress-dots-container {
    display: flex;
    justify-content: center;
}

.progress-dots {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
}

.progress-dot.completed {
    background: #6490A3;
}

.progress-dot.current {
    background: #6490A3;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Dark mode */
[data-theme="dark"] .progress-dot.completed,
[data-theme="dark"] .progress-dot.current {
    background: #7fb3c9;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Question Card */
.question-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-bottom: var(--spacing-md);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.question-number {
    background: #6490A3;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Dark mode */
[data-theme="dark"] .question-number {
    background: #7fb3c9;
    color: #0f172a;
}

.question-dimension {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 600;
}

.question-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--heading-color);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Response Options */
.response-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1rem;
}

.response-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.response-option:hover {
    background: #f1f5f9;
    border-color: #6490A3;
}

/* Dark mode */
[data-theme="dark"] .response-option {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .response-option:hover {
    background: #334155;
    border-color: #7fb3c9;
}

.response-option.selected {
    background: #6490A3;
    border-color: #6490A3;
}

.response-option.selected .option-label {
    color: #ffffff;
    font-weight: 600;
}

/* Dark mode selected option */
[data-theme="dark"] .response-option.selected {
    background: #7fb3c9;
    border-color: #7fb3c9;
}

[data-theme="dark"] .response-option.selected .option-label {
    color: #0f172a;
}

[data-theme="dark"] .response-option.selected .option-number {
    background: #0f172a;
    color: #7fb3c9;
    border-color: #0f172a;
}

.response-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Numbered circle for keyboard shortcuts */
.option-number {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.2s ease;
}

[data-theme="dark"] .option-number {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

.response-option.selected .option-number {
    background: #ffffff;
    color: #6490A3;
    border-color: #ffffff;
}

.option-label {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.option-check {
    display: none;
    width: 18px;
    height: 18px;
    color: white;
    font-weight: 700;
}

.response-option.selected .option-check {
    display: block;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #6490A3;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover:not(:disabled) {
    background: #527a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #f8fafc;
    color: #1e293b;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #6490A3;
    color: #6490A3;
}

/* Dark mode buttons */
[data-theme="dark"] .btn-primary {
    background: #7fb3c9;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-primary:hover:not(:disabled) {
    background: #8ec3d9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .btn-secondary {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #334155;
    border-color: #7fb3c9;
    color: #7fb3c9;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Helper Text */
.assessment-helper-text {
    text-align: center;
    padding: 0.65rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.assessment-helper-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.85rem;
}

.assessment-helper-text strong {
    color: var(--text-primary);
}

/* =====================================================
   INDEX PAGE SECTIONS
   ===================================================== */

.hero {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, #6490A3 0%, #4B506D 100%);
    padding: var(--spacing-2xl) 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 0L31 29L60 30L31 31L30 60L29 31L0 30L29 29Z" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

[data-theme="light"] .hero::before {
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 0L31 29L60 30L31 31L30 60L29 31L0 30L29 29Z" fill="rgba(100,144,163,0.1)"/></svg>');
    opacity: 0.4;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: var(--spacing-2xl) 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

[data-theme="light"] .hero h1 {
    color: #0f172a;
}

.hero .highlight {
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

[data-theme="light"] .hero .highlight {
    color: #0c4a6e;
    text-shadow: none;
    font-weight: 900;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
}

[data-theme="light"] .hero-subtitle {
    color: #1e293b;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 140px;
}

[data-theme="light"] .stat {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(100, 144, 163, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

[data-theme="light"] .stat-number {
    color: #0c4a6e;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="light"] .stat-label {
    color: #475569;
}

/* Sections */
section {
    padding: var(--spacing-2xl) 0;
}

section:first-of-type {
    margin-top: var(--header-height);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Alternating Section Backgrounds */
.benefits-section {
    background: var(--bg-base);
}

.dimensions-section {
    background: var(--bg-secondary);
}

.cta-section {
    background: var(--bg-base);
}

.science-section {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #6490A3;
}

.benefit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-md);
    background: #6490A3;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .benefit-icon {
    background: #7fb3c9;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
    stroke-width: 2.5;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Dimensions Grid */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.dimension-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: start;
    gap: var(--spacing-md);
    transition: all 0.3s ease;
}

.dimension-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #6490A3;
}

.dimension-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #6490A3;
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
}

[data-theme="dark"] .dimension-card:hover {
    border-color: #7fb3c9;
}

[data-theme="dark"] .dimension-number {
    background: #7fb3c9;
    color: #0f172a;
}

.dimension-content h3,
.dimension-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.35rem;
}

.dimension-content p,
.dimension-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CTA Section */
.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-2xl) 5%;
}

.cta-content h2 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.start-form {
    margin-bottom: var(--spacing-md);
}

.btn-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #6490A3;
    color: #ffffff;
    padding: 16px 40px;
    font-size: 1.15rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

.btn-start:hover {
    background: #527a8a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] .btn-start {
    background: #7fb3c9;
    color: #0f172a;
}

[data-theme="dark"] .btn-start:hover {
    background: #8ec3d9;
}

.btn-start svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-start:hover svg {
    transform: translateX(4px);
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.privacy-badge svg {
    width: 18px;
    height: 18px;
    color: #6490A3;
}

[data-theme="dark"] .privacy-badge svg {
    color: #7fb3c9;
}

/* Science Section - Compact Single Card */
.science-card-single {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-left: 4px solid #6490A3;
    box-shadow: var(--shadow-sm);
    max-width: 950px;
    margin: 0 auto;
}

[data-theme="dark"] .science-card-single {
    border-left-color: #7fb3c9;
}

.science-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.science-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.2rem;
}

.science-author {
    font-size: 0.8rem;
    color: #6490A3;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

[data-theme="dark"] .science-author {
    color: #7fb3c9;
}

.science-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* =====================================================
   RESULTS PAGE
   ===================================================== */

.certificate-section,
.dimension-results,
.insights-section,
.recommendations-section,
.next-steps {
    background: var(--bg-secondary);
}

.results-hero {
    background: var(--bg-card);
    padding: var(--spacing-2xl) 5%;
    text-align: center;
    margin-top: var(--header-height);
    border-bottom: 1px solid var(--border);
}

/* Certificate Section */
.certificate-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.certificate-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.certificate-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.certificate-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.certificate-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.certificate-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

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

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: #6490A3;
    background: var(--bg-card);
}

[data-theme="dark"] .input-field:focus {
    border-color: #7fb3c9;
}

.btn-certificate {
    width: 100%;
    margin-top: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.score-display {
    margin: var(--spacing-xl) 0;
}

.score-circle-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.score-progress-ring {
    width: 200px;
    height: 200px;
}

.progress-ring-bg {
    stroke: var(--border);
}

[data-theme="dark"] .progress-ring-bg {
    stroke: #334155;
}

.progress-ring-circle {
    transition: stroke-dashoffset 1s ease-in-out;
}

.score-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
}

.score-band {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
}

.score-band h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
}

.score-band p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    text-align: left;
}

/* Radar Chart Section - Centered */
.radar-chart-section {
    margin: var(--spacing-2xl) 0;
    text-align: center;
}

.radar-chart-container {
    background: var(--bg-card);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-chart-container canvas {
    max-width: 100%;
    max-height: 600px;
}

.chart-caption {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Dimensions Grid - 3 Columns */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: var(--spacing-xl);
}

.dimension-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dimension-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #6490A3;
    transform: translateY(-2px);
}

.dimension-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.dimension-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.dimension-score-badge {
    min-width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dimension-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    flex: 1;
}

.dimension-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: auto;
}

.dimension-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* Old styles kept for compatibility */
.dimension-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.4rem 0;
}

.dimension-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.dimension-score-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 180px;
}

.score-number {
    font-size: 2rem;
    font-weight: 800;
    min-width: 60px;
    text-align: right;
}

.score-bar-container {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    min-width: 100px;
}

.score-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* Insights Section */
.insights-section {
    padding: var(--spacing-xl) 0;
}

.insight-card-full {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.insight-card-full h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.insight-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.insight-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.insight-rank {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #6490A3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

[data-theme="dark"] .insight-rank {
    background: #7fb3c9;
    color: #0f172a;
}

.insight-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.25rem 0;
}

.insight-score {
    font-size: 0.85rem;
    color: #6490A3;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .insight-score {
    color: #7fb3c9;
}

.insight-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Action Plan Recommendations */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.recommendation-item {
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-left: 4px solid #6490A3;
}

[data-theme="dark"] .recommendation-item {
    border-left-color: #7fb3c9;
}

/* Top Strengths Grid - 3 Columns */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.strength-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.strength-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #10b981;
    transform: translateY(-2px);
}

.strength-rank-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.strength-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 1rem 0;
    padding-right: 3rem;
    line-height: 1.3;
}

.strength-score {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.strength-score .score-value {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
}

.strength-score .score-max {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.strength-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Action Plan Grid - 3 Columns */
.action-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: var(--spacing-xl);
}

.action-plan-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-left: 4px solid #6490A3;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.action-plan-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: #4f7a8c;
    transform: translateY(-2px);
}

[data-theme="dark"] .action-plan-card {
    border-left-color: #7fb3c9;
}

[data-theme="dark"] .action-plan-card:hover {
    border-left-color: #9ac9dc;
}

.action-plan-number {
    width: 36px;
    height: 36px;
    background: #6490A3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

[data-theme="dark"] .action-plan-number {
    background: #7fb3c9;
    color: #0f172a;
}

.action-plan-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 1.25rem 0;
    line-height: 1.3;
}

.action-plan-tips {
    margin: 0;
    padding-left: 1.25rem;
    flex: 1;
}

.action-plan-tips li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.action-plan-tips li:last-child {
    margin-bottom: 0;
}

/* Security Champion Card (Exceptional Scores Only) */
.champion-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl) 4rem;
    margin: var(--spacing-xl) 2rem 0 2rem;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

[data-theme="dark"] .champion-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #fb923c;
    box-shadow: 0 8px 24px rgba(251, 146, 60, 0.15), 0 0 60px rgba(251, 146, 60, 0.08);
}

.champion-badge {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.champion-badge svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.champion-content {
    flex: 1;
}

.champion-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 var(--spacing-md) 0;
}

[data-theme="dark"] .champion-content h3 {
    color: #fb923c;
}

.champion-content > p {
    font-size: 1rem;
    line-height: 1.7;
    color: #78350f;
    margin-bottom: var(--spacing-lg);
}

[data-theme="dark"] .champion-content > p {
    color: #e2e8f0;
}

.champion-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.champion-action-item {
    background: rgba(255, 255, 255, 0.6);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .champion-action-item {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(251, 146, 60, 0.3);
    backdrop-filter: blur(10px);
}

.champion-action-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 0.5rem 0;
}

[data-theme="dark"] .champion-action-item h4 {
    color: #fb923c;
}

.champion-action-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #78350f;
    margin: 0;
}

[data-theme="dark"] .champion-action-item p {
    color: #cbd5e1;
}

.champion-cta {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 2px solid rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .champion-cta {
    border-top-color: rgba(251, 146, 60, 0.25);
}

.btn-champion {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

[data-theme="dark"] .btn-champion {
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.btn-champion:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .btn-champion:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-champion svg {
    transition: transform 0.3s ease;
}

.btn-champion:hover svg {
    transform: translateX(4px);
}

.champion-note {
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    color: #92400e;
    font-style: italic;
}

[data-theme="dark"] .champion-note {
    color: #94a3b8;
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.recommendation-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #6490A3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

[data-theme="dark"] .recommendation-number {
    background: #7fb3c9;
    color: #0f172a;
}

.recommendation-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
}

.recommendation-tips {
    margin: 0;
    padding-left: 1.25rem;
}

.recommendation-tips li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Old Recommendations Section (deprecated) */
.recommendations-section {
    padding: var(--spacing-xl) 0;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.recommendation-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-left: 4px solid #6490A3;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .recommendation-card {
    border-left-color: #7fb3c9;
}

.recommendation-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #6490A3;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

[data-theme="dark"] .recommendation-number {
    background: #7fb3c9;
    color: #0f172a;
}

.recommendation-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: var(--spacing-sm) 0;
}

.recommendation-tips {
    margin: var(--spacing-md) 0 0 0;
    padding-left: 1.25rem;
}

.recommendation-tips li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Next Steps */
.next-steps {
    padding: var(--spacing-xl) 0;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.next-step-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.next-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #6490A3;
}

.next-step-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.next-step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
}

.next-step-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 1200px) {
    .dimensions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .radar-chart-container {
        padding: var(--spacing-lg);
        max-width: 550px;
    }
    
    .dimensions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .dimension-card {
        padding: 1.5rem;
    }
    
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .action-plan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .champion-card {
        padding: var(--spacing-xl) 3rem;
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    /* All Grids - Single Column on Mobile */
    .dimensions-grid,
    .strengths-grid,
    .action-plan-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Champion Card - Mobile Layout */
    .champion-card {
        flex-direction: column;
        padding: var(--spacing-lg) 2rem;
        margin-left: 1rem;
        margin-right: 1rem;
        text-align: center;
    }
    
    .champion-badge {
        margin: 0 auto var(--spacing-md) auto;
    }
    
    .champion-actions {
        grid-template-columns: 1fr;
    }
    
    .champion-content h3 {
        font-size: 1.25rem;
    }
    
    .radar-chart-container {
        padding: var(--spacing-md);
        max-width: 100%;
    }
    
    .dimension-card,
    .strength-card,
    .action-plan-card {
        padding: 1.25rem;
    }
    
    .dimension-card-header h3,
    .strength-card h3,
    .action-plan-card h3 {
        font-size: 1.05rem;
    }
    
    .dimension-score-badge {
        min-width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .strength-rank-badge {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .strength-score .score-value {
        font-size: 1.75rem;
    }
    
    .assessment-page-wrapper {
        padding: var(--spacing-md) 0;
    }
    
    .assessment-container {
        max-width: 100%;
    }
    
    .assessment-instructions h1 {
        font-size: 1.5rem;
    }
    
    .question-card {
        padding: 1.15rem;
    }
    
    .question-text {
        font-size: 1.05rem;
    }
    
    .navigation-buttons {
        flex-direction: column-reverse;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .science-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .assessment-instructions {
        padding: var(--spacing-md);
    }
    
    .assessment-instructions h1 {
        font-size: 1.35rem;
    }
    
    .progress-section {
        padding: 0.75rem;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .response-option {
        padding: 10px 12px;
    }
    
    .option-label {
        font-size: 0.9rem;
    }
}

/* =====================================================
   ANIMATIONS & TRANSITIONS
   ===================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Smooth transitions */
*,
*::before,
*::after {
    transition-property: background-color, border-color, color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

.response-option,
.benefit-card,
.dimension-card {
    transition: all 0.3s ease;
}
