* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f7fafc;
}

header {
    background: #1a365d;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a, .sidebar-item {
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.sidebar-item.active {
    background: #4299e1;
}

.sidebar-item:hover {
    background: #2c5282;
}

.container {
    display: flex;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 80px auto 40px;
    flex: 1;
    
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.exam-card {
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.exam-title {
    font-size: 1.2em;
    color: #1a365d;
    font-weight: 600;
}

.rating {
    background: #48bb78;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.exam-details {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    color: #4a5568;
}

.cta-button {
    background: #4299e1;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: 0.3s;
}

.cta-button:hover {
    background: #3182ce;
}

footer {
    background: #2d3748;
    color: white;
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4299e1;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        background: #1a365d;
        width: 50%;
        padding: 10px 0;
        display: none;
        height: 100vh;
        overflow-y: auto;
    }

    nav ul.active {
        display: flex;
    }
}
