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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.exam-badge {
    font-size: 4rem;
    margin-bottom: 10px;
}

.exam-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.exam-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0;
}

/* Admin Tools */
.admin-tools {
    margin-top: 10px;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Main content styling removed for cleaner look */

.certification-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    overflow: visible;
}

.category-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    border-bottom: 2px solid #f7fafc;
    border-radius: 12px;
}

.category-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.category-description {
    font-size: 1rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

.category-count {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #667eea;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.category-count:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-count.expanded {
    background: #4c51bf;
}

.count-text {
    font-weight: 600;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding: 0 20px 20px 20px;
}

.exam-card {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.exam-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.exam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
    border-color: #667eea;
}

.exam-card:active {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Remove special styling for AI Practitioner - make it look like other cards */

/* Remove the arrow and plus icons since we have a button now */

.exam-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 32px;
    height: 100px;
}

.exam-logo img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo-fallback {
    font-size: 4rem;
    color: #667eea;
}

.exam-card h3 {
    color: #1a202c;
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.exam-code {
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    background: rgba(102, 126, 234, 0.1);
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

.exam-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.exam-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #4a5568;
}

.stat-icon {
    font-size: 1rem;
}

.exam-difficulty {
    display: none;
    /* Hide difficulty badge */
}

.start-exam-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    margin-top: auto;
}

.start-exam-btn:hover {
    background: #5a67d8;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

/* Testing Stage Styles */
.exam-card.testing-stage {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff3cd 100%);
    border: 1px solid #ffeaa7;
    position: relative;
}

.exam-card.testing-stage:hover {
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
    border-color: #fdcb6e;
}

.testing-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(253, 203, 110, 0.3);
    z-index: 2;
}

.start-exam-btn.demo-btn {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
}

.start-exam-btn.demo-btn:hover {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    box-shadow: 0 4px 16px rgba(225, 112, 85, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .exams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }

    .exam-badge {
        font-size: 3rem;
    }

    .exam-title {
        font-size: 2.2rem;
    }

    .exam-subtitle {
        font-size: 1.1rem;
    }

    .certification-categories {
        gap: 30px;
    }

    .category-section {
        padding: 20px;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 15px;
        padding: 15px;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .category-description {
        font-size: 0.9rem;
    }

    .exams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .exam-card {
        padding: 24px;
        min-height: 350px;
    }

    .exam-stats {
        gap: 6px;
        padding: 12px;
    }

    .stat-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10px;
    }

    .exam-title {
        font-size: 1.9rem;
    }

    .certification-categories {
        gap: 25px;
    }

    .category-section {
        padding: 15px;
    }

    .category-header {
        gap: 12px;
        margin-bottom: 15px;
        padding: 12px;
    }

    .category-count {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .exams-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 15px 15px 15px;
        margin-top: 15px;
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.3rem;
    }

    .category-count {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .exam-card {
        padding: 20px;
        min-height: 320px;
    }

    .exam-card h3 {
        font-size: 1.2rem;
    }

    .exam-stats {
        padding: 10px;
        gap: 4px;
    }

    .start-exam-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .exam-logo {
        height: 70px;
        margin-bottom: 16px;
    }

    .exam-logo img {
        max-width: 70px;
        max-height: 70px;
    }

    .logo-fallback {
        font-size: 2.5rem;
    }
}/* PDF
 Section Styles */
.pdf-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pdf-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.pdf-icon {
    font-size: 3em;
    opacity: 0.9;
}

.pdf-info h2 {
    margin: 0 0 8px 0;
    font-size: 1.8em;
    font-weight: 600;
}

.pdf-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.pdf-actions {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.pdf-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pdf-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.pdf-stats {
    display: flex;
    gap: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pdf-stats .stat-item {
    text-align: center;
}

.pdf-stats .stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.pdf-stats .stat-label {
    font-size: 0.9em;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pdf-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .pdf-actions {
        margin-left: 0;
        justify-content: center;
    }
    
    .pdf-stats {
        justify-content: center;
        gap: 30px;
    }
}/* Header Ac
tions for PDF Upload */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.pdf-link-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pdf-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}



/* Responsive adjustments for header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
}/* PDF Indic
ator on Exam Cards */
.exam-card {
    position: relative;
}

/* 
Multiple Choice Question Styles */
.multiple-choice-instruction {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.choice-checkbox {
    margin-left: auto;
    font-size: 1.2em;
    font-weight: bold;
    color: #007bff;
}

.choice.selected .choice-checkbox {
    color: #28a745;
}

/* Enhanced choice styling for multiple choice */
.choice {
    display: flex;
    align-items: center;
    gap: 15px;
}

.choice-text {
    flex: 1;
}

/* Multiple correct answers in results */
.choice.correct {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
}

.choice.incorrect {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
}/* Favorite
s Section */
.favorites-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.favorites-title {
    text-align: center;
    flex: 1;
}

.favorites-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.favorites-title p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}



.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.favorite-exam-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.favorite-exam-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.favorite-exam-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.favorite-exam-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.favorite-exam-logo img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.favorite-exam-info {
    flex: 1;
    margin-left: 15px;
}

.favorite-exam-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: white;
    line-height: 1.3;
}

.favorite-exam-code {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.favorite-remove-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 14px;
}

.favorite-remove-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.1);
}

.favorite-exam-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.favorite-stat {
    text-align: center;
    flex: 1;
}

.favorite-stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    display: block;
}

.favorite-stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 2px;
}

.favorite-exam-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.favorite-action-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorite-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.favorite-action-btn.primary {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.favorite-action-btn.primary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Add to favorites button in exam cards */
.add-favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: #666;
}

.add-favorite-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
    transform: scale(1.1);
}

.add-favorite-btn.favorited {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

.add-favorite-btn.favorited:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff4444;
    color: #ff4444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .favorite-exam-actions {
        flex-direction: column;
    }
}