/* Dashboard Layout */
.main-content {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: sticky;
    top: 2rem;
    width: 250px;
    height: fit-content;
}

.sidebar-nav .filter-tags {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.filter-tag {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    background-color: #f1f3f4;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    width: 100%;
    text-align: left;
}

.filter-tag:hover {
    background-color: #e8eaed;
}

.filter-tag.active {
    background-color: var(--primary-color);
    color: white;
}

/* Main Content Area */
.categories-container {
    flex: 1;
    padding-top: 1rem;
}

/* Compact Category Sections */
.category-section {
    margin-bottom: 2rem;  /* Reduced from 4rem */
    scroll-margin-top: 1rem;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;  /* Reduced from 2rem */
}

.platform-card {
    margin-bottom: 1rem;  /* Added to reduce space between cards */
}

/* Header Adjustments */
.dashboard-header {
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
/* Dashboard Header */
.dashboard-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;  /* Reduced padding */
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;  /* Further reduced margin */
}

.filter-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.75rem;  /* Reduced margin */
}

.filter-tag {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    background-color: #f1f3f4;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.filter-tag:hover {
    background-color: #e8eaed;
}

.filter-tag.active {
    background-color: var(--primary-color);
    color: white;
}

/* Categories Layout */
.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-section {
    margin-top: 1rem;  /* Reduced top margin */
    margin-bottom: 4rem;
    scroll-margin-top: 1rem;  /* Reduced scroll margin */
}/* Dashboard Header */
.dashboard-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 0.5rem 1rem;  /* Reduced bottom padding */
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;  /* Reduced margin */
}

.filter-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;  /* Added margin to control space before content */
}

.filter-tag {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    background-color: #f1f3f4;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;  /* Prevent underline */
    display: inline-block;
}

.filter-tag:hover {
    background-color: #e8eaed;
}

.filter-tag.active {
    background-color: var(--primary-color);
    color: white;
}

/* Categories Layout */
.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-section {
    margin-top: 1.5rem;  /* Added top margin for spacing from header */
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}/* Categories Layout */
.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
}

.category-icon {
    color: var(--primary-color);
}

.category-count {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.platform-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.platform-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-color);
}

.platform-icon {
    width: 32px;
    height: 32px;
}

.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.certification-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-color);
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.certification-link:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.cert-name {
    font-weight: 500;
}

.cert-meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Search and Filters */
.dashboard-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem 1rem;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.search-container {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    max-width: 600px;
    height: 60px;
    padding: 0 1.5rem;
    font-size: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    transition: border-color 0.2s ease;
}

.filter-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.filter-tag {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    background-color: #f1f3f4;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background-color: #e8eaed;
}

.filter-tag.active {
    background-color: var(--primary-color);
    color: white;
}/* Quiz Container Styles */
.test-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.question {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.question h3 {
    color: var(--secondary-color);
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: var(--text-color);
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-option {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.answer-option:hover {
    background-color: #f8f9fa;
    border-color: var(--secondary-color);
}

.answer-option input[type="radio"] {
    margin-right: 1rem;
}

.answer-option label {
    cursor: pointer;
    flex: 1;
}

.explanation {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: var(--secondary-color);
}

.correct {
    background-color: rgba(52, 168, 83, 0.1);
    border-color: var(--success-color);
}

.incorrect {
    background-color: rgba(234, 67, 53, 0.1);
    border-color: var(--error-color);
}

#quiz-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}/* Header and Navigation Styles */
.main-header {
    background-color: var(--primary-color);
    padding: 0.6rem 0;
    color: white;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-top {
    margin-bottom: 0.8rem;
}

.logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.home-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.page-title {
    color: white;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 500;
    opacity: 0.95;
    text-align: center;
    flex: 1;
    padding: 0 2rem;
}

.site-brand {
    font-size: 2rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    opacity: 1;
}

/* Remove old dashboard header styles */
.dashboard-header {
    display: none;
}

/* Breadcrumbs */
.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb .separator {
    opacity: 0.7;
    font-weight: 600;
}

.breadcrumb .current {
    opacity: 0.9;
}

/* Stats Section */
.stats-container {
    display: flex;
    gap: 3.5rem;
    margin-left: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    white-space: nowrap;
}/* Header and Navigation Styles */
.main-header {
    background-color: var(--primary-color);
    padding: 0.8rem 0;
    color: white;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-top {
    margin-bottom: 1rem;
}

.logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.site-brand {
    font-size: 2rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    opacity: 1;
}

.site-brand:hover {
    opacity: 0.9;
}

/* Breadcrumbs */
.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb .separator {
    opacity: 0.5;
}

.breadcrumb .current {
    opacity: 0.7;
}

/* Stats Section */
.stats-container {
    display: flex;
    gap: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 100px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Rest of your existing CSS... *//* Header and Navigation Styles */
.main-header {
    background-color: var(--primary-color);
    padding: 0.8rem 0;
    color: white;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.primary-nav {
    position: absolute;
    left: 0;
}

.site-brand {
    font-size: 2rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    opacity: 1;
}

.site-brand:hover {
    opacity: 0.9;
}

/* Search and Filters */
.dashboard-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.search-container {
    margin-bottom: 3rem;
}

.search-input {
    width: 100%;
    max-width: 800px;
    height: 60px;
    padding: 0 1.5rem;
    font-size: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.filter-tag {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    background-color: #f1f3f4;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background-color: #e8eaed;
}

.filter-tag.active {
    background-color: var(--primary-color);
    color: white;
}/* source/static/css/style.css */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #4285f4;
    --background-color: #f8f9fa;
    --text-color: #202124;
    --success-color: #34a853;
    --error-color: #ea4335;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    background-color: var(--primary-color);
    padding: 1rem;
    color: white;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
}

.home-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-header {
    text-align: center;
    margin: 2rem 0 4rem 0;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
}

.header-description {
    color: var(--text-color);
    font-size: 1.2rem;
    opacity: 0.8;
}

.certifications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.certification-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.certification-card h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.categories-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-section {
    background: var(--background-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.category-title {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
}

.tests-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.test-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    color: var(--secondary-color);
    text-decoration: none;
    background: white;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.test-link:hover {
    background: rgba(66, 133, 244, 0.1);
    border-color: var(--secondary-color);
    transform: translateX(5px);
    color: var(--secondary-color);
}

.arrow-icon {
    opacity: 0.6;
}

.test-link:hover .arrow-icon {
    opacity: 1;
}

.question {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.answers {
    margin: 1.5rem 0;
}

.answer-option {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.answer-option:hover {
    background-color: #f0f0f0;
}

.answer-option input[type="radio"] {
    margin-right: 10px;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--secondary-color);
}

.question button {
    margin-top: 1.5rem;
}

.next-question {
    margin-top: 2rem !important;  /* Override the default button margin for next question */
}

.explanation {
    margin-top: 1.5rem;
    margin-bottom: 2rem;  /* Add space below the explanation */
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 3rem;
}

.explanation::before {
    content: "ℹ️";
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

.correct {
    background-color: rgba(52, 168, 83, 0.15);
    border: 2px solid var(--success-color);
    position: relative;
    padding-left: 40px;
}

.correct::before {
    content: "✓";
    position: absolute;
    left: 10px;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.incorrect {
    background-color: rgba(234, 67, 53, 0.15);
    border: 2px solid var(--error-color);
    position: relative;
    padding-left: 40px;
}

.incorrect::before {
    content: "✗";
    position: absolute;
    left: 10px;
    color: var(--error-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Show the correct answer when an incorrect answer is selected */
.show-correct {
    border: 2px solid var(--success-color);
    background-color: rgba(52, 168, 83, 0.05);
}

#quiz-results {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #f1f3f4;
    margin-top: 4rem;
}

.test-header {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.certification-info h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
}

.category-info {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

.category-info h2 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
}

.test-name {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

.progress-bar {
    margin: 2rem 0;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}