/* Global Styles */
:root {
    --primary-color: #0078d7;
    --secondary-color: #005a9e;
    --accent-color: #ffa500;
    --text-color: #333;
    --light-text: #f5f5f5;
    --light-bg: #f5f7fa;
    --dark-bg: #1e1e2e;
    --border-color: #ddd;
    --card-bg: #fff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --gray-color: #6c757d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 8px;
}

/* Dark Mode Variables */
.dark-mode {
    --primary-color: #4da3ff;
    --secondary-color: #0078d7;
    --text-color: #e1e1e1;
    --light-text: #f5f5f5;
    --light-bg: #2d2d3a;
    --dark-bg: #1a1a2e;
    --border-color: #444;
    --card-bg: #2d2d3a;
    --gray-color: #aaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Header and Navigation */
header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 70px;
}

.logo h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(0, 120, 215, 0.1);
}

.theme-toggle {
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content Sections */
main {
    min-height: calc(100vh - 70px - 200px);
    padding: 0 0 40px;
}

.page {
    display: none;
    padding: 0 5%;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
}

.hero-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Exam Info Cards */
.exam-info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.exam-info-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.exam-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.exam-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Exam Details */
.exam-details {
    margin-bottom: 40px;
}

.exam-details h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.detail-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Domain Cards */
.domains-section {
    margin-bottom: 40px;
}

.domains-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.domains-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.domain-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    height: 100%;
}

.domain-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.domain-card ul {
    margin-left: 20px;
}

.domain-card li {
    margin-bottom: 5px;
    position: relative;
    list-style-type: none;
}

.domain-card li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 50px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 40px;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-section .primary-btn {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.cta-section .primary-btn:hover {
    background-color: white;
}

.cta-section .secondary-btn {
    border-color: var(--light-text);
    color: var(--light-text);
}

.cta-section .secondary-btn:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

/* Exam Options Page */
.options-container {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.options-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

.exam-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.option-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.option-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.option-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--text-color);
}

.option-card p {
    margin-bottom: 20px;
    color: var(--gray-color);
    flex-grow: 1;
}

.option-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.option-btn:hover {
    background-color: var(--secondary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    margin-bottom: 20px;
}

.domain-options {
    margin-bottom: 25px;
}

.domain-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.domain-option input[type="radio"] {
    margin-right: 10px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Custom Quiz Modal */
.custom-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-count {
    margin-bottom: 20px;
}

input[type="range"] {
    width: 100%;
    margin-top: 10px;
}

.domain-selection h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.domain-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.domain-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.time-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.time-option input[type="radio"] {
    margin-right: 10px;
}

.time-slider {
    margin-top: 10px;
    display: block;
    width: 100%;
}

/* Exam Page */
.exam-header {
    background-color: var(--card-bg);
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.exam-info h2 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.exam-info p {
    color: var(--gray-color);
}

.exam-progress {
    min-width: 300px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.timer {
    font-weight: 700;
    color: var(--primary-color);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.5s ease;
}

.exam-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-bottom: 20px;
}

.question-navigation {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
    max-height: 70vh;
    overflow-y: auto;
}

.navigation-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.navigation-header h3 {
    margin-bottom: 10px;
}

.legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.legend-current, .legend-answered, .legend-flagged, .legend-unanswered {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 5px;
}

.legend-current {
    background-color: var(--primary-color);
}

.legend-answered {
    background-color: var(--success-color);
}

.legend-flagged {
    background-color: var(--warning-color);
}

.legend-unanswered {
    background-color: var(--gray-color);
}

.question-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.q-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.q-btn.current {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.q-btn.answered {
    background-color: var(--success-color);
    color: var(--light-text);
    border-color: var(--success-color);
}

.q-btn.flagged {
    background-color: var(--warning-color);
    color: var(--text-color);
    border-color: var(--warning-color);
}

.q-btn:hover {
    transform: scale(1.1);
}

.question-container {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.question-content {
    margin-bottom: 30px;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.option-item:hover {
    background-color: rgba(0, 120, 215, 0.05);
    border-color: var(--primary-color);
}

.option-item.selected {
    border-color: var(--primary-color);
    background-color: rgba(0, 120, 215, 0.1);
}

.option-item input[type="radio"] {
    margin-right: 12px;
}

.question-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.flag-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.flag-btn.active {
    background-color: var(--warning-color);
    color: var(--text-color);
    border-color: var(--warning-color);
}

.flag-btn:hover {
    background-color: #f8f9fa;
}

.navigation-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 500;
}

.exam-footer {
    display: flex;
    justify-content: space-between;
}

/* Submit Confirmation Modal */
.confirmation-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-weight: 500;
}

#total-questions-stat, #answered-stat, #unanswered-stat, #flagged-stat {
    font-weight: 700;
}

/* Results Page */
.results-container {
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.score-overview {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0%, var(--primary-color) 75%, #f1f1f1 75%, #f1f1f1 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: var(--card-bg);
}

.percent {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.score-label {
    margin-top: 5px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    color: var(--gray-color);
}

.pass-fail-indicator {
    margin-top: 20px;
}

#pass-fail-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2rem;
}

.pass {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.fail {
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}

.score-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 300px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    font-weight: 500;
}

.domain-performance {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.domain-performance h2 {
    text-align: center;
    margin-bottom: 30px;
}

.performance-charts {
    margin-bottom: 30px;
}

.chart-container {
    max-height: 300px;
}

.domain-table {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.domain-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 12px;
}

.domain-row.header {
    background-color: var(--primary-color);
    color: var(--light-text);
    font-weight: 500;
}

.domain-row:not(.header) {
    border-top: 1px solid var(--border-color);
}

.domain-row:nth-child(even):not(.header) {
    background-color: rgba(0, 0, 0, 0.03);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Review Answers Page */
.review-container {
    padding: 40px 0;
    max-width: 900px;
    margin: 0 auto;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.review-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}

.review-question-item {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.review-question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.review-question-number {
    font-weight: 700;
}

.review-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.review-status.correct {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.review-status.incorrect {
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}

.review-question-content {
    margin-bottom: 20px;
}

.review-question-text {
    font-weight: 500;
    margin-bottom: 15px;
}

.review-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.review-option {
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.review-option.selected {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--success-color);
}

.review-option.correct {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--success-color);
}

.review-option.wrong {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-color);
}

.review-explanation {
    background-color: var(--light-bg);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 10px;
}

.review-explanation h4 {
    margin-bottom: 8px;
}

.review-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Study Resources Page */
.resources-container {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.resources-container h1 {
    text-align: center;
    margin-bottom: 40px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.resource-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.resource-card h3 {
    margin-bottom: 15px;
}

.resource-card p {
    margin-bottom: 25px;
    color: var(--gray-color);
}

.resource-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.resource-btn:hover {
    background-color: var(--secondary-color);
}

/* Progress Page */
.progress-container {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.progress-container h1 {
    text-align: center;
    margin-bottom: 40px;
}

.progress-dashboard {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.stat-text {
    color: var(--gray-color);
    margin-bottom: 5px;
}

.stat-progress {
    margin-top: 10px;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.domain-strength, .progress-history, .weak-areas {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.domain-strength h2, .progress-history h2, .weak-areas h2 {
    margin-bottom: 20px;
}

.strength-chart, .history-chart {
    height: 300px;
    max-width: 800px;
    margin: 0 auto;
}

.focus-areas {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.focus-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.focus-domain {
    font-weight: 500;
}

.focus-score {
    color: var(--danger-color);
    font-weight: 500;
}

.progress-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* About Page */
.about-container {
    padding: 40px 0;
    max-width: 900px;
    margin: 0 auto;
}

.about-container h1 {
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.about-section {
    margin-bottom: 30px;
}

.about-section h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.about-section ul {
    margin-left: 20px;
}

.about-section li {
    margin-bottom: 10px;
    position: relative;
}

.about-section li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.loader {
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Footer */
footer {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 40px 5% 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-section p {
    color: var(--gray-color);
    margin-bottom: 10px;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section ul a {
    color: var(--text-color);
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--gray-color);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .exam-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .question-navigation {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--card-bg);
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .exam-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .domain-row {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .domain-row.header {
        display: none;
    }
    
    .domain-row > div {
        margin-bottom: 5px;
    }
    
    .domain-row > div::before {
        content: attr(data-label) ": ";
        font-weight: 700;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0 3%;
    }
    
    main {
        padding: 0 0 20px;
    }
    
    .page {
        padding: 0 3%;
    }
    
    .stat-card, .option-card, .resource-card {
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
}